mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-24 03:56:59 +08:00

* rockchip: refresh NanoPi R2S patches Update the patches for the NanoPi R2S to the v3 sent (and accepted) upstream. Signed-off-by: David Bauer <mail@david-bauer.net> * rockchip: rk3328: add compatible to NanoPi R2S ethernet PHY This adds the compatible property to the NanoPi R2S ethernet PHY node. Otherwise, the PHY might not be probed, as the PHY ID reads all 0xff when it is still in reset. Signed-off-by: David Bauer <mail@david-bauer.net> * uboot-rockchip: update NanoPi R2S patches Update the patches required for the NanoPi R2S to match the DTS accepted for upstream Linux. The U-Boot patch meanwhile is still pending upstream. Signed-off-by: David Bauer <mail@david-bauer.net> * rockchip: refresh target patches Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org> Co-authored-by: CN_SZTL <cnsztl@project-openwrt.eu.org> Co-authored-by: wevsty <ty@wevs.org> * rockchip: fix NanoPi R2S PHY ID Fix the PHY ID for the NanoPi R2S PHY compatible to match the used PHY. The ID was wrong as I've accidentally picked the wrong upstream patch. Signed-off-by: David Bauer <mail@david-bauer.net> Co-authored-by: David Bauer <mail@david-bauer.net> Co-authored-by: wevsty <ty@wevs.org>
75 lines
2.2 KiB
Diff
75 lines
2.2 KiB
Diff
From 4f279f9fbca54464173240f7e73b145a136dfa1e Mon Sep 17 00:00:00 2001
|
|
From: Robin Murphy <robin.murphy@arm.com>
|
|
Date: Sun, 29 Dec 2019 20:16:17 +0000
|
|
Subject: arm64: dts: rockchip: Add RK3328 idle state
|
|
|
|
Downstream RK3328 DTBs describe a CPU idle state matching that present
|
|
on other SoCs like RK3399. This works with upstream Trusted Firmware-A
|
|
too, so let's add it here.
|
|
|
|
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
|
|
Link: https://lore.kernel.org/r/a8c83e705d387446ea8121516d410e38b2d9c57b.1577640736.git.robin.murphy@arm.com
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 17 +++++++++++++++++
|
|
1 file changed, 17 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
|
|
index 91306ebed4da2..c9ff1188bd7b1 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
|
|
@@ -41,6 +41,7 @@
|
|
reg = <0x0 0x0>;
|
|
clocks = <&cru ARMCLK>;
|
|
#cooling-cells = <2>;
|
|
+ cpu-idle-states = <&CPU_SLEEP>;
|
|
dynamic-power-coefficient = <120>;
|
|
enable-method = "psci";
|
|
next-level-cache = <&l2>;
|
|
@@ -53,6 +54,7 @@
|
|
reg = <0x0 0x1>;
|
|
clocks = <&cru ARMCLK>;
|
|
#cooling-cells = <2>;
|
|
+ cpu-idle-states = <&CPU_SLEEP>;
|
|
dynamic-power-coefficient = <120>;
|
|
enable-method = "psci";
|
|
next-level-cache = <&l2>;
|
|
@@ -65,6 +67,7 @@
|
|
reg = <0x0 0x2>;
|
|
clocks = <&cru ARMCLK>;
|
|
#cooling-cells = <2>;
|
|
+ cpu-idle-states = <&CPU_SLEEP>;
|
|
dynamic-power-coefficient = <120>;
|
|
enable-method = "psci";
|
|
next-level-cache = <&l2>;
|
|
@@ -77,12 +80,26 @@
|
|
reg = <0x0 0x3>;
|
|
clocks = <&cru ARMCLK>;
|
|
#cooling-cells = <2>;
|
|
+ cpu-idle-states = <&CPU_SLEEP>;
|
|
dynamic-power-coefficient = <120>;
|
|
enable-method = "psci";
|
|
next-level-cache = <&l2>;
|
|
operating-points-v2 = <&cpu0_opp_table>;
|
|
};
|
|
|
|
+ idle-states {
|
|
+ entry-method = "psci";
|
|
+
|
|
+ CPU_SLEEP: cpu-sleep {
|
|
+ compatible = "arm,idle-state";
|
|
+ local-timer-stop;
|
|
+ arm,psci-suspend-param = <0x0010000>;
|
|
+ entry-latency-us = <120>;
|
|
+ exit-latency-us = <250>;
|
|
+ min-residency-us = <900>;
|
|
+ };
|
|
+ };
|
|
+
|
|
l2: l2-cache0 {
|
|
compatible = "cache";
|
|
};
|
|
--
|
|
cgit 1.2.3-1.el7
|
|
|