mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-27 09:11:49 +00:00
130 lines
2.8 KiB
Diff
130 lines
2.8 KiB
Diff
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts
|
|
index 22b99b40..cc4e5398 100644
|
|
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts
|
|
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts
|
|
@@ -47,6 +47,7 @@
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
+#include <dt-bindings/thermal/thermal.h>
|
|
|
|
/ {
|
|
model = "Xunlong Orange Pi Lite";
|
|
@@ -90,6 +91,82 @@
|
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
+
|
|
+ wifi_pwrseq: wifi_pwrseq {
|
|
+ compatible = "mmc-pwrseq-simple";
|
|
+ reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 WIFI_EN */
|
|
+ };
|
|
+
|
|
+ vdd_cpux: gpio-regulator {
|
|
+ compatible = "regulator-gpio";
|
|
+ regulator-name = "vdd-cpux";
|
|
+ regulator-type = "voltage";
|
|
+ regulator-boot-on;
|
|
+ regulator-always-on;
|
|
+ regulator-min-microvolt = <1100000>;
|
|
+ regulator-max-microvolt = <1300000>;
|
|
+ regulator-ramp-delay = <50>; /* 4ms */
|
|
+ gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>;
|
|
+ gpios-states = <0x1>;
|
|
+ states = <1100000 0x0
|
|
+ 1300000 0x1>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&cpu0 {
|
|
+ operating-points = <
|
|
+ 1008000 1300000
|
|
+ 816000 1100000
|
|
+ 624000 1100000
|
|
+ 480000 1100000
|
|
+ 312000 1100000
|
|
+ 240000 1100000
|
|
+ 120000 1100000
|
|
+ >;
|
|
+ #cooling-cells = <2>;
|
|
+ cooling-min-level = <0>;
|
|
+ cooling-max-level = <6>;
|
|
+ cpu0-supply = <&vdd_cpux>;
|
|
+};
|
|
+
|
|
+&cpu_thermal {
|
|
+ trips {
|
|
+ cpu_warm: cpu_warm {
|
|
+ temperature = <65000>;
|
|
+ hysteresis = <2000>;
|
|
+ type = "passive";
|
|
+ };
|
|
+ cpu_hot: cpu_hot {
|
|
+ temperature = <75000>;
|
|
+ hysteresis = <2000>;
|
|
+ type = "passive";
|
|
+ };
|
|
+ cpu_very_hot: cpu_very_hot {
|
|
+ temperature = <90000>;
|
|
+ hysteresis = <2000>;
|
|
+ type = "passive";
|
|
+ };
|
|
+ cpu_crit: cpu_crit {
|
|
+ temperature = <105000>;
|
|
+ hysteresis = <2000>;
|
|
+ type = "critical";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cooling-maps {
|
|
+ cpu_warm_limit_cpu {
|
|
+ trip = <&cpu_warm>;
|
|
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT 1>;
|
|
+ };
|
|
+ cpu_hot_limit_cpu {
|
|
+ trip = <&cpu_hot>;
|
|
+ cooling-device = <&cpu0 2 3>;
|
|
+ };
|
|
+ cpu_very_hot_limit_cpu {
|
|
+ trip = <&cpu_very_hot>;
|
|
+ cooling-device = <&cpu0 5 THERMAL_NO_LIMIT>;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&ehci1 {
|
|
@@ -120,6 +197,7 @@
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mmc1_pins_a>;
|
|
vmmc-supply = <®_vcc3v3>;
|
|
+ mmc-pwrseq = <&wifi_pwrseq>;
|
|
bus-width = <4>;
|
|
non-removable;
|
|
status = "okay";
|
|
@@ -160,13 +238,25 @@
|
|
};
|
|
};
|
|
|
|
+®_usb0_vbus {
|
|
+ gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&uart0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart0_pins_a>;
|
|
status = "okay";
|
|
};
|
|
|
|
+&usb_otg {
|
|
+ dr_mode = "otg";
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&usbphy {
|
|
- /* USB VBUS is always on */
|
|
+ /* USB VBUS is always on except for the OTG port */
|
|
status = "okay";
|
|
+ usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
|
+ usb0_vbus-supply = <®_usb0_vbus>;
|
|
};
|