projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mediatek: change dts to use the new snand driver
[openwrt/openwrt.git]
/
target
/
linux
/
mediatek
/
patches-5.10
/
115-dts-bpi64-add-snand-support.patch
diff --git
a/target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch
b/target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch
index 85f7c08c0897456313d5922ca64fb6fec20db246..39d81bd5d56ac4da66591bce4fde24b6f1c0dc0a 100644
(file)
--- a/
target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch
+++ b/
target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch
@@
-1,56
+1,40
@@
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
-@@ -114,7 +114,7 @@
- };
-
- &bch {
-- status = "disabled";
-+ status = "okay";
- };
-
- &btif {
-@@ -259,14 +259,40 @@
+@@ -259,14 +259,32 @@
status = "disabled";
};
-&nor_flash {
status = "disabled";
};
-&nor_flash {
-+&sn
fi
{
++&sn
and
{
pinctrl-names = "default";
- pinctrl-0 = <&spi_nor_pins>;
- status = "disabled";
+ pinctrl-0 = <&serial_nand_pins>;
pinctrl-names = "default";
- pinctrl-0 = <&spi_nor_pins>;
- status = "disabled";
+ pinctrl-0 = <&serial_nand_pins>;
++ mediatek,quad-spi;
+ status = "okay";
+ status = "okay";
-
-- flash@0 {
-- compatible = "jedec,spi-nor";
-+ snand: spi_nand@0 {
++ partitions {
++ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #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 = "bl2";
-+ reg = <0x0 0x80000>;
-+ read-only;
-+ };
-+
-+ partition@80000 {
-+ label = "fip";
-+ reg = <0x80000 0x200000>;
-+ read-only;
-+ };
++ partition@0 {
++ label = "bl2";
++ reg = <0x0 0x80000>;
++ read-only;
++ };
+
+
-+ partition@280000 {
-+ label = "ubi";
-+ reg = <0x280000 0x7d80000>;
-+ };
++ partition@80000 {
++ label = "fip";
++ reg = <0x80000 0x200000>;
++ read-only;
++ };
+
+- flash@0 {
+- compatible = "jedec,spi-nor";
+- reg = <0>;
++ partition@280000 {
++ label = "ubi";
++ reg = <0x280000 0x7d80000>;
+ };
};
};
+ };
};
};