Module Name:    src
Committed By:   jmcneill
Date:           Thu Oct  5 13:25:34 UTC 2017

Modified Files:
        src/sys/arch/arm/dts: sun8i-h3-nanopi-neo.dts

Log Message:
add cpu regulator and operating points for nanopi neo


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/dts/sun8i-h3-nanopi-neo.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/sun8i-h3-nanopi-neo.dts
diff -u src/sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts:1.1 src/sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts:1.2
--- src/sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts:1.1	Thu Jul 13 01:17:58 2017
+++ src/sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts	Thu Oct  5 13:25:33 2017
@@ -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 <jmcne...@invisible.ca>
@@ -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>;

Reply via email to