1 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
3 * Copyright (C) 2023 Martin Botka <martin.botka@somainline.org>.
8 #include "sun50i-h616.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/leds/common.h>
16 ethernet0 = &rtl8189ftv;
20 compatible = "gpio-leds";
23 function = LED_FUNCTION_STATUS;
24 color = <LED_COLOR_ID_GREEN>;
25 gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
29 reg_vcc5v: regulator-vcc5v {
30 /* board wide 5V supply from carrier boards */
31 compatible = "regulator-fixed";
32 regulator-name = "vcc-5v";
33 regulator-min-microvolt = <5000000>;
34 regulator-max-microvolt = <5000000>;
38 reg_vcc33_wifi: vcc33-wifi {
39 compatible = "regulator-fixed";
40 regulator-name = "vcc33-wifi";
41 regulator-min-microvolt = <3300000>;
42 regulator-max-microvolt = <3300000>;
44 vin-supply = <®_vcc5v>;
47 reg_vcc_wifi_io: vcc-wifi-io {
48 compatible = "regulator-fixed";
49 regulator-name = "vcc-wifi-io";
50 regulator-min-microvolt = <1800000>;
51 regulator-max-microvolt = <1800000>;
53 vin-supply = <®_vcc33_wifi>;
56 wifi_pwrseq: wifi-pwrseq {
57 compatible = "mmc-pwrseq-simple";
59 clock-names = "ext_clock";
60 reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
61 post-power-on-delay-ms = <200>;
66 vmmc-supply = <®_dldo1>;
67 /* Card detection pin is not connected */
74 vmmc-supply = <®_vcc33_wifi>;
75 vqmmc-supply = <®_vcc_wifi_io>;
76 mmc-pwrseq = <&wifi_pwrseq>;
91 compatible = "x-powers,axp313a";
94 #interrupt-cells = <1>;
98 regulator-name = "vdd-gpu-sys";
99 regulator-min-microvolt = <810000>;
100 regulator-max-microvolt = <990000>;
105 regulator-name = "vdd-cpu";
106 regulator-min-microvolt = <810000>;
107 regulator-max-microvolt = <1100000>;
108 regulator-ramp-delay = <200>;
113 regulator-name = "vcc-dram";
114 regulator-min-microvolt = <1350000>;
115 regulator-max-microvolt = <1500000>;
120 regulator-name = "vcc-1v8-pll";
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <1800000>;
127 regulator-name = "vcc-3v3-io";
128 regulator-min-microvolt = <3300000>;
129 regulator-max-microvolt = <3300000>;