Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'mvebu-dt64-5.3-1' of git://git.infradead.org/linux-mvebu into arm/dt

mvebu dt64 for 5.3 (part 1)

For Armada 7K/8K:
- enable AP806 thermal throttling with CPUfreq
- add missing #interrupt-cells property allowing configuring
interrupt for GPIO

On Armada 8040 based board:
- Fix PCI memory window on Mcbin board
- Set SFP power limit on clearfog GT board
- Disable AP I2C on Armada-8040-DB

On Armada 3720 based board espressobin correct the SPI node used for
NOR flash

On Armada 7040 DB board add USB current regulators

* tag 'mvebu-dt64-5.3-1' of git://git.infradead.org/linux-mvebu:
arm64: dts: marvell: add missing #interrupt-cells property
arm64: dts: marvell: armada-7040-db: Add USB current regulators
arm64: dts: armada-3720-espressobin: correct spi node
arm64: dts: marvell: Disable AP I2C on Armada-8040-DB
arm64: dts: marvell: Enable AP806 thermal throttling with CPUfreq
arm64: dts: marvell: Change core numbering in AP806 thermal-node
arm64: dts: marvell: clearfog-gt-8k: set SFP power limit
arm64: dts: marvell: mcbin: enlarge PCI memory window

Signed-off-by: Olof Johansson <olof@lixom.net>

