Skip to content

Commit b7f2743

Browse files
MrVanShawn Guo
authored andcommitted
arm64: dts: imx952-evk: Enable I2C[2,3,4,6,7] bus
Enable I2C bus[2,3,4,6,7] and the io-expanders connected to each I2C bus. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 570a0eb commit b7f2743

1 file changed

Lines changed: 166 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx952-evk.dts

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
gpio2 = &gpio3;
1818
gpio3 = &gpio4;
1919
gpio4 = &gpio5;
20+
i2c0 = &lpi2c1;
21+
i2c1 = &lpi2c2;
22+
i2c2 = &lpi2c3;
23+
i2c3 = &lpi2c4;
24+
i2c4 = &lpi2c5;
25+
i2c5 = &lpi2c6;
26+
i2c6 = &lpi2c7;
27+
i2c7 = &lpi2c8;
2028
mmc0 = &usdhc1;
2129
mmc1 = &usdhc2;
2230
serial0 = &lpuart1;
@@ -79,6 +87,111 @@
7987
};
8088
};
8189

90+
&lpi2c2 {
91+
clock-frequency = <400000>;
92+
pinctrl-names = "default";
93+
pinctrl-0 = <&pinctrl_lpi2c2>;
94+
status = "okay";
95+
96+
adp5585: io-expander@34 {
97+
compatible = "adi,adp5585-00", "adi,adp5585";
98+
reg = <0x34>;
99+
gpio-controller;
100+
#gpio-cells = <2>;
101+
gpio-reserved-ranges = <5 1>;
102+
#pwm-cells = <3>;
103+
};
104+
};
105+
106+
&lpi2c3 {
107+
clock-frequency = <400000>;
108+
pinctrl-names = "default";
109+
pinctrl-0 = <&pinctrl_lpi2c3>;
110+
status = "okay";
111+
112+
i2c3_pcal6408: gpio@20 {
113+
compatible = "nxp,pcal6408";
114+
reg = <0x20>;
115+
#gpio-cells = <2>;
116+
gpio-controller;
117+
vcc-supply = <&reg_3p3v>;
118+
};
119+
};
120+
121+
&lpi2c4 {
122+
clock-frequency = <400000>;
123+
pinctrl-names = "default";
124+
pinctrl-0 = <&pinctrl_lpi2c4>;
125+
status = "okay";
126+
127+
i2c4_pcal6408: gpio@21 {
128+
compatible = "nxp,pcal6408";
129+
reg = <0x21>;
130+
#gpio-cells = <2>;
131+
gpio-controller;
132+
interrupt-controller;
133+
#interrupt-cells = <2>;
134+
interrupt-parent = <&gpio2>;
135+
interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
136+
pinctrl-names = "default";
137+
pinctrl-0 = <&pinctrl_i2c4_pcal6408>;
138+
vcc-supply = <&reg_3p3v>;
139+
};
140+
};
141+
142+
&lpi2c6 {
143+
clock-frequency = <100000>;
144+
pinctrl-names = "default";
145+
pinctrl-0 = <&pinctrl_lpi2c6>;
146+
status = "okay";
147+
148+
pcal6416: gpio@21 {
149+
compatible = "nxp,pcal6416";
150+
#gpio-cells = <2>;
151+
gpio-controller;
152+
reg = <0x21>;
153+
interrupt-controller;
154+
#interrupt-cells = <2>;
155+
interrupt-parent = <&gpio2>;
156+
interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
157+
pinctrl-names = "default";
158+
pinctrl-0 = <&pinctrl_pcal6416>;
159+
vcc-supply = <&reg_3p3v>;
160+
161+
pdm-can-sel-hog {
162+
gpio-hog;
163+
gpios = <10 GPIO_ACTIVE_HIGH>;
164+
output-low;
165+
};
166+
167+
mqs-en-hog {
168+
gpio-hog;
169+
gpios = <15 GPIO_ACTIVE_HIGH>;
170+
output-low;
171+
};
172+
};
173+
};
174+
175+
&lpi2c7 {
176+
clock-frequency = <1000000>;
177+
pinctrl-names = "default";
178+
pinctrl-0 = <&pinctrl_lpi2c7>;
179+
status = "okay";
180+
181+
pcal6524: gpio@22 {
182+
compatible = "nxp,pcal6524";
183+
reg = <0x22>;
184+
pinctrl-names = "default";
185+
pinctrl-0 = <&pinctrl_pcal6524>;
186+
gpio-controller;
187+
#gpio-cells = <2>;
188+
interrupt-controller;
189+
#interrupt-cells = <2>;
190+
interrupt-parent = <&gpio5>;
191+
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
192+
};
193+
};
194+
82195
&lpuart1 {
83196
/* console */
84197
pinctrl-names = "default";
@@ -112,6 +225,59 @@
112225
};
113226

114227
&scmi_iomuxc {
228+
pinctrl_lpi2c2: lpi2c2grp {
229+
fsl,pins = <
230+
IMX952_PAD_I2C2_SCL__AONMIX_TOP_LPI2C2_SCL 0x40000b9e
231+
IMX952_PAD_I2C2_SDA__AONMIX_TOP_LPI2C2_SDA 0x40000b9e
232+
>;
233+
};
234+
235+
pinctrl_lpi2c3: lpi2c3grp {
236+
fsl,pins = <
237+
IMX952_PAD_GPIO_IO00__WAKEUPMIX_TOP_LPI2C3_SDA 0x40000b9e
238+
IMX952_PAD_GPIO_IO01__WAKEUPMIX_TOP_LPI2C3_SCL 0x40000b9e
239+
>;
240+
};
241+
242+
pinctrl_lpi2c4: lpi2c4grp {
243+
fsl,pins = <
244+
IMX952_PAD_GPIO_IO30__WAKEUPMIX_TOP_LPI2C4_SDA 0x40000b9e
245+
IMX952_PAD_GPIO_IO31__WAKEUPMIX_TOP_LPI2C4_SCL 0x40000b9e
246+
>;
247+
};
248+
249+
pinctrl_i2c4_pcal6408: i2c4pcal6408grp {
250+
fsl,pins = <
251+
IMX952_PAD_GPIO_IO18__WAKEUPMIX_TOP_GPIO2_IO_18 0x31e
252+
>;
253+
};
254+
255+
pinctrl_lpi2c6: lpi2c6grp {
256+
fsl,pins = <
257+
IMX952_PAD_GPIO_IO02__WAKEUPMIX_TOP_LPI2C6_SDA 0x40000b9e
258+
IMX952_PAD_GPIO_IO03__WAKEUPMIX_TOP_LPI2C6_SCL 0x40000b9e
259+
>;
260+
};
261+
262+
pinctrl_lpi2c7: lpi2c7grp {
263+
fsl,pins = <
264+
IMX952_PAD_GPIO_IO08__WAKEUPMIX_TOP_LPI2C7_SDA 0x40000b9e
265+
IMX952_PAD_GPIO_IO09__WAKEUPMIX_TOP_LPI2C7_SCL 0x40000b9e
266+
>;
267+
};
268+
269+
pinctrl_pcal6416: pcal6416grp {
270+
fsl,pins = <
271+
IMX952_PAD_GPIO_IO10__WAKEUPMIX_TOP_GPIO2_IO_10 0x31e
272+
>;
273+
};
274+
275+
pinctrl_pcal6524: pcal6524grp {
276+
fsl,pins = <
277+
IMX952_PAD_GPIO_IO36__WAKEUPMIX_TOP_GPIO5_IO_16 0x31e
278+
>;
279+
};
280+
115281
pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
116282
fsl,pins = <
117283
IMX952_PAD_SD2_RESET_B__WAKEUPMIX_TOP_GPIO3_IO_7 0x31e

0 commit comments

Comments
 (0)