xref: /freebsd-src/sys/contrib/device-tree/src/arm/marvell/armada-xp-axpwifiap.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree file for Marvell RD-AXPWiFiAP.
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Note: this board is shipped with a new generation boot loader that
6*f126890aSEmmanuel Vadot * remaps internal registers at 0xf1000000. Therefore, if earlyprintk
7*f126890aSEmmanuel Vadot * is used, the CONFIG_DEBUG_MVEBU_UART0_ALTERNATE option or the
8*f126890aSEmmanuel Vadot * CONFIG_DEBUG_MVEBU_UART1_ALTERNATE option should be used.
9*f126890aSEmmanuel Vadot *
10*f126890aSEmmanuel Vadot * Copyright (C) 2013 Marvell
11*f126890aSEmmanuel Vadot *
12*f126890aSEmmanuel Vadot * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13*f126890aSEmmanuel Vadot */
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot/dts-v1/;
16*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
17*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
18*f126890aSEmmanuel Vadot#include "armada-xp-mv78230.dtsi"
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot/ {
21*f126890aSEmmanuel Vadot	model = "Marvell RD-AXPWiFiAP";
22*f126890aSEmmanuel Vadot	compatible = "marvell,rd-axpwifiap", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot	chosen {
25*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	memory@0 {
29*f126890aSEmmanuel Vadot		device_type = "memory";
30*f126890aSEmmanuel Vadot		reg = <0x00000000 0x00000000 0x00000000 0x40000000>; /* 1GB */
31*f126890aSEmmanuel Vadot	};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot	soc {
34*f126890aSEmmanuel Vadot		ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
35*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
36*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
37*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>;
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot		internal-regs {
40*f126890aSEmmanuel Vadot			/* UART0 */
41*f126890aSEmmanuel Vadot			serial@12000 {
42*f126890aSEmmanuel Vadot				status = "okay";
43*f126890aSEmmanuel Vadot			};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot			/* UART1 */
46*f126890aSEmmanuel Vadot			serial@12100 {
47*f126890aSEmmanuel Vadot				status = "okay";
48*f126890aSEmmanuel Vadot			};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot			sata@a0000 {
51*f126890aSEmmanuel Vadot				nr-ports = <1>;
52*f126890aSEmmanuel Vadot				status = "okay";
53*f126890aSEmmanuel Vadot			};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot			ethernet@70000 {
56*f126890aSEmmanuel Vadot				pinctrl-0 = <&ge0_rgmii_pins>;
57*f126890aSEmmanuel Vadot				pinctrl-names = "default";
58*f126890aSEmmanuel Vadot				status = "okay";
59*f126890aSEmmanuel Vadot				phy = <&phy0>;
60*f126890aSEmmanuel Vadot				phy-mode = "rgmii-id";
61*f126890aSEmmanuel Vadot			};
62*f126890aSEmmanuel Vadot			ethernet@74000 {
63*f126890aSEmmanuel Vadot				pinctrl-0 = <&ge1_rgmii_pins>;
64*f126890aSEmmanuel Vadot				pinctrl-names = "default";
65*f126890aSEmmanuel Vadot				status = "okay";
66*f126890aSEmmanuel Vadot				phy = <&phy1>;
67*f126890aSEmmanuel Vadot				phy-mode = "rgmii-id";
68*f126890aSEmmanuel Vadot			};
69*f126890aSEmmanuel Vadot		};
70*f126890aSEmmanuel Vadot	};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot	gpio-keys {
73*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
74*f126890aSEmmanuel Vadot		pinctrl-0 = <&keys_pin>;
75*f126890aSEmmanuel Vadot		pinctrl-names = "default";
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot		button-reset {
78*f126890aSEmmanuel Vadot			label = "Factory Reset Button";
79*f126890aSEmmanuel Vadot			linux,code = <KEY_SETUP>;
80*f126890aSEmmanuel Vadot			gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
81*f126890aSEmmanuel Vadot		};
82*f126890aSEmmanuel Vadot	};
83*f126890aSEmmanuel Vadot};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot&mdio {
86*f126890aSEmmanuel Vadot	phy0: ethernet-phy@0 {
87*f126890aSEmmanuel Vadot		reg = <0>;
88*f126890aSEmmanuel Vadot	};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot	phy1: ethernet-phy@1 {
91*f126890aSEmmanuel Vadot		reg = <1>;
92*f126890aSEmmanuel Vadot	};
93*f126890aSEmmanuel Vadot};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot&pciec {
96*f126890aSEmmanuel Vadot	status = "okay";
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot	/* First mini-PCIe port */
99*f126890aSEmmanuel Vadot	pcie@1,0 {
100*f126890aSEmmanuel Vadot		/* Port 0, Lane 0 */
101*f126890aSEmmanuel Vadot		status = "okay";
102*f126890aSEmmanuel Vadot	};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot	/* Second mini-PCIe port */
105*f126890aSEmmanuel Vadot	pcie@2,0 {
106*f126890aSEmmanuel Vadot		/* Port 0, Lane 1 */
107*f126890aSEmmanuel Vadot		status = "okay";
108*f126890aSEmmanuel Vadot	};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot	/* Renesas uPD720202 USB 3.0 controller */
111*f126890aSEmmanuel Vadot	pcie@3,0 {
112*f126890aSEmmanuel Vadot		/* Port 0, Lane 3 */
113*f126890aSEmmanuel Vadot		status = "okay";
114*f126890aSEmmanuel Vadot	};
115*f126890aSEmmanuel Vadot};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot&pinctrl {
118*f126890aSEmmanuel Vadot	pinctrl-0 = <&phy_int_pin>;
119*f126890aSEmmanuel Vadot	pinctrl-names = "default";
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot	keys_pin: keys-pin {
122*f126890aSEmmanuel Vadot		marvell,pins = "mpp33";
123*f126890aSEmmanuel Vadot		marvell,function = "gpio";
124*f126890aSEmmanuel Vadot	};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot	phy_int_pin: phy-int-pin {
127*f126890aSEmmanuel Vadot		marvell,pins = "mpp32";
128*f126890aSEmmanuel Vadot		marvell,function = "gpio";
129*f126890aSEmmanuel Vadot	};
130*f126890aSEmmanuel Vadot};
131*f126890aSEmmanuel Vadot
132*f126890aSEmmanuel Vadot&spi0 {
133*f126890aSEmmanuel Vadot	status = "okay";
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot	flash@0 {
136*f126890aSEmmanuel Vadot		#address-cells = <1>;
137*f126890aSEmmanuel Vadot		#size-cells = <1>;
138*f126890aSEmmanuel Vadot		compatible = "n25q128a13", "jedec,spi-nor";
139*f126890aSEmmanuel Vadot		reg = <0>; /* Chip select 0 */
140*f126890aSEmmanuel Vadot		spi-max-frequency = <108000000>;
141*f126890aSEmmanuel Vadot	};
142*f126890aSEmmanuel Vadot};
143