| .. | .. |
|---|
| 8 | 8 | /dts-v1/; |
|---|
| 9 | 9 | |
|---|
| 10 | 10 | #include <dt-bindings/input/input.h> |
|---|
| 11 | | -#include <dt-bindings/thermal/thermal.h> |
|---|
| 12 | 11 | |
|---|
| 13 | 12 | #include "meson-gxm.dtsi" |
|---|
| 14 | 13 | |
|---|
| .. | .. |
|---|
| 100 | 99 | clock-names = "ext_clock"; |
|---|
| 101 | 100 | }; |
|---|
| 102 | 101 | |
|---|
| 103 | | - thermal-zones { |
|---|
| 104 | | - cpu-thermal { |
|---|
| 105 | | - polling-delay-passive = <250>; /* milliseconds */ |
|---|
| 106 | | - polling-delay = <1000>; /* milliseconds */ |
|---|
| 107 | | - |
|---|
| 108 | | - thermal-sensors = <&scpi_sensors 0>; |
|---|
| 109 | | - |
|---|
| 110 | | - trips { |
|---|
| 111 | | - cpu_alert0: cpu-alert0 { |
|---|
| 112 | | - temperature = <70000>; /* millicelsius */ |
|---|
| 113 | | - hysteresis = <2000>; /* millicelsius */ |
|---|
| 114 | | - type = "active"; |
|---|
| 115 | | - }; |
|---|
| 116 | | - |
|---|
| 117 | | - cpu_alert1: cpu-alert1 { |
|---|
| 118 | | - temperature = <80000>; /* millicelsius */ |
|---|
| 119 | | - hysteresis = <2000>; /* millicelsius */ |
|---|
| 120 | | - type = "passive"; |
|---|
| 121 | | - }; |
|---|
| 122 | | - }; |
|---|
| 123 | | - |
|---|
| 124 | | - cooling-maps { |
|---|
| 125 | | - map0 { |
|---|
| 126 | | - trip = <&cpu_alert0>; |
|---|
| 127 | | - cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; |
|---|
| 128 | | - }; |
|---|
| 129 | | - |
|---|
| 130 | | - map1 { |
|---|
| 131 | | - trip = <&cpu_alert1>; |
|---|
| 132 | | - cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>; |
|---|
| 133 | | - }; |
|---|
| 134 | | - |
|---|
| 135 | | - map2 { |
|---|
| 136 | | - trip = <&cpu_alert1>; |
|---|
| 137 | | - cooling-device = |
|---|
| 138 | | - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 139 | | - }; |
|---|
| 140 | | - |
|---|
| 141 | | - map3 { |
|---|
| 142 | | - trip = <&cpu_alert1>; |
|---|
| 143 | | - cooling-device = |
|---|
| 144 | | - <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 145 | | - }; |
|---|
| 146 | | - }; |
|---|
| 147 | | - }; |
|---|
| 148 | | - }; |
|---|
| 149 | | - |
|---|
| 150 | 102 | hdmi_5v: regulator-hdmi-5v { |
|---|
| 151 | 103 | compatible = "regulator-fixed"; |
|---|
| 152 | 104 | |
|---|
| .. | .. |
|---|
| 202 | 154 | hdmi-phandle = <&hdmi_tx>; |
|---|
| 203 | 155 | }; |
|---|
| 204 | 156 | |
|---|
| 205 | | -&cpu0 { |
|---|
| 206 | | - #cooling-cells = <2>; |
|---|
| 207 | | -}; |
|---|
| 208 | 157 | |
|---|
| 209 | | -&cpu1 { |
|---|
| 210 | | - #cooling-cells = <2>; |
|---|
| 211 | | -}; |
|---|
| 158 | +&cpu_cooling_maps { |
|---|
| 159 | + map0 { |
|---|
| 160 | + cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; |
|---|
| 161 | + }; |
|---|
| 212 | 162 | |
|---|
| 213 | | -&cpu2 { |
|---|
| 214 | | - #cooling-cells = <2>; |
|---|
| 215 | | -}; |
|---|
| 216 | | - |
|---|
| 217 | | -&cpu3 { |
|---|
| 218 | | - #cooling-cells = <2>; |
|---|
| 219 | | -}; |
|---|
| 220 | | - |
|---|
| 221 | | -&cpu4 { |
|---|
| 222 | | - #cooling-cells = <2>; |
|---|
| 223 | | -}; |
|---|
| 224 | | - |
|---|
| 225 | | -&cpu5 { |
|---|
| 226 | | - #cooling-cells = <2>; |
|---|
| 227 | | -}; |
|---|
| 228 | | - |
|---|
| 229 | | -&cpu6 { |
|---|
| 230 | | - #cooling-cells = <2>; |
|---|
| 231 | | -}; |
|---|
| 232 | | - |
|---|
| 233 | | -&cpu7 { |
|---|
| 234 | | - #cooling-cells = <2>; |
|---|
| 163 | + map1 { |
|---|
| 164 | + cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>, |
|---|
| 165 | + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 166 | + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 167 | + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 168 | + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 169 | + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 170 | + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 171 | + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 172 | + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 173 | + }; |
|---|
| 235 | 174 | }; |
|---|
| 236 | 175 | |
|---|
| 237 | 176 | ðmac { |
|---|
| .. | .. |
|---|
| 243 | 182 | |
|---|
| 244 | 183 | amlogic,tx-delay-ns = <2>; |
|---|
| 245 | 184 | |
|---|
| 246 | | - /* External PHY reset is shared with internal PHY Led signals */ |
|---|
| 247 | | - snps,reset-gpio = <&gpio GPIOZ_14 0>; |
|---|
| 248 | | - snps,reset-delays-us = <0 10000 1000000>; |
|---|
| 249 | | - snps,reset-active-low; |
|---|
| 250 | | - |
|---|
| 251 | 185 | /* External PHY is in RGMII */ |
|---|
| 252 | 186 | phy-mode = "rgmii"; |
|---|
| 253 | 187 | |
|---|
| .. | .. |
|---|
| 258 | 192 | external_phy: ethernet-phy@0 { |
|---|
| 259 | 193 | /* Realtek RTL8211F (0x001cc916) */ |
|---|
| 260 | 194 | reg = <0>; |
|---|
| 195 | + |
|---|
| 196 | + reset-assert-us = <10000>; |
|---|
| 197 | + reset-deassert-us = <80000>; |
|---|
| 198 | + reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; |
|---|
| 199 | + |
|---|
| 261 | 200 | interrupt-parent = <&gpio_intc>; |
|---|
| 262 | 201 | /* MAC_INTR on GPIOZ_15 */ |
|---|
| 263 | 202 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; |
|---|
| .. | .. |
|---|
| 303 | 242 | status = "okay"; |
|---|
| 304 | 243 | pinctrl-0 = <&remote_input_ao_pins>; |
|---|
| 305 | 244 | pinctrl-names = "default"; |
|---|
| 306 | | - linux,rc-map-name = "rc-geekbox"; |
|---|
| 245 | + linux,rc-map-name = "rc-khadas"; |
|---|
| 307 | 246 | }; |
|---|
| 308 | 247 | |
|---|
| 309 | 248 | &pwm_AO_ab { |
|---|
| .. | .. |
|---|
| 325 | 264 | &sd_emmc_a { |
|---|
| 326 | 265 | status = "okay"; |
|---|
| 327 | 266 | pinctrl-0 = <&sdio_pins>; |
|---|
| 328 | | - pinctrl-names = "default"; |
|---|
| 267 | + pinctrl-1 = <&sdio_clk_gate_pins>; |
|---|
| 268 | + pinctrl-names = "default", "clk-gate"; |
|---|
| 329 | 269 | #address-cells = <1>; |
|---|
| 330 | 270 | #size-cells = <0>; |
|---|
| 331 | 271 | |
|---|
| 332 | 272 | bus-width = <4>; |
|---|
| 333 | | - max-frequency = <100000000>; |
|---|
| 273 | + max-frequency = <60000000>; |
|---|
| 334 | 274 | |
|---|
| 335 | 275 | non-removable; |
|---|
| 336 | 276 | disable-wp; |
|---|
| 277 | + |
|---|
| 278 | + /* WiFi firmware requires power to be kept while in suspend */ |
|---|
| 279 | + keep-power-in-suspend; |
|---|
| 337 | 280 | |
|---|
| 338 | 281 | mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 339 | 282 | |
|---|
| .. | .. |
|---|
| 350 | 293 | &sd_emmc_b { |
|---|
| 351 | 294 | status = "okay"; |
|---|
| 352 | 295 | pinctrl-0 = <&sdcard_pins>; |
|---|
| 353 | | - pinctrl-names = "default"; |
|---|
| 296 | + pinctrl-1 = <&sdcard_clk_gate_pins>; |
|---|
| 297 | + pinctrl-names = "default", "clk-gate"; |
|---|
| 354 | 298 | |
|---|
| 355 | 299 | bus-width = <4>; |
|---|
| 356 | 300 | cap-sd-highspeed; |
|---|
| 357 | | - max-frequency = <100000000>; |
|---|
| 301 | + max-frequency = <50000000>; |
|---|
| 358 | 302 | disable-wp; |
|---|
| 359 | 303 | |
|---|
| 360 | | - cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; |
|---|
| 361 | | - cd-inverted; |
|---|
| 304 | + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; |
|---|
| 362 | 305 | |
|---|
| 363 | 306 | vmmc-supply = <&vddao_3v3>; |
|---|
| 364 | 307 | vqmmc-supply = <&vddio_boot>; |
|---|
| .. | .. |
|---|
| 368 | 311 | &sd_emmc_c { |
|---|
| 369 | 312 | status = "okay"; |
|---|
| 370 | 313 | pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; |
|---|
| 371 | | - pinctrl-names = "default"; |
|---|
| 314 | + pinctrl-1 = <&emmc_clk_gate_pins>; |
|---|
| 315 | + pinctrl-names = "default", "clk-gate"; |
|---|
| 372 | 316 | |
|---|
| 373 | 317 | bus-width = <8>; |
|---|
| 374 | | - cap-sd-highspeed; |
|---|
| 375 | 318 | cap-mmc-highspeed; |
|---|
| 376 | 319 | max-frequency = <200000000>; |
|---|
| 377 | 320 | non-removable; |
|---|
| 378 | 321 | disable-wp; |
|---|
| 379 | 322 | mmc-ddr-1_8v; |
|---|
| 380 | 323 | mmc-hs200-1_8v; |
|---|
| 381 | | - mmc-hs400-1_8v; |
|---|
| 382 | 324 | |
|---|
| 383 | 325 | mmc-pwrseq = <&emmc_pwrseq>; |
|---|
| 384 | 326 | vmmc-supply = <&vcc_3v3>; |
|---|
| .. | .. |
|---|
| 438 | 380 | vref-supply = <&vddio_ao18>; |
|---|
| 439 | 381 | }; |
|---|
| 440 | 382 | |
|---|
| 441 | | -&usb0 { |
|---|
| 383 | +&usb { |
|---|
| 442 | 384 | status = "okay"; |
|---|
| 385 | + dr_mode = "peripheral"; |
|---|
| 443 | 386 | }; |
|---|