diff options
author | Olof Johansson <olof@lixom.net> | 2018-01-05 01:35:13 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-01-05 01:35:13 -0500 |
commit | 36b8bee7b93b6e5a93ab58a896c6e1fbae254586 (patch) | |
tree | 4dfe411f41ec6ce99e2387d6c9dfe2ac1069fde9 | |
parent | 594e45fd31b694649f752e68e8794c495ebe4a4e (diff) | |
parent | 9a9760dede5c71e04b17b2ede594ee7148fd36e2 (diff) |
Merge tag 'hisi-arm64-dt-for-4.16-v2' of git://github.com/hisilicon/linux-hisi into next/dt
ARM64: DT: Hisilicon SoC DT updates for 4.16
- Add SD card support for the hi3798cv200-poplar board
- Replace the PMU node with exact match for the hi3660 SoC
- Add cpu capacity-dmips-mhz information for the hi3660 SoC
* tag 'hisi-arm64-dt-for-4.16-v2' of git://github.com/hisilicon/linux-hisi:
arm64: dts: hisilicon: Add hi3660 cpu capacity-dmips-mhz information
arm64: dts: hi3660: improve pmu description
arm64: dts: hi3798cv200: add SD card support
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 30 | ||||
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 12 |
3 files changed, 39 insertions, 9 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index ab0b95ba5ae5..63d4f9dca77f 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi | |||
@@ -61,6 +61,7 @@ | |||
61 | enable-method = "psci"; | 61 | enable-method = "psci"; |
62 | next-level-cache = <&A53_L2>; | 62 | next-level-cache = <&A53_L2>; |
63 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; | 63 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; |
64 | capacity-dmips-mhz = <592>; | ||
64 | }; | 65 | }; |
65 | 66 | ||
66 | cpu1: cpu@1 { | 67 | cpu1: cpu@1 { |
@@ -70,6 +71,7 @@ | |||
70 | enable-method = "psci"; | 71 | enable-method = "psci"; |
71 | next-level-cache = <&A53_L2>; | 72 | next-level-cache = <&A53_L2>; |
72 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; | 73 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; |
74 | capacity-dmips-mhz = <592>; | ||
73 | }; | 75 | }; |
74 | 76 | ||
75 | cpu2: cpu@2 { | 77 | cpu2: cpu@2 { |
@@ -79,6 +81,7 @@ | |||
79 | enable-method = "psci"; | 81 | enable-method = "psci"; |
80 | next-level-cache = <&A53_L2>; | 82 | next-level-cache = <&A53_L2>; |
81 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; | 83 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; |
84 | capacity-dmips-mhz = <592>; | ||
82 | }; | 85 | }; |
83 | 86 | ||
84 | cpu3: cpu@3 { | 87 | cpu3: cpu@3 { |
@@ -88,6 +91,7 @@ | |||
88 | enable-method = "psci"; | 91 | enable-method = "psci"; |
89 | next-level-cache = <&A53_L2>; | 92 | next-level-cache = <&A53_L2>; |
90 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; | 93 | cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; |
94 | capacity-dmips-mhz = <592>; | ||
91 | }; | 95 | }; |
92 | 96 | ||
93 | cpu4: cpu@100 { | 97 | cpu4: cpu@100 { |
@@ -101,6 +105,7 @@ | |||
101 | &CPU_SLEEP | 105 | &CPU_SLEEP |
102 | &CLUSTER_SLEEP_1 | 106 | &CLUSTER_SLEEP_1 |
103 | >; | 107 | >; |
108 | capacity-dmips-mhz = <1024>; | ||
104 | }; | 109 | }; |
105 | 110 | ||
106 | cpu5: cpu@101 { | 111 | cpu5: cpu@101 { |
@@ -114,6 +119,7 @@ | |||
114 | &CPU_SLEEP | 119 | &CPU_SLEEP |
115 | &CLUSTER_SLEEP_1 | 120 | &CLUSTER_SLEEP_1 |
116 | >; | 121 | >; |
122 | capacity-dmips-mhz = <1024>; | ||
117 | }; | 123 | }; |
118 | 124 | ||
119 | cpu6: cpu@102 { | 125 | cpu6: cpu@102 { |
@@ -127,6 +133,7 @@ | |||
127 | &CPU_SLEEP | 133 | &CPU_SLEEP |
128 | &CLUSTER_SLEEP_1 | 134 | &CLUSTER_SLEEP_1 |
129 | >; | 135 | >; |
136 | capacity-dmips-mhz = <1024>; | ||
130 | }; | 137 | }; |
131 | 138 | ||
132 | cpu7: cpu@103 { | 139 | cpu7: cpu@103 { |
@@ -140,6 +147,7 @@ | |||
140 | &CPU_SLEEP | 147 | &CPU_SLEEP |
141 | &CLUSTER_SLEEP_1 | 148 | &CLUSTER_SLEEP_1 |
142 | >; | 149 | >; |
150 | capacity-dmips-mhz = <1024>; | ||
143 | }; | 151 | }; |
144 | 152 | ||
145 | idle-states { | 153 | idle-states { |
@@ -203,21 +211,25 @@ | |||
203 | IRQ_TYPE_LEVEL_HIGH)>; | 211 | IRQ_TYPE_LEVEL_HIGH)>; |
204 | }; | 212 | }; |
205 | 213 | ||
206 | pmu { | 214 | a53-pmu { |
207 | compatible = "arm,armv8-pmuv3"; | 215 | compatible = "arm,cortex-a53-pmu"; |
208 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>, | 216 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>, |
209 | <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>, | 217 | <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>, |
210 | <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>, | 218 | <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>, |
211 | <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>, | 219 | <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; |
212 | <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>, | ||
213 | <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, | ||
214 | <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, | ||
215 | <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; | ||
216 | interrupt-affinity = <&cpu0>, | 220 | interrupt-affinity = <&cpu0>, |
217 | <&cpu1>, | 221 | <&cpu1>, |
218 | <&cpu2>, | 222 | <&cpu2>, |
219 | <&cpu3>, | 223 | <&cpu3>; |
220 | <&cpu4>, | 224 | }; |
225 | |||
226 | a73-pmu { | ||
227 | compatible = "arm,cortex-a73-pmu"; | ||
228 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>, | ||
229 | <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, | ||
230 | <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, | ||
231 | <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; | ||
232 | interrupt-affinity = <&cpu4>, | ||
221 | <&cpu5>, | 233 | <&cpu5>, |
222 | <&cpu6>, | 234 | <&cpu6>, |
223 | <&cpu7>; | 235 | <&cpu7>; |
diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts index a6fd13389f8d..4d5d644abb12 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | |||
@@ -146,6 +146,12 @@ | |||
146 | status = "okay"; | 146 | status = "okay"; |
147 | }; | 147 | }; |
148 | 148 | ||
149 | &sd0 { | ||
150 | bus-width = <4>; | ||
151 | cap-sd-highspeed; | ||
152 | status = "okay"; | ||
153 | }; | ||
154 | |||
149 | &spi0 { | 155 | &spi0 { |
150 | status = "okay"; | 156 | status = "okay"; |
151 | label = "LS-SPI0"; | 157 | label = "LS-SPI0"; |
diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi b/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi index 75865f8a862a..962bd79139e4 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | |||
@@ -192,6 +192,18 @@ | |||
192 | status = "disabled"; | 192 | status = "disabled"; |
193 | }; | 193 | }; |
194 | 194 | ||
195 | sd0: mmc@9820000 { | ||
196 | compatible = "snps,dw-mshc"; | ||
197 | reg = <0x9820000 0x10000>; | ||
198 | interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; | ||
199 | clocks = <&crg HISTB_SDIO0_CIU_CLK>, | ||
200 | <&crg HISTB_SDIO0_BIU_CLK>; | ||
201 | clock-names = "ciu", "biu"; | ||
202 | resets = <&crg 0x9c 4>; | ||
203 | reset-names = "reset"; | ||
204 | status = "disabled"; | ||
205 | }; | ||
206 | |||
195 | emmc: mmc@9830000 { | 207 | emmc: mmc@9830000 { |
196 | compatible = "snps,dw-mshc"; | 208 | compatible = "snps,dw-mshc"; |
197 | reg = <0x9830000 0x10000>; | 209 | reg = <0x9830000 0x10000>; |