aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts/mt7622-rfb1-ubi.dts
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-02-18 19:17:22 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-02-19 00:05:53 +0000
commitc067b1e79badf94d7a01fbb8737a8134879afd1a (patch)
treeeefb9ebfe00543248cd8493f2ca4241d48d1738a /target/linux/mediatek/dts/mt7622-rfb1-ubi.dts
parent8ad61118fdce8d99377c83377762c16576671fd3 (diff)
downloadupstream-c067b1e79badf94d7a01fbb8737a8134879afd1a.tar.gz
upstream-c067b1e79badf94d7a01fbb8737a8134879afd1a.tar.bz2
upstream-c067b1e79badf94d7a01fbb8737a8134879afd1a.zip
mediatek: move out-of-tree DTS files to dedicated dts folder
Use dedicated dts folder like on ramips to store device tree source files for boards not already supported in vanilla Linux. Doing so instead of having them in files-* has several advantages: * we don't need to duplicate them for several kernel versions * changes to a device tree don't trigger a complete kernel rebuild * the files are more obvious to find Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/dts/mt7622-rfb1-ubi.dts')
-rw-r--r--target/linux/mediatek/dts/mt7622-rfb1-ubi.dts68
1 files changed, 68 insertions, 0 deletions
diff --git a/target/linux/mediatek/dts/mt7622-rfb1-ubi.dts b/target/linux/mediatek/dts/mt7622-rfb1-ubi.dts
new file mode 100644
index 0000000000..a54e710924
--- /dev/null
+++ b/target/linux/mediatek/dts/mt7622-rfb1-ubi.dts
@@ -0,0 +1,68 @@
+/dts-v1/;
+
+#include "mt7622-rfb1.dts"
+/ {
+ model = "MT7622_MT7531 RFB (UBI)";
+ compatible = "mediatek,mt7622,ubi";
+};
+
+&snfi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&serial_nand_pins>;
+ status = "okay";
+
+ spi_nand@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-nand";
+ spi-max-frequency = <104000000>;
+ reg = <0>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "Preloader";
+ reg = <0x00000 0x0080000>;
+ read-only;
+ };
+
+ partition@80000 {
+ label = "ATF";
+ reg = <0x80000 0x0040000>;
+ };
+
+ partition@c0000 {
+ label = "Bootloader";
+ reg = <0xc0000 0x0080000>;
+ };
+
+ partition@140000 {
+ label = "Config";
+ reg = <0x140000 0x0080000>;
+ };
+
+ factory: partition@1c0000 {
+ label = "Factory";
+ reg = <0x1c0000 0x0040000>;
+ };
+
+ partition@200000 {
+ label = "kernel";
+ reg = <0x200000 0x400000>;
+ };
+
+ partition@600000 {
+ label = "ubi";
+ reg = <0x600000 0x1C00000>;
+ };
+
+ partition@2200000 {
+ label = "User_data";
+ reg = <0x2200000 0x4000000>;
+ };
+ };
+ };
+};