Skip to content

Commit 14c6468

Browse files
ene-stevenfabiobaltieri
authored andcommitted
dts: pwm: kb1200 pwm device nodes
Add pwm device nodes and pinctrl nodes for ENE KB1200 Signed-off-by: Steven Chang <[email protected]>
1 parent 340d49e commit 14c6468

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed

dts/arm/ene/kb1200-pinctrl.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,40 @@
6565
/omit-if-no-ref/ adc11_gpio15: adc11_gpio15 {
6666
pinmux = <ENE_KB1200_PINMUX(0x15, PINMUX_FUNC_A)>;
6767
};
68+
/omit-if-no-ref/ pwm0_gpio3a: pwm0_gpio3a {
69+
pinmux = <ENE_KB1200_PINMUX(0x3A, PINMUX_FUNC_B)>;
70+
};
71+
/omit-if-no-ref/ pwm1_gpio38: pwm1_gpio38 {
72+
pinmux = <ENE_KB1200_PINMUX(0x38, PINMUX_FUNC_C)>;
73+
};
74+
/omit-if-no-ref/ pwm2_gpio3b: pwm2_gpio3b {
75+
pinmux = <ENE_KB1200_PINMUX(0x3B, PINMUX_FUNC_B)>;
76+
};
77+
/omit-if-no-ref/ pwm3_gpio26: pwm3_gpio26 {
78+
pinmux = <ENE_KB1200_PINMUX(0x26, PINMUX_FUNC_B)>;
79+
};
80+
/omit-if-no-ref/ pwm4_gpio31: pwm4_gpio31 {
81+
pinmux = <ENE_KB1200_PINMUX(0x31, PINMUX_FUNC_B)>;
82+
};
83+
/omit-if-no-ref/ pwm5_gpio30: pwm5_gpio30 {
84+
pinmux = <ENE_KB1200_PINMUX(0x30, PINMUX_FUNC_B)>;
85+
};
86+
/omit-if-no-ref/ pwm6_gpio37: pwm6_gpio37 {
87+
pinmux = <ENE_KB1200_PINMUX(0x37, PINMUX_FUNC_B)>;
88+
};
89+
/omit-if-no-ref/ pwm7_gpio23: pwm7_gpio23 {
90+
pinmux = <ENE_KB1200_PINMUX(0x23, PINMUX_FUNC_B)>;
91+
};
92+
/omit-if-no-ref/ pwm8_gpio00: pwm8_gpio00 {
93+
pinmux = <ENE_KB1200_PINMUX(0x00, PINMUX_FUNC_C)>;
94+
};
95+
/omit-if-no-ref/ pwm9_gpio22: pwm9_gpio22 {
96+
pinmux = <ENE_KB1200_PINMUX(0x22, PINMUX_FUNC_C)>;
97+
};
98+
/omit-if-no-ref/ fanpwm0_gpio49: fanpwm0_gpio49 {
99+
pinmux = <ENE_KB1200_PINMUX(0x49, PINMUX_FUNC_B)>;
100+
};
101+
/omit-if-no-ref/ fanpwm1_gpio74: fanpwm1_gpio74 {
102+
pinmux = <ENE_KB1200_PINMUX(0x74, PINMUX_FUNC_B)>;
103+
};
68104
};

dts/arm/ene/kb1200.dtsi

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,90 @@
130130
status = "disabled";
131131
#io-channel-cells = <1>;
132132
};
133+
134+
pwm0: pwm@40210000 {
135+
compatible = "ene,kb1200-pwm";
136+
reg = <0x40210000 0x10>;
137+
#pwm-cells = <3>;
138+
status = "disabled";
139+
};
140+
141+
pwm1: pwm@40210010 {
142+
compatible = "ene,kb1200-pwm";
143+
reg = <0x40210010 0x10>;
144+
#pwm-cells = <3>;
145+
status = "disabled";
146+
};
147+
148+
pwm2: pwm@40210020 {
149+
compatible = "ene,kb1200-pwm";
150+
reg = <0x40210020 0x10>;
151+
#pwm-cells = <3>;
152+
status = "disabled";
153+
};
154+
155+
pwm3: pwm@40210030 {
156+
compatible = "ene,kb1200-pwm";
157+
reg = <0x40210030 0x10>;
158+
#pwm-cells = <3>;
159+
status = "disabled";
160+
};
161+
162+
pwm4: pwm@40210040 {
163+
compatible = "ene,kb1200-pwm";
164+
reg = <0x40210040 0x10>;
165+
#pwm-cells = <3>;
166+
status = "disabled";
167+
};
168+
169+
pwm5: pwm@40210050 {
170+
compatible = "ene,kb1200-pwm";
171+
reg = <0x40210050 0x10>;
172+
#pwm-cells = <3>;
173+
status = "disabled";
174+
};
175+
176+
pwm6: pwm@40210060 {
177+
compatible = "ene,kb1200-pwm";
178+
reg = <0x40210060 0x10>;
179+
#pwm-cells = <3>;
180+
status = "disabled";
181+
};
182+
183+
pwm7: pwm@40210070 {
184+
compatible = "ene,kb1200-pwm";
185+
reg = <0x40210070 0x10>;
186+
#pwm-cells = <3>;
187+
status = "disabled";
188+
};
189+
190+
pwm8: pwm@40210080 {
191+
compatible = "ene,kb1200-pwm";
192+
reg = <0x40210080 0x10>;
193+
#pwm-cells = <3>;
194+
status = "disabled";
195+
};
196+
197+
pwm9: pwm@40210090 {
198+
compatible = "ene,kb1200-pwm";
199+
reg = <0x40210090 0x10>;
200+
#pwm-cells = <3>;
201+
status = "disabled";
202+
};
203+
204+
fanpwm0: pwm@40200000 {
205+
compatible = "ene,kb1200-pwm";
206+
reg = <0x40200000 0x10>;
207+
#pwm-cells = <3>;
208+
status = "disabled";
209+
};
210+
211+
fanpwm1: pwm@40200010 {
212+
compatible = "ene,kb1200-pwm";
213+
reg = <0x40200010 0x10>;
214+
#pwm-cells = <3>;
215+
status = "disabled";
216+
};
133217
};
134218
};
135219

0 commit comments

Comments
 (0)