013-v6.5-arm64-dts-mt7986-add-PWM-to-BPI-R3.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 35e482bb599df010b4869017ff576dbb7a4d4c2e Mon Sep 17 00:00:00 2001
  2. From: Frank Wunderlich <[email protected]>
  3. Date: Fri, 21 Apr 2023 15:20:45 +0200
  4. Subject: [PATCH 13/19] arm64: dts: mt7986: add PWM to BPI-R3
  5. Add pwm node and pinctrl to BananaPi R3 devicetree.
  6. Signed-off-by: Frank Wunderlich <[email protected]>
  7. Link: https://lore.kernel.org/r/[email protected]
  8. Signed-off-by: Matthias Brugger <[email protected]>
  9. ---
  10. .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 13 +++++++++++++
  11. 1 file changed, 13 insertions(+)
  12. --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
  13. +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
  14. @@ -275,6 +275,13 @@
  15. };
  16. };
  17. + pwm_pins: pwm-pins {
  18. + mux {
  19. + function = "pwm";
  20. + groups = "pwm0", "pwm1_0";
  21. + };
  22. + };
  23. +
  24. spi_flash_pins: spi-flash-pins {
  25. mux {
  26. function = "spi";
  27. @@ -345,6 +352,12 @@
  28. };
  29. };
  30. +&pwm {
  31. + pinctrl-names = "default";
  32. + pinctrl-0 = <&pwm_pins>;
  33. + status = "okay";
  34. +};
  35. +
  36. &spi0 {
  37. pinctrl-names = "default";
  38. pinctrl-0 = <&spi_flash_pins>;