ns2-svk.dts 4.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
/*
 *  BSD LICENSE
 *
 *  Copyright(c) 2015 Broadcom Corporation.  All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions
 *  are met:
 *
 *    * Redistributions of source code must retain the above copyright
 *      notice, this list of conditions and the following disclaimer.
 *    * Redistributions in binary form must reproduce the above copyright
 *      notice, this list of conditions and the following disclaimer in
 *      the documentation and/or other materials provided with the
 *      distribution.
 *    * Neither the name of Broadcom Corporation nor the names of its
 *      contributors may be used to endorse or promote products derived
 *      from this software without specific prior written permission.
 *
 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/dts-v1/;

#include "ns2.dtsi"

/ {
	model = "Broadcom NS2 SVK";
	compatible = "brcm,ns2-svk", "brcm,ns2";

	aliases {
		serial0 = &uart3;
43 44 45
		serial1 = &uart0;
		serial2 = &uart1;
		serial3 = &uart2;
46 47 48 49
	};

	chosen {
		stdout-path = "serial0:115200n8";
50
		bootargs = "earlycon=uart8250,mmio32,0x66130000";
51 52 53 54 55 56
	};

	memory {
		device_type = "memory";
		reg = <0x000000000 0x80000000 0x00000000 0x40000000>;
	};
57
};
58

59
&enet {
60
	status = "okay";
61 62
};

63
&pci_phy0 {
64
	status = "okay";
65 66 67
};

&pci_phy1 {
68
	status = "okay";
69 70
};

71
&pcie0 {
72
	status = "okay";
73 74 75
};

&pcie4 {
76
	status = "okay";
77 78
};

79
&pcie8 {
80
	status = "okay";
81 82
};

83
&i2c0 {
84
	status = "okay";
85
};
R
Ray Jui 已提交
86

87
&i2c1 {
88
	status = "okay";
89 90
};

91
&uart0 {
92
	status = "okay";
93 94 95
};

&uart1 {
96
	status = "okay";
97 98 99
};

&uart2 {
100
	status = "okay";
101 102
};

103
&uart3 {
104
	status = "okay";
105
};
R
Ray Jui 已提交
106

107
&ssp0 {
108
	status = "okay";
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128

	slic@0 {
		compatible = "silabs,si3226x";
		reg = <0>;
		spi-max-frequency = <5000000>;
		spi-cpha = <1>;
		spi-cpol = <1>;
		pl022,hierarchy = <0>;
		pl022,interface = <0>;
		pl022,slave-tx-disable = <0>;
		pl022,com-mode = <0>;
		pl022,rx-level-trig = <1>;
		pl022,tx-level-trig = <1>;
		pl022,ctrl-len = <11>;
		pl022,wait-state = <0>;
		pl022,duplex = <0>;
	};
};

&ssp1 {
129
	status = "okay";
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151

	at25@0 {
		compatible = "atmel,at25";
		reg = <0>;
		spi-max-frequency = <5000000>;
		at25,byte-len = <0x8000>;
		at25,addr-mode = <2>;
		at25,page-size = <64>;
		spi-cpha = <1>;
		spi-cpol = <1>;
		pl022,hierarchy = <0>;
		pl022,interface = <0>;
		pl022,slave-tx-disable = <0>;
		pl022,com-mode = <0>;
		pl022,rx-level-trig = <1>;
		pl022,tx-level-trig = <1>;
		pl022,ctrl-len = <11>;
		pl022,wait-state = <0>;
		pl022,duplex = <0>;
	};
};

152
&sata_phy0 {
153
	status = "okay";
154 155 156
};

&sata_phy1 {
157
	status = "okay";
158 159 160
};

&sata {
161
	status = "okay";
162 163
};

164
&sdio0 {
165
	status = "okay";
166 167
};

J
Jon Mason 已提交
168
&sdio1 {
169
	status = "okay";
170 171
};

172 173 174 175 176 177 178
&nand {
	nandcs@0 {
		compatible = "brcm,nandcs";
		reg = <0>;
		nand-ecc-mode = "hw";
		nand-ecc-strength = <8>;
		nand-ecc-step-size = <512>;
179 180
		nand-bus-width = <16>;
		brcm,nand-oob-sector-size = <16>;
181 182
		#address-cells = <1>;
		#size-cells = <1>;
183 184
	};
};
185 186 187 188

&mdio_mux_iproc {
	mdio@10 {
		gphy0: eth-phy@10 {
189
			enet-phy-lane-swap;
190 191 192 193
			reg = <0x10>;
		};
	};
};
194

195 196 197 198 199 200 201 202
&pinctrl {
	pinctrl-names = "default";
	pinctrl-0 = <&nand_sel>;
	nand_sel: nand_sel {
		function = "nand";
		groups = "nand_grp";
	};
};
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236

&qspi {
	bspi-sel = <0>;
	flash: m25p80@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "m25p80";
		reg = <0x0>;
		spi-max-frequency = <12500000>;
		m25p,fast-read;
		spi-cpol;
		spi-cpha;

		partition@0 {
			label = "boot";
			reg = <0x00000000 0x000a0000>;
		};

		partition@a0000 {
			label = "env";
			reg = <0x000a0000 0x00060000>;
		};

		partition@100000 {
			label = "system";
			reg = <0x00100000 0x00600000>;
		};

		partition@700000 {
			label = "rootfs";
			reg = <0x00700000 0x01900000>;
		};
	};
};