xref: /freebsd-src/sys/contrib/device-tree/src/arm/marvell/armada-390-db.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 Armada 390 Development Board
4*f126890aSEmmanuel Vadot * (DB-88F6920)
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot * Copyright (C) 2016 Marvell
7*f126890aSEmmanuel Vadot *
8*f126890aSEmmanuel Vadot * Grzegorz Jaszczyk <jaz@semihalf.com>
9*f126890aSEmmanuel Vadot */
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/dts-v1/;
12*f126890aSEmmanuel Vadot#include "armada-390.dtsi"
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot/ {
15*f126890aSEmmanuel Vadot	model = "Marvell Armada 390 Development Board";
16*f126890aSEmmanuel Vadot	compatible = "marvell,a390-db", "marvell,armada390";
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	chosen {
19*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	memory {
23*f126890aSEmmanuel Vadot		device_type = "memory";
24*f126890aSEmmanuel Vadot		reg = <0x00000000 0x80000000>; /* 2 GB */
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	soc {
28*f126890aSEmmanuel Vadot		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
29*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot		internal-regs {
32*f126890aSEmmanuel Vadot			i2c@11000 {
33*f126890aSEmmanuel Vadot				status = "okay";
34*f126890aSEmmanuel Vadot				clock-frequency = <100000>;
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot				eeprom@50 {
37*f126890aSEmmanuel Vadot					compatible = "atmel,24c64";
38*f126890aSEmmanuel Vadot					reg = <0x50>;
39*f126890aSEmmanuel Vadot				};
40*f126890aSEmmanuel Vadot			};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot			/* CON104 */
43*f126890aSEmmanuel Vadot			serial@12000 {
44*f126890aSEmmanuel Vadot				status = "okay";
45*f126890aSEmmanuel Vadot			};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot			/* CON97 */
48*f126890aSEmmanuel Vadot			usb@58000 {
49*f126890aSEmmanuel Vadot				status = "okay";
50*f126890aSEmmanuel Vadot			};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot			/* CON98 */
53*f126890aSEmmanuel Vadot			usb3@f8000 {
54*f126890aSEmmanuel Vadot				status = "okay";
55*f126890aSEmmanuel Vadot			};
56*f126890aSEmmanuel Vadot		};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot		pcie {
59*f126890aSEmmanuel Vadot			status = "okay";
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot			/* CON30 */
62*f126890aSEmmanuel Vadot			pcie@1,0 {
63*f126890aSEmmanuel Vadot				status = "okay";
64*f126890aSEmmanuel Vadot			};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot			/* CON44 */
67*f126890aSEmmanuel Vadot			pcie@2,0 {
68*f126890aSEmmanuel Vadot				status = "okay";
69*f126890aSEmmanuel Vadot			};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot			/* CON61 */
72*f126890aSEmmanuel Vadot			pcie@3,0 {
73*f126890aSEmmanuel Vadot				status = "okay";
74*f126890aSEmmanuel Vadot			};
75*f126890aSEmmanuel Vadot		};
76*f126890aSEmmanuel Vadot	};
77*f126890aSEmmanuel Vadot};
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot&spi1 {
80*f126890aSEmmanuel Vadot	status = "okay";
81*f126890aSEmmanuel Vadot	pinctrl-0 = <&spi1_pins>;
82*f126890aSEmmanuel Vadot	pinctrl-names = "default";
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot	flash@0 {
85*f126890aSEmmanuel Vadot		#address-cells = <1>;
86*f126890aSEmmanuel Vadot		#size-cells = <1>;
87*f126890aSEmmanuel Vadot		compatible = "n25q128a13",
88*f126890aSEmmanuel Vadot			     "jedec,spi-nor";
89*f126890aSEmmanuel Vadot		reg = <0>; /* Chip select 0 */
90*f126890aSEmmanuel Vadot		spi-max-frequency = <108000000>;
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot		partitions {
93*f126890aSEmmanuel Vadot			compatible = "fixed-partitions";
94*f126890aSEmmanuel Vadot			#address-cells = <1>;
95*f126890aSEmmanuel Vadot			#size-cells = <1>;
96*f126890aSEmmanuel Vadot
97*f126890aSEmmanuel Vadot			partition@0 {
98*f126890aSEmmanuel Vadot				label = "U-Boot";
99*f126890aSEmmanuel Vadot				reg = <0 0x400000>;
100*f126890aSEmmanuel Vadot			};
101*f126890aSEmmanuel Vadot			partition@400000 {
102*f126890aSEmmanuel Vadot				label = "Filesystem";
103*f126890aSEmmanuel Vadot				reg = <0x400000 0xc00000>;
104*f126890aSEmmanuel Vadot			};
105*f126890aSEmmanuel Vadot		};
106*f126890aSEmmanuel Vadot	};
107*f126890aSEmmanuel Vadot};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot&nand_controller {
110*f126890aSEmmanuel Vadot	status = "okay";
111*f126890aSEmmanuel Vadot	pinctrl-0 = <&nand_pins>;
112*f126890aSEmmanuel Vadot	pinctrl-names = "default";
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot	nand@0 {
115*f126890aSEmmanuel Vadot		reg = <0>;
116*f126890aSEmmanuel Vadot		label = "pxa3xx_nand-0";
117*f126890aSEmmanuel Vadot		nand-rb = <0>;
118*f126890aSEmmanuel Vadot		marvell,nand-keep-config;
119*f126890aSEmmanuel Vadot		nand-on-flash-bbt;
120*f126890aSEmmanuel Vadot		nand-ecc-strength = <8>;
121*f126890aSEmmanuel Vadot		nand-ecc-step-size = <512>;
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot		partitions {
124*f126890aSEmmanuel Vadot			compatible = "fixed-partitions";
125*f126890aSEmmanuel Vadot			#address-cells = <1>;
126*f126890aSEmmanuel Vadot			#size-cells = <1>;
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot			partition@0 {
129*f126890aSEmmanuel Vadot				label = "U-Boot";
130*f126890aSEmmanuel Vadot				reg = <0 0x800000>;
131*f126890aSEmmanuel Vadot			};
132*f126890aSEmmanuel Vadot			partition@800000 {
133*f126890aSEmmanuel Vadot				label = "Linux";
134*f126890aSEmmanuel Vadot				reg = <0x800000 0x800000>;
135*f126890aSEmmanuel Vadot			};
136*f126890aSEmmanuel Vadot			partition@1000000 {
137*f126890aSEmmanuel Vadot				label = "Filesystem";
138*f126890aSEmmanuel Vadot				reg = <0x1000000 0x3f000000>;
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot		};
141*f126890aSEmmanuel Vadot	};
142*f126890aSEmmanuel Vadot};
143