0204-pwm-overlays-Params-must-have-in-overlay-targets.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From b04fec7048465650101f83c29080de209a1c6446 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Thu, 17 Mar 2016 10:41:56 +0000
  4. Subject: [PATCH 204/381] pwm overlays: Params must have in-overlay targets
  5. ---
  6. arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts | 9 ++++++++-
  7. arch/arm/boot/dts/overlays/pwm-overlay.dts | 9 ++++++++-
  8. 2 files changed, 16 insertions(+), 2 deletions(-)
  9. --- a/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
  10. +++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
  11. @@ -36,11 +36,18 @@ N.B.:
  12. };
  13. };
  14. + fragment@2 {
  15. + target = <&clk_pwm>;
  16. + frag2: __overlay__ {
  17. + clock-frequency = <100000000>;
  18. + };
  19. + };
  20. +
  21. __overrides__ {
  22. pin = <&pwm_pins>,"brcm,pins:0";
  23. pin2 = <&pwm_pins>,"brcm,pins:4";
  24. func = <&pwm_pins>,"brcm,function:0";
  25. func2 = <&pwm_pins>,"brcm,function:4";
  26. - clock = <&clk_pwm>,"clock-frequency:0";
  27. + clock = <&frag2>,"clock-frequency:0";
  28. };
  29. };
  30. --- a/arch/arm/boot/dts/overlays/pwm-overlay.dts
  31. +++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
  32. @@ -34,9 +34,16 @@ N.B.:
  33. };
  34. };
  35. + fragment@2 {
  36. + target = <&clk_pwm>;
  37. + frag2: __overlay__ {
  38. + clock-frequency = <100000000>;
  39. + };
  40. + };
  41. +
  42. __overrides__ {
  43. pin = <&pwm_pins>,"brcm,pins:0";
  44. func = <&pwm_pins>,"brcm,function:0";
  45. - clock = <&clk_pwm>,"clock-frequency:0";
  46. + clock = <&frag2>,"clock-frequency:0";
  47. };
  48. };