Commit f1c09c3e authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'v4.7-rockchip-dts64-2' of...

Merge tag 'v4.7-rockchip-dts64-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/dt64

Merge "Rockchip dts64 updates for v4.7 - part2" from Heiko Stübner:

Adding the new rk3399 core devicetree support as well as a board
dts for the evaluation board of this chip and similar to the arm32
side also move the rk3368 thermal data into the core soc dtsi, as
there really is no need to keep it separate.

* tag 'v4.7-rockchip-dts64-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
  dt-bindings: document rockchip rk3399-evb board
  arm64: dts: rockchip: add dts file for RK3399 evaluation board
  arm64: dts: rockchip: add core dtsi file for RK3399 SoCs
  dt-bindings: rockchip-dw-mshc: add description for rk3399
  clk: rockchip: export some necessary rk3399 clock ids
  clk: rockchip: rename rga clock-id on rk3399
  clk: rockchip: add general gpu soft-reset on rk3399
  arm64: dts: rockchip: move the rk3368 thermal data into rk3368.dtsi
  clk: rockchip: fix checkpatch errors in rk3399 dt-binding header
  clk: rockchip: add dt-binding header for rk3399
parents 41caed56 51c454d2
...@@ -101,4 +101,8 @@ Rockchip platforms device tree bindings ...@@ -101,4 +101,8 @@ Rockchip platforms device tree bindings
- Rockchip RK3228 Evaluation board: - Rockchip RK3228 Evaluation board:
Required root node properties: Required root node properties:
- compatible = "rockchip,rk3228-evb", "rockchip,rk3228"; - compatible = "rockchip,rk3228-evb", "rockchip,rk3228";
- Rockchip RK3399 evb:
Required root node properties:
- compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
...@@ -15,6 +15,7 @@ Required Properties: ...@@ -15,6 +15,7 @@ Required Properties:
- "rockchip,rk3288-dw-mshc": for Rockchip RK3288 - "rockchip,rk3288-dw-mshc": for Rockchip RK3288
- "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc": for Rockchip RK3036 - "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc": for Rockchip RK3036
- "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc": for Rockchip RK3368 - "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc": for Rockchip RK3368
- "rockchip,rk3399-dw-mshc", "rockchip,rk3288-dw-mshc": for Rockchip RK3399
Optional Properties: Optional Properties:
* clocks: from common clock binding: if ciu_drive and ciu_sample are * clocks: from common clock binding: if ciu_drive and ciu_sample are
......
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb
always := $(dtb-y) always := $(dtb-y)
subdir-y := $(dts-dirs) subdir-y := $(dts-dirs)
......
...@@ -413,7 +413,71 @@ uart4: serial@ff1c0000 { ...@@ -413,7 +413,71 @@ uart4: serial@ff1c0000 {
}; };
thermal-zones { thermal-zones {
#include "rk3368-thermal.dtsi" cpu {
polling-delay-passive = <100>; /* milliseconds */
polling-delay = <5000>; /* milliseconds */
thermal-sensors = <&tsadc 0>;
trips {
cpu_alert0: cpu_alert0 {
temperature = <75000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
cpu_alert1: cpu_alert1 {
temperature = <80000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
cpu_crit: cpu_crit {
temperature = <95000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
};
cooling-maps {
map0 {
trip = <&cpu_alert0>;
cooling-device =
<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
map1 {
trip = <&cpu_alert1>;
cooling-device =
<&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
gpu {
polling-delay-passive = <100>; /* milliseconds */
polling-delay = <5000>; /* milliseconds */
thermal-sensors = <&tsadc 1>;
trips {
gpu_alert0: gpu_alert0 {
temperature = <80000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
gpu_crit: gpu_crit {
temperature = <115000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
};
cooling-maps {
map0 {
trip = <&gpu_alert0>;
cooling-device =
<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
}; };
tsadc: tsadc@ff280000 { tsadc: tsadc@ff280000 {
......
/* /*
* Device Tree Source for RK3368 SoC thermal * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
*
* Copyright (c) 2015, Fuzhou Rockchip Electronics Co., Ltd
* Caesar Wang <wxt@rock-chips.com>
* *
* This file is dual-licensed: you can use it either under the terms * This file is dual-licensed: you can use it either under the terms
* of the GPL or the X11 license, at your option. Note that this dual * of the GPL or the X11 license, at your option. Note that this dual
...@@ -43,70 +40,85 @@ ...@@ -43,70 +40,85 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <dt-bindings/thermal/thermal.h> /dts-v1/;
#include <dt-bindings/pwm/pwm.h>
#include "rk3399.dtsi"
cpu_thermal: cpu_thermal { / {
polling-delay-passive = <100>; /* milliseconds */ model = "Rockchip RK3399 Evaluation Board";
polling-delay = <5000>; /* milliseconds */ compatible = "rockchip,rk3399-evb", "rockchip,rk3399",
"google,rk3399evb-rev2";
thermal-sensors = <&tsadc 0>; vdd_center: vdd-center {
compatible = "pwm-regulator";
pwms = <&pwm3 0 25000 0>;
regulator-name = "vdd_center";
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <1400000>;
regulator-always-on;
regulator-boot-on;
status = "okay";
};
trips { vcc3v3_sys: vcc3v3-sys {
cpu_alert0: cpu_alert0 { compatible = "regulator-fixed";
temperature = <75000>; /* millicelsius */ regulator-name = "vcc3v3_sys";
hysteresis = <2000>; /* millicelsius */ regulator-always-on;
type = "passive"; regulator-boot-on;
}; regulator-min-microvolt = <3300000>;
cpu_alert1: cpu_alert1 { regulator-max-microvolt = <3300000>;
temperature = <80000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
cpu_crit: cpu_crit {
temperature = <95000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
}; };
cooling-maps { vcc_phy: vcc-phy-regulator {
map0 { compatible = "regulator-fixed";
trip = <&cpu_alert0>; regulator-name = "vcc_phy";
cooling-device = regulator-always-on;
<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; regulator-boot-on;
};
map1 {
trip = <&cpu_alert1>;
cooling-device =
<&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
}; };
}; };
gpu_thermal: gpu_thermal { &pwm0 {
polling-delay-passive = <100>; /* milliseconds */ status = "okay";
polling-delay = <5000>; /* milliseconds */ };
&pwm2 {
status = "okay";
};
thermal-sensors = <&tsadc 1>; &pwm3 {
status = "okay";
};
trips { &uart2 {
gpu_alert0: gpu_alert0 { status = "okay";
temperature = <80000>; /* millicelsius */ };
hysteresis = <2000>; /* millicelsius */
type = "passive"; &usb_host0_ehci {
}; status = "okay";
gpu_crit: gpu_crit { };
temperature = <1150000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */ &usb_host0_ohci {
type = "critical"; status = "okay";
};
&usb_host1_ehci {
status = "okay";
};
&usb_host1_ohci {
status = "okay";
};
&pinctrl {
pmic {
pmic_int_l: pmic-int-l {
rockchip,pins =
<1 21 RK_FUNC_GPIO &pcfg_pull_up>;
}; };
};
cooling-maps { pmic_dvs2: pmic-dvs2 {
map0 { rockchip,pins =
trip = <&gpu_alert0>; <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
cooling-device =
<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
}; };
}; };
}; };
This diff is collapsed.
This diff is collapsed.
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