diff options
author | Tomer Maimon <tmaimon77@gmail.com> | 2018-04-04 07:11:00 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2018-04-05 05:13:21 -0400 |
commit | 016c366f505f96dce2a4d0e1e9075fe6e0dfad3e (patch) | |
tree | 06b666bf99e17a10ffa7d1568d18a69f912a3fdc | |
parent | 4828b20a0b89efba524eb34b3234d98683dbe108 (diff) |
arm: dts: modify clock binding in NPCM750 device tree
Modify clock binding in a common device tree for all Nuvoton
NPCM750 BMCs.
Modify NPCM750 modules clock numbers accourding the new
clock driver.
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/boot/dts/nuvoton-npcm750.dtsi | 58 |
1 files changed, 44 insertions, 14 deletions
diff --git a/arch/arm/boot/dts/nuvoton-npcm750.dtsi b/arch/arm/boot/dts/nuvoton-npcm750.dtsi index c7d80d2152ae..d53eccfe44cb 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750.dtsi +++ b/arch/arm/boot/dts/nuvoton-npcm750.dtsi | |||
@@ -17,7 +17,7 @@ | |||
17 | cpu@0 { | 17 | cpu@0 { |
18 | device_type = "cpu"; | 18 | device_type = "cpu"; |
19 | compatible = "arm,cortex-a9"; | 19 | compatible = "arm,cortex-a9"; |
20 | clocks = <&clk 10>; | 20 | clocks = <&clk 0>; |
21 | clock-names = "clk_cpu"; | 21 | clock-names = "clk_cpu"; |
22 | reg = <0>; | 22 | reg = <0>; |
23 | next-level-cache = <&l2>; | 23 | next-level-cache = <&l2>; |
@@ -26,31 +26,58 @@ | |||
26 | cpu@1 { | 26 | cpu@1 { |
27 | device_type = "cpu"; | 27 | device_type = "cpu"; |
28 | compatible = "arm,cortex-a9"; | 28 | compatible = "arm,cortex-a9"; |
29 | clocks = <&clk 10>; | 29 | clocks = <&clk 0>; |
30 | clock-names = "clk_cpu"; | 30 | clock-names = "clk_cpu"; |
31 | reg = <1>; | 31 | reg = <1>; |
32 | next-level-cache = <&l2>; | 32 | next-level-cache = <&l2>; |
33 | }; | 33 | }; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | /* external clock signal rg1refck, supplied by the phy */ | 36 | /* external reference clock */ |
37 | clk-rg1refck { | 37 | clk-refclk: clk-refclk { |
38 | compatible = "fixed-clock"; | ||
39 | #clock-cells = <0>; | ||
40 | clock-frequency = <25000000>; | ||
41 | clock-output-names = "refclk"; | ||
42 | }; | ||
43 | |||
44 | /* external reference clock for cpu. float in normal operation */ | ||
45 | clk-sysbypck: clk-sysbypck { | ||
46 | compatible = "fixed-clock"; | ||
47 | #clock-cells = <0>; | ||
48 | clock-frequency = <800000000>; | ||
49 | clock-output-names = "sysbypck"; | ||
50 | }; | ||
51 | |||
52 | /* external reference clock for MC. float in normal operation */ | ||
53 | clk-mcbypck: clk-mcbypck { | ||
54 | compatible = "fixed-clock"; | ||
55 | #clock-cells = <0>; | ||
56 | clock-frequency = <800000000>; | ||
57 | clock-output-names = "mcbypck"; | ||
58 | }; | ||
59 | |||
60 | /* external clock signal rg1refck, supplied by the phy */ | ||
61 | clk-rg1refck: clk-rg1refck { | ||
38 | compatible = "fixed-clock"; | 62 | compatible = "fixed-clock"; |
39 | #clock-cells = <0>; | 63 | #clock-cells = <0>; |
40 | clock-frequency = <125000000>; | 64 | clock-frequency = <125000000>; |
65 | clock-output-names = "clk-rg1refck"; | ||
41 | }; | 66 | }; |
42 | 67 | ||
43 | /* external clock signal rg2refck, supplied by the phy */ | 68 | /* external clock signal rg2refck, supplied by the phy */ |
44 | clk-rg2refck { | 69 | clk-rg2refck: clk-rg2refck { |
45 | compatible = "fixed-clock"; | 70 | compatible = "fixed-clock"; |
46 | #clock-cells = <0>; | 71 | #clock-cells = <0>; |
47 | clock-frequency = <125000000>; | 72 | clock-frequency = <125000000>; |
73 | clock-output-names = "clk-rg2refck"; | ||
48 | }; | 74 | }; |
49 | 75 | ||
50 | clk-xin { | 76 | clk-xin: clk-xin { |
51 | compatible = "fixed-clock"; | 77 | compatible = "fixed-clock"; |
52 | #clock-cells = <0>; | 78 | #clock-cells = <0>; |
53 | clock-frequency = <50000000>; | 79 | clock-frequency = <50000000>; |
80 | clock-output-names = "clk-xin"; | ||
54 | }; | 81 | }; |
55 | 82 | ||
56 | soc { | 83 | soc { |
@@ -77,7 +104,7 @@ | |||
77 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; | 104 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; |
78 | cache-unified; | 105 | cache-unified; |
79 | cache-level = <2>; | 106 | cache-level = <2>; |
80 | clocks = <&clk 22>; | 107 | clocks = <&clk 10>; |
81 | arm,shared-override; | 108 | arm,shared-override; |
82 | }; | 109 | }; |
83 | 110 | ||
@@ -94,7 +121,7 @@ | |||
94 | reg = <0x3fe600 0x20>; | 121 | reg = <0x3fe600 0x20>; |
95 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | | 122 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | |
96 | IRQ_TYPE_LEVEL_HIGH)>; | 123 | IRQ_TYPE_LEVEL_HIGH)>; |
97 | clocks = <&clk 15>; | 124 | clocks = <&clk 5>; |
98 | }; | 125 | }; |
99 | }; | 126 | }; |
100 | 127 | ||
@@ -106,9 +133,12 @@ | |||
106 | ranges; | 133 | ranges; |
107 | 134 | ||
108 | clk: clock-controller@f0801000 { | 135 | clk: clock-controller@f0801000 { |
109 | compatible = "nuvoton,npcm750-clk"; | 136 | compatible = "nuvoton,npcm750-clk", "syscon"; |
110 | #clock-cells = <1>; | 137 | #clock-cells = <1>; |
138 | clock-controller; | ||
111 | reg = <0xf0801000 0x1000>; | 139 | reg = <0xf0801000 0x1000>; |
140 | clock-names = "refclk", "sysbypck", "mcbypck"; | ||
141 | clocks = <&clk-refclk>, <&clk-sysbypck>, <&clk-mcbypck>; | ||
112 | }; | 142 | }; |
113 | 143 | ||
114 | apb { | 144 | apb { |
@@ -122,7 +152,7 @@ | |||
122 | compatible = "nuvoton,npcm750-timer"; | 152 | compatible = "nuvoton,npcm750-timer"; |
123 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; | 153 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
124 | reg = <0x8000 0x50>; | 154 | reg = <0x8000 0x50>; |
125 | clocks = <&clk 15>; | 155 | clocks = <&clk 5>; |
126 | }; | 156 | }; |
127 | 157 | ||
128 | watchdog0: watchdog@801C { | 158 | watchdog0: watchdog@801C { |
@@ -152,7 +182,7 @@ | |||
152 | serial0: serial@1000 { | 182 | serial0: serial@1000 { |
153 | compatible = "nuvoton,npcm750-uart"; | 183 | compatible = "nuvoton,npcm750-uart"; |
154 | reg = <0x1000 0x1000>; | 184 | reg = <0x1000 0x1000>; |
155 | clocks = <&clk 14>; | 185 | clocks = <&clk 6>; |
156 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; | 186 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
157 | reg-shift = <2>; | 187 | reg-shift = <2>; |
158 | status = "disabled"; | 188 | status = "disabled"; |
@@ -161,7 +191,7 @@ | |||
161 | serial1: serial@2000 { | 191 | serial1: serial@2000 { |
162 | compatible = "nuvoton,npcm750-uart"; | 192 | compatible = "nuvoton,npcm750-uart"; |
163 | reg = <0x2000 0x1000>; | 193 | reg = <0x2000 0x1000>; |
164 | clocks = <&clk 14>; | 194 | clocks = <&clk 6>; |
165 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; | 195 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
166 | reg-shift = <2>; | 196 | reg-shift = <2>; |
167 | status = "disabled"; | 197 | status = "disabled"; |
@@ -170,7 +200,7 @@ | |||
170 | serial2: serial@3000 { | 200 | serial2: serial@3000 { |
171 | compatible = "nuvoton,npcm750-uart"; | 201 | compatible = "nuvoton,npcm750-uart"; |
172 | reg = <0x3000 0x1000>; | 202 | reg = <0x3000 0x1000>; |
173 | clocks = <&clk 14>; | 203 | clocks = <&clk 6>; |
174 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; | 204 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
175 | reg-shift = <2>; | 205 | reg-shift = <2>; |
176 | status = "disabled"; | 206 | status = "disabled"; |
@@ -179,7 +209,7 @@ | |||
179 | serial3: serial@4000 { | 209 | serial3: serial@4000 { |
180 | compatible = "nuvoton,npcm750-uart"; | 210 | compatible = "nuvoton,npcm750-uart"; |
181 | reg = <0x4000 0x1000>; | 211 | reg = <0x4000 0x1000>; |
182 | clocks = <&clk 14>; | 212 | clocks = <&clk 6>; |
183 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; | 213 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
184 | reg-shift = <2>; | 214 | reg-shift = <2>; |
185 | status = "disabled"; | 215 | status = "disabled"; |