xref: /freebsd-src/sys/contrib/device-tree/src/powerpc/sbc8548-altflash.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*c66ec88fSEmmanuel Vadot/*
3*c66ec88fSEmmanuel Vadot * SBC8548 Device Tree Source
4*c66ec88fSEmmanuel Vadot *
5*c66ec88fSEmmanuel Vadot * Configured for booting off the alternate (64MB SODIMM) flash.
6*c66ec88fSEmmanuel Vadot * Requires switching JP12 jumpers and changing SW2.8 setting.
7*c66ec88fSEmmanuel Vadot *
8*c66ec88fSEmmanuel Vadot * Copyright 2013 Wind River Systems Inc.
9*c66ec88fSEmmanuel Vadot *
10*c66ec88fSEmmanuel Vadot * Paul Gortmaker (see MAINTAINERS for contact information)
11*c66ec88fSEmmanuel Vadot */
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot/dts-v1/;
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot/include/ "sbc8548-pre.dtsi"
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot/{
19*c66ec88fSEmmanuel Vadot	localbus@e0000000 {
20*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
21*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
22*c66ec88fSEmmanuel Vadot		compatible = "simple-bus";
23*c66ec88fSEmmanuel Vadot		reg = <0xe0000000 0x5000>;
24*c66ec88fSEmmanuel Vadot		interrupt-parent = <&mpic>;
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadot		ranges = <0x0 0x0 0xfc000000 0x04000000		/*64MB Flash*/
27*c66ec88fSEmmanuel Vadot			  0x3 0x0 0xf0000000 0x04000000		/*64MB SDRAM*/
28*c66ec88fSEmmanuel Vadot			  0x4 0x0 0xf4000000 0x04000000 	/*64MB SDRAM*/
29*c66ec88fSEmmanuel Vadot			  0x5 0x0 0xf8000000 0x00b10000		/* EPLD */
30*c66ec88fSEmmanuel Vadot			  0x6 0x0 0xef800000 0x00800000>;	/*8MB Flash*/
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot		flash@0,0 {
33*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
34*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
35*c66ec88fSEmmanuel Vadot			reg = <0x0 0x0 0x04000000>;
36*c66ec88fSEmmanuel Vadot			compatible = "intel,JS28F128", "cfi-flash";
37*c66ec88fSEmmanuel Vadot			bank-width = <4>;
38*c66ec88fSEmmanuel Vadot			device-width = <1>;
39*c66ec88fSEmmanuel Vadot			partition@0 {
40*c66ec88fSEmmanuel Vadot				label = "space";
41*c66ec88fSEmmanuel Vadot				/* FC000000 -> FFEFFFFF */
42*c66ec88fSEmmanuel Vadot				reg = <0x00000000 0x03f00000>;
43*c66ec88fSEmmanuel Vadot			};
44*c66ec88fSEmmanuel Vadot			partition@3f00000 {
45*c66ec88fSEmmanuel Vadot				label = "bootloader";
46*c66ec88fSEmmanuel Vadot				/* FFF00000 -> FFFFFFFF */
47*c66ec88fSEmmanuel Vadot				reg = <0x03f00000 0x00100000>;
48*c66ec88fSEmmanuel Vadot				read-only;
49*c66ec88fSEmmanuel Vadot			};
50*c66ec88fSEmmanuel Vadot                };
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadot
53*c66ec88fSEmmanuel Vadot		epld@5,0 {
54*c66ec88fSEmmanuel Vadot			compatible = "wrs,epld-localbus";
55*c66ec88fSEmmanuel Vadot			#address-cells = <2>;
56*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
57*c66ec88fSEmmanuel Vadot			reg = <0x5 0x0 0x00b10000>;
58*c66ec88fSEmmanuel Vadot			ranges = <
59*c66ec88fSEmmanuel Vadot				0x0 0x0 0x5 0x000000 0x1fff	/* LED */
60*c66ec88fSEmmanuel Vadot				0x1 0x0 0x5 0x100000 0x1fff	/* Switches */
61*c66ec88fSEmmanuel Vadot				0x3 0x0 0x5 0x300000 0x1fff	/* HW Rev. */
62*c66ec88fSEmmanuel Vadot				0xb 0x0	0x5 0xb00000 0x1fff	/* EEPROM */
63*c66ec88fSEmmanuel Vadot			>;
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadot			led@0,0 {
66*c66ec88fSEmmanuel Vadot				compatible = "led";
67*c66ec88fSEmmanuel Vadot				reg = <0x0 0x0 0x1fff>;
68*c66ec88fSEmmanuel Vadot			};
69*c66ec88fSEmmanuel Vadot
70*c66ec88fSEmmanuel Vadot			switches@1,0 {
71*c66ec88fSEmmanuel Vadot				compatible = "switches";
72*c66ec88fSEmmanuel Vadot				reg = <0x1 0x0 0x1fff>;
73*c66ec88fSEmmanuel Vadot			};
74*c66ec88fSEmmanuel Vadot
75*c66ec88fSEmmanuel Vadot			hw-rev@3,0 {
76*c66ec88fSEmmanuel Vadot				compatible = "hw-rev";
77*c66ec88fSEmmanuel Vadot				reg = <0x3 0x0 0x1fff>;
78*c66ec88fSEmmanuel Vadot			};
79*c66ec88fSEmmanuel Vadot
80*c66ec88fSEmmanuel Vadot			eeprom@b,0 {
81*c66ec88fSEmmanuel Vadot				compatible = "eeprom";
82*c66ec88fSEmmanuel Vadot				reg = <0xb 0 0x1fff>;
83*c66ec88fSEmmanuel Vadot			};
84*c66ec88fSEmmanuel Vadot
85*c66ec88fSEmmanuel Vadot		};
86*c66ec88fSEmmanuel Vadot
87*c66ec88fSEmmanuel Vadot		alt-flash@6,0 {
88*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
89*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
90*c66ec88fSEmmanuel Vadot			compatible = "intel,JS28F640", "cfi-flash";
91*c66ec88fSEmmanuel Vadot			reg = <0x6 0x0 0x800000>;
92*c66ec88fSEmmanuel Vadot			bank-width = <1>;
93*c66ec88fSEmmanuel Vadot			device-width = <1>;
94*c66ec88fSEmmanuel Vadot			partition@0 {
95*c66ec88fSEmmanuel Vadot				label = "space";
96*c66ec88fSEmmanuel Vadot				/* EF800000 -> EFF9FFFF */
97*c66ec88fSEmmanuel Vadot				reg = <0x00000000 0x007a0000>;
98*c66ec88fSEmmanuel Vadot			};
99*c66ec88fSEmmanuel Vadot			partition@7a0000 {
100*c66ec88fSEmmanuel Vadot				label = "bootloader";
101*c66ec88fSEmmanuel Vadot				/* EFFA0000 -> EFFFFFFF */
102*c66ec88fSEmmanuel Vadot				reg = <0x007a0000 0x00060000>;
103*c66ec88fSEmmanuel Vadot				read-only;
104*c66ec88fSEmmanuel Vadot			};
105*c66ec88fSEmmanuel Vadot		};
106*c66ec88fSEmmanuel Vadot
107*c66ec88fSEmmanuel Vadot
108*c66ec88fSEmmanuel Vadot        };
109*c66ec88fSEmmanuel Vadot};
110*c66ec88fSEmmanuel Vadot
111*c66ec88fSEmmanuel Vadot/include/ "sbc8548-post.dtsi"
112