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

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 /*
  3  * Copyright (C) 2020 Arm Ltd.
  4  *
  5  * DT nodes common between Orange Pi Zero 2 and Orange Pi Zero 3.
  6  * Excludes PMIC nodes and properties, since they are different between the two.
  7  */
  8 
  9 #include "sun50i-h616.dtsi"
 10 
 11 #include <dt-bindings/gpio/gpio.h>
 12 #include <dt-bindings/interrupt-controller/arm-gic.h>
 13 #include <dt-bindings/leds/common.h>
 14 
 15 / {
 16         aliases {
 17                 ethernet0 = &emac0;
 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                         function = LED_FUNCTION_POWER;
 30                         color = <LED_COLOR_ID_RED>;
 31                         gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */
 32                         default-state = "on";
 33                 };
 34 
 35                 led-1 {
 36                         function = LED_FUNCTION_STATUS;
 37                         color = <LED_COLOR_ID_GREEN>;
 38                         gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
 39                 };
 40         };
 41 
 42         reg_vcc5v: vcc5v {
 43                 /* board wide 5V supply directly from the USB-C socket */
 44                 compatible = "regulator-fixed";
 45                 regulator-name = "vcc-5v";
 46                 regulator-min-microvolt = <5000000>;
 47                 regulator-max-microvolt = <5000000>;
 48                 regulator-always-on;
 49         };
 50 
 51         reg_usb1_vbus: regulator-usb1-vbus {
 52                 compatible = "regulator-fixed";
 53                 regulator-name = "usb1-vbus";
 54                 regulator-min-microvolt = <5000000>;
 55                 regulator-max-microvolt = <5000000>;
 56                 vin-supply = <&reg_vcc5v>;
 57                 enable-active-high;
 58                 gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */
 59         };
 60 };
 61 
 62 &ehci1 {
 63         status = "okay";
 64 };
 65 
 66 /* USB 2 & 3 are on headers only. */
 67 
 68 &emac0 {
 69         pinctrl-names = "default";
 70         pinctrl-0 = <&ext_rgmii_pins>;
 71         phy-handle = <&ext_rgmii_phy>;
 72         status = "okay";
 73 };
 74 
 75 &mdio0 {
 76         ext_rgmii_phy: ethernet-phy@1 {
 77                 compatible = "ethernet-phy-ieee802.3-c22";
 78                 reg = <1>;
 79         };
 80 };
 81 
 82 &mmc0 {
 83         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;  /* PF6 */
 84         bus-width = <4>;
 85         status = "okay";
 86 };
 87 
 88 &ohci1 {
 89         status = "okay";
 90 };
 91 
 92 &spi0  {
 93         status = "okay";
 94         pinctrl-names = "default";
 95         pinctrl-0 = <&spi0_pins>, <&spi0_cs0_pin>;
 96 
 97         flash@0 {
 98                 #address-cells = <1>;
 99                 #size-cells = <1>;
100                 compatible = "jedec,spi-nor";
101                 reg = <0>;
102                 spi-max-frequency = <40000000>;
103         };
104 };
105 
106 &uart0 {
107         pinctrl-names = "default";
108         pinctrl-0 = <&uart0_ph_pins>;
109         status = "okay";
110 };
111 
112 &usbotg {
113         /*
114          * PHY0 pins are connected to a USB-C socket, but a role switch
115          * is not implemented: both CC pins are pulled to GND.
116          * The VBUS pins power the device, so a fixed peripheral mode
117          * is the best choice.
118          * The board can be powered via GPIOs, in this case port0 *can*
119          * act as a host (with a cable/adapter ignoring CC), as VBUS is
120          * then provided by the GPIOs. Any user of this setup would
121          * need to adjust the DT accordingly: dr_mode set to "host",
122          * enabling OHCI0 and EHCI0.
123          */
124         dr_mode = "peripheral";
125         status = "okay";
126 };
127 
128 &usbphy {
129         usb1_vbus-supply = <&reg_usb1_vbus>;
130         status = "okay";
131 };

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