Debian Codegraph @

scripts/dtc/include-prefixes/arm64/allwinner/sun50i-h5-orangepi-zero-plus.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2016 ARM Ltd.
3 // Copyright (C) 2018 Hauke Mehrtens <[email protected]>
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 = "Xunlong Orange Pi Zero Plus";
14 compatible = "xunlong,orangepi-zero-plus", "allwinner,sun50i-h5";
15
16 reg_vcc3v3: vcc3v3 {
17 compatible = "regulator-fixed";
18 regulator-name = "vcc3v3";
19 regulator-min-microvolt = <3300000>;
20 regulator-max-microvolt = <3300000>;
21 };
22
23 aliases {
24 ethernet0 = &emac;
25 ethernet1 = &rtl8189ftv;
26 serial0 = &uart0;
27 };
28
29 chosen {
30 stdout-path = "serial0:115200n8";
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led-0 {
37 label = "orangepi:green:pwr";
38 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
39 default-state = "on";
40 };
41
42 led-1 {
43 label = "orangepi:red:status";
44 gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */
45 };
46 };
47
48 reg_gmac_3v3: gmac-3v3 {
49 compatible = "regulator-fixed";
50 regulator-name = "gmac-3v3";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 startup-delay-us = <100000>;
54 enable-active-high;
55 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
56 };
57 };
58
59 &ehci0 {
60 status = "okay";
61 };
62
63 &ehci1 {
64 status = "okay";
65 };
66
67 &emac {
68 pinctrl-names = "default";
69 pinctrl-0 = <&emac_rgmii_pins>;
70 phy-supply = <&reg_gmac_3v3>;
71 phy-handle = <&ext_rgmii_phy>;
72 phy-mode = "rgmii-id";
73 status = "okay";
74 };
75
76 &external_mdio {
77 ext_rgmii_phy: ethernet-phy@1 {
78 compatible = "ethernet-phy-ieee802.3-c22";
79 reg = <1>;
80 };
81 };
82
83 &mmc0 {
84 vmmc-supply = <&reg_vcc3v3>;
85 disable-wp;
86 bus-width = <4>;
87 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
88 status = "okay";
89 };
90
91 &mmc1 {
92 vmmc-supply = <&reg_vcc3v3>;
93 bus-width = <4>;
94 non-removable;
95 status = "okay";
96
97 /*
98 * Explicitly define the sdio device, so that we can add an ethernet
99 * alias for it (which e.g. makes u-boot set a mac-address).
100 */
101 rtl8189ftv: wifi@1 {
102 reg = <1>;
103 };
104 };
105
106 &spi0 {
107 status = "okay";
108
109 flash@0 {
110 #address-cells = <1>;
111 #size-cells = <1>;
112 compatible = "mxicy,mx25l1606e", "winbond,w25q128";
113 reg = <0>;
114 spi-max-frequency = <40000000>;
115 };
116 };
117
118 &ohci0 {
119 status = "okay";
120 };
121
122 &ohci1 {
123 status = "okay";
124 };
125
126 &uart0 {
127 pinctrl-names = "default";
128 pinctrl-0 = <&uart0_pa_pins>;
129 status = "okay";
130 };
131
132 &usb_otg {
133 dr_mode = "peripheral";
134 status = "okay";
135 };
136
137 &usbphy {
138 /* USB Type-A ports' VBUS is always on */
139 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
140 status = "okay";
141 };