Module Name: src Committed By: jmcneill Date: Sun Jan 28 18:31:41 UTC 2018
Modified Files: src/sys/arch/arm/dts: sun50i-h5-nanopi-neo-plus2.dts Log Message: Enable CPU frequency scaling and thermal sensors. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts diff -u src/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts:1.1 src/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts:1.2 --- src/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts:1.1 Sun Dec 31 00:53:29 2017 +++ src/sys/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts Sun Jan 28 18:31:41 2018 @@ -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>; + }; +};