aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-08-22 07:30:36 +0200
committerPetr Štetiar <ynezz@true.cz>2019-07-01 21:56:58 +0200
commit3bbd16da46ba85c4c50c1bb3eda9b0b11f8cc5c8 (patch)
treed85ef53a734229c1a526afe91746588689a7a0a8
parentb84f761d91646520d46abcfbdc79b64079a87f60 (diff)
downloadupstream-3bbd16da46ba85c4c50c1bb3eda9b0b11f8cc5c8.tar.gz
upstream-3bbd16da46ba85c4c50c1bb3eda9b0b11f8cc5c8.tar.bz2
upstream-3bbd16da46ba85c4c50c1bb3eda9b0b11f8cc5c8.zip
ramips: fix mt7620 pinmux for second SPI
The mt7620 doesn't have a pinmux group named spi_cs1. The cs1 is part of the "spi refclk" group. The function "spi refclk" enables the second chip select. On reset, the pins of the "spi refclk" group are used as reference clock and GPIO. Signed-off-by: Mathias Kresin <dev@kresin.me> (cherry picked from commit 3601c3de23f15e2735adc4becdca14c803b6b1a5)
-rw-r--r--target/linux/ramips/dts/mt7620a.dtsi4
-rw-r--r--target/linux/ramips/dts/mt7620n.dtsi4
2 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi
index 62e1985aa2..d1edc3bdf7 100644
--- a/target/linux/ramips/dts/mt7620a.dtsi
+++ b/target/linux/ramips/dts/mt7620a.dtsi
@@ -339,8 +339,8 @@
spi_cs1: spi1 {
spi1 {
- ralink,group = "spi_cs1";
- ralink,function = "spi_cs1";
+ ralink,group = "spi refclk";
+ ralink,function = "spi refclk";
};
};
diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi
index 58fd263d7d..7ca1471347 100644
--- a/target/linux/ramips/dts/mt7620n.dtsi
+++ b/target/linux/ramips/dts/mt7620n.dtsi
@@ -260,8 +260,8 @@
spi_cs1: spi1 {
spi1 {
- ralink,group = "spi_cs1";
- ralink,function = "spi_cs1";
+ ralink,group = "spi refclk";
+ ralink,function = "spi refclk";
};
};