Loading Documentation/devicetree/bindings/media/video/msm-cam-cci.txt +81 −0 Original line number Diff line number Diff line Loading @@ -711,6 +711,64 @@ OIS MODULE Definition: This property is required if the clk is shared clk between different sensor and ois, if this device need to be opened together. ============================= IRLED MODULE ============================= - compatible Usage: required Value type: <string> Definition: Should be "qcom,camera-ir-led". - cell-index: cci hardware core index Usage: required Value type: <u32> Definition: Should specify the Hardware index id. - reg Usage: required Value type: <u32> Definition: offset and length of the register set for the device for the cci operating in compatible mode. - pwms Usage: optional Value type: <phandle> Definition: should contain phandle to pwm node used for IRLED - pinctrl-names Usage: required Value type: <string> Definition: List of names to assign the shared pin state defined in pinctrl device node - pinctrl-<0..n> Usage: required Value type: <phandle> Definition: Lists phandles each pointing to the pin configuration node within a pin - gpios Usage: required Value type: <phandle> Definition: should contain phandle to gpio controller node and array of #gpio-cells specifying specific gpio (controller specific) - gpio-req-tbl-num Usage: required Value type: <u32> Definition: should specify the gpio table index. - gpio-req-tbl-flags Usage: required Value type: <u32> Definition: should specify the gpio functions. - gpio-req-tbl-label Usage: required Value type: <string> Definition: should specify the gpio labels in gpio-req-tbl-num property (in the same order) Example: &soc { led_flash0: qcom,camera-flash@0 { Loading @@ -721,6 +779,29 @@ Example: switch-source = <&pmi8998_switch>; status = "ok"; }; ir_led: camera-ir-led@0 { cell-index = <0>; reg = <0x00>; compatible = "qcom,camera-ir-led"; pwms = <&pm6150l_pwm_1 0 0>; enable-active-high; pinctrl-names = "default", "cam_default", "cam_suspend"; pinctrl-0 = <&irled_pwm>; pinctrl-1 = <&cam_sensor_ir_cut_on>; pinctrl-2 = <&cam_sensor_ir_cut_off>; gpios = <&tlmm 73 0>, <&tlmm 74 0>; qcom,gpio-ir-p = <0>; qcom,gpio-ir-m = <1>; qcom,gpio-req-tbl-num = <0 1>; qcom,gpio-req-tbl-flags = <0 0>; qcom,gpio-req-tbl-label = "IR_CUT_FILTER_P", "IR_CUT_FILTER_M"; gpio-no-mux = <0>; status = "ok"; }; }; &cam_cci0 { Loading arch/arm64/boot/dts/qcom/qcs610-camera-sensor-idp.dtsi +23 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,28 @@ */ &soc { ir_led: camera-ir-led@0 { cell-index = <0>; reg = <0x00>; compatible = "qcom,camera-ir-led"; pwms = <&pm6150l_pwm_1 0 0>; enable-active-high; pinctrl-names = "default", "cam_default", "cam_suspend"; pinctrl-0 = <&irled_pwm>; pinctrl-1 = <&cam_sensor_ir_cut_on>; pinctrl-2 = <&cam_sensor_ir_cut_off>; gpios = <&tlmm 73 0>, <&tlmm 74 0>; qcom,gpio-ir-p = <0>; qcom,gpio-ir-m = <1>; qcom,gpio-req-tbl-num = <0 1>; qcom,gpio-req-tbl-flags = <0 0>; qcom,gpio-req-tbl-label = "IR_CUT_FILTER_P", "IR_CUT_FILTER_M"; gpio-no-mux = <0>; status = "ok"; }; camera_ldo: gpio-regulator@0 { compatible = "regulator-fixed"; reg = <0x00 0x00>; Loading Loading @@ -45,6 +67,7 @@ cam_vana-supply = <&pm6150l_l4>; cam_vdig-supply = <&camera_ldo>; cam_clk-supply = <&titan_top_gdsc>; ir-led-src = <&ir_led>; regulator-names = "cam_vio", "cam_vana", "cam_vdig", "cam_clk"; rgltr-cntrl-support; Loading arch/arm64/boot/dts/qcom/sm6150-pinctrl.dtsi +29 −0 Original line number Diff line number Diff line Loading @@ -1678,6 +1678,35 @@ }; }; }; cam_sensor_ir_cut_on: cam_sensor_ir_led_on { /*IR_LED*/ mux { pins = "gpio73", "gpio74"; function = "gpio"; }; config { pins = "gpio73", "gpio74"; bias-disable; /* No PULL */ drive-strength = <2>; /* 2 MA */ }; }; cam_sensor_ir_cut_off: cam_sensor_ir_led_off { /*IR_LED*/ mux { pins = "gpio73", "gpio74"; function = "gpio"; }; config { pins = "gpio73", "gpio74"; bias-pull-down; /* PULL DOWN */ drive-strength = <2>; /* 2 MA */ }; }; emac { emac_mdc: emac_mdc { mux { Loading Loading
Documentation/devicetree/bindings/media/video/msm-cam-cci.txt +81 −0 Original line number Diff line number Diff line Loading @@ -711,6 +711,64 @@ OIS MODULE Definition: This property is required if the clk is shared clk between different sensor and ois, if this device need to be opened together. ============================= IRLED MODULE ============================= - compatible Usage: required Value type: <string> Definition: Should be "qcom,camera-ir-led". - cell-index: cci hardware core index Usage: required Value type: <u32> Definition: Should specify the Hardware index id. - reg Usage: required Value type: <u32> Definition: offset and length of the register set for the device for the cci operating in compatible mode. - pwms Usage: optional Value type: <phandle> Definition: should contain phandle to pwm node used for IRLED - pinctrl-names Usage: required Value type: <string> Definition: List of names to assign the shared pin state defined in pinctrl device node - pinctrl-<0..n> Usage: required Value type: <phandle> Definition: Lists phandles each pointing to the pin configuration node within a pin - gpios Usage: required Value type: <phandle> Definition: should contain phandle to gpio controller node and array of #gpio-cells specifying specific gpio (controller specific) - gpio-req-tbl-num Usage: required Value type: <u32> Definition: should specify the gpio table index. - gpio-req-tbl-flags Usage: required Value type: <u32> Definition: should specify the gpio functions. - gpio-req-tbl-label Usage: required Value type: <string> Definition: should specify the gpio labels in gpio-req-tbl-num property (in the same order) Example: &soc { led_flash0: qcom,camera-flash@0 { Loading @@ -721,6 +779,29 @@ Example: switch-source = <&pmi8998_switch>; status = "ok"; }; ir_led: camera-ir-led@0 { cell-index = <0>; reg = <0x00>; compatible = "qcom,camera-ir-led"; pwms = <&pm6150l_pwm_1 0 0>; enable-active-high; pinctrl-names = "default", "cam_default", "cam_suspend"; pinctrl-0 = <&irled_pwm>; pinctrl-1 = <&cam_sensor_ir_cut_on>; pinctrl-2 = <&cam_sensor_ir_cut_off>; gpios = <&tlmm 73 0>, <&tlmm 74 0>; qcom,gpio-ir-p = <0>; qcom,gpio-ir-m = <1>; qcom,gpio-req-tbl-num = <0 1>; qcom,gpio-req-tbl-flags = <0 0>; qcom,gpio-req-tbl-label = "IR_CUT_FILTER_P", "IR_CUT_FILTER_M"; gpio-no-mux = <0>; status = "ok"; }; }; &cam_cci0 { Loading
arch/arm64/boot/dts/qcom/qcs610-camera-sensor-idp.dtsi +23 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,28 @@ */ &soc { ir_led: camera-ir-led@0 { cell-index = <0>; reg = <0x00>; compatible = "qcom,camera-ir-led"; pwms = <&pm6150l_pwm_1 0 0>; enable-active-high; pinctrl-names = "default", "cam_default", "cam_suspend"; pinctrl-0 = <&irled_pwm>; pinctrl-1 = <&cam_sensor_ir_cut_on>; pinctrl-2 = <&cam_sensor_ir_cut_off>; gpios = <&tlmm 73 0>, <&tlmm 74 0>; qcom,gpio-ir-p = <0>; qcom,gpio-ir-m = <1>; qcom,gpio-req-tbl-num = <0 1>; qcom,gpio-req-tbl-flags = <0 0>; qcom,gpio-req-tbl-label = "IR_CUT_FILTER_P", "IR_CUT_FILTER_M"; gpio-no-mux = <0>; status = "ok"; }; camera_ldo: gpio-regulator@0 { compatible = "regulator-fixed"; reg = <0x00 0x00>; Loading Loading @@ -45,6 +67,7 @@ cam_vana-supply = <&pm6150l_l4>; cam_vdig-supply = <&camera_ldo>; cam_clk-supply = <&titan_top_gdsc>; ir-led-src = <&ir_led>; regulator-names = "cam_vio", "cam_vana", "cam_vdig", "cam_clk"; rgltr-cntrl-support; Loading
arch/arm64/boot/dts/qcom/sm6150-pinctrl.dtsi +29 −0 Original line number Diff line number Diff line Loading @@ -1678,6 +1678,35 @@ }; }; }; cam_sensor_ir_cut_on: cam_sensor_ir_led_on { /*IR_LED*/ mux { pins = "gpio73", "gpio74"; function = "gpio"; }; config { pins = "gpio73", "gpio74"; bias-disable; /* No PULL */ drive-strength = <2>; /* 2 MA */ }; }; cam_sensor_ir_cut_off: cam_sensor_ir_led_off { /*IR_LED*/ mux { pins = "gpio73", "gpio74"; function = "gpio"; }; config { pins = "gpio73", "gpio74"; bias-pull-down; /* PULL DOWN */ drive-strength = <2>; /* 2 MA */ }; }; emac { emac_mdc: emac_mdc { mux { Loading