xref: /rk3399_rockchip-uboot/arch/arm/dts/sun50i-h5-orangepi-pc2.dts (revision b07d044d5bfa8c440b172eb3f8a9d537f82e21b6)
1e7bd15eaSAndre Przywara/*
2e7bd15eaSAndre Przywara * Copyright (c) 2016 ARM Ltd.
3e7bd15eaSAndre Przywara *
4e7bd15eaSAndre Przywara * This file is dual-licensed: you can use it either under the terms
5e7bd15eaSAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual
6e7bd15eaSAndre Przywara * licensing only applies to this file, and not this project as a
7e7bd15eaSAndre Przywara * whole.
8e7bd15eaSAndre Przywara *
9e7bd15eaSAndre Przywara *  a) This library is free software; you can redistribute it and/or
10e7bd15eaSAndre Przywara *     modify it under the terms of the GNU General Public License as
11e7bd15eaSAndre Przywara *     published by the Free Software Foundation; either version 2 of the
12e7bd15eaSAndre Przywara *     License, or (at your option) any later version.
13e7bd15eaSAndre Przywara *
14e7bd15eaSAndre Przywara *     This library is distributed in the hope that it will be useful,
15e7bd15eaSAndre Przywara *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16e7bd15eaSAndre Przywara *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17e7bd15eaSAndre Przywara *     GNU General Public License for more details.
18e7bd15eaSAndre Przywara *
19e7bd15eaSAndre Przywara * Or, alternatively,
20e7bd15eaSAndre Przywara *
21e7bd15eaSAndre Przywara *  b) Permission is hereby granted, free of charge, to any person
22e7bd15eaSAndre Przywara *     obtaining a copy of this software and associated documentation
23e7bd15eaSAndre Przywara *     files (the "Software"), to deal in the Software without
24e7bd15eaSAndre Przywara *     restriction, including without limitation the rights to use,
25e7bd15eaSAndre Przywara *     copy, modify, merge, publish, distribute, sublicense, and/or
26e7bd15eaSAndre Przywara *     sell copies of the Software, and to permit persons to whom the
27e7bd15eaSAndre Przywara *     Software is furnished to do so, subject to the following
28e7bd15eaSAndre Przywara *     conditions:
29e7bd15eaSAndre Przywara *
30e7bd15eaSAndre Przywara *     The above copyright notice and this permission notice shall be
31e7bd15eaSAndre Przywara *     included in all copies or substantial portions of the Software.
32e7bd15eaSAndre Przywara *
33e7bd15eaSAndre Przywara *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34e7bd15eaSAndre Przywara *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35e7bd15eaSAndre Przywara *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36e7bd15eaSAndre Przywara *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37e7bd15eaSAndre Przywara *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38e7bd15eaSAndre Przywara *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39e7bd15eaSAndre Przywara *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40e7bd15eaSAndre Przywara *     OTHER DEALINGS IN THE SOFTWARE.
41e7bd15eaSAndre Przywara */
42e7bd15eaSAndre Przywara
43e7bd15eaSAndre Przywara/dts-v1/;
44e7bd15eaSAndre Przywara
45702a3e57SJagan Teki#include "sun50i-h5.dtsi"
46e7bd15eaSAndre Przywara
47*f3339733SJagan Teki#include <dt-bindings/gpio/gpio.h>
48*f3339733SJagan Teki
49e7bd15eaSAndre Przywara/ {
50e7bd15eaSAndre Przywara	model = "OrangePi PC 2";
51e7bd15eaSAndre Przywara	compatible = "xunlong,orangepi-pc-2", "allwinner,sun50i-h5";
52e7bd15eaSAndre Przywara
53e7bd15eaSAndre Przywara	chosen {
54e7bd15eaSAndre Przywara		stdout-path = "serial0:115200n8";
55e7bd15eaSAndre Przywara	};
56e7bd15eaSAndre Przywara
57e7bd15eaSAndre Przywara	memory {
58e7bd15eaSAndre Przywara		reg = <0x40000000 0x40000000>;
59e7bd15eaSAndre Przywara	};
60e7bd15eaSAndre Przywara
61e7bd15eaSAndre Przywara	aliases {
62e7bd15eaSAndre Przywara		serial0 = &uart0;
63e7bd15eaSAndre Przywara		ethernet0 = &emac;
64e7bd15eaSAndre Przywara	};
65e7bd15eaSAndre Przywara
66e7bd15eaSAndre Przywara	soc {
67e7bd15eaSAndre Przywara		reg_vcc3v3: vcc3v3 {
68e7bd15eaSAndre Przywara			compatible = "regulator-fixed";
69e7bd15eaSAndre Przywara			regulator-name = "vcc3v3";
70e7bd15eaSAndre Przywara			regulator-min-microvolt = <3300000>;
71e7bd15eaSAndre Przywara			regulator-max-microvolt = <3300000>;
72e7bd15eaSAndre Przywara		};
73e7bd15eaSAndre Przywara	};
74e7bd15eaSAndre Przywara};
75e7bd15eaSAndre Przywara
76e7bd15eaSAndre Przywara&mmc0 {
77e7bd15eaSAndre Przywara	compatible = "allwinner,sun50i-h5-mmc",
78e7bd15eaSAndre Przywara		     "allwinner,sun50i-a64-mmc",
79e7bd15eaSAndre Przywara		     "allwinner,sun5i-a13-mmc";
80e7bd15eaSAndre Przywara	pinctrl-names = "default";
81e7bd15eaSAndre Przywara	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
82e7bd15eaSAndre Przywara	vmmc-supply = <&reg_vcc3v3>;
83e7bd15eaSAndre Przywara	bus-width = <4>;
84*f3339733SJagan Teki	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
85e7bd15eaSAndre Przywara	cd-inverted;
86e7bd15eaSAndre Przywara	status = "okay";
87e7bd15eaSAndre Przywara};
88e7bd15eaSAndre Przywara
89e7bd15eaSAndre Przywara&uart0 {
90e7bd15eaSAndre Przywara	pinctrl-names = "default";
91e7bd15eaSAndre Przywara	pinctrl-0 = <&uart0_pins_a>;
92e7bd15eaSAndre Przywara	status = "okay";
93e7bd15eaSAndre Przywara};
94e7bd15eaSAndre Przywara
95e7bd15eaSAndre Przywara&usbphy {
96e7bd15eaSAndre Przywara	status = "okay";
97e7bd15eaSAndre Przywara};
98e7bd15eaSAndre Przywara
99e7bd15eaSAndre Przywara&ohci1 {
100e7bd15eaSAndre Przywara	status = "okay";
101e7bd15eaSAndre Przywara};
102e7bd15eaSAndre Przywara
103e7bd15eaSAndre Przywara&ehci1 {
104e7bd15eaSAndre Przywara	status = "okay";
105e7bd15eaSAndre Przywara};
106e7bd15eaSAndre Przywara
107e7bd15eaSAndre Przywara&emac {
108e7bd15eaSAndre Przywara	pinctrl-names = "default";
109e7bd15eaSAndre Przywara	pinctrl-0 = <&emac_rgmii_pins>;
110e7bd15eaSAndre Przywara	phy-mode = "rgmii";
111e7bd15eaSAndre Przywara	phy = <&phy1>;
112e7bd15eaSAndre Przywara	status = "okay";
113e7bd15eaSAndre Przywara
114e7bd15eaSAndre Przywara	phy1: ethernet-phy@1 {
115e7bd15eaSAndre Przywara		reg = <1>;
116e7bd15eaSAndre Przywara	};
117e7bd15eaSAndre Przywara};
118