arm64: dts: qcom: sa8775p-ride: enable i2c11
authorShazad Hussain <quic_shazhuss@quicinc.com>
Fri, 26 May 2023 13:31:21 +0000 (19:01 +0530)
committerBjorn Andersson <andersson@kernel.org>
Sat, 27 May 2023 01:12:26 +0000 (18:12 -0700)
This enables the i2c11 node on sa8775p-ride board for A2B controller
and audio port expander.

Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230526133122.16443-6-quic_shazhuss@quicinc.com
arch/arm64/boot/dts/qcom/sa8775p-ride.dts

index 4c000a5..ab767cf 100644 (file)
@@ -19,6 +19,7 @@
                serial0 = &uart10;
                serial1 = &uart12;
                serial2 = &uart17;
+               i2c11 = &i2c11;
                i2c18 = &i2c18;
                spi16 = &spi16;
                ufshc1 = &ufs_mem_hc;
        };
 };
 
+&i2c11 {
+       clock-frequency = <400000>;
+       pinctrl-0 = <&qup_i2c11_default>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &i2c18 {
        clock-frequency = <400000>;
        pinctrl-0 = <&qup_i2c18_default>;
                bias-disable;
        };
 
+       qup_i2c11_default: qup-i2c11-state {
+               pins = "gpio48", "gpio49";
+               function = "qup1_se4";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
+
        qup_i2c18_default: qup-i2c18-state {
                pins = "gpio95", "gpio96";
                function = "qup2_se4";