Commit 403ea7f6 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'v3.19-rockchip-dts4' of...

Merge tag 'v3.19-rockchip-dts4' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/dt

Pull "last dts changes for 3.19" from Jason Cooper:

- rk3288 thermal driver that got accepted into the thermal tree
- mmc fifo sizes for Cortex-A9 SoCs
- labels for the leds on the RadxaRock
- core system supply for the Marsboard

* tag 'v3.19-rockchip-dts4' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
  ARM: dts: rockchip: Add input voltage supply regulators in pmic for Marsboard
  ARM: dts: rockchip: set FIFO size for SDMMC, SDIO and EMMC on rk3066 and rk3188
  ARM: dts: rockchip: add label property for leds on Radxa Rock
  ARM: dts: rockchip: enable thermal on rk3288-evb board
  ARM: dts: rockchip: add main thermal info to rk3288
  ARM: dts: rockchip: add RK3288 Thermal data
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents f3507cc5 288ce4a8
...@@ -60,6 +60,14 @@ vcc_sd0: sdmmc-regulator { ...@@ -60,6 +60,14 @@ vcc_sd0: sdmmc-regulator {
startup-delay-us = <100000>; startup-delay-us = <100000>;
vin-supply = <&vcc_io>; vin-supply = <&vcc_io>;
}; };
vsys: vsys-regulator {
compatible = "regulator-fixed";
regulator-name = "vsys";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-boot-on;
};
}; };
&i2c1 { &i2c1 {
...@@ -72,8 +80,14 @@ tps: tps@2d { ...@@ -72,8 +80,14 @@ tps: tps@2d {
interrupt-parent = <&gpio6>; interrupt-parent = <&gpio6>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>; interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
vcc1-supply = <&vsys>;
vcc2-supply = <&vsys>;
vcc3-supply = <&vsys>;
vcc4-supply = <&vsys>;
vcc5-supply = <&vcc_io>; vcc5-supply = <&vcc_io>;
vcc6-supply = <&vcc_io>; vcc6-supply = <&vcc_io>;
vcc7-supply = <&vsys>;
vccio-supply = <&vsys>;
regulators { regulators {
vcc_rtc: regulator@0 { vcc_rtc: regulator@0 {
......
...@@ -43,16 +43,19 @@ gpio-leds { ...@@ -43,16 +43,19 @@ gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
green { green {
label = "rock:green:user1";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
yellow { blue {
label = "rock:blue:user2";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
sleep { sleep {
label = "rock:red:power";
gpios = <&gpio0 15 0>; gpios = <&gpio0 15 0>;
default-state = "off"; default-state = "off";
}; };
......
...@@ -148,6 +148,12 @@ &uart4 { ...@@ -148,6 +148,12 @@ &uart4 {
status = "okay"; status = "okay";
}; };
&tsadc {
rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
status = "okay";
};
&pinctrl { &pinctrl {
backlight { backlight {
bl_en: bl-en { bl_en: bl-en {
......
/*
* Device Tree Source for RK3288 SoC thermal
*
* Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/
#include <dt-bindings/thermal/thermal.h>
reserve_thermal: reserve_thermal {
polling-delay-passive = <1000>; /* milliseconds */
polling-delay = <5000>; /* milliseconds */
thermal-sensors = <&tsadc 0>;
};
cpu_thermal: cpu_thermal {
polling-delay-passive = <1000>; /* milliseconds */
polling-delay = <5000>; /* milliseconds */
thermal-sensors = <&tsadc 1>;
trips {
cpu_alert0: cpu_alert0 {
temperature = <70000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
cpu_crit: cpu_crit {
temperature = <90000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
};
cooling-maps {
map0 {
trip = <&cpu_alert0>;
cooling-device =
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
gpu_thermal: gpu_thermal {
polling-delay-passive = <1000>; /* milliseconds */
polling-delay = <5000>; /* milliseconds */
thermal-sensors = <&tsadc 2>;
trips {
gpu_alert0: gpu_alert0 {
temperature = <70000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
gpu_crit: gpu_crit {
temperature = <90000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
};
cooling-maps {
map0 {
trip = <&gpu_alert0>;
cooling-device =
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/clock/rk3288-cru.h> #include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/thermal/thermal.h>
#include "skeleton.dtsi" #include "skeleton.dtsi"
/ { / {
...@@ -68,6 +69,7 @@ cpu0: cpu@500 { ...@@ -68,6 +69,7 @@ cpu0: cpu@500 {
216000 900000 216000 900000
126000 900000 126000 900000
>; >;
#cooling-cells = <2>; /* min followed by max */
clock-latency = <40000>; clock-latency = <40000>;
clocks = <&cru ARMCLK>; clocks = <&cru ARMCLK>;
}; };
...@@ -357,6 +359,25 @@ uart4: serial@ff1c0000 { ...@@ -357,6 +359,25 @@ uart4: serial@ff1c0000 {
status = "disabled"; status = "disabled";
}; };
thermal-zones {
#include "rk3288-thermal.dtsi"
};
tsadc: tsadc@ff280000 {
compatible = "rockchip,rk3288-tsadc";
reg = <0xff280000 0x100>;
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
clock-names = "tsadc", "apb_pclk";
resets = <&cru SRST_TSADC>;
reset-names = "tsadc-apb";
pinctrl-names = "default";
pinctrl-0 = <&otp_out>;
#thermal-sensor-cells = <1>;
rockchip,hw-tshut-temp = <95000>;
status = "disabled";
};
usb_host0_ehci: usb@ff500000 { usb_host0_ehci: usb@ff500000 {
compatible = "generic-ehci"; compatible = "generic-ehci";
reg = <0xff500000 0x100>; reg = <0xff500000 0x100>;
...@@ -1016,6 +1037,12 @@ uart4_rts: uart4-rts { ...@@ -1016,6 +1037,12 @@ uart4_rts: uart4-rts {
}; };
}; };
tsadc {
otp_out: otp-out {
rockchip,pins = <0 10 RK_FUNC_1 &pcfg_pull_none>;
};
};
pwm0 { pwm0 {
pwm0_pin: pwm0-pin { pwm0_pin: pwm0-pin {
rockchip,pins = <7 0 RK_FUNC_1 &pcfg_pull_none>; rockchip,pins = <7 0 RK_FUNC_1 &pcfg_pull_none>;
......
...@@ -177,10 +177,9 @@ mmc0: dwmmc@10214000 { ...@@ -177,10 +177,9 @@ mmc0: dwmmc@10214000 {
compatible = "rockchip,rk2928-dw-mshc"; compatible = "rockchip,rk2928-dw-mshc";
reg = <0x10214000 0x1000>; reg = <0x10214000 0x1000>;
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>; clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
fifo-depth = <256>;
status = "disabled"; status = "disabled";
}; };
...@@ -188,10 +187,9 @@ mmc1: dwmmc@10218000 { ...@@ -188,10 +187,9 @@ mmc1: dwmmc@10218000 {
compatible = "rockchip,rk2928-dw-mshc"; compatible = "rockchip,rk2928-dw-mshc";
reg = <0x10218000 0x1000>; reg = <0x10218000 0x1000>;
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>; clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
fifo-depth = <256>;
status = "disabled"; status = "disabled";
}; };
...@@ -199,10 +197,9 @@ emmc: dwmmc@1021c000 { ...@@ -199,10 +197,9 @@ emmc: dwmmc@1021c000 {
compatible = "rockchip,rk2928-dw-mshc"; compatible = "rockchip,rk2928-dw-mshc";
reg = <0x1021c000 0x1000>; reg = <0x1021c000 0x1000>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>; clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
fifo-depth = <256>;
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment