Skip to content

Commit

Permalink
ARM: dts: overlays: Create custom clocks in /
Browse files Browse the repository at this point in the history
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
  • Loading branch information
pelwell committed Feb 28, 2020
1 parent f1893eb commit 5f70b23
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
compatible = "brcm,bcm2835";

fragment@0 {
target-path = "/clocks";
target-path = "/";
__overlay__ {
boss_osc: boss_osc {
compatible = "allo,dac-clk";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
compatible = "brcm,bcm2835";

fragment@0 {
target-path = "/clocks";
target-path = "/";
__overlay__ {
dacpro_osc: dacpro_osc {
compatible = "hifiberry,dacpro-clk";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
compatible = "brcm,bcm2835";

fragment@0 {
target-path = "/clocks";
target-path = "/";
__overlay__ {
dacpro_osc: dacpro_osc {
compatible = "hifiberry,dacpro-clk";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
compatible = "brcm,bcm2835";

fragment@0 {
target-path = "/clocks";
target-path = "/";
__overlay__ {
dacpro_osc: dacpro_osc {
compatible = "hifiberry,dacpro-clk";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
compatible = "brcm,bcm2835";

fragment@0 {
target-path = "/clocks";
target-path = "/";
__overlay__ {
dachd_osc: pll_dachd_osc {
compatible = "hifiberry,dachd-clk";
Expand Down

0 comments on commit 5f70b23

Please sign in to comment.