openwrtv3/target/linux/brcm2708/patches-4.4/0204-pwm-overlays-Params-must-have-in-overlay-targets.patch
Álvaro Fernández Rojas 2b1c6b21b5 brcm2708: update linux 4.4 patches to latest version
As usual these patches were extracted and rebased from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y

Also adds support for Raspberry Pi Compute Module 3 (untested).

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-09-10 14:54:26 +02:00

52 lines
1.3 KiB
Diff

From 45513400f0b487f9bbca90e823fa591ef741dad8 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 17 Mar 2016 10:41:56 +0000
Subject: [PATCH] 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";
};
};