b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From c182949e33dc3ac4d718386f97c75583bae0e46b Mon Sep 17 00:00:00 2001 |
| 2 | From: Phil Elwell <phil@raspberrypi.com> |
| 3 | Date: Fri, 28 Feb 2020 11:22:40 +0000 |
| 4 | Subject: [PATCH] ARM: dts: overlays: Create custom clocks in / |
| 5 | |
| 6 | Change [1] removes the simple-bus compatible string from the "/clocks" |
| 7 | node, preventing any custom clocks placed there from being initialised. |
| 8 | Rather than reinstate the compatible string and trigger DT warnings at |
| 9 | kernel build time, change the overlays to instantiate those clocks under |
| 10 | the root node ("/"). |
| 11 | |
| 12 | See: https://github.com/raspberrypi/linux/issues/3481 |
| 13 | |
| 14 | Signed-off-by: Phil Elwell <phil@raspberrypi.com> |
| 15 | |
| 16 | [1] 4b2d24662126 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks") |
| 17 | --- |
| 18 | .../boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts | 2 +- |
| 19 | arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts | 2 +- |
| 20 | arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts | 2 +- |
| 21 | arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts | 2 +- |
| 22 | arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts | 2 +- |
| 23 | 5 files changed, 5 insertions(+), 5 deletions(-) |
| 24 | |
| 25 | --- a/arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts |
| 26 | +++ b/arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts |
| 27 | @@ -9,7 +9,7 @@ |
| 28 | compatible = "brcm,bcm2835"; |
| 29 | |
| 30 | fragment@0 { |
| 31 | - target-path = "/clocks"; |
| 32 | + target-path = "/"; |
| 33 | __overlay__ { |
| 34 | boss_osc: boss_osc { |
| 35 | compatible = "allo,dac-clk"; |
| 36 | --- a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts |
| 37 | +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts |
| 38 | @@ -6,7 +6,7 @@ |
| 39 | compatible = "brcm,bcm2835"; |
| 40 | |
| 41 | fragment@0 { |
| 42 | - target-path = "/clocks"; |
| 43 | + target-path = "/"; |
| 44 | __overlay__ { |
| 45 | dacpro_osc: dacpro_osc { |
| 46 | compatible = "hifiberry,dacpro-clk"; |
| 47 | --- a/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts |
| 48 | +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts |
| 49 | @@ -6,7 +6,7 @@ |
| 50 | compatible = "brcm,bcm2835"; |
| 51 | |
| 52 | fragment@0 { |
| 53 | - target-path = "/clocks"; |
| 54 | + target-path = "/"; |
| 55 | __overlay__ { |
| 56 | dacpro_osc: dacpro_osc { |
| 57 | compatible = "hifiberry,dacpro-clk"; |
| 58 | --- a/arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts |
| 59 | +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts |
| 60 | @@ -6,7 +6,7 @@ |
| 61 | compatible = "brcm,bcm2835"; |
| 62 | |
| 63 | fragment@0 { |
| 64 | - target-path = "/clocks"; |
| 65 | + target-path = "/"; |
| 66 | __overlay__ { |
| 67 | dacpro_osc: dacpro_osc { |
| 68 | compatible = "hifiberry,dacpro-clk"; |
| 69 | --- a/arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts |
| 70 | +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts |
| 71 | @@ -8,7 +8,7 @@ |
| 72 | compatible = "brcm,bcm2835"; |
| 73 | |
| 74 | fragment@0 { |
| 75 | - target-path = "/clocks"; |
| 76 | + target-path = "/"; |
| 77 | __overlay__ { |
| 78 | dachd_osc: pll_dachd_osc { |
| 79 | compatible = "hifiberry,dachd-clk"; |