Skip to content

Commit

Permalink
overlays: adjust overlays for absent pwm_clk
Browse files Browse the repository at this point in the history
Clocks are now managed by cprman, so pwm_clk no longer exists.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
Phil Elwell authored and DigitalDreamtime committed Oct 5, 2016
1 parent 893cdb3 commit 6a76bb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
12 changes: 3 additions & 9 deletions arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,19 @@ N.B.:

fragment@1 {
target = <&pwm>;
__overlay__ {
frag1: __overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&pwm_pins>;
assigned-clock-rates = <100000000>;
status = "okay";
};
};

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 = <&frag2>,"clock-frequency:0";
clock = <&frag1>,"assigned-clock-rates:0";
};
};
12 changes: 3 additions & 9 deletions arch/arm/boot/dts/overlays/pwm-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,17 @@ N.B.:

fragment@1 {
target = <&pwm>;
__overlay__ {
frag1: __overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&pwm_pins>;
assigned-clock-rates = <100000000>;
status = "okay";
};
};

fragment@2 {
target = <&clk_pwm>;
frag2: __overlay__ {
clock-frequency = <100000000>;
};
};

__overrides__ {
pin = <&pwm_pins>,"brcm,pins:0";
func = <&pwm_pins>,"brcm,function:0";
clock = <&frag2>,"clock-frequency:0";
clock = <&frag1>,"assigned-clock-rates:0";
};
};

0 comments on commit 6a76bb3

Please sign in to comment.