Skip to content

Commit 8c3166f

Browse files
KiranPadwalKumar Gala
authored andcommitted
ARM: DT: apq8064: Add i2c device nodes
This patch adds i2c pinctrl DT node for IFC6410 board. It also adds necessary DT support for i2c eeprom which is present on IFC6410. Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com> Signed-off-by: Kumar Gala <galak@codeaurora.org>
1 parent 0be5fef commit 8c3166f

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

arch/arm/boot/dts/qcom-apq8064-ifc6410.dts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@
55
compatible = "qcom,apq8064-ifc6410", "qcom,apq8064";
66

77
soc {
8+
pinctrl@800000 {
9+
i2c1_pins: i2c1 {
10+
mux {
11+
pins = "gpio20", "gpio21";
12+
function = "gsbi1";
13+
};
14+
};
15+
};
16+
17+
gsbi@12440000 {
18+
status = "okay";
19+
qcom,mode = <GSBI_PROT_I2C>;
20+
21+
i2c@12460000 {
22+
status = "okay";
23+
clock-frequency = <200000>;
24+
pinctrl-0 = <&i2c1_pins>;
25+
pinctrl-names = "default";
26+
27+
eeprom: eeprom@52 {
28+
compatible = "atmel,24c128";
29+
reg = <0x52>;
30+
pagesize = <32>;
31+
};
32+
};
33+
};
34+
835
gsbi@16600000 {
936
status = "ok";
1037
qcom,mode = <GSBI_PROT_I2C_UART>;

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,48 @@
163163
regulator;
164164
};
165165

166+
gsbi1: gsbi@12440000 {
167+
status = "disabled";
168+
compatible = "qcom,gsbi-v1.0.0";
169+
reg = <0x12440000 0x100>;
170+
clocks = <&gcc GSBI1_H_CLK>;
171+
clock-names = "iface";
172+
#address-cells = <1>;
173+
#size-cells = <1>;
174+
ranges;
175+
176+
i2c1: i2c@12460000 {
177+
compatible = "qcom,i2c-qup-v1.1.1";
178+
reg = <0x12460000 0x1000>;
179+
interrupts = <0 194 IRQ_TYPE_NONE>;
180+
clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
181+
clock-names = "core", "iface";
182+
#address-cells = <1>;
183+
#size-cells = <0>;
184+
};
185+
};
186+
187+
gsbi2: gsbi@12480000 {
188+
status = "disabled";
189+
compatible = "qcom,gsbi-v1.0.0";
190+
reg = <0x12480000 0x100>;
191+
clocks = <&gcc GSBI2_H_CLK>;
192+
clock-names = "iface";
193+
#address-cells = <1>;
194+
#size-cells = <1>;
195+
ranges;
196+
197+
i2c2: i2c@124a0000 {
198+
compatible = "qcom,i2c-qup-v1.1.1";
199+
reg = <0x124a0000 0x1000>;
200+
interrupts = <0 196 IRQ_TYPE_NONE>;
201+
clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
202+
clock-names = "core", "iface";
203+
#address-cells = <1>;
204+
#size-cells = <0>;
205+
};
206+
};
207+
166208
gsbi7: gsbi@16600000 {
167209
status = "disabled";
168210
compatible = "qcom,gsbi-v1.0.0";

0 commit comments

Comments
 (0)