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 add cpu regulator and operating points for ...



details:   https://anonhg.NetBSD.org/src/rev/a18d617072fa
branches:  trunk
changeset: 826919:a18d617072fa
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Oct 05 13:25:33 2017 +0000

description:
add cpu regulator and operating points for nanopi neo

diffstat:

 sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts |  31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r e72f5fec8143 -r a18d617072fa sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts
--- a/sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts  Thu Oct 05 09:59:04 2017 +0000
+++ b/sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts  Thu Oct 05 13:25:33 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun8i-h3-nanopi-neo.dts,v 1.1 2017/07/13 01:17:58 jmcneill Exp $ */
+/* $NetBSD: sun8i-h3-nanopi-neo.dts,v 1.2 2017/10/05 13:25:33 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,6 +29,35 @@
 #include "../../../external/gpl2/dts/dist/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts"
 #include "sun8i-h3.dtsi"
 
+/ {
+       cpus {
+               cpu@0 {
+                       cpu-supply = <&vdd_cpu>;
+                       operating-points = <
+                               /* kHz    uV */
+                               1008000 1300000
+                               816000  1100000
+                               480000  1100000
+                               >;
+               };
+       };
+
+       vdd_cpu: reg_cpux_vset {
+               compatible = "regulator-gpio";
+
+               regulator-name = "cpux-supply";
+               regulator-min-microvolt = <1100000>;
+               regulator-max-microvolt = <1300000>;
+               regulator-boot-on;
+
+               gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>;  /* GPIOL6 */
+               states = <1300000 0x1
+                         1100000 0x0>;
+
+               enable-active-high;
+       };
+};
+
 &emac {
        phy-mode = "mii";
        phy = <&phy1>;



Home | Main Index | Thread Index | Old Index