Skip to content

Commit 4535af3

Browse files
Rudraksha Guptaandersson
authored andcommitted
ARM: dts: qcom: msm8960: Add GSBI2 & GSBI7
Add the GSBI2 & GSBI7 Node, which is similar to the other GSBI nodes in this file. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com> Link: https://lore.kernel.org/r/20251124-expressatt_nfc_accel_magn_light-v4-1-9c5686ad67e2@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent df7c440 commit 4535af3

1 file changed

Lines changed: 96 additions & 0 deletions

File tree

arch/arm/boot/dts/qcom/qcom-msm8960.dtsi

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,24 @@
149149
};
150150
};
151151

152+
i2c2_default_state: i2c2-default-state {
153+
i2c2-pins {
154+
pins = "gpio12", "gpio13";
155+
function = "gsbi2";
156+
drive-strength = <8>;
157+
bias-disable;
158+
};
159+
};
160+
161+
i2c2_sleep_state: i2c2-sleep-state {
162+
i2c2-pins {
163+
pins = "gpio12", "gpio13";
164+
function = "gpio";
165+
drive-strength = <2>;
166+
bias-bus-hold;
167+
};
168+
};
169+
152170
i2c3_default_state: i2c3-default-state {
153171
i2c3-pins {
154172
pins = "gpio16", "gpio17";
@@ -167,6 +185,24 @@
167185
};
168186
};
169187

188+
i2c7_default_state: i2c7-default-state {
189+
i2c7-pins {
190+
pins = "gpio32", "gpio33";
191+
function = "gsbi7";
192+
drive-strength = <8>;
193+
bias-disable;
194+
};
195+
};
196+
197+
i2c7_sleep_state: i2c7-sleep-state {
198+
i2c7-pins {
199+
pins = "gpio32", "gpio33";
200+
function = "gpio";
201+
drive-strength = <2>;
202+
bias-bus-hold;
203+
};
204+
};
205+
170206
i2c8_default_state: i2c8-default-state {
171207
i2c8-pins {
172208
pins = "gpio36", "gpio37";
@@ -543,6 +579,36 @@
543579
};
544580
};
545581

582+
gsbi2: gsbi@16100000 {
583+
compatible = "qcom,gsbi-v1.0.0";
584+
reg = <0x16100000 0x100>;
585+
ranges;
586+
cell-index = <2>;
587+
clocks = <&gcc GSBI2_H_CLK>;
588+
clock-names = "iface";
589+
#address-cells = <1>;
590+
#size-cells = <1>;
591+
592+
status = "disabled";
593+
594+
gsbi2_i2c: i2c@16180000 {
595+
compatible = "qcom,i2c-qup-v1.1.1";
596+
reg = <0x16180000 0x1000>;
597+
pinctrl-0 = <&i2c2_default_state>;
598+
pinctrl-1 = <&i2c2_sleep_state>;
599+
pinctrl-names = "default", "sleep";
600+
interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
601+
clocks = <&gcc GSBI2_QUP_CLK>,
602+
<&gcc GSBI2_H_CLK>;
603+
clock-names = "core",
604+
"iface";
605+
#address-cells = <1>;
606+
#size-cells = <0>;
607+
608+
status = "disabled";
609+
};
610+
};
611+
546612
gsbi3: gsbi@16200000 {
547613
compatible = "qcom,gsbi-v1.0.0";
548614
reg = <0x16200000 0x100>;
@@ -600,6 +666,36 @@
600666
};
601667
};
602668

669+
gsbi7: gsbi@16600000 {
670+
compatible = "qcom,gsbi-v1.0.0";
671+
reg = <0x16600000 0x100>;
672+
ranges;
673+
cell-index = <7>;
674+
clocks = <&gcc GSBI7_H_CLK>;
675+
clock-names = "iface";
676+
#address-cells = <1>;
677+
#size-cells = <1>;
678+
679+
status = "disabled";
680+
681+
gsbi7_i2c: i2c@16680000 {
682+
compatible = "qcom,i2c-qup-v1.1.1";
683+
reg = <0x16680000 0x1000>;
684+
pinctrl-0 = <&i2c7_default_state>;
685+
pinctrl-1 = <&i2c7_sleep_state>;
686+
pinctrl-names = "default", "sleep";
687+
interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
688+
clocks = <&gcc GSBI7_QUP_CLK>,
689+
<&gcc GSBI7_H_CLK>;
690+
clock-names = "core",
691+
"iface";
692+
#address-cells = <1>;
693+
#size-cells = <0>;
694+
695+
status = "disabled";
696+
};
697+
};
698+
603699
gsbi8: gsbi@1a000000 {
604700
compatible = "qcom,gsbi-v1.0.0";
605701
reg = <0x1a000000 0x100>;

0 commit comments

Comments
 (0)