aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/files
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-07-08 11:50:23 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-22 01:24:23 +0100
commitedb0a936f0af134ed2fb01c05e5d31b9944d2454 (patch)
treee7abc2f1ed6e8cfc97f3922dc60372c6b5fde6a2 /target/linux/lantiq/files
parentb3bdfd5df55b104f3affea116a3c54075ea6549c (diff)
downloadupstream-edb0a936f0af134ed2fb01c05e5d31b9944d2454.tar.gz
upstream-edb0a936f0af134ed2fb01c05e5d31b9944d2454.tar.bz2
upstream-edb0a936f0af134ed2fb01c05e5d31b9944d2454.zip
lantiq: dts: define the SPI pins in {amazonse,ar9,vr9}.dtsi
Define the SPI pins in the corresponding SoCs.dtsi and assign them to the SPI controller node. All known boards use CS4 and it's likely that this is hardcoded in bootrom so this doesn't bother with having per-board SPI pinmux settings. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Diffstat (limited to 'target/linux/lantiq/files')
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/DGN1000B.dts14
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/DGN3500.dtsi15
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/DM200.dts17
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/EASY80920.dtsi15
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/FRITZ3370-REV2.dtsi17
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7362SL.dts18
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/TDW89X0.dtsi15
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/VR200.dtsi15
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/WBMR300.dts15
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/amazonse.dtsi22
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/ar9.dtsi22
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/vr9.dtsi22
12 files changed, 66 insertions, 141 deletions
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/DGN1000B.dts b/target/linux/lantiq/files/arch/mips/boot/dts/DGN1000B.dts
index b4eee73b73..0143a21a9c 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/DGN1000B.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/DGN1000B.dts
@@ -96,18 +96,6 @@
lantiq,open-drain = <1>;
};
};
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs1";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&gsw {
@@ -117,8 +105,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
flash@1 {
compatible = "jedec,spi-nor";
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/DGN3500.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/DGN3500.dtsi
index 4a20dcefd3..b12101a5d1 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/DGN3500.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/DGN3500.dtsi
@@ -131,18 +131,6 @@
lantiq,pull = <0>;
};
};
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&gsw {
@@ -163,9 +151,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
flash@4 {
compatible = "jedec,spi-nor";
reg = <4>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/DM200.dts b/target/linux/lantiq/files/arch/mips/boot/dts/DM200.dts
index 362dccfda7..cdba656e49 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/DM200.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/DM200.dts
@@ -118,20 +118,6 @@
lantiq,gphy-mode = <GPHY_MODE_FE>;
};
-&gpio {
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk", "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
-};
-
&pcie0 {
status = "disabled";
};
@@ -139,9 +125,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
flash@4 {
compatible = "jedec,spi-nor";
reg = <4>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/EASY80920.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/EASY80920.dtsi
index d09a9626bb..687a2f4098 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/EASY80920.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/EASY80920.dtsi
@@ -222,24 +222,9 @@
lantiq,pull = <2>;
};
};
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&spi {
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
status = "okay";
flash@4 {
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ3370-REV2.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
index 6790815a24..b83f0f058a 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
@@ -213,20 +213,6 @@
lantiq,output = <1>;
};
};
-
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
-
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&pcie0 {
@@ -250,9 +236,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
flash@4 {
compatible = "jedec,spi-nor";
reg = <4>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7362SL.dts b/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7362SL.dts
index cca79c926e..8f1fc261fb 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7362SL.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7362SL.dts
@@ -35,22 +35,6 @@
label = "fritz7362sl:green:dect";
};
-&gpio {
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
-
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
-};
-
&state_default {
nand {
lantiq,groups = "nand ale", "nand cle",
@@ -67,8 +51,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
flash@4 {
#address-cells = <1>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/TDW89X0.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/TDW89X0.dtsi
index 00475e734e..d0e8cd8ced 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/TDW89X0.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/TDW89X0.dtsi
@@ -194,18 +194,6 @@
lantiq,output = <1>;
};
};
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&pcie0 {
@@ -232,9 +220,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
flash@4 {
compatible = "jedec,spi-nor";
reg = <4>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/VR200.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/VR200.dtsi
index 7fedcee92f..44938eddd3 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/VR200.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/VR200.dtsi
@@ -114,18 +114,6 @@
lantiq,output = <1>;
};
};
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&pci0 {
@@ -136,9 +124,6 @@
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
flash@4 {
compatible = "jedec,spi-nor";
reg = <4>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/WBMR300.dts b/target/linux/lantiq/files/arch/mips/boot/dts/WBMR300.dts
index 7e5f58c71e..4631ad4ffe 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/WBMR300.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/WBMR300.dts
@@ -237,26 +237,11 @@
lantiq,output = <1>;
};
};
- pins_spi_default: pins_spi_default {
- spi_in {
- lantiq,groups = "spi_di";
- lantiq,function = "spi";
- };
- spi_out {
- lantiq,groups = "spi_do", "spi_clk",
- "spi_cs4";
- lantiq,function = "spi";
- lantiq,output = <1>;
- };
- };
};
&spi {
status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pins_spi_default>;
-
flash@4 {
compatible = "jedec,spi-nor";
reg = <4>;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/amazonse.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/amazonse.dtsi
index 33dc5612bf..6b5606d8ab 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/amazonse.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/amazonse.dtsi
@@ -133,6 +133,8 @@
"spi_frm";
#address-cells = <1>;
#size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>;
status = "disabled";
};
@@ -155,6 +157,26 @@
lantiq,function = "mdio";
};
};
+
+ spi_pins: spi {
+ mux-0 {
+ lantiq,groups = "spi_di";
+ lantiq,function = "spi";
+ };
+ mux-1 {
+ lantiq,groups = "spi_do", "spi_clk";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
+
+ spi_cs4_pins: spi-cs4 {
+ mux {
+ lantiq,groups = "spi_cs4";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
};
asc1: serial@e100c00 {
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/ar9.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/ar9.dtsi
index 3244908e32..ab518e75c6 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/ar9.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/ar9.dtsi
@@ -160,6 +160,8 @@
"spi_frm";
#address-cells = <1>;
#size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>;
status = "disabled";
};
@@ -175,6 +177,26 @@
lantiq,function = "mdio";
};
};
+
+ spi_pins: spi {
+ mux-0 {
+ lantiq,groups = "spi_di";
+ lantiq,function = "spi";
+ };
+ mux-1 {
+ lantiq,groups = "spi_do", "spi_clk";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
+
+ spi_cs4_pins: spi-cs4 {
+ mux {
+ lantiq,groups = "spi_cs4";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
};
stp: stp@e100bb0 {
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/vr9.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/vr9.dtsi
index 81e2fea549..4639aaf490 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/vr9.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/vr9.dtsi
@@ -202,6 +202,8 @@
"spi_frm";
#address-cells = <1>;
#size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>;
status = "disabled";
};
@@ -217,6 +219,26 @@
lantiq,function = "mdio";
};
};
+
+ spi_pins: spi {
+ mux-0 {
+ lantiq,groups = "spi_di";
+ lantiq,function = "spi";
+ };
+ mux-1 {
+ lantiq,groups = "spi_do", "spi_clk";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
+
+ spi_cs4_pins: spi-cs4 {
+ mux {
+ lantiq,groups = "spi_cs4";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
};
stp: stp@e100bb0 {