devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from Asus RT-AC88U
@ 2021-10-26 16:57 Arınç ÜNAL
  2021-10-26 16:57 ` [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on " Arınç ÜNAL
  2021-11-03 19:09 ` [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from " Florian Fainelli
  0 siblings, 2 replies; 5+ messages in thread
From: Arınç ÜNAL @ 2021-10-26 16:57 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Alvin Šipraga, Rafał Miłecki, Hauke Mehrtens,
	Rob Herring, linux-arm-kernel, devicetree,
	bcm-kernel-feedback-list, Arınç ÜNAL

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>
---
 arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
index 448060561cd0..b0cee1d87600 100644
--- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
+++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
@@ -68,8 +68,6 @@ wps {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		wps {
 			label = "WPS";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U
  2021-10-26 16:57 [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from Asus RT-AC88U Arınç ÜNAL
@ 2021-10-26 16:57 ` Arınç ÜNAL
  2021-10-26 23:46   ` Alvin Šipraga
  2021-11-03 19:09   ` Florian Fainelli
  2021-11-03 19:09 ` [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from " Florian Fainelli
  1 sibling, 2 replies; 5+ messages in thread
From: Arınç ÜNAL @ 2021-10-26 16:57 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Alvin Šipraga, Rafał Miłecki, Hauke Mehrtens,
	Rob Herring, linux-arm-kernel, devicetree,
	bcm-kernel-feedback-list, Arınç ÜNAL

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>
---
 arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 77 ++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
index b0cee1d87600..16dea851719f 100644
--- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
+++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
@@ -93,6 +93,83 @@ led {
 			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 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U
  2021-10-26 16:57 ` [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on " Arınç ÜNAL
@ 2021-10-26 23:46   ` Alvin Šipraga
  2021-11-03 19:09   ` Florian Fainelli
  1 sibling, 0 replies; 5+ messages in thread
From: Alvin Šipraga @ 2021-10-26 23:46 UTC (permalink / raw)
  To: Arınç ÜNAL, Florian Fainelli
  Cc: Rafał Miłecki, Hauke Mehrtens, Rob Herring,
	linux-arm-kernel, devicetree, bcm-kernel-feedback-list

On 10/26/21 18:57, Arınç ÜNAL wrote:
> 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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from Asus RT-AC88U
  2021-10-26 16:57 [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from Asus RT-AC88U Arınç ÜNAL
  2021-10-26 16:57 ` [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on " Arınç ÜNAL
@ 2021-11-03 19:09 ` Florian Fainelli
  1 sibling, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2021-11-03 19:09 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Arınç ÜNAL
  Cc: Alvin Šipraga, Rafał Miłecki, Hauke Mehrtens,
	Rob Herring, linux-arm-kernel, devicetree

On Wed, 27 Oct 2021 00:57:03 +0800, Arınç ÜNAL <arinc.unal@arinc9.com> wrote:
> 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>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U
  2021-10-26 16:57 ` [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on " Arınç ÜNAL
  2021-10-26 23:46   ` Alvin Šipraga
@ 2021-11-03 19:09   ` Florian Fainelli
  1 sibling, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2021-11-03 19:09 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Arınç ÜNAL
  Cc: Alvin Šipraga, Rafał Miłecki, Hauke Mehrtens,
	Rob Herring, linux-arm-kernel, devicetree

On Wed, 27 Oct 2021 00:57:06 +0800, Arınç ÜNAL <arinc.unal@arinc9.com> wrote:
> 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>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-03 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 16:57 [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from Asus RT-AC88U Arınç ÜNAL
2021-10-26 16:57 ` [PATCH v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on " Arınç ÜNAL
2021-10-26 23:46   ` Alvin Šipraga
2021-11-03 19:09   ` Florian Fainelli
2021-11-03 19:09 ` [PATCH v2 1/2] ARM: dts: BCM5301X: remove unnecessary address & size cells from " Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).