diff options
author | Joel Stanley <joel@jms.id.au> | 2017-03-30 22:35:10 -0400 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2017-04-06 21:44:50 -0400 |
commit | 8b9102da97293073f065fe5dfd49d21580b84e2b (patch) | |
tree | 1aa8a46675c89067b7d7f0d870b9d3f1d70213df | |
parent | 74dc3cd32e062b664e78c2e61331b4e0caac7822 (diff) |
ARM: dts: aspeed: Make G5 clocks fixed
We do not yet have a clk driver upstream. So that users can boot the
unmodified upstream kernel, add fixed-clock and clock-frequency
properties to all of the clocks.
The values are taken from the ast2500evb. This is the only upstream dts.
It also happens to match all of the systems I have seen so far.
Acked-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | arch/arm/boot/dts/aspeed-g5.dtsi | 72 |
1 files changed, 40 insertions, 32 deletions
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 8970f3cb8e2b..9e0b86e404ba 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi | |||
@@ -117,15 +117,49 @@ | |||
117 | #size-cells = <1>; | 117 | #size-cells = <1>; |
118 | ranges; | 118 | ranges; |
119 | 119 | ||
120 | clk_clkin: clk_clkin@1e6e2070 { | ||
121 | #clock-cells = <0>; | ||
122 | compatible = "aspeed,g5-clkin-clock"; | ||
123 | reg = <0x1e6e2070 0x04>; | ||
124 | }; | ||
125 | |||
126 | syscon: syscon@1e6e2000 { | 120 | syscon: syscon@1e6e2000 { |
127 | compatible = "aspeed,g5-scu", "syscon", "simple-mfd"; | 121 | compatible = "aspeed,g5-scu", "syscon", "simple-mfd"; |
128 | reg = <0x1e6e2000 0x1a8>; | 122 | reg = <0x1e6e2000 0x1a8>; |
123 | #address-cells = <1>; | ||
124 | #size-cells = <0>; | ||
125 | |||
126 | clk_clkin: clk_clkin@70 { | ||
127 | #clock-cells = <0>; | ||
128 | compatible = "aspeed,g5-clkin-clock", "fixed-clock"; | ||
129 | reg = <0x70>; | ||
130 | clock-frequency = <24000000>; | ||
131 | }; | ||
132 | |||
133 | clk_hpll: clk_hpll@24 { | ||
134 | #clock-cells = <0>; | ||
135 | compatible = "aspeed,g5-hpll-clock", "fixed-clock"; | ||
136 | reg = <0x24>; | ||
137 | clocks = <&clk_clkin>; | ||
138 | clock-frequency = <792000000>; | ||
139 | }; | ||
140 | |||
141 | clk_ahb: clk_ahb@70 { | ||
142 | #clock-cells = <0>; | ||
143 | compatible = "aspeed,g5-ahb-clock", "fixed-clock"; | ||
144 | reg = <0x70>; | ||
145 | clocks = <&clk_hpll>; | ||
146 | clock-frequency = <198000000>; | ||
147 | }; | ||
148 | |||
149 | clk_apb: clk_apb@08 { | ||
150 | #clock-cells = <0>; | ||
151 | compatible = "aspeed,g5-apb-clock", "fixed-clock"; | ||
152 | reg = <0x08>; | ||
153 | clocks = <&clk_hpll>; | ||
154 | clock-frequency = <24750000>; | ||
155 | }; | ||
156 | |||
157 | clk_uart: clk_uart@2c { | ||
158 | #clock-cells = <0>; | ||
159 | compatible = "aspeed,uart-clock", "fixed-clock"; | ||
160 | reg = <0x2c>; | ||
161 | clock-frequency = <24000000>; | ||
162 | }; | ||
129 | 163 | ||
130 | pinctrl: pinctrl { | 164 | pinctrl: pinctrl { |
131 | compatible = "aspeed,g5-pinctrl"; | 165 | compatible = "aspeed,g5-pinctrl"; |
@@ -937,33 +971,7 @@ | |||
937 | }; | 971 | }; |
938 | 972 | ||
939 | }; | 973 | }; |
940 | }; | ||
941 | |||
942 | clk_hpll: clk_hpll@1e6e2024 { | ||
943 | #clock-cells = <0>; | ||
944 | compatible = "aspeed,g5-hpll-clock"; | ||
945 | reg = <0x1e6e2024 0x4>; | ||
946 | clocks = <&clk_clkin>; | ||
947 | }; | ||
948 | |||
949 | clk_ahb: clk_ahb@1e6e2070 { | ||
950 | #clock-cells = <0>; | ||
951 | compatible = "aspeed,g5-ahb-clock"; | ||
952 | reg = <0x1e6e2070 0x4>; | ||
953 | clocks = <&clk_hpll>; | ||
954 | }; | ||
955 | |||
956 | clk_apb: clk_apb@1e6e2008 { | ||
957 | #clock-cells = <0>; | ||
958 | compatible = "aspeed,g5-apb-clock"; | ||
959 | reg = <0x1e6e2008 0x4>; | ||
960 | clocks = <&clk_hpll>; | ||
961 | }; | ||
962 | 974 | ||
963 | clk_uart: clk_uart@1e6e2008 { | ||
964 | #clock-cells = <0>; | ||
965 | compatible = "aspeed,uart-clock"; | ||
966 | reg = <0x1e6e202c 0x4>; | ||
967 | }; | 975 | }; |
968 | 976 | ||
969 | gfx: display@1e6e6000 { | 977 | gfx: display@1e6e6000 { |