diff --git a/bindings/iio/ipd.txt b/bindings/iio/ipd.txt new file mode 100644 index 00000000..be2fc452 --- /dev/null +++ b/bindings/iio/ipd.txt @@ -0,0 +1,18 @@ +Qualcomm Technologies, Inc. Inter-Pupillary Device(IPD) adjuster Device Tree Bindings + +Required properties: + +- compatible: + * "qcom,ipd" +- reg : the I2C address of the MAG sensor +- io-channels : Phandle for ADC Channel potentiometer +- io-channel-names : IO-Channel name + +Example: + +k09973: k09973@10 { + compatible = "qcom,ipd"; + reg = <0x10>; + io-channels = <&pmk8550_vadc PMXR2230_ADC5_GEN3_AMUX_THM5_100K_PU>; + io-channel-names = "ipd"; +}; diff --git a/qcom/anorak-qxr.dtsi b/qcom/anorak-qxr.dtsi index 6301575c..7dbcd75b 100644 --- a/qcom/anorak-qxr.dtsi +++ b/qcom/anorak-qxr.dtsi @@ -605,3 +605,15 @@ periph-d44-supply = <&L5N>; periph-d46-supply = <&L7N>; }; + +&qupv3_se2_i2c { + k09973: k09973@10 { + compatible = "qcom,ipd"; + reg = <0x10>; + + #io-channel-cells = <1>; + io-channel-ranges; + io-channels = <&pmk8550_vadc PMXR2230_ADC5_GEN3_AMUX_THM5_100K_PU>; + io-channel-names = "ipd"; + }; +};