~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 // Copyright (C) 2017 Antony Antony <antony@phenome.org>
  3 // Copyright (C) 2016 ARM Ltd.
  4 
  5 /dts-v1/;
  6 #include "sun50i-h5.dtsi"
  7 
  8 #include <dt-bindings/gpio/gpio.h>
  9 #include <dt-bindings/input/input.h>
 10 #include <dt-bindings/pinctrl/sun4i-a10.h>
 11 
 12 / {
 13         model = "FriendlyARM NanoPi NEO Plus2";
 14         compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
 15 
 16         aliases {
 17                 ethernet0 = &emac;
 18                 serial0 = &uart0;
 19         };
 20 
 21         chosen {
 22                 stdout-path = "serial0:115200n8";
 23         };
 24 
 25         leds {
 26                 compatible = "gpio-leds";
 27 
 28                 led-0 {
 29                         label = "nanopi:green:pwr";
 30                         gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
 31                         default-state = "on";
 32                 };
 33 
 34                 led-1 {
 35                         label = "nanopi:red:status";
 36                         gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
 37                 };
 38         };
 39 
 40         reg_gmac_3v3: gmac-3v3 {
 41                 compatible = "regulator-fixed";
 42                 regulator-name = "gmac-3v3";
 43                 regulator-min-microvolt = <3300000>;
 44                 regulator-max-microvolt = <3300000>;
 45                 startup-delay-us = <100000>;
 46                 enable-active-high;
 47                 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
 48                 vin-supply = <&reg_vcc3v3>;
 49         };
 50 
 51         reg_gmac_2v5: gmac-2v5 {
 52                 /* 2V5 supply for GMAC PHY IO */
 53                 compatible = "regulator-fixed";
 54                 regulator-name = "gmac-2v5";
 55                 regulator-min-microvolt = <2500000>;
 56                 regulator-max-microvolt = <2500000>;
 57                 regulator-always-on;
 58                 vin-supply = <&reg_vcc3v3>;
 59         };
 60 
 61         reg_vcc5v: regulator-vcc5v {
 62                 /* board 5V supply from micro USB or pin headers */
 63                 compatible = "regulator-fixed";
 64                 regulator-name = "vcc-5v";
 65                 regulator-min-microvolt = <5000000>;
 66                 regulator-max-microvolt = <5000000>;
 67                 regulator-always-on;
 68         };
 69 
 70         reg_vcc3v3: vcc3v3 {
 71                 /* board 3V3 supply by SY8089A */
 72                 compatible = "regulator-fixed";
 73                 regulator-name = "vcc3v3";
 74                 regulator-min-microvolt = <3300000>;
 75                 regulator-max-microvolt = <3300000>;
 76                 regulator-always-on;
 77                 vin-supply = <&reg_vcc5v>;
 78         };
 79 
 80         vdd_cpux: gpio-regulator {
 81                 /* cpu voltage regulator MP2143DJ */
 82                 compatible = "regulator-gpio";
 83                 regulator-name = "vdd-cpux";
 84                 regulator-type = "voltage";
 85                 regulator-boot-on;
 86                 regulator-always-on;
 87                 regulator-min-microvolt = <1100000>;
 88                 regulator-max-microvolt = <1300000>;
 89                 regulator-ramp-delay = <50>; /* 4ms */
 90                 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>;
 91                 gpios-states = <0x1>;
 92                 states = <1100000 0>, <1300000 1>;
 93                 vin-supply = <&reg_vcc5v>;
 94         };
 95 
 96         wifi_pwrseq: pwrseq {
 97                 compatible = "mmc-pwrseq-simple";
 98                 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
 99                 post-power-on-delay-ms = <200>;
100         };
101 };
102 
103 &codec {
104         allwinner,audio-routing =
105                 "Line Out", "LINEOUT",
106                 "MIC1", "Mic",
107                 "Mic",  "MBIAS";
108         status = "okay";
109 };
110 
111 &ehci0 {
112         status = "okay";
113 };
114 
115 &ehci3 {
116         status = "okay";
117 };
118 
119 &emac {
120         pinctrl-names = "default";
121         pinctrl-0 = <&emac_rgmii_pins>;
122         phy-supply = <&reg_gmac_3v3>;
123         phy-handle = <&ext_rgmii_phy>;
124         phy-mode = "rgmii-id";
125         status = "okay";
126 };
127 
128 &external_mdio {
129         ext_rgmii_phy: ethernet-phy@7 {
130                 compatible = "ethernet-phy-ieee802.3-c22";
131                 reg = <7>;
132         };
133 };
134 
135 &mmc0 {
136         vmmc-supply = <&reg_vcc3v3>;
137         bus-width = <4>;
138         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
139         status = "okay";
140 };
141 
142 &mmc1 {
143         vmmc-supply = <&reg_vcc3v3>;
144         vqmmc-supply = <&reg_vcc3v3>;
145         mmc-pwrseq = <&wifi_pwrseq>;
146         bus-width = <4>;
147         non-removable;
148         status = "okay";
149 
150         brcmf: wifi@1 {
151                 reg = <1>;
152                 compatible = "brcm,bcm4329-fmac";
153         };
154 };
155 
156 &mmc2 {
157         pinctrl-names = "default";
158         pinctrl-0 = <&mmc2_8bit_pins>;
159         vmmc-supply = <&reg_vcc3v3>;
160         bus-width = <8>;
161         non-removable;
162         cap-mmc-hw-reset;
163         status = "okay";
164 };
165 
166 &ohci0 {
167         status = "okay";
168 };
169 
170 &ohci3 {
171         status = "okay";
172 };
173 
174 &pio {
175         vcc-pa-supply = <&reg_vcc3v3>;
176         vcc-pc-supply = <&reg_vcc3v3>;
177         vcc-pd-supply = <&reg_gmac_2v5>;
178         vcc-pf-supply = <&reg_vcc3v3>;
179         vcc-pg-supply = <&reg_vcc3v3>;
180 };
181 
182 &r_pio {
183         vcc-pl-supply = <&reg_vcc3v3>;
184 };
185 
186 &uart0 {
187         pinctrl-names = "default";
188         pinctrl-0 = <&uart0_pa_pins>;
189         status = "okay";
190 };
191 
192 &usb_otg {
193         dr_mode = "host";
194         status = "okay";
195 };
196 
197 &usbphy {
198         /* USB Type-A ports' VBUS is always on */
199         status = "okay";
200 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php