2016-04-24 11:03:39 +00:00
|
|
|
From cbce83f2cade68b80c6004e97135d37728d9c30f Mon Sep 17 00:00:00 2001
|
2016-04-07 19:25:10 +00:00
|
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
|
|
Date: Thu, 17 Mar 2016 10:41:56 +0000
|
2016-04-24 11:03:39 +00:00
|
|
|
Subject: [PATCH 204/304] pwm overlays: Params must have in-overlay targets
|
2016-04-07 19:25:10 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts | 9 ++++++++-
|
|
|
|
arch/arm/boot/dts/overlays/pwm-overlay.dts | 9 ++++++++-
|
|
|
|
2 files changed, 16 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
|
|
|
|
+++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
|
|
|
|
@@ -36,11 +36,18 @@ N.B.:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
+ fragment@2 {
|
|
|
|
+ target = <&clk_pwm>;
|
|
|
|
+ frag2: __overlay__ {
|
|
|
|
+ clock-frequency = <100000000>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
__overrides__ {
|
|
|
|
pin = <&pwm_pins>,"brcm,pins:0";
|
|
|
|
pin2 = <&pwm_pins>,"brcm,pins:4";
|
|
|
|
func = <&pwm_pins>,"brcm,function:0";
|
|
|
|
func2 = <&pwm_pins>,"brcm,function:4";
|
|
|
|
- clock = <&clk_pwm>,"clock-frequency:0";
|
|
|
|
+ clock = <&frag2>,"clock-frequency:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
--- a/arch/arm/boot/dts/overlays/pwm-overlay.dts
|
|
|
|
+++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
|
|
|
|
@@ -34,9 +34,16 @@ N.B.:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
+ fragment@2 {
|
|
|
|
+ target = <&clk_pwm>;
|
|
|
|
+ frag2: __overlay__ {
|
|
|
|
+ clock-frequency = <100000000>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
__overrides__ {
|
|
|
|
pin = <&pwm_pins>,"brcm,pins:0";
|
|
|
|
func = <&pwm_pins>,"brcm,function:0";
|
|
|
|
- clock = <&clk_pwm>,"clock-frequency:0";
|
|
|
|
+ clock = <&frag2>,"clock-frequency:0";
|
|
|
|
};
|
|
|
|
};
|