Skip to content

Commit 4d45103

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

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

dts/arm/ene/kb1200-pinctrl.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,40 @@
2929
/omit-if-no-ref/ uart2_rx_gpio55: uart2_rx_gpio55 {
3030
pinmux = <ENE_KB1200_PINMUX(0x55, PINMUX_FUNC_A)>;
3131
};
32+
/omit-if-no-ref/ adc0_gpio0a: adc0_gpio0a {
33+
pinmux = <ENE_KB1200_PINMUX(0x0A, PINMUX_FUNC_A)>;
34+
};
35+
/omit-if-no-ref/ adc1_gpio0b: adc1_gpio0b {
36+
pinmux = <ENE_KB1200_PINMUX(0x0B, PINMUX_FUNC_A)>;
37+
};
38+
/omit-if-no-ref/ adc2_gpio0c: adc2_gpio0c {
39+
pinmux = <ENE_KB1200_PINMUX(0x0C, PINMUX_FUNC_A)>;
40+
};
41+
/omit-if-no-ref/ adc3_gpio0d: adc3_gpio0d {
42+
pinmux = <ENE_KB1200_PINMUX(0x0D, PINMUX_FUNC_A)>;
43+
};
44+
/omit-if-no-ref/ adc4_gpio0e: adc4_gpio0e {
45+
pinmux = <ENE_KB1200_PINMUX(0x0E, PINMUX_FUNC_A)>;
46+
};
47+
/omit-if-no-ref/ adc5_gpio0f: adc5_gpio0f {
48+
pinmux = <ENE_KB1200_PINMUX(0x0F, PINMUX_FUNC_A)>;
49+
};
50+
/omit-if-no-ref/ adc6_gpio10: adc6_gpio10 {
51+
pinmux = <ENE_KB1200_PINMUX(0x10, PINMUX_FUNC_A)>;
52+
};
53+
/omit-if-no-ref/ adc7_gpio11: adc7_gpio11 {
54+
pinmux = <ENE_KB1200_PINMUX(0x11, PINMUX_FUNC_A)>;
55+
};
56+
/omit-if-no-ref/ adc8_gpio12: adc8_gpio12 {
57+
pinmux = <ENE_KB1200_PINMUX(0x12, PINMUX_FUNC_A)>;
58+
};
59+
/omit-if-no-ref/ adc9_gpio13: adc9_gpio13 {
60+
pinmux = <ENE_KB1200_PINMUX(0x13, PINMUX_FUNC_A)>;
61+
};
62+
/omit-if-no-ref/ adc10_gpio14: adc10_gpio14 {
63+
pinmux = <ENE_KB1200_PINMUX(0x14, PINMUX_FUNC_A)>;
64+
};
65+
/omit-if-no-ref/ adc11_gpio15: adc11_gpio15 {
66+
pinmux = <ENE_KB1200_PINMUX(0x15, PINMUX_FUNC_A)>;
67+
};
3268
};

dts/arm/ene/kb1200.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@
123123
current-speed = <115200>;
124124
status = "disabled";
125125
};
126+
127+
adc0: adc0@40130000 {
128+
compatible = "ene,kb1200-adc";
129+
reg = <0x40130000 0x100>;
130+
status = "disabled";
131+
#io-channel-cells = <1>;
132+
};
126133
};
127134
};
128135

0 commit comments

Comments
 (0)