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

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm/allwinner/sun8i-h2-plus-orangepi-zero.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 ] ~

Diff markup

Differences between /scripts/dtc/include-prefixes/arm/allwinner/sun8i-h2-plus-orangepi-zero.dts (Architecture i386) and /scripts/dtc/include-prefixes/arm/allwinner/sun8i-h2-plus-orangepi-zero.dts (Architecture sparc64)


  1 /*                                                  1 /*
  2  * Copyright (C) 2016 Icenowy Zheng <icenowy@ao      2  * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
  3  *                                                  3  *
  4  * Based on sun8i-h3-orangepi-one.dts, which i      4  * Based on sun8i-h3-orangepi-one.dts, which is:
  5  *   Copyright (C) 2016 Hans de Goede <hdegoede      5  *   Copyright (C) 2016 Hans de Goede <hdegoede@redhat.com>
  6  *                                                  6  *
  7  * This file is dual-licensed: you can use it       7  * This file is dual-licensed: you can use it either under the terms
  8  * of the GPL or the X11 license, at your opti      8  * of the GPL or the X11 license, at your option. Note that this dual
  9  * licensing only applies to this file, and no      9  * licensing only applies to this file, and not this project as a
 10  * whole.                                          10  * whole.
 11  *                                                 11  *
 12  *  a) This file is free software; you can red     12  *  a) This file is free software; you can redistribute it and/or
 13  *     modify it under the terms of the GNU Ge     13  *     modify it under the terms of the GNU General Public License as
 14  *     published by the Free Software Foundati     14  *     published by the Free Software Foundation; either version 2 of the
 15  *     License, or (at your option) any later      15  *     License, or (at your option) any later version.
 16  *                                                 16  *
 17  *     This file is distributed in the hope th     17  *     This file is distributed in the hope that it will be useful,
 18  *     but WITHOUT ANY WARRANTY; without even      18  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 19  *     MERCHANTABILITY or FITNESS FOR A PARTIC     19  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 20  *     GNU General Public License for more det     20  *     GNU General Public License for more details.
 21  *                                                 21  *
 22  * Or, alternatively,                              22  * Or, alternatively,
 23  *                                                 23  *
 24  *  b) Permission is hereby granted, free of c     24  *  b) Permission is hereby granted, free of charge, to any person
 25  *     obtaining a copy of this software and a     25  *     obtaining a copy of this software and associated documentation
 26  *     files (the "Software"), to deal in the      26  *     files (the "Software"), to deal in the Software without
 27  *     restriction, including without limitati     27  *     restriction, including without limitation the rights to use,
 28  *     copy, modify, merge, publish, distribut     28  *     copy, modify, merge, publish, distribute, sublicense, and/or
 29  *     sell copies of the Software, and to per     29  *     sell copies of the Software, and to permit persons to whom the
 30  *     Software is furnished to do so, subject     30  *     Software is furnished to do so, subject to the following
 31  *     conditions:                                 31  *     conditions:
 32  *                                                 32  *
 33  *     The above copyright notice and this per     33  *     The above copyright notice and this permission notice shall be
 34  *     included in all copies or substantial p     34  *     included in all copies or substantial portions of the Software.
 35  *                                                 35  *
 36  *     THE SOFTWARE IS PROVIDED "AS IS", WITHO     36  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 37  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT L     37  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 38  *     OF MERCHANTABILITY, FITNESS FOR A PARTI     38  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 39  *     NONINFRINGEMENT. IN NO EVENT SHALL THE      39  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 40  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE     40  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 41  *     WHETHER IN AN ACTION OF CONTRACT, TORT      41  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 42  *     FROM, OUT OF OR IN CONNECTION WITH THE      42  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 43  *     OTHER DEALINGS IN THE SOFTWARE.             43  *     OTHER DEALINGS IN THE SOFTWARE.
 44  */                                                44  */
 45                                                    45 
 46 /dts-v1/;                                          46 /dts-v1/;
 47 #include "sun8i-h3.dtsi"                           47 #include "sun8i-h3.dtsi"
 48 #include "sunxi-common-regulators.dtsi"            48 #include "sunxi-common-regulators.dtsi"
 49                                                    49 
 50 #include <dt-bindings/gpio/gpio.h>                 50 #include <dt-bindings/gpio/gpio.h>
 51 #include <dt-bindings/input/input.h>               51 #include <dt-bindings/input/input.h>
 52                                                    52 
 53 / {                                                53 / {
 54         model = "Xunlong Orange Pi Zero";          54         model = "Xunlong Orange Pi Zero";
 55         compatible = "xunlong,orangepi-zero",      55         compatible = "xunlong,orangepi-zero", "allwinner,sun8i-h2-plus";
 56                                                    56 
 57         aliases {                                  57         aliases {
 58                 serial0 = &uart0;                  58                 serial0 = &uart0;
 59                 /* ethernet0 is the H3 emac, d     59                 /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
 60                 ethernet0 = &emac;                 60                 ethernet0 = &emac;
 61                 ethernet1 = &xr819;                61                 ethernet1 = &xr819;
 62         };                                         62         };
 63                                                    63 
 64         chosen {                                   64         chosen {
 65                 stdout-path = "serial0:115200n     65                 stdout-path = "serial0:115200n8";
 66         };                                         66         };
 67                                                    67 
 68         leds {                                     68         leds {
 69                 compatible = "gpio-leds";          69                 compatible = "gpio-leds";
 70                                                    70 
 71                 pwr_led {                          71                 pwr_led {
 72                         label = "orangepi:gree     72                         label = "orangepi:green:pwr";
 73                         gpios = <&r_pio 0 10 G     73                         gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
 74                         default-state = "on";      74                         default-state = "on";
 75                 };                                 75                 };
 76                                                    76 
 77                 status_led {                       77                 status_led {
 78                         label = "orangepi:red:     78                         label = "orangepi:red:status";
 79                         gpios = <&pio 0 17 GPI     79                         gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>;
 80                 };                                 80                 };
 81         };                                         81         };
 82                                                    82 
 83         reg_vcc_wifi: reg-vcc-wifi {               83         reg_vcc_wifi: reg-vcc-wifi {
 84                 compatible = "regulator-fixed"     84                 compatible = "regulator-fixed";
 85                 regulator-min-microvolt = <330     85                 regulator-min-microvolt = <3300000>;
 86                 regulator-max-microvolt = <330     86                 regulator-max-microvolt = <3300000>;
 87                 regulator-name = "vcc-wifi";       87                 regulator-name = "vcc-wifi";
 88                 enable-active-high;                88                 enable-active-high;
 89                 gpio = <&pio 0 20 GPIO_ACTIVE_     89                 gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
 90         };                                         90         };
 91                                                    91 
 92         reg_vdd_cpux: vdd-cpux-regulator {         92         reg_vdd_cpux: vdd-cpux-regulator {
 93                 compatible = "regulator-gpio";     93                 compatible = "regulator-gpio";
 94                 regulator-name = "vdd-cpux";       94                 regulator-name = "vdd-cpux";
 95                 regulator-type = "voltage";        95                 regulator-type = "voltage";
 96                 regulator-boot-on;                 96                 regulator-boot-on;
 97                 regulator-always-on;               97                 regulator-always-on;
 98                 regulator-min-microvolt = <110     98                 regulator-min-microvolt = <1100000>;
 99                 regulator-max-microvolt = <130     99                 regulator-max-microvolt = <1300000>;
100                 regulator-ramp-delay = <50>; /    100                 regulator-ramp-delay = <50>; /* 4ms */
101                                                   101 
102                 gpios = <&r_pio 0 6 GPIO_ACTIV    102                 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
103                 enable-active-high;               103                 enable-active-high;
104                 gpios-states = <1>;               104                 gpios-states = <1>;
105                 states = <1100000 0>, <1300000    105                 states = <1100000 0>, <1300000 1>;
106         };                                        106         };
107                                                   107 
108         wifi_pwrseq: pwrseq {                     108         wifi_pwrseq: pwrseq {
109                 compatible = "mmc-pwrseq-simpl    109                 compatible = "mmc-pwrseq-simple";
110                 reset-gpios = <&r_pio 0 7 GPIO    110                 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>;
111                 post-power-on-delay-ms = <200>    111                 post-power-on-delay-ms = <200>;
112         };                                        112         };
113 };                                                113 };
114                                                   114 
115 &cpu0 {                                           115 &cpu0 {
116         cpu-supply = <&reg_vdd_cpux>;             116         cpu-supply = <&reg_vdd_cpux>;
117 };                                                117 };
118                                                   118 
119 &ehci0 {                                          119 &ehci0 {
120         status = "okay";                          120         status = "okay";
121 };                                                121 };
122                                                   122 
123 &ehci1 {                                          123 &ehci1 {
124         status = "okay";                          124         status = "okay";
125 };                                                125 };
126                                                   126 
127 &emac {                                           127 &emac {
128         phy-handle = <&int_mii_phy>;              128         phy-handle = <&int_mii_phy>;
129         phy-mode = "mii";                         129         phy-mode = "mii";
130         allwinner,leds-active-low;                130         allwinner,leds-active-low;
131         status = "okay";                          131         status = "okay";
132 };                                                132 };
133                                                   133 
134 &mmc0 {                                           134 &mmc0 {
135         vmmc-supply = <&reg_vcc3v3>;              135         vmmc-supply = <&reg_vcc3v3>;
136         bus-width = <4>;                          136         bus-width = <4>;
137         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;    137         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
138         status = "okay";                          138         status = "okay";
139 };                                                139 };
140                                                   140 
141 &mmc1 {                                           141 &mmc1 {
142         vmmc-supply = <&reg_vcc_wifi>;            142         vmmc-supply = <&reg_vcc_wifi>;
143         mmc-pwrseq = <&wifi_pwrseq>;              143         mmc-pwrseq = <&wifi_pwrseq>;
144         bus-width = <4>;                          144         bus-width = <4>;
145         non-removable;                            145         non-removable;
146         status = "okay";                          146         status = "okay";
147                                                   147 
148         /*                                        148         /*
149          * Explicitly define the sdio device,     149          * Explicitly define the sdio device, so that we can add an ethernet
150          * alias for it (which e.g. makes u-bo    150          * alias for it (which e.g. makes u-boot set a mac-address).
151          */                                       151          */
152         xr819: wifi@1 {                           152         xr819: wifi@1 {
153                 reg = <1>;                        153                 reg = <1>;
154         };                                        154         };
155 };                                                155 };
156                                                   156 
157 &ohci0 {                                          157 &ohci0 {
158         status = "okay";                          158         status = "okay";
159 };                                                159 };
160                                                   160 
161 &ohci1 {                                          161 &ohci1 {
162         status = "okay";                          162         status = "okay";
163 };                                                163 };
164                                                   164 
165 &spi0 {                                           165 &spi0 {
166         /* Disable SPI NOR by default: it opti    166         /* Disable SPI NOR by default: it optional on Orange Pi Zero boards */
167         status = "disabled";                      167         status = "disabled";
168                                                   168 
169         flash@0 {                                 169         flash@0 {
170                 #address-cells = <1>;             170                 #address-cells = <1>;
171                 #size-cells = <1>;                171                 #size-cells = <1>;
172                 compatible = "mxicy,mx25l1606e    172                 compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
173                 reg = <0>;                        173                 reg = <0>;
174                 spi-max-frequency = <40000000>    174                 spi-max-frequency = <40000000>;
175         };                                        175         };
176 };                                                176 };
177                                                   177 
178 &uart0 {                                          178 &uart0 {
179         pinctrl-names = "default";                179         pinctrl-names = "default";
180         pinctrl-0 = <&uart0_pa_pins>;             180         pinctrl-0 = <&uart0_pa_pins>;
181         status = "okay";                          181         status = "okay";
182 };                                                182 };
183                                                   183 
184 &uart1 {                                          184 &uart1 {
185         pinctrl-names = "default";                185         pinctrl-names = "default";
186         pinctrl-0 = <&uart1_pins>;                186         pinctrl-0 = <&uart1_pins>;
187         status = "disabled";                      187         status = "disabled";
188 };                                                188 };
189                                                   189 
190 &uart2 {                                          190 &uart2 {
191         pinctrl-names = "default";                191         pinctrl-names = "default";
192         pinctrl-0 = <&uart2_pins>;                192         pinctrl-0 = <&uart2_pins>;
193         status = "disabled";                      193         status = "disabled";
194 };                                                194 };
195                                                   195 
196 &usb_otg {                                        196 &usb_otg {
197         dr_mode = "peripheral";                   197         dr_mode = "peripheral";
198         status = "okay";                          198         status = "okay";
199 };                                                199 };
200                                                   200 
201 &usbphy {                                         201 &usbphy {
202         /*                                        202         /*
203          * USB Type-A port VBUS is always on.     203          * USB Type-A port VBUS is always on. However, MicroUSB VBUS can only
204          * power up the board; when it's used     204          * power up the board; when it's used as OTG port, this VBUS is
205          * always off even if the board is pow    205          * always off even if the board is powered via GPIO pins.
206          */                                       206          */
207         status = "okay";                          207         status = "okay";
208         usb0_id_det-gpios = <&pio 6 12 GPIO_AC    208         usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
209 };                                                209 };
                                                      

~ [ 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