Loading Documentation/devicetree/bindings/media/video/msm-camera-flash.txt +18 −18 Original line number Diff line number Diff line Loading @@ -10,21 +10,6 @@ Required properties: - "qcom,camera-flash" - "qcom,led-flash" - "qcom,led-flash1" - reg : offset and length of the register set for the device. for the flash operating in compatible mode. - gpios : should contain phandle to gpio controller node and array of #gpio-cells specifying specific gpio (controller specific) - qcom,gpio-req-tbl-num : should contain index to gpios specific to this flash - qcom,gpio-req-tbl-flags : should contain direction of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-req-tbl-label : should contain name of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-flash-reset : should contain index to gpio used by flash's "flash reset" pin. - qcom,gpio-flash-en : should contain index to gpio used by flash's "flash enable" pin. - qcom,gpio-flash-now : should contain index to gpio used by flash's "flash now" pin. - label : should contain unique flash name to differentiate from other flash - "adp1660" - "bd7710" - qcom,flash-type : Should contain type flash device - 1 for LED flash - 2 for strobe flash Loading @@ -32,9 +17,6 @@ Required properties: This is a low cost led used for camera flash, the led is driven by system power, and use a transistor controlled by external pin to gate its on/off state. - qcom,cci-master : should contain i2c master id to be used for this flash. - 0 -> MASTER 0 - 1 -> MASTER 1 - qcom,flash-source : Should contain array of phandles to flash source nodes. - pm8941_flash0 pm8941_flash1 Loading @@ -47,6 +29,24 @@ Optional properties: - qcom,max-duration: Max duration in milliseconds the flash can glow. -qcom,switch-source : Should contain phandle to switch source node. This is used to trigger dual led at same time to avoid sync issues. - qcom,cci-master : should contain i2c master id to be used for this flash. - 0 -> MASTER 0 - 1 -> MASTER 1 - reg : offset and length of the register set for the device. for the flash operating in compatible mode. - gpios : should contain phandle to gpio controller node and array of #gpio-cells specifying specific gpio (controller specific) - qcom,gpio-req-tbl-num : should contain index to gpios specific to this flash - qcom,gpio-req-tbl-flags : should contain direction of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-req-tbl-label : should contain name of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-flash-reset : should contain index to gpio used by flash's "flash reset" pin. - qcom,gpio-flash-en : should contain index to gpio used by flash's "flash enable" pin. - qcom,gpio-flash-now : should contain index to gpio used by flash's "flash now" pin. - label : should contain unique flash name to differentiate from other flash - "adp1660" - "bd7710" Example: qcom,led-flash@60 { Loading Loading
Documentation/devicetree/bindings/media/video/msm-camera-flash.txt +18 −18 Original line number Diff line number Diff line Loading @@ -10,21 +10,6 @@ Required properties: - "qcom,camera-flash" - "qcom,led-flash" - "qcom,led-flash1" - reg : offset and length of the register set for the device. for the flash operating in compatible mode. - gpios : should contain phandle to gpio controller node and array of #gpio-cells specifying specific gpio (controller specific) - qcom,gpio-req-tbl-num : should contain index to gpios specific to this flash - qcom,gpio-req-tbl-flags : should contain direction of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-req-tbl-label : should contain name of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-flash-reset : should contain index to gpio used by flash's "flash reset" pin. - qcom,gpio-flash-en : should contain index to gpio used by flash's "flash enable" pin. - qcom,gpio-flash-now : should contain index to gpio used by flash's "flash now" pin. - label : should contain unique flash name to differentiate from other flash - "adp1660" - "bd7710" - qcom,flash-type : Should contain type flash device - 1 for LED flash - 2 for strobe flash Loading @@ -32,9 +17,6 @@ Required properties: This is a low cost led used for camera flash, the led is driven by system power, and use a transistor controlled by external pin to gate its on/off state. - qcom,cci-master : should contain i2c master id to be used for this flash. - 0 -> MASTER 0 - 1 -> MASTER 1 - qcom,flash-source : Should contain array of phandles to flash source nodes. - pm8941_flash0 pm8941_flash1 Loading @@ -47,6 +29,24 @@ Optional properties: - qcom,max-duration: Max duration in milliseconds the flash can glow. -qcom,switch-source : Should contain phandle to switch source node. This is used to trigger dual led at same time to avoid sync issues. - qcom,cci-master : should contain i2c master id to be used for this flash. - 0 -> MASTER 0 - 1 -> MASTER 1 - reg : offset and length of the register set for the device. for the flash operating in compatible mode. - gpios : should contain phandle to gpio controller node and array of #gpio-cells specifying specific gpio (controller specific) - qcom,gpio-req-tbl-num : should contain index to gpios specific to this flash - qcom,gpio-req-tbl-flags : should contain direction of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-req-tbl-label : should contain name of gpios present in qcom,gpio-req-tbl-num property (in the same order) - qcom,gpio-flash-reset : should contain index to gpio used by flash's "flash reset" pin. - qcom,gpio-flash-en : should contain index to gpio used by flash's "flash enable" pin. - qcom,gpio-flash-now : should contain index to gpio used by flash's "flash now" pin. - label : should contain unique flash name to differentiate from other flash - "adp1660" - "bd7710" Example: qcom,led-flash@60 { Loading