1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2019 Karl Palsson <karlp@tweak.net.au>
7 #include "sun8i-h3.dtsi"
8 #include "sunxi-common-regulators.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
14 model = "FriendlyARM NanoPi Duo2";
15 compatible = "friendlyarm,nanopi-duo2", "allwinner,sun8i-h3";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-leds";
29 label = "nanopi:red:pwr";
30 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
35 label = "nanopi:green:status";
36 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
41 compatible = "gpio-keys";
46 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */
50 reg_vdd_cpux: vdd-cpux-regulator {
51 compatible = "regulator-gpio";
52 regulator-name = "vdd-cpux";
53 regulator-min-microvolt = <1100000>;
54 regulator-max-microvolt = <1300000>;
57 regulator-ramp-delay = <50>; /* 4ms */
60 enable-gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
61 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
63 states = <1100000 0>, <1300000 1>;
66 reg_vcc_dram: vcc-dram {
67 compatible = "regulator-fixed";
68 regulator-name = "vcc-dram";
69 regulator-min-microvolt = <1500000>;
70 regulator-max-microvolt = <1500000>;
74 gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
75 vin-supply = <®_vcc5v0>;
78 reg_vdd_sys: vdd-sys {
79 compatible = "regulator-fixed";
80 regulator-name = "vdd-sys";
81 regulator-min-microvolt = <1200000>;
82 regulator-max-microvolt = <1200000>;
86 gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
87 vin-supply = <®_vcc5v0>;
90 wifi_pwrseq: wifi_pwrseq {
91 compatible = "mmc-pwrseq-simple";
92 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
94 clock-names = "ext_clock";
100 cpu-supply = <®_vdd_cpux>;
109 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
111 vmmc-supply = <®_vcc3v3>;
115 vmmc-supply = <®_vcc3v3>;
116 vqmmc-supply = <®_vcc3v3>;
117 mmc-pwrseq = <&wifi_pwrseq>;
122 sdio_wifi: sdio_wifi@1 {
124 compatible = "brcm,bcm4329-fmac";
125 interrupt-parent = <&pio>;
126 interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
127 interrupt-names = "host-wake";
136 gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
141 pinctrl-names = "default";
142 pinctrl-0 = <&uart0_pa_pins>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&uart2_pins>, <&uart2_rts_cts_pins>;
153 compatible = "brcm,bcm43438-bt";
156 vbat-supply = <®_vcc3v3>;
157 vddio-supply = <®_vcc3v3>;
158 device-wakeup-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
159 host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
160 shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
170 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
171 usb0_vbus-supply = <®_usb0_vbus>;