aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.4/0205-pwm-overlays-Params-must-have-in-overlay-targets.patch
blob: 188239d39a22e60ae4be697cee29958fe729ab95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 05a2610389127e4cfcc2b9afdec83e1176b205bc Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 17 Mar 2016 10:41:56 +0000
Subject: [PATCH 205/232] pwm overlays: Params must have in-overlay targets

---
 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";
 	};
 };