xref: /freebsd-src/sys/contrib/device-tree/src/arm64/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1cb7aa33aSEmmanuel Vadot/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2cb7aa33aSEmmanuel Vadot/*
3cb7aa33aSEmmanuel Vadot * Authors: Daniel Golle <daniel@makrotopia.org>
4cb7aa33aSEmmanuel Vadot *          Frank Wunderlich <frank-w@public-files.de>
5cb7aa33aSEmmanuel Vadot */
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadot/dts-v1/;
8cb7aa33aSEmmanuel Vadot/plugin/;
9cb7aa33aSEmmanuel Vadot
10cb7aa33aSEmmanuel Vadot/ {
11cb7aa33aSEmmanuel Vadot	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
12*0e8011faSEmmanuel Vadot};
13cb7aa33aSEmmanuel Vadot
14*0e8011faSEmmanuel Vadot&{/soc/spi@1100a000} {
15cb7aa33aSEmmanuel Vadot	#address-cells = <1>;
16cb7aa33aSEmmanuel Vadot	#size-cells = <0>;
17*0e8011faSEmmanuel Vadot
1801950c46SEmmanuel Vadot	spi_nand: flash@0 {
19cb7aa33aSEmmanuel Vadot		compatible = "spi-nand";
20cb7aa33aSEmmanuel Vadot		reg = <0>;
21cb7aa33aSEmmanuel Vadot		spi-max-frequency = <10000000>;
22cb7aa33aSEmmanuel Vadot		spi-tx-buswidth = <4>;
23cb7aa33aSEmmanuel Vadot		spi-rx-buswidth = <4>;
24cb7aa33aSEmmanuel Vadot
25cb7aa33aSEmmanuel Vadot		partitions {
26cb7aa33aSEmmanuel Vadot			compatible = "fixed-partitions";
27cb7aa33aSEmmanuel Vadot			#address-cells = <1>;
28cb7aa33aSEmmanuel Vadot			#size-cells = <1>;
29cb7aa33aSEmmanuel Vadot
30cb7aa33aSEmmanuel Vadot			partition@0 {
31cb7aa33aSEmmanuel Vadot				label = "bl2";
32f126890aSEmmanuel Vadot				reg = <0x0 0x100000>;
33cb7aa33aSEmmanuel Vadot				read-only;
34cb7aa33aSEmmanuel Vadot			};
35cb7aa33aSEmmanuel Vadot
36f126890aSEmmanuel Vadot			partition@100000 {
37cb7aa33aSEmmanuel Vadot				label = "reserved";
38f126890aSEmmanuel Vadot				reg = <0x100000 0x280000>;
39cb7aa33aSEmmanuel Vadot			};
40cb7aa33aSEmmanuel Vadot
41cb7aa33aSEmmanuel Vadot			partition@380000 {
42cb7aa33aSEmmanuel Vadot				label = "fip";
43cb7aa33aSEmmanuel Vadot				reg = <0x380000 0x200000>;
44cb7aa33aSEmmanuel Vadot				read-only;
45cb7aa33aSEmmanuel Vadot			};
46cb7aa33aSEmmanuel Vadot
47cb7aa33aSEmmanuel Vadot			partition@580000 {
48cb7aa33aSEmmanuel Vadot				label = "ubi";
49cb7aa33aSEmmanuel Vadot				reg = <0x580000 0x7a80000>;
50cb7aa33aSEmmanuel Vadot			};
51cb7aa33aSEmmanuel Vadot		};
52cb7aa33aSEmmanuel Vadot	};
53cb7aa33aSEmmanuel Vadot};
54