bcm53xx: add first 5.17 DTS changes
authorRafał Miłecki <rafal@milecki.pl>
Thu, 4 Nov 2021 06:00:21 +0000 (07:00 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 4 Nov 2021 06:00:21 +0000 (07:00 +0100)
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm53xx/patches-5.10/034-v5.17-0001-ARM-dts-NSP-MX65-add-qca8k-falling-edge-PLL-properti.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-5.10/034-v5.17-0002-ARM-dts-BCM5301X-remove-unnecessary-address-size-cel.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-5.10/034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-5.10/040-v5.16-ARM-dts-BCM5301X-Fix-I2C-controller-interrupt.patch
target/linux/bcm53xx/patches-5.10/332-Meraki-MR32-use-hw-i2c.patch

diff --git a/target/linux/bcm53xx/patches-5.10/034-v5.17-0001-ARM-dts-NSP-MX65-add-qca8k-falling-edge-PLL-properti.patch b/target/linux/bcm53xx/patches-5.10/034-v5.17-0001-ARM-dts-NSP-MX65-add-qca8k-falling-edge-PLL-properti.patch
new file mode 100644 (file)
index 0000000..a0be1ed
--- /dev/null
@@ -0,0 +1,42 @@
+From 58d3d07985c1adab31a3ed76360d016bb1c5b358 Mon Sep 17 00:00:00 2001
+From: Matthew Hagan <mnhagan88@gmail.com>
+Date: Fri, 15 Oct 2021 23:50:22 +0100
+Subject: [PATCH] ARM: dts: NSP: MX65: add qca8k falling-edge, PLL properties
+
+This patch enables two properties for the QCA8337 switches on the MX65.
+
+Set the SGMII transmit clock to falling edge
+"qca,sgmii-txclk-falling-edge" to conform to the OEM configuration [1].
+
+The new explicit PLL enable option "qca,sgmii-enable-pll" is required
+[2].
+
+[1] https://git.kernel.org/netdev/net-next/c/6c43809bf1be
+[2] https://git.kernel.org/netdev/net-next/c/bbc4799e8bb6
+
+Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi
++++ b/arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi
+@@ -118,6 +118,8 @@
+                                               reg = <0>;
+                                               ethernet = <&sgmii1>;
+                                               phy-mode = "sgmii";
++                                              qca,sgmii-enable-pll;
++                                              qca,sgmii-txclk-falling-edge;
+                                               fixed-link {
+                                                       speed = <1000>;
+                                                       full-duplex;
+@@ -194,6 +196,8 @@
+                                               reg = <0>;
+                                               ethernet = <&sgmii0>;
+                                               phy-mode = "sgmii";
++                                              qca,sgmii-enable-pll;
++                                              qca,sgmii-txclk-falling-edge;
+                                               fixed-link {
+                                                       speed = <1000>;
+                                                       full-duplex;
diff --git a/target/linux/bcm53xx/patches-5.10/034-v5.17-0002-ARM-dts-BCM5301X-remove-unnecessary-address-size-cel.patch b/target/linux/bcm53xx/patches-5.10/034-v5.17-0002-ARM-dts-BCM5301X-remove-unnecessary-address-size-cel.patch
new file mode 100644 (file)
index 0000000..3c3725a
--- /dev/null
@@ -0,0 +1,29 @@
+From 835992e7eca4b29a87c204cefff2f7863fd087f3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
+Date: Wed, 27 Oct 2021 00:57:03 +0800
+Subject: [PATCH] ARM: dts: BCM5301X: remove unnecessary address & size cells
+ from Asus RT-AC88U
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Remove the unnecessary #address-cells & #size-cells in the gpio-keys node
+from the device tree of Asus RT-AC88U.
+
+Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 2 --
+ 1 file changed, 2 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
++++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
+@@ -68,8 +68,6 @@
+       gpio-keys {
+               compatible = "gpio-keys";
+-              #address-cells = <1>;
+-              #size-cells = <0>;
+               wps {
+                       label = "WPS";
diff --git a/target/linux/bcm53xx/patches-5.10/034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch b/target/linux/bcm53xx/patches-5.10/034-v5.17-0003-ARM-dts-BCM5301X-define-RTL8365MB-switch-on-Asus-RT-.patch
new file mode 100644 (file)
index 0000000..562d5a2
--- /dev/null
@@ -0,0 +1,104 @@
+From b6c99228c8edc5e67d8229ba1c5f76cce210ddfc Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
+Date: Wed, 27 Oct 2021 00:57:06 +0800
+Subject: [PATCH] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Define the Realtek RTL8365MB switch without interrupt support on the device
+tree of Asus RT-AC88U.
+
+Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
+Acked-by: Alvin Šipraga <alsi@bang-olufsen.dk>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 77 ++++++++++++++++++++
+ 1 file changed, 77 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
++++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
+@@ -93,6 +93,83 @@
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
+               };
+       };
++
++      switch {
++              compatible = "realtek,rtl8365mb";
++              /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */
++              mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
++              mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
++              reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
++              realtek,disable-leds;
++              dsa,member = <1 0>;
++
++              ports {
++                      #address-cells = <1>;
++                      #size-cells = <0>;
++                      reg = <0>;
++
++                      port@0 {
++                              reg = <0>;
++                              label = "lan5";
++                              phy-handle = <&ethphy0>;
++                      };
++
++                      port@1 {
++                              reg = <1>;
++                              label = "lan6";
++                              phy-handle = <&ethphy1>;
++                      };
++
++                      port@2 {
++                              reg = <2>;
++                              label = "lan7";
++                              phy-handle = <&ethphy2>;
++                      };
++
++                      port@3 {
++                              reg = <3>;
++                              label = "lan8";
++                              phy-handle = <&ethphy3>;
++                      };
++
++                      port@6 {
++                              reg = <6>;
++                              label = "cpu";
++                              ethernet = <&sw0_p5>;
++                              phy-mode = "rgmii";
++                              tx-internal-delay-ps = <2000>;
++                              rx-internal-delay-ps = <2000>;
++
++                              fixed-link {
++                                      speed = <1000>;
++                                      full-duplex;
++                                      pause;
++                              };
++                      };
++              };
++
++              mdio {
++                      compatible = "realtek,smi-mdio";
++                      #address-cells = <1>;
++                      #size-cells = <0>;
++
++                      ethphy0: ethernet-phy@0 {
++                              reg = <0>;
++                      };
++
++                      ethphy1: ethernet-phy@1 {
++                              reg = <1>;
++                      };
++
++                      ethphy2: ethernet-phy@2 {
++                              reg = <2>;
++                      };
++
++                      ethphy3: ethernet-phy@3 {
++                              reg = <3>;
++                      };
++              };
++      };
+ };
+ &srab {
index 628569eca9c4af0fd9bd4f0add327374e7d76775..39ce3259fbd4d17a2d7a900fbc0a3c770978b7de 100644 (file)
@@ -14,11 +14,9 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  arch/arm/boot/dts/bcm5301x.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
-index f92089290ccd..ec5de636796e 100644
 --- a/arch/arm/boot/dts/bcm5301x.dtsi
 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
-@@ -408,7 +408,7 @@ uart2: serial@18008000 {
+@@ -408,7 +408,7 @@
        i2c0: i2c@18009000 {
                compatible = "brcm,iproc-i2c";
                reg = <0x18009000 0x50>;
@@ -27,6 +25,3 @@ index f92089290ccd..ec5de636796e 100644
                #address-cells = <1>;
                #size-cells = <0>;
                clock-frequency = <100000>;
--- 
-2.25.1
-
index acd69edaab9dd9f77a6eab635dfc3e2b5f856f31..9e2adfa1315b0e0a0acca4635a4ad3fd99f100f8 100644 (file)
@@ -51,7 +51,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  };
  
  &uart0 {
-@@ -196,3 +168,31 @@
+@@ -229,3 +195,31 @@
                };
        };
  };