+153 -42
+1 -17
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
··· 95 95 96 96 flash@0 { 97 97 reg = <0>; 98 - compatible = "winbond,w25q32dw", "jedec,spi-flash"; 98 + compatible = "jedec,spi-nor"; 99 99 spi-max-frequency = <104000000>; 100 100 m25p,fast-read; 101 - 102 - partitions { 103 - compatible = "fixed-partitions"; 104 - #address-cells = <1>; 105 - #size-cells = <1>; 106 - 107 - partition@0 { 108 - label = "uboot"; 109 - reg = <0 0x180000>; 110 - }; 111 - 112 - partition@180000 { 113 - label = "ubootenv"; 114 - reg = <0x180000 0x10000>; 115 - }; 116 - }; 117 101 }; 118 102 }; 119 103
+28
arch/arm64/boot/dts/marvell/armada-7040-db.dts
··· 28 28 ethernet2 = &cp0_eth2; 29 29 }; 30 30 31 + cp0_exp_usb3_0_current_regulator: gpio-regulator { 32 + compatible = "regulator-gpio"; 33 + regulator-name = "cp0-usb3-0-current-regulator"; 34 + regulator-type = "current"; 35 + regulator-min-microamp = <500000>; 36 + regulator-max-microamp = <900000>; 37 + gpios = <&expander0 4 GPIO_ACTIVE_HIGH>; 38 + states = <500000 0x0 39 + 900000 0x1>; 40 + enable-active-high; 41 + gpios-states = <0>; 42 + }; 43 + 44 + cp0_exp_usb3_1_current_regulator: gpio-regulator { 45 + compatible = "regulator-gpio"; 46 + regulator-name = "cp0-usb3-1-current-regulator"; 47 + regulator-type = "current"; 48 + regulator-min-microamp = <500000>; 49 + regulator-max-microamp = <900000>; 50 + gpios = <&expander0 5 GPIO_ACTIVE_HIGH>; 51 + states = <500000 0x0 52 + 900000 0x1>; 53 + enable-active-high; 54 + gpios-states = <0>; 55 + }; 56 + 31 57 cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus { 32 58 compatible = "regulator-fixed"; 33 59 regulator-name = "usb3h0-vbus"; ··· 61 35 regulator-max-microvolt = <5000000>; 62 36 enable-active-high; 63 37 gpio = <&expander0 0 GPIO_ACTIVE_HIGH>; 38 + vin-supply = <&cp0_exp_usb3_0_current_regulator>; 64 39 }; 65 40 66 41 cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus { ··· 71 44 regulator-max-microvolt = <5000000>; 72 45 enable-active-high; 73 46 gpio = <&expander0 1 GPIO_ACTIVE_HIGH>; 47 + vin-supply = <&cp0_exp_usb3_1_current_regulator>; 74 48 }; 75 49 76 50 cp0_usb3_0_phy: cp0-usb3-0-phy {
+1
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts
··· 63 63 tx-disable-gpio = <&cp1_gpio1 29 GPIO_ACTIVE_HIGH>; 64 64 pinctrl-names = "default"; 65 65 pinctrl-0 = <&cp0_sfp_present_pins &cp1_sfp_tx_disable_pins>; 66 + maximum-power-milliwatt = <2000>; 66 67 }; 67 68 68 69 leds {
+2 -5
arch/arm64/boot/dts/marvell/armada-8040-db.dts
··· 27 27 ethernet1 = &cp0_eth2; 28 28 ethernet2 = &cp1_eth0; 29 29 ethernet3 = &cp1_eth1; 30 + i2c1 = &cp0_i2c0; 31 + i2c2 = &cp1_i2c0; 30 32 }; 31 33 32 34 cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus { ··· 72 70 compatible = "usb-nop-xceiv"; 73 71 vcc-supply = <&cp1_reg_usb3_0_vbus>; 74 72 }; 75 - }; 76 - 77 - &i2c0 { 78 - status = "okay"; 79 - clock-frequency = <100000>; 80 73 }; 81 74 82 75 &spi0 {
+2
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi
··· 184 184 num-lanes = <4>; 185 185 num-viewport = <8>; 186 186 reset-gpios = <&cp0_gpio2 20 GPIO_ACTIVE_LOW>; 187 + ranges = <0x81000000 0x0 0xf9010000 0x0 0xf9010000 0x0 0x10000 188 + 0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000>; 187 189 status = "okay"; 188 190 }; 189 191
+2
arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi
··· 20 20 compatible = "arm,cortex-a72"; 21 21 reg = <0x000>; 22 22 enable-method = "psci"; 23 + #cooling-cells = <2>; 23 24 }; 24 25 cpu1: cpu@1 { 25 26 device_type = "cpu"; 26 27 compatible = "arm,cortex-a72"; 27 28 reg = <0x001>; 28 29 enable-method = "psci"; 30 + #cooling-cells = <2>; 29 31 }; 30 32 }; 31 33 };
+5
arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi
··· 20 20 compatible = "arm,cortex-a72"; 21 21 reg = <0x000>; 22 22 enable-method = "psci"; 23 + #cooling-cells = <2>; 23 24 }; 24 25 cpu1: cpu@1 { 25 26 device_type = "cpu"; 26 27 compatible = "arm,cortex-a72"; 27 28 reg = <0x001>; 28 29 enable-method = "psci"; 30 + #cooling-cells = <2>; 29 31 }; 30 32 cpu2: cpu@100 { 31 33 device_type = "cpu"; 32 34 compatible = "arm,cortex-a72"; 33 35 reg = <0x100>; 34 36 enable-method = "psci"; 37 + #cooling-cells = <2>; 35 38 }; 36 39 cpu3: cpu@101 { 37 40 device_type = "cpu"; 38 41 compatible = "arm,cortex-a72"; 39 42 reg = <0x101>; 40 43 enable-method = "psci"; 44 + #cooling-cells = <2>; 41 45 }; 42 46 }; 47 + 43 48 };
+110 -20
arch/arm64/boot/dts/marvell/armada-ap806.dtsi
··· 297 297 * 298 298 * Only one thermal zone per AP/CP may trigger interrupts at a time, the 299 299 * first one that will have a critical trip point will be chosen. 300 - * 301 - * The cooling maps are always empty as there are no cooling devices. 302 300 */ 303 301 thermal-zones { 304 302 ap_thermal_ic: ap-thermal-ic { ··· 316 318 cooling-maps { }; 317 319 }; 318 320 319 - ap_thermal_cpu1: ap-thermal-cpu1 { 321 + ap_thermal_cpu0: ap-thermal-cpu0 { 320 322 polling-delay-passive = <1000>; 321 323 polling-delay = <1000>; 322 324 323 325 thermal-sensors = <&ap_thermal 1>; 324 326 325 - trips { }; 326 - cooling-maps { }; 327 + trips { 328 + cpu0_hot: cpu0-hot { 329 + temperature = <85000>; 330 + hysteresis = <2000>; 331 + type = "passive"; 332 + }; 333 + cpu0_emerg: cpu0-emerg { 334 + temperature = <95000>; 335 + hysteresis = <2000>; 336 + type = "passive"; 337 + }; 338 + }; 339 + 340 + cooling-maps { 341 + map0_hot: map0-hot { 342 + trip = <&cpu0_hot>; 343 + cooling-device = <&cpu0 1 2>, 344 + <&cpu1 1 2>; 345 + }; 346 + map0_emerg: map0-ermerg { 347 + trip = <&cpu0_emerg>; 348 + cooling-device = <&cpu0 3 3>, 349 + <&cpu1 3 3>; 350 + }; 351 + }; 352 + }; 353 + 354 + ap_thermal_cpu1: ap-thermal-cpu1 { 355 + polling-delay-passive = <1000>; 356 + polling-delay = <1000>; 357 + 358 + thermal-sensors = <&ap_thermal 2>; 359 + 360 + trips { 361 + cpu1_hot: cpu1-hot { 362 + temperature = <85000>; 363 + hysteresis = <2000>; 364 + type = "passive"; 365 + }; 366 + cpu1_emerg: cpu1-emerg { 367 + temperature = <95000>; 368 + hysteresis = <2000>; 369 + type = "passive"; 370 + }; 371 + }; 372 + 373 + cooling-maps { 374 + map1_hot: map1-hot { 375 + trip = <&cpu1_hot>; 376 + cooling-device = <&cpu0 1 2>, 377 + <&cpu1 1 2>; 378 + }; 379 + map1_emerg: map1-emerg { 380 + trip = <&cpu1_emerg>; 381 + cooling-device = <&cpu0 3 3>, 382 + <&cpu1 3 3>; 383 + }; 384 + }; 327 385 }; 328 386 329 387 ap_thermal_cpu2: ap-thermal-cpu2 { 330 388 polling-delay-passive = <1000>; 331 389 polling-delay = <1000>; 332 390 333 - thermal-sensors = <&ap_thermal 2>; 391 + thermal-sensors = <&ap_thermal 3>; 334 392 335 - trips { }; 336 - cooling-maps { }; 393 + trips { 394 + cpu2_hot: cpu2-hot { 395 + temperature = <85000>; 396 + hysteresis = <2000>; 397 + type = "passive"; 398 + }; 399 + cpu2_emerg: cpu2-emerg { 400 + temperature = <95000>; 401 + hysteresis = <2000>; 402 + type = "passive"; 403 + }; 404 + }; 405 + 406 + cooling-maps { 407 + map2_hot: map2-hot { 408 + trip = <&cpu2_hot>; 409 + cooling-device = <&cpu2 1 2>, 410 + <&cpu3 1 2>; 411 + }; 412 + map2_emerg: map2-emerg { 413 + trip = <&cpu2_emerg>; 414 + cooling-device = <&cpu2 3 3>, 415 + <&cpu3 3 3>; 416 + }; 417 + }; 337 418 }; 338 419 339 420 ap_thermal_cpu3: ap-thermal-cpu3 { 340 421 polling-delay-passive = <1000>; 341 422 polling-delay = <1000>; 342 423 343 - thermal-sensors = <&ap_thermal 3>; 344 - 345 - trips { }; 346 - cooling-maps { }; 347 - }; 348 - 349 - ap_thermal_cpu4: ap-thermal-cpu4 { 350 - polling-delay-passive = <1000>; 351 - polling-delay = <1000>; 352 - 353 424 thermal-sensors = <&ap_thermal 4>; 354 425 355 - trips { }; 356 - cooling-maps { }; 426 + trips { 427 + cpu3_hot: cpu3-hot { 428 + temperature = <85000>; 429 + hysteresis = <2000>; 430 + type = "passive"; 431 + }; 432 + cpu3_emerg: cpu3-emerg { 433 + temperature = <95000>; 434 + hysteresis = <2000>; 435 + type = "passive"; 436 + }; 437 + }; 438 + 439 + cooling-maps { 440 + map3_hot: map3-bhot { 441 + trip = <&cpu3_hot>; 442 + cooling-device = <&cpu2 1 2>, 443 + <&cpu3 1 2>; 444 + }; 445 + map3_emerg: map3-emerg { 446 + trip = <&cpu3_emerg>; 447 + cooling-device = <&cpu2 3 3>, 448 + <&cpu3 3 3>; 449 + }; 450 + }; 357 451 }; 358 452 }; 359 453 };
+2
arch/arm64/boot/dts/marvell/armada-cp110.dtsi
··· 238 238 <85 IRQ_TYPE_LEVEL_HIGH>, 239 239 <84 IRQ_TYPE_LEVEL_HIGH>, 240 240 <83 IRQ_TYPE_LEVEL_HIGH>; 241 + #interrupt-cells = <2>; 241 242 status = "disabled"; 242 243 }; 243 244 ··· 254 253 <81 IRQ_TYPE_LEVEL_HIGH>, 255 254 <80 IRQ_TYPE_LEVEL_HIGH>, 256 255 <79 IRQ_TYPE_LEVEL_HIGH>; 256 + #interrupt-cells = <2>; 257 257 status = "disabled"; 258 258 }; 259 259 };