Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SPDX-License-Identifier: (GPL-2.0+ or MIT)
- /*
- * Copyright (C) 2020 Arm Ltd.
- */
- /dts-v1/;
- #include "sun50i-h616.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/interrupt-controller/arm-gic.h>
- #include <dt-bindings/leds/common.h>
- / {
- model = "OrangePi Zero2";
- compatible = "xunlong,orangepi-zero2", "allwinner,sun50i-h616";
- aliases {
- ethernet0 = &emac0;
- serial0 = &uart0;
- };
- chosen {
- stdout-path = "serial0:115200n8";
- };
- leds {
- compatible = "gpio-leds";
- led-0 {
- function = LED_FUNCTION_POWER;
- label = "orangepi:blue:power";
- gpios = <&pio 4 19 GPIO_ACTIVE_LOW>; /* PE19 */
- default-state = "on";
- };
- };
- reg_vcc5v: vcc5v {
- /* board wide 5V supply directly from the USB-C socket */
- compatible = "regulator-fixed";
- regulator-name = "vcc-5v";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- regulator-always-on;
- };
- reg_vcc3v3: vcc3v3 {
- compatible = "regulator-fixed";
- regulator-name = "vcc3v3";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-always-on;
- };
- reg_vccio: vccio {
- compatible = "regulator-fixed";
- regulator-name = "vccio";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- enable-active-high;
- gpio = <&pio 3 22 GPIO_ACTIVE_HIGH>;
- };
- };
- &emac0 {
- pinctrl-names = "default";
- pinctrl-0 = <&ext_rgmii_pins>;
- phy-mode = "rgmii";
- phy-handle = <&ext_rgmii_phy>;
- phy-supply = <®_vcc3v3>;
- allwinner,rx-delay-ps = <3100>;
- allwinner,tx-delay-ps = <700>;
- status = "okay";
- };
- &mdio0 {
- ext_rgmii_phy: ethernet-phy@6 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <6>;
- reset-gpios = <&pio 8 6 GPIO_ACTIVE_LOW>; //PI6
- reset-assert-us = <50000>;
- reset-deassert-us = <1000>;
- };
- };
- &mmc0 {
- vmmc-supply = <®_vcc3v3>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
- bus-width = <4>;
- status = "okay";
- };
- &r_i2c {
- pinctrl-names = "default";
- pinctrl-0 = <&r_i2c_pins>;
- status = "okay";
- };
- &pio {
- vcc-pc-supply = <®_vcc3v3>;
- vcc-pf-supply = <®_vcc3v3>;
- vcc-pg-supply = <®_vcc3v3>;
- vcc-ph-supply = <®_vcc3v3>;
- vcc-pi-supply = <®_vcc3v3>;
- vcc-pe-supply = <®_vcc3v3>;
- };
- &spi0 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&spi0_pins>, <&spi0_cs0_pin>;
- flash@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <40000000>;
- };
- };
- &uart0 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart0_ph_pins>;
- status = "okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement