1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2019 Igor Pecovnik <igor@armbian.com>
4 * Copyright (C) 2020 Jayantajit Gogoi <jayanta.gogoi525@gmail.com>
5 * Copyright (C) 2020 Yu-Tung Chang <mtwget@gmail.com>
8 #include "sun8i-h3-nanopi.dtsi"
9 #include <dt-bindings/leds/common.h>
12 model = "FriendlyARM NanoPi R1";
13 compatible = "friendlyarm,nanopi-r1", "allwinner,sun8i-h3";
21 reg_gmac_3v3: gmac-3v3 {
22 compatible = "regulator-fixed";
23 regulator-name = "gmac-3v3";
24 regulator-min-microvolt = <3300000>;
25 regulator-max-microvolt = <3300000>;
26 startup-delay-us = <100000>;
28 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
31 reg_vdd_cpux: gpio-regulator {
32 compatible = "regulator-gpio";
33 regulator-name = "vdd-cpux";
34 regulator-type = "voltage";
37 regulator-min-microvolt = <1100000>;
38 regulator-max-microvolt = <1300000>;
39 regulator-ramp-delay = <50>;
40 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
46 wifi_pwrseq: wifi_pwrseq {
47 compatible = "mmc-pwrseq-simple";
48 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
50 clock-names = "ext_clock";
55 function = LED_FUNCTION_WAN;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
61 function = LED_FUNCTION_LAN;
62 color = <LED_COLOR_ID_GREEN>;
63 gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>; /* PA9 */
69 cpu-supply = <®_vdd_cpux>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&emac_rgmii_pins>;
83 phy-supply = <®_gmac_3v3>;
84 phy-handle = <&ext_rgmii_phy>;
85 phy-mode = "rgmii-id";
90 ext_rgmii_phy: ethernet-phy@7 {
91 compatible = "ethernet-phy-ieee802.3-c22";
97 vmmc-supply = <®_vcc3v3>;
98 vqmmc-supply = <®_vcc3v3>;
99 mmc-pwrseq = <&wifi_pwrseq>;
106 compatible = "brcm,bcm4329-fmac";
107 interrupt-parent = <&pio>;
108 interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
109 interrupt-names = "host-wake";
114 pinctrl-names = "default";
115 pinctrl-0 = <&mmc2_8bit_pins>;
116 vmmc-supply = <®_vcc3v3>;
117 vqmmc-supply = <®_vcc3v3>;
132 gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
137 pinctrl-names = "default";
138 pinctrl-0 = <&uart1_pins>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>;
149 compatible = "brcm,bcm43438-bt";
152 vbat-supply = <®_vcc3v3>;
153 vddio-supply = <®_vcc3v3>;
154 device-wakeup-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
155 host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
156 shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
166 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
167 usb0_vbus-supply = <®_usb0_vbus>;