Skip to content

Commit b27fac0

Browse files
ene-stevenfabiobaltieri
authored andcommitted
dts: i2c: kb1200 i2c device nodes
Add i2c device nodes and pinctrl nodes for ENE KB1200 Signed-off-by: Steven Chang <[email protected]>
1 parent 9cf861d commit b27fac0

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed

dts/arm/ene/kb1200-pinctrl.dtsi

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,84 @@
113113
/omit-if-no-ref/ tach3_gpio43: tach3_gpio43 {
114114
pinmux = <ENE_KB1200_PINMUX(0x43, PINMUX_FUNC_A)>;
115115
};
116+
/omit-if-no-ref/ i2c0_clk_gpio2c: i2c0_clk_gpio2c {
117+
pinmux = <ENE_KB1200_PINMUX(0x2C, PINMUX_FUNC_B)>;
118+
bias-pull-up;
119+
};
120+
/omit-if-no-ref/ i2c0_dat_gpio2d: i2c0_dat_gpio2d {
121+
pinmux = <ENE_KB1200_PINMUX(0x2D, PINMUX_FUNC_B)>;
122+
bias-pull-up;
123+
};
124+
/omit-if-no-ref/ i2c1_clk_gpio2e: i2c1_clk_gpio2e {
125+
pinmux = <ENE_KB1200_PINMUX(0x2E, PINMUX_FUNC_B)>;
126+
bias-pull-up;
127+
};
128+
/omit-if-no-ref/ i2c1_dat_gpio2f: i2c1_dat_gpio2f {
129+
pinmux = <ENE_KB1200_PINMUX(0x2F, PINMUX_FUNC_B)>;
130+
bias-pull-up;
131+
};
132+
/omit-if-no-ref/ i2c2_clk_gpio32: i2c2_clk_gpio32 {
133+
pinmux = <ENE_KB1200_PINMUX(0x32, PINMUX_FUNC_B)>;
134+
bias-pull-up;
135+
};
136+
/omit-if-no-ref/ i2c2_dat_gpio33: i2c2_dat_gpio33 {
137+
pinmux = <ENE_KB1200_PINMUX(0x33, PINMUX_FUNC_B)>;
138+
bias-pull-up;
139+
};
140+
/omit-if-no-ref/ i2c3_clk_gpio34: i2c3_clk_gpio34 {
141+
pinmux = <ENE_KB1200_PINMUX(0x34, PINMUX_FUNC_B)>;
142+
bias-pull-up;
143+
};
144+
/omit-if-no-ref/ i2c3_dat_gpio35: i2c3_dat_gpio35 {
145+
pinmux = <ENE_KB1200_PINMUX(0x35, PINMUX_FUNC_B)>;
146+
bias-pull-up;
147+
};
148+
/omit-if-no-ref/ i2c4_clk_gpio38: i2c4_clk_gpio38 {
149+
pinmux = <ENE_KB1200_PINMUX(0x38, PINMUX_FUNC_B)>;
150+
bias-pull-up;
151+
};
152+
/omit-if-no-ref/ i2c4_dat_gpio39: i2c4_dat_gpio39 {
153+
pinmux = <ENE_KB1200_PINMUX(0x39, PINMUX_FUNC_B)>;
154+
bias-pull-up;
155+
};
156+
/omit-if-no-ref/ i2c5_clk_gpio4a: i2c5_clk_gpio4a {
157+
pinmux = <ENE_KB1200_PINMUX(0x4A, PINMUX_FUNC_B)>;
158+
bias-pull-up;
159+
};
160+
/omit-if-no-ref/ i2c5_dat_gpio4b: i2c5_dat_gpio4b {
161+
pinmux = <ENE_KB1200_PINMUX(0x4B, PINMUX_FUNC_B)>;
162+
bias-pull-up;
163+
};
164+
/omit-if-no-ref/ i2c6_clk_gpio4c: i2c6_clk_gpio4c {
165+
pinmux = <ENE_KB1200_PINMUX(0x4C, PINMUX_FUNC_B)>;
166+
bias-pull-up;
167+
};
168+
/omit-if-no-ref/ i2c6_dat_gpio4d: i2c6_dat_gpio4d {
169+
pinmux = <ENE_KB1200_PINMUX(0x4D, PINMUX_FUNC_B)>;
170+
bias-pull-up;
171+
};
172+
/omit-if-no-ref/ i2c7_clk_gpio50: i2c7_clk_gpio50 {
173+
pinmux = <ENE_KB1200_PINMUX(0x50, PINMUX_FUNC_B)>;
174+
bias-pull-up;
175+
};
176+
/omit-if-no-ref/ i2c7_dat_gpio51: i2c7_dat_gpio51 {
177+
pinmux = <ENE_KB1200_PINMUX(0x51, PINMUX_FUNC_B)>;
178+
bias-pull-up;
179+
};
180+
/omit-if-no-ref/ i2c8_clk_gpio70: i2c8_clk_gpio70 {
181+
pinmux = <ENE_KB1200_PINMUX(0x70, PINMUX_FUNC_B)>;
182+
bias-pull-up;
183+
};
184+
/omit-if-no-ref/ i2c8_dat_gpio71: i2c8_dat_gpio71 {
185+
pinmux = <ENE_KB1200_PINMUX(0x71, PINMUX_FUNC_B)>;
186+
bias-pull-up;
187+
};
188+
/omit-if-no-ref/ i2c9_clk_gpio72: i2c9_clk_gpio72 {
189+
pinmux = <ENE_KB1200_PINMUX(0x72, PINMUX_FUNC_B)>;
190+
bias-pull-up;
191+
};
192+
/omit-if-no-ref/ i2c9_dat_gpio73: i2c9_dat_gpio73 {
193+
pinmux = <ENE_KB1200_PINMUX(0x73, PINMUX_FUNC_B)>;
194+
bias-pull-up;
195+
};
116196
};

dts/arm/ene/kb1200.dtsi

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,96 @@
245245
interrupts = <0 0>;
246246
status = "disabled";
247247
};
248+
249+
i2c0: i2c@40340000 {
250+
compatible = "ene,kb1200-i2c";
251+
reg = <0x40340000 0x1000>;
252+
interrupts = <17 1>;
253+
#address-cells = <1>;
254+
#size-cells = <0>;
255+
status = "disabled";
256+
};
257+
258+
i2c1: i2c@40341000 {
259+
compatible = "ene,kb1200-i2c";
260+
reg = <0x40341000 0x1000>;
261+
interrupts = <17 1>;
262+
#address-cells = <1>;
263+
#size-cells = <0>;
264+
status = "disabled";
265+
};
266+
267+
i2c2: i2c@40342000 {
268+
compatible = "ene,kb1200-i2c";
269+
reg = <0x40342000 0x1000>;
270+
interrupts = <17 1>;
271+
#address-cells = <1>;
272+
#size-cells = <0>;
273+
status = "disabled";
274+
};
275+
276+
i2c3: i2c@40343000 {
277+
compatible = "ene,kb1200-i2c";
278+
reg = <0x40343000 0x1000>;
279+
interrupts = <17 1>;
280+
#address-cells = <1>;
281+
#size-cells = <0>;
282+
status = "disabled";
283+
};
284+
285+
i2c4: i2c@40344000 {
286+
compatible = "ene,kb1200-i2c";
287+
reg = <0x40344000 0x1000>;
288+
interrupts = <17 1>;
289+
#address-cells = <1>;
290+
#size-cells = <0>;
291+
status = "disabled";
292+
};
293+
294+
i2c5: i2c@40345000 {
295+
compatible = "ene,kb1200-i2c";
296+
reg = <0x40345000 0x1000>;
297+
interrupts = <17 1>;
298+
#address-cells = <1>;
299+
#size-cells = <0>;
300+
status = "disabled";
301+
};
302+
303+
i2c6: i2c@40346000 {
304+
compatible = "ene,kb1200-i2c";
305+
reg = <0x40346000 0x1000>;
306+
interrupts = <17 1>;
307+
#address-cells = <1>;
308+
#size-cells = <0>;
309+
status = "disabled";
310+
};
311+
312+
i2c7: i2c@40347000 {
313+
compatible = "ene,kb1200-i2c";
314+
reg = <0x40347000 0x1000>;
315+
interrupts = <17 1>;
316+
#address-cells = <1>;
317+
#size-cells = <0>;
318+
status = "disabled";
319+
};
320+
321+
i2c8: i2c@40348000 {
322+
compatible = "ene,kb1200-i2c";
323+
reg = <0x40348000 0x1000>;
324+
interrupts = <17 1>;
325+
#address-cells = <1>;
326+
#size-cells = <0>;
327+
status = "disabled";
328+
};
329+
330+
i2c9: i2c@40349000 {
331+
compatible = "ene,kb1200-i2c";
332+
reg = <0x40349000 0x1000>;
333+
interrupts = <17 1>;
334+
#address-cells = <1>;
335+
#size-cells = <0>;
336+
status = "disabled";
337+
};
248338
};
249339
};
250340

0 commit comments

Comments
 (0)