diff options
-rw-r--r-- | Documentation/devicetree/bindings/clock/vf610-clock.txt | 15 | ||||
-rw-r--r-- | arch/arm/boot/dts/vf610-cosmic.dts | 14 | ||||
-rw-r--r-- | arch/arm/boot/dts/vf610-twr.dts | 25 | ||||
-rw-r--r-- | arch/arm/boot/dts/vf610.dtsi | 25 |
4 files changed, 48 insertions, 31 deletions
diff --git a/Documentation/devicetree/bindings/clock/vf610-clock.txt b/Documentation/devicetree/bindings/clock/vf610-clock.txt index c80863d344ac..63f9f1ac3439 100644 --- a/Documentation/devicetree/bindings/clock/vf610-clock.txt +++ b/Documentation/devicetree/bindings/clock/vf610-clock.txt | |||
@@ -5,6 +5,19 @@ Required properties: | |||
5 | - reg: Address and length of the register set | 5 | - reg: Address and length of the register set |
6 | - #clock-cells: Should be <1> | 6 | - #clock-cells: Should be <1> |
7 | 7 | ||
8 | Optional properties: | ||
9 | - clocks: list of clock identifiers which are external input clocks to the | ||
10 | given clock controller. Please refer the next section to find | ||
11 | the input clocks for a given controller. | ||
12 | - clock-names: list of names of clocks which are exteral input clocks to the | ||
13 | given clock controller. | ||
14 | |||
15 | Input clocks for top clock controller: | ||
16 | - sxosc (external crystal oscillator 32KHz, recommended) | ||
17 | - fxosc (external crystal oscillator 24MHz, recommended) | ||
18 | - audio_ext | ||
19 | - enet_ext | ||
20 | |||
8 | The clock consumer should specify the desired clock by having the clock | 21 | The clock consumer should specify the desired clock by having the clock |
9 | ID in its "clocks" phandle cell. See include/dt-bindings/clock/vf610-clock.h | 22 | ID in its "clocks" phandle cell. See include/dt-bindings/clock/vf610-clock.h |
10 | for the full list of VF610 clock IDs. | 23 | for the full list of VF610 clock IDs. |
@@ -15,6 +28,8 @@ clks: ccm@4006b000 { | |||
15 | compatible = "fsl,vf610-ccm"; | 28 | compatible = "fsl,vf610-ccm"; |
16 | reg = <0x4006b000 0x1000>; | 29 | reg = <0x4006b000 0x1000>; |
17 | #clock-cells = <1>; | 30 | #clock-cells = <1>; |
31 | clocks = <&sxosc>, <&fxosc>; | ||
32 | clock-names = "sxosc", "fxosc"; | ||
18 | }; | 33 | }; |
19 | 34 | ||
20 | uart1: serial@40028000 { | 35 | uart1: serial@40028000 { |
diff --git a/arch/arm/boot/dts/vf610-cosmic.dts b/arch/arm/boot/dts/vf610-cosmic.dts index 3fd1b74e1216..b0ce8b8b2e0e 100644 --- a/arch/arm/boot/dts/vf610-cosmic.dts +++ b/arch/arm/boot/dts/vf610-cosmic.dts | |||
@@ -23,14 +23,16 @@ | |||
23 | reg = <0x80000000 0x10000000>; | 23 | reg = <0x80000000 0x10000000>; |
24 | }; | 24 | }; |
25 | 25 | ||
26 | clocks { | 26 | enet_ext: enet_ext { |
27 | enet_ext { | 27 | compatible = "fixed-clock"; |
28 | compatible = "fixed-clock"; | 28 | #clock-cells = <0>; |
29 | #clock-cells = <0>; | 29 | clock-frequency = <50000000>; |
30 | clock-frequency = <50000000>; | ||
31 | }; | ||
32 | }; | 30 | }; |
31 | }; | ||
33 | 32 | ||
33 | &clks { | ||
34 | clocks = <&sxosc>, <&fxosc>, <&enet_ext>; | ||
35 | clock-names = "sxosc", "fxosc", "enet_ext"; | ||
34 | }; | 36 | }; |
35 | 37 | ||
36 | &fec1 { | 38 | &fec1 { |
diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index 189b6975fe7d..7d06d1a367a5 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm/boot/dts/vf610-twr.dts | |||
@@ -22,18 +22,16 @@ | |||
22 | reg = <0x80000000 0x8000000>; | 22 | reg = <0x80000000 0x8000000>; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | clocks { | 25 | audio_ext: mclk_osc { |
26 | audio_ext { | 26 | compatible = "fixed-clock"; |
27 | compatible = "fixed-clock"; | 27 | #clock-cells = <0>; |
28 | #clock-cells = <0>; | 28 | clock-frequency = <24576000>; |
29 | clock-frequency = <24576000>; | 29 | }; |
30 | }; | ||
31 | 30 | ||
32 | enet_ext { | 31 | enet_ext: eth_osc { |
33 | compatible = "fixed-clock"; | 32 | compatible = "fixed-clock"; |
34 | #clock-cells = <0>; | 33 | #clock-cells = <0>; |
35 | clock-frequency = <50000000>; | 34 | clock-frequency = <50000000>; |
36 | }; | ||
37 | }; | 35 | }; |
38 | 36 | ||
39 | regulators { | 37 | regulators { |
@@ -95,6 +93,11 @@ | |||
95 | status = "okay"; | 93 | status = "okay"; |
96 | }; | 94 | }; |
97 | 95 | ||
96 | &clks { | ||
97 | clocks = <&sxosc>, <&fxosc>, <&enet_ext>, <&audio_ext>; | ||
98 | clock-names = "sxosc", "fxosc", "enet_ext", "audio_ext"; | ||
99 | }; | ||
100 | |||
98 | &dspi0 { | 101 | &dspi0 { |
99 | bus-num = <0>; | 102 | bus-num = <0>; |
100 | pinctrl-names = "default"; | 103 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index 699da487222d..ed12d9a7be3e 100644 --- a/arch/arm/boot/dts/vf610.dtsi +++ b/arch/arm/boot/dts/vf610.dtsi | |||
@@ -44,21 +44,16 @@ | |||
44 | }; | 44 | }; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | clocks { | 47 | fxosc: fxosc { |
48 | #address-cells = <1>; | 48 | compatible = "fixed-clock"; |
49 | #size-cells = <0>; | 49 | #clock-cells = <0>; |
50 | 50 | clock-frequency = <24000000>; | |
51 | sxosc { | 51 | }; |
52 | compatible = "fixed-clock"; | ||
53 | #clock-cells = <0>; | ||
54 | clock-frequency = <32768>; | ||
55 | }; | ||
56 | 52 | ||
57 | fxosc { | 53 | sxosc: sxosc { |
58 | compatible = "fixed-clock"; | 54 | compatible = "fixed-clock"; |
59 | #clock-cells = <0>; | 55 | #clock-cells = <0>; |
60 | clock-frequency = <24000000>; | 56 | clock-frequency = <32768>; |
61 | }; | ||
62 | }; | 57 | }; |
63 | 58 | ||
64 | soc { | 59 | soc { |
@@ -358,6 +353,8 @@ | |||
358 | clks: ccm@4006b000 { | 353 | clks: ccm@4006b000 { |
359 | compatible = "fsl,vf610-ccm"; | 354 | compatible = "fsl,vf610-ccm"; |
360 | reg = <0x4006b000 0x1000>; | 355 | reg = <0x4006b000 0x1000>; |
356 | clocks = <&sxosc>, <&fxosc>; | ||
357 | clock-names = "sxosc", "fxosc"; | ||
361 | #clock-cells = <1>; | 358 | #clock-cells = <1>; |
362 | }; | 359 | }; |
363 | 360 | ||