xref: /openbmc/u-boot/arch/arm/dts/armada-3720-turris-mox.dts (revision 80af1a9ef6c81db3d8b1bd8a73ab6a94ed20a1ea)
1*80af1a9eSMarek Behún// SPDX-License-Identifier: GPL-2.0+ or X11
2*80af1a9eSMarek Behún/*
3*80af1a9eSMarek Behún * Device Tree file for CZ.NIC Turris Mox Board
4*80af1a9eSMarek Behún * 2018 by Marek Behun <marek.behun@nic.cz>
5*80af1a9eSMarek Behún *
6*80af1a9eSMarek Behún * Based on armada-3720-espressobin.dts by:
7*80af1a9eSMarek Behún *   Gregory CLEMENT <gregory.clement@free-electrons.com>
8*80af1a9eSMarek Behún *   Konstantin Porotchkin <kostap@marvell.com>
9*80af1a9eSMarek Behún */
10*80af1a9eSMarek Behún
11*80af1a9eSMarek Behún/dts-v1/;
12*80af1a9eSMarek Behún
13*80af1a9eSMarek Behún#include <dt-bindings/gpio/gpio.h>
14*80af1a9eSMarek Behún#include "armada-372x.dtsi"
15*80af1a9eSMarek Behún
16*80af1a9eSMarek Behún/ {
17*80af1a9eSMarek Behún	model = "CZ.NIC Turris Mox Board";
18*80af1a9eSMarek Behún	compatible = "cznic,turris-mox", "marvell,armada3720",
19*80af1a9eSMarek Behún		     "marvell,armada3710";
20*80af1a9eSMarek Behún
21*80af1a9eSMarek Behún	chosen {
22*80af1a9eSMarek Behún		stdout-path = "serial0:115200n8";
23*80af1a9eSMarek Behún	};
24*80af1a9eSMarek Behún
25*80af1a9eSMarek Behún	aliases {
26*80af1a9eSMarek Behún		ethernet0 = &eth0;
27*80af1a9eSMarek Behún		i2c0 = &i2c0;
28*80af1a9eSMarek Behún		spi0 = &spi0;
29*80af1a9eSMarek Behún	};
30*80af1a9eSMarek Behún
31*80af1a9eSMarek Behún	memory {
32*80af1a9eSMarek Behún		device_type = "memory";
33*80af1a9eSMarek Behún		reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
34*80af1a9eSMarek Behún	};
35*80af1a9eSMarek Behún
36*80af1a9eSMarek Behún	reg_usb3_vbus: usb3_vbus@0 {
37*80af1a9eSMarek Behún		compatible = "regulator-fixed";
38*80af1a9eSMarek Behún		regulator-name = "usb3-vbus";
39*80af1a9eSMarek Behún		regulator-min-microvolt = <5000000>;
40*80af1a9eSMarek Behún		regulator-max-microvolt = <5000000>;
41*80af1a9eSMarek Behún		shutdown-delay-us = <1000000>;
42*80af1a9eSMarek Behún		gpio = <&gpiosb 0 GPIO_ACTIVE_HIGH>;
43*80af1a9eSMarek Behún		regulator-boot-on;
44*80af1a9eSMarek Behún	};
45*80af1a9eSMarek Behún
46*80af1a9eSMarek Behún	mdio {
47*80af1a9eSMarek Behún		eth_phy1: ethernet-phy@1 {
48*80af1a9eSMarek Behún			reg = <1>;
49*80af1a9eSMarek Behún		};
50*80af1a9eSMarek Behún	};
51*80af1a9eSMarek Behún};
52*80af1a9eSMarek Behún
53*80af1a9eSMarek Behún&comphy {
54*80af1a9eSMarek Behún	max-lanes = <3>;
55*80af1a9eSMarek Behún	phy0 {
56*80af1a9eSMarek Behún		phy-type = <PHY_TYPE_SGMII1>;
57*80af1a9eSMarek Behún		phy-speed = <PHY_SPEED_3_125G>;
58*80af1a9eSMarek Behún	};
59*80af1a9eSMarek Behún
60*80af1a9eSMarek Behún	phy1 {
61*80af1a9eSMarek Behún		phy-type = <PHY_TYPE_PEX0>;
62*80af1a9eSMarek Behún		phy-speed = <PHY_SPEED_2_5G>;
63*80af1a9eSMarek Behún	};
64*80af1a9eSMarek Behún
65*80af1a9eSMarek Behún	phy2 {
66*80af1a9eSMarek Behún		phy-type = <PHY_TYPE_USB3_HOST0>;
67*80af1a9eSMarek Behún		phy-speed = <PHY_SPEED_5G>;
68*80af1a9eSMarek Behún	};
69*80af1a9eSMarek Behún};
70*80af1a9eSMarek Behún
71*80af1a9eSMarek Behún&eth0 {
72*80af1a9eSMarek Behún	status = "okay";
73*80af1a9eSMarek Behún	pinctrl-names = "default";
74*80af1a9eSMarek Behún	pinctrl-0 = <&rgmii_pins>, <&smi_pins>;
75*80af1a9eSMarek Behún	phy-mode = "rgmii";
76*80af1a9eSMarek Behún	phy = <&eth_phy1>;
77*80af1a9eSMarek Behún};
78*80af1a9eSMarek Behún
79*80af1a9eSMarek Behún&i2c0 {
80*80af1a9eSMarek Behún	pinctrl-names = "default";
81*80af1a9eSMarek Behún	pinctrl-0 = <&i2c1_pins>;
82*80af1a9eSMarek Behún	status = "okay";
83*80af1a9eSMarek Behún};
84*80af1a9eSMarek Behún
85*80af1a9eSMarek Behún&sdhci1 {
86*80af1a9eSMarek Behún	bus-width = <4>;
87*80af1a9eSMarek Behún	status = "okay";
88*80af1a9eSMarek Behún};
89*80af1a9eSMarek Behún
90*80af1a9eSMarek Behún&pinctrl_nb {
91*80af1a9eSMarek Behún	spi_cs1_pins: spi-cs1-pins {
92*80af1a9eSMarek Behún		groups = "spi_cs1";
93*80af1a9eSMarek Behún		function = "spi";
94*80af1a9eSMarek Behún	};
95*80af1a9eSMarek Behún};
96*80af1a9eSMarek Behún
97*80af1a9eSMarek Behún&pinctrl_sb {
98*80af1a9eSMarek Behún	smi_pins: smi-pins {
99*80af1a9eSMarek Behún		groups = "smi";
100*80af1a9eSMarek Behún		function = "smi";
101*80af1a9eSMarek Behún	};
102*80af1a9eSMarek Behún};
103*80af1a9eSMarek Behún
104*80af1a9eSMarek Behún&spi0 {
105*80af1a9eSMarek Behún	status = "okay";
106*80af1a9eSMarek Behún	pinctrl-names = "default";
107*80af1a9eSMarek Behún	pinctrl-0 = <&spi_cs1_pins>;
108*80af1a9eSMarek Behún
109*80af1a9eSMarek Behún	spi-flash@0 {
110*80af1a9eSMarek Behún		#address-cells = <1>;
111*80af1a9eSMarek Behún		#size-cells = <1>;
112*80af1a9eSMarek Behún		compatible = "st,s25fl064l", "spi-flash";
113*80af1a9eSMarek Behún		reg = <0>;
114*80af1a9eSMarek Behún		spi-max-frequency = <20000000>;
115*80af1a9eSMarek Behún		m25p,fast-read;
116*80af1a9eSMarek Behún	};
117*80af1a9eSMarek Behún};
118*80af1a9eSMarek Behún
119*80af1a9eSMarek Behún&uart0 {
120*80af1a9eSMarek Behún	pinctrl-names = "default";
121*80af1a9eSMarek Behún	pinctrl-0 = <&uart1_pins>;
122*80af1a9eSMarek Behún	status = "okay";
123*80af1a9eSMarek Behún};
124*80af1a9eSMarek Behún
125*80af1a9eSMarek Behún&usb2 {
126*80af1a9eSMarek Behún	status = "okay";
127*80af1a9eSMarek Behún};
128*80af1a9eSMarek Behún
129*80af1a9eSMarek Behún&usb3 {
130*80af1a9eSMarek Behún	vbus-supply = <&reg_usb3_vbus>;
131*80af1a9eSMarek Behún	status = "okay";
132*80af1a9eSMarek Behún};
133