Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b7085dc authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Gerrit - the friendly Code Review server
Browse files

dt-bindings: camera: Add pinctrl gpio support in res_mgr

Add shared-pinctrl-gpio support string and other respective
documentation.

CRs-Fixed: 2758167
Change-Id: I7f43a8494498a5eb4016c676da4957e9318a18f0
parent eb454fb4
Loading
Loading
Loading
Loading
+24 −3
Original line number Diff line number Diff line
@@ -254,10 +254,26 @@ sensor resource.
  Definition: should contain the gpios which are used by two or more
	cameras, and these cameras may be opened together.

- shared-pinctrl-gpios
  Usage: optional
  Value type: <u32>
  Definition: should contain the pinctrl gpios which are used by two or more
	cameras, and these cameras may be opened together.

- shared-pctrl-gpio-names
  Usage: optional
  Value type: <string>
  Definition: List of names to assign the shared pinctrl gpio defined in
	shared-pinctrl-gpios entry
	e.g "mclk0", "xyz"

- pinctrl-names
  Usage: optional
  Value type: <string>
  Definition: List of names to assign the shared pin state defined in pinctrl device node
	string should follow the strict rule which needs to start with shared-pinctrl-gpio-names
	and followed by "_active" and "_suspend"
	e.g. "mclk0_active", "mclk0_suspend", "xyz_active", "xyz_suspend"

- pinctrl-<0..n>
  Usage: optional
@@ -758,9 +774,14 @@ Example:
         compatible = "qcom,cam-res-mgr";
         status = "ok";
         shared-gpios = <18 19>;
         pinctrl-names = "cam_res_mgr_default", "cam_res_mgr_suspend";
         pinctrl-0 = <&cam_shared_clk_active &cam_res_mgr_active>;
         pinctrl-1 = <&cam_shared_clk_suspend &cam_res_mgr_suspend>;
	 shared-pinctrl-gpios = <408 409>;
	 shared-pctrl-gpio-names = "mclk0", "mclk1";
         pinctrl-names = "mclk0_active", "mclk0_suspend",
		"mclk1_active", "mclk1_suspend";
         pinctrl-0 = <&cam_sensor_mclk0_active>;
	 pinctrl-1 = <&cam_sensor_mclk0_suspend>;
	 pintcrl-2 = <&cam_sensor_mclk1_active>;
	 pinctrl-3 = <&cam_sensor_mclk1_suspend>;
    };

    qcom,cam-sensor0 {