Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/dts Enable CPU frequency scaling and thermal se...



details:   https://anonhg.NetBSD.org/src/rev/19c4fd94c8f6
branches:  trunk
changeset: 829395:19c4fd94c8f6
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jan 28 18:31:41 2018 +0000

description:
Enable CPU frequency scaling and thermal sensors.

diffstat:

 sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts |  26 ++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r ad23fe7f2c2b -r 19c4fd94c8f6 sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
--- a/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts   Sun Jan 28 18:31:15 2018 +0000
+++ b/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts   Sun Jan 28 18:31:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun50i-h5-nanopi-neo-plus2.dts,v 1.1 2017/12/31 00:53:29 jakllsch Exp $ */
+/* $NetBSD: sun50i-h5-nanopi-neo-plus2.dts,v 1.2 2018/01/28 18:31:41 jmcneill Exp $ */
 
 /*
  * &emac and &external_mdio portions lifted from
@@ -49,6 +49,7 @@
  */
 
 #include "../../../external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts"
+#include "sun50i-h5.dtsi"
 
 &emac {
        pinctrl-names = "default";
@@ -65,3 +66,26 @@
                reg = <7>;
        };
 };
+
+/ {
+       cpus {
+               cpu@0 {
+                       cpu-supply = <&vcc_cpux>;
+                       operating-points = <
+                               /* kHz    uV */
+                               1152000 1100000
+                               1104000 1100000
+                               1008000 1100000
+                               816000  1100000
+                               624000  1100000
+                               >;
+               };
+       };
+
+       vcc_cpux: reg_vcc_cpux {
+               compatible = "regulator-fixed";
+               regulator-name = "cpux-1v1";
+               regulator-min-microvolt = <1100000>;
+               regulator-max-microvolt = <1100000>;
+       };
+};



Home | Main Index | Thread Index | Old Index