0057-riscv-dts-allwinner-d1-Add-LED-controller-node.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From 595f76548e1d51a76b1ab201293ef441233921cf Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Thu, 11 Aug 2022 23:02:43 -0500
  4. Subject: [PATCH 057/117] riscv: dts: allwinner: d1: Add LED controller node
  5. Allwinner D1 contains an LED controller. Add its devicetree node, as
  6. well as the pinmux used by the reference board design.
  7. Commit-changes: 5
  8. - New patch for v5
  9. Signed-off-by: Samuel Holland <[email protected]>
  10. ---
  11. arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 21 ++++++++++++++++++++
  12. 1 file changed, 21 insertions(+)
  13. --- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
  14. +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
  15. @@ -116,6 +116,12 @@
  16. };
  17. /omit-if-no-ref/
  18. + ledc_pc0_pin: ledc-pc0-pin {
  19. + pins = "PC0";
  20. + function = "ledc";
  21. + };
  22. +
  23. + /omit-if-no-ref/
  24. mmc0_pins: mmc0-pins {
  25. pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
  26. function = "mmc0";
  27. @@ -178,6 +184,21 @@
  28. #reset-cells = <1>;
  29. };
  30. + ledc: led-controller@2008000 {
  31. + compatible = "allwinner,sun20i-d1-ledc",
  32. + "allwinner,sun50i-a100-ledc";
  33. + reg = <0x2008000 0x400>;
  34. + interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
  35. + clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
  36. + clock-names = "bus", "mod";
  37. + resets = <&ccu RST_BUS_LEDC>;
  38. + dmas = <&dma 42>;
  39. + dma-names = "tx";
  40. + status = "disabled";
  41. + #address-cells = <1>;
  42. + #size-cells = <0>;
  43. + };
  44. +
  45. lradc: keys@2009800 {
  46. compatible = "allwinner,sun20i-d1-lradc",
  47. "allwinner,sun50i-r329-lradc";