Skip to content

Commit e227c1e

Browse files
Junyi Zhaosuperna9999
authored andcommitted
arm64: dts: amlogic: Add Amlogic S4 PWM
Add device nodes for PWM_AB, PWM_CD, PWM_EF, PWM_GH and PWM_IJ along with GPIO PIN configs of each channel. Signed-off-by: Junyi Zhao <[email protected]> Reviewed-by: George Stark <[email protected]> Signed-off-by: Kelvin Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
1 parent f1ab099 commit e227c1e

File tree

1 file changed

+199
-0
lines changed

1 file changed

+199
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-s4.dtsi

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,160 @@
312312
};
313313
};
314314

315+
pwm_a_pins1: pwm-a-pins1 {
316+
mux {
317+
groups = "pwm_a_d";
318+
function = "pwm_a";
319+
};
320+
};
321+
322+
pwm_a_pins2: pwm-a-pins2 {
323+
mux {
324+
groups = "pwm_a_x";
325+
function = "pwm_a";
326+
};
327+
};
328+
329+
pwm_b_pins1: pwm-b-pins1 {
330+
mux {
331+
groups = "pwm_b_d";
332+
function = "pwm_b";
333+
};
334+
};
335+
336+
pwm_b_pins2: pwm-b-pins2 {
337+
mux {
338+
groups = "pwm_b_x";
339+
function = "pwm_b";
340+
};
341+
};
342+
343+
pwm_c_pins1: pwm-c-pins1 {
344+
mux {
345+
groups = "pwm_c_d";
346+
function = "pwm_c";
347+
};
348+
};
349+
350+
pwm_c_pins2: pwm-c-pins2 {
351+
mux {
352+
groups = "pwm_c_x";
353+
function = "pwm_c";
354+
};
355+
};
356+
357+
pwm_d_pins1: pwm-d-pins1 {
358+
mux {
359+
groups = "pwm_d_d";
360+
function = "pwm_d";
361+
};
362+
};
363+
364+
pwm_d_pins2: pwm-d-pins2 {
365+
mux {
366+
groups = "pwm_d_h";
367+
function = "pwm_d";
368+
};
369+
};
370+
371+
pwm_e_pins1: pwm-e-pins1 {
372+
mux {
373+
groups = "pwm_e_x";
374+
function = "pwm_e";
375+
};
376+
};
377+
378+
pwm_e_pins2: pwm-e-pins2 {
379+
mux {
380+
groups = "pwm_e_z";
381+
function = "pwm_e";
382+
};
383+
};
384+
385+
pwm_f_pins1: pwm-f-pins1 {
386+
mux {
387+
groups = "pwm_f_x";
388+
function = "pwm_f";
389+
};
390+
};
391+
392+
pwm_f_pins2: pwm-f-pins2 {
393+
mux {
394+
groups = "pwm_f_z";
395+
function = "pwm_f";
396+
};
397+
};
398+
399+
pwm_g_pins1: pwm-g-pins1 {
400+
mux {
401+
groups = "pwm_g_d";
402+
function = "pwm_g";
403+
};
404+
};
405+
406+
pwm_g_pins2: pwm-g-pins2 {
407+
mux {
408+
groups = "pwm_g_z";
409+
function = "pwm_g";
410+
};
411+
};
412+
413+
pwm_h_pins: pwm-h-pins {
414+
mux {
415+
groups = "pwm_h";
416+
function = "pwm_h";
417+
};
418+
};
419+
420+
pwm_i_pins1: pwm-i-pins1 {
421+
mux {
422+
groups = "pwm_i_d";
423+
function = "pwm_i";
424+
};
425+
};
426+
427+
pwm_i_pins2: pwm-i-pins2 {
428+
mux {
429+
groups = "pwm_i_h";
430+
function = "pwm_i";
431+
};
432+
};
433+
434+
pwm_j_pins: pwm-j-pins {
435+
mux {
436+
groups = "pwm_j";
437+
function = "pwm_j";
438+
};
439+
};
440+
441+
pwm_a_hiz_pins: pwm-a-hiz-pins {
442+
mux {
443+
groups = "pwm_a_hiz";
444+
function = "pwm_a_hiz";
445+
};
446+
};
447+
448+
pwm_b_hiz_pins: pwm-b-hiz-pins {
449+
mux {
450+
groups = "pwm_b_hiz";
451+
function = "pwm_b_hiz";
452+
};
453+
};
454+
455+
pwm_c_hiz_pins: pwm-c-hiz-pins {
456+
mux {
457+
groups = "pwm_c_hiz";
458+
function = "pwm_c_hiz";
459+
};
460+
};
461+
462+
pwm_g_hiz_pins: pwm-g-hiz-pins {
463+
mux {
464+
groups = "pwm_g_hiz";
465+
function = "pwm_g_hiz";
466+
};
467+
};
468+
315469
spicc0_pins_x: spicc0-pins_x {
316470
mux {
317471
groups = "spi_a_mosi_x",
@@ -399,6 +553,51 @@
399553
status = "disabled";
400554
};
401555

556+
pwm_ab: pwm@58000 {
557+
compatible = "amlogic,meson-s4-pwm";
558+
reg = <0x0 0x58000 0x0 0x24>;
559+
clocks = <&clkc_periphs CLKID_PWM_A>,
560+
<&clkc_periphs CLKID_PWM_B>;
561+
#pwm-cells = <3>;
562+
status = "disabled";
563+
};
564+
565+
pwm_cd: pwm@5a000 {
566+
compatible = "amlogic,meson-s4-pwm";
567+
reg = <0x0 0x5a000 0x0 0x24>;
568+
clocks = <&clkc_periphs CLKID_PWM_C>,
569+
<&clkc_periphs CLKID_PWM_D>;
570+
#pwm-cells = <3>;
571+
status = "disabled";
572+
};
573+
574+
pwm_ef: pwm@5c000 {
575+
compatible = "amlogic,meson-s4-pwm";
576+
reg = <0x0 0x5c000 0x0 0x24>;
577+
clocks = <&clkc_periphs CLKID_PWM_E>,
578+
<&clkc_periphs CLKID_PWM_F>;
579+
#pwm-cells = <3>;
580+
status = "disabled";
581+
};
582+
583+
pwm_gh: pwm@5e000 {
584+
compatible = "amlogic,meson-s4-pwm";
585+
reg = <0x0 0x5e000 0x0 0x24>;
586+
clocks = <&clkc_periphs CLKID_PWM_G>,
587+
<&clkc_periphs CLKID_PWM_H>;
588+
#pwm-cells = <3>;
589+
status = "disabled";
590+
};
591+
592+
pwm_ij: pwm@60000 {
593+
compatible = "amlogic,meson-s4-pwm";
594+
reg = <0x0 0x60000 0x0 0x24>;
595+
clocks = <&clkc_periphs CLKID_PWM_I>,
596+
<&clkc_periphs CLKID_PWM_J>;
597+
#pwm-cells = <3>;
598+
status = "disabled";
599+
};
600+
402601
i2c0: i2c@66000 {
403602
compatible = "amlogic,meson-axg-i2c";
404603
reg = <0x0 0x66000 0x0 0x20>;

0 commit comments

Comments
 (0)