devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: BCM5301X: Add support for Buffalo WXR-1750DHP
@ 2025-07-13  7:18 Taishi Shimizu
  2025-07-13  7:18 ` [PATCH v2 1/2] dt-bindings: arm: bcm: " Taishi Shimizu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Taishi Shimizu @ 2025-07-13  7:18 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Hauke Mehrtens,
	Rafal Milecki, Florian Fainelli
  Cc: linux-arm-kernel, devicetree, linux-kernel,
	Broadcom internal kernel review list, Linus Walleij,
	Stefan Wahren, Taishi Shimizu, Krzysztof Kozlowski

This patch series adds support for the Buffalo WXR-1750DHP router,
based on the Broadcom BCM4708 SoC.

Patch 1 updates the device tree bindings documentation to list
Buffalo WXR-1750DHP as a supported board under BCM4708.

Patch 2 introduces a device tree source file for the router.

Changes since v1:
 - remove `chosen` node and `bootargs` (inherited from bcm4708.dtsi)
 - replace `label` in LEDs with `color` and `function` properties
 - change USB LED to use `LED_FUNCTION_USB` and added `trigger-sources`
 - reorder GPIOs and clean up button node formatting

Taishi Shimizu (2):
  dt-bindings: arm: bcm: Add support for Buffalo WXR-1750DHP
  ARM: dts: BCM5301X: Add support for Buffalo WXR-1750DHP

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> # for patch 1

 .../bindings/arm/bcm/brcm,bcm4708.yaml        |   1 +
 arch/arm/boot/dts/broadcom/Makefile           |   1 +
 .../broadcom/bcm4708-buffalo-wxr-1750dhp.dts  | 138 ++++++++++++++++++
 3 files changed, 140 insertions(+)
 create mode 100644 arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts


base-commit: 379f604cc3dc2c865dc2b13d81faa166b6df59ec
-- 
2.43.0


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

* [PATCH v2 1/2] dt-bindings: arm: bcm: Add support for Buffalo WXR-1750DHP
  2025-07-13  7:18 [PATCH v2 0/2] ARM: BCM5301X: Add support for Buffalo WXR-1750DHP Taishi Shimizu
@ 2025-07-13  7:18 ` Taishi Shimizu
  2025-08-08 16:04   ` Florian Fainelli
  2025-07-13  7:18 ` [PATCH v2 2/2] ARM: dts: BCM5301X: " Taishi Shimizu
  2025-07-14 15:24 ` [PATCH v2 0/2] ARM: " Rob Herring (Arm)
  2 siblings, 1 reply; 6+ messages in thread
From: Taishi Shimizu @ 2025-07-13  7:18 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Hauke Mehrtens,
	Rafal Milecki, Florian Fainelli
  Cc: linux-arm-kernel, devicetree, linux-kernel,
	Broadcom internal kernel review list, Linus Walleij,
	Stefan Wahren, Taishi Shimizu, Krzysztof Kozlowski

Add Buffalo WXR-1750DHP under BCM4708 based boards.

Signed-off-by: Taishi Shimizu <s.taishi14142@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
index d925e7a3b5ef..f47d74a5b0b6 100644
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
@@ -25,6 +25,7 @@ properties:
           - enum:
               - asus,rt-ac56u
               - asus,rt-ac68u
+              - buffalo,wxr-1750dhp
               - buffalo,wzr-1166dhp
               - buffalo,wzr-1166dhp2
               - buffalo,wzr-1750dhp
-- 
2.43.0


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

* [PATCH v2 2/2] ARM: dts: BCM5301X: Add support for Buffalo WXR-1750DHP
  2025-07-13  7:18 [PATCH v2 0/2] ARM: BCM5301X: Add support for Buffalo WXR-1750DHP Taishi Shimizu
  2025-07-13  7:18 ` [PATCH v2 1/2] dt-bindings: arm: bcm: " Taishi Shimizu
@ 2025-07-13  7:18 ` Taishi Shimizu
  2025-08-08 16:04   ` Florian Fainelli
  2025-07-14 15:24 ` [PATCH v2 0/2] ARM: " Rob Herring (Arm)
  2 siblings, 1 reply; 6+ messages in thread
From: Taishi Shimizu @ 2025-07-13  7:18 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Hauke Mehrtens,
	Rafal Milecki, Florian Fainelli
  Cc: linux-arm-kernel, devicetree, linux-kernel,
	Broadcom internal kernel review list, Linus Walleij,
	Stefan Wahren, Taishi Shimizu

Add initial device tree support for the Buffalo WXR-1750DHP, a consumer Wi-Fi
router based on the Broadcom BCM4708A0 SoC.

Hardware specifications:
* Processor: Broadcom BCM4708A0 dual-core @ 800 MHz
* RAM: DDR3 256 MB
* Ethernet Switch: Broadcom BCM53011 integrated via SRAB
* NAND Flash: 128 MB (8-bit ECC)
* SPI Flash: None
* Ports: 4 LAN Ports, 1 WAN Port
* USB: 1x USB 3.0 Type-A port

Signed-off-by: Taishi Shimizu <s.taishi14142@gmail.com>
---
 arch/arm/boot/dts/broadcom/Makefile           |   1 +
 .../broadcom/bcm4708-buffalo-wxr-1750dhp.dts  | 138 ++++++++++++++++++
 2 files changed, 139 insertions(+)
 create mode 100644 arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts

diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile
index 71062ff9adbe..2552e11b5e31 100644
--- a/arch/arm/boot/dts/broadcom/Makefile
+++ b/arch/arm/boot/dts/broadcom/Makefile
@@ -51,6 +51,7 @@ dtb-$(CONFIG_ARCH_BCMBCA) += \
 dtb-$(CONFIG_ARCH_BCM_5301X) += \
 	bcm4708-asus-rt-ac56u.dtb \
 	bcm4708-asus-rt-ac68u.dtb \
+	bcm4708-buffalo-wxr-1750dhp.dtb \
 	bcm4708-buffalo-wzr-1750dhp.dtb \
 	bcm4708-buffalo-wzr-1166dhp.dtb \
 	bcm4708-buffalo-wzr-1166dhp2.dtb \
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts
new file mode 100644
index 000000000000..f5c95c9a712e
--- /dev/null
+++ b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts
@@ -0,0 +1,138 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Author: Taishi Shimizu <s.taishi14142@gmail.com>
+ */
+
+/dts-v1/;
+
+#include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
+#include <dt-bindings/leds/common.h>
+
+/ {
+	compatible = "buffalo,wxr-1750dhp", "brcm,bcm4708";
+	model = "Buffalo WXR-1750DHP";
+
+	memory@0 {
+		reg = <0x00000000 0x08000000>,
+		      <0x88000000 0x08000000>;
+		device_type = "memory";
+	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		button-aoss {
+			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+			label = "AOSS";
+			linux,code = <KEY_WPS_BUTTON>;
+		};
+
+		/* GPIO 3 is a switch button with AUTO / MANUAL. */
+		button-manual {
+			gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
+			label = "MANUAL";
+			linux,code = <BTN_0>;
+			linux,input-type = <EV_SW>;
+		};
+
+		button-restart {
+			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+			label = "Reset";
+			linux,code = <KEY_RESTART>;
+		};
+
+		/* GPIO 8 and 9 are a tri-state switch button with
+		 * ROUTER / AP / WB.
+		 */
+		button-router {
+			gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+			label = "ROUTER";
+			linux,code = <BTN_1>;
+			linux,input-type = <EV_SW>;
+		};
+
+		button-wb {
+			gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
+			label = "WB";
+			linux,code = <BTN_2>;
+			linux,input-type = <EV_SW>;
+		};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led-internet {
+			color = <LED_COLOR_ID_WHITE>;
+			function = "internet";
+			gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-power0 {
+			color = <LED_COLOR_ID_AMBER>;
+			function = LED_FUNCTION_POWER;
+			gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-power1 {
+			color = <LED_COLOR_ID_WHITE>;
+			function = LED_FUNCTION_POWER;
+			gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-router0 {
+			color = <LED_COLOR_ID_AMBER>;
+			function = "router";
+			gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-router1 {
+			color = <LED_COLOR_ID_WHITE>;
+			function = "router";
+			gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-usb {
+			color = <LED_COLOR_ID_GREEN>;
+			function = LED_FUNCTION_USB;
+			gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "usbport";
+			trigger-sources = <&xhci_port1 &ehci_port1 &ohci_port1>;
+		};
+	};
+};
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+		};
+
+		port@1 {
+			label = "lan4";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan2";
+		};
+
+		port@4 {
+			label = "lan1";
+		};
+	};
+};
+
+&usb3 {
+	vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+};
+
+&usb3_phy {
+	status = "okay";
+};
-- 
2.43.0


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

* Re: [PATCH v2 0/2] ARM: BCM5301X: Add support for Buffalo WXR-1750DHP
  2025-07-13  7:18 [PATCH v2 0/2] ARM: BCM5301X: Add support for Buffalo WXR-1750DHP Taishi Shimizu
  2025-07-13  7:18 ` [PATCH v2 1/2] dt-bindings: arm: bcm: " Taishi Shimizu
  2025-07-13  7:18 ` [PATCH v2 2/2] ARM: dts: BCM5301X: " Taishi Shimizu
@ 2025-07-14 15:24 ` Rob Herring (Arm)
  2 siblings, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2025-07-14 15:24 UTC (permalink / raw)
  To: Taishi Shimizu
  Cc: devicetree, Krzysztof Kozlowski, Rafal Milecki, Stefan Wahren,
	Florian Fainelli, linux-arm-kernel, linux-kernel, Linus Walleij,
	Hauke Mehrtens, Krzysztof Kozlowski, Conor Dooley,
	Broadcom internal kernel review list


On Sun, 13 Jul 2025 16:18:23 +0900, Taishi Shimizu wrote:
> This patch series adds support for the Buffalo WXR-1750DHP router,
> based on the Broadcom BCM4708 SoC.
> 
> Patch 1 updates the device tree bindings documentation to list
> Buffalo WXR-1750DHP as a supported board under BCM4708.
> 
> Patch 2 introduces a device tree source file for the router.
> 
> Changes since v1:
>  - remove `chosen` node and `bootargs` (inherited from bcm4708.dtsi)
>  - replace `label` in LEDs with `color` and `function` properties
>  - change USB LED to use `LED_FUNCTION_USB` and added `trigger-sources`
>  - reorder GPIOs and clean up button node formatting
> 
> Taishi Shimizu (2):
>   dt-bindings: arm: bcm: Add support for Buffalo WXR-1750DHP
>   ARM: dts: BCM5301X: Add support for Buffalo WXR-1750DHP
> 
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> # for patch 1
> 
>  .../bindings/arm/bcm/brcm,bcm4708.yaml        |   1 +
>  arch/arm/boot/dts/broadcom/Makefile           |   1 +
>  .../broadcom/bcm4708-buffalo-wxr-1750dhp.dts  | 138 ++++++++++++++++++
>  3 files changed, 140 insertions(+)
>  create mode 100644 arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts
> 
> 
> base-commit: 379f604cc3dc2c865dc2b13d81faa166b6df59ec
> --
> 2.43.0
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


This patch series was applied (using b4) to base:
 Base: using specified base-commit 379f604cc3dc2c865dc2b13d81faa166b6df59ec

If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm/boot/dts/broadcom/' for 20250713071826.726682-1-s.taishi14142@gmail.com:

arch/arm/boot/dts/broadcom/bcm958305k.dtb: pwm@180aa500 (brcm,kona-pwm): compatible:0: 'brcm,kona-pwm' is not one of ['brcm,bcm11351-pwm']
	from schema $id: http://devicetree.org/schemas/pwm/brcm,kona-pwm.yaml#
arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dtb: pcie@12000: 'ranges' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: /axi@18000000: failed to match any schema with compatible: ['brcm,bus-axi']
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: pcie@12000: 'device_type' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: pcie@12000: 'ranges' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: pcie@13000: 'device_type' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: pcie@13000: 'ranges' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: pcie@14000: 'device_type' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: pcie@14000: 'ranges' is a required property
	from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: ethernet-switch@18007000 (brcm,bcm53011-srab): ports:port@5: 'phy-mode' is a required property
	from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: ethernet-switch@18007000 (brcm,bcm53011-srab): ports:port@5: 'oneOf' conditional failed, one must be fixed:
	'fixed-link' is a required property
	'phy-handle' is a required property
	'managed' is a required property
	from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: ethernet-switch@18007000 (brcm,bcm53011-srab): ports:port@7: 'phy-mode' is a required property
	from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: ethernet-switch@18007000 (brcm,bcm53011-srab): ports:port@7: 'oneOf' conditional failed, one must be fixed:
	'fixed-link' is a required property
	'phy-handle' is a required property
	'managed' is a required property
	from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: ethernet-switch@18007000 (brcm,bcm53011-srab): ports:port@8: 'phy-mode' is a required property
	from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dtb: ethernet-switch@18007000 (brcm,bcm53011-srab): Unevaluated properties are not allowed ('ports' was unexpected)
	from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#






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

* Re: [PATCH v2 1/2] dt-bindings: arm: bcm: Add support for Buffalo WXR-1750DHP
  2025-07-13  7:18 ` [PATCH v2 1/2] dt-bindings: arm: bcm: " Taishi Shimizu
@ 2025-08-08 16:04   ` Florian Fainelli
  0 siblings, 0 replies; 6+ messages in thread
From: Florian Fainelli @ 2025-08-08 16:04 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Taishi Shimizu, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Hauke Mehrtens, Rafal Milecki,
	Florian Fainelli
  Cc: Florian Fainelli, linux-arm-kernel, devicetree, linux-kernel,
	Linus Walleij, Stefan Wahren, Krzysztof Kozlowski

From: Florian Fainelli <f.fainelli@gmail.com>

On Sun, 13 Jul 2025 16:18:24 +0900, Taishi Shimizu <s.taishi14142@gmail.com> wrote:
> Add Buffalo WXR-1750DHP under BCM4708 based boards.
> 
> Signed-off-by: Taishi Shimizu <s.taishi14142@gmail.com>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---

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

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

* Re: [PATCH v2 2/2] ARM: dts: BCM5301X: Add support for Buffalo WXR-1750DHP
  2025-07-13  7:18 ` [PATCH v2 2/2] ARM: dts: BCM5301X: " Taishi Shimizu
@ 2025-08-08 16:04   ` Florian Fainelli
  0 siblings, 0 replies; 6+ messages in thread
From: Florian Fainelli @ 2025-08-08 16:04 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Taishi Shimizu, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Hauke Mehrtens, Rafal Milecki,
	Florian Fainelli
  Cc: Florian Fainelli, linux-arm-kernel, devicetree, linux-kernel,
	Linus Walleij, Stefan Wahren

From: Florian Fainelli <f.fainelli@gmail.com>

On Sun, 13 Jul 2025 16:18:25 +0900, Taishi Shimizu <s.taishi14142@gmail.com> wrote:
> Add initial device tree support for the Buffalo WXR-1750DHP, a consumer Wi-Fi
> router based on the Broadcom BCM4708A0 SoC.
> 
> Hardware specifications:
> * Processor: Broadcom BCM4708A0 dual-core @ 800 MHz
> * RAM: DDR3 256 MB
> * Ethernet Switch: Broadcom BCM53011 integrated via SRAB
> * NAND Flash: 128 MB (8-bit ECC)
> * SPI Flash: None
> * Ports: 4 LAN Ports, 1 WAN Port
> * USB: 1x USB 3.0 Type-A port
> 
> Signed-off-by: Taishi Shimizu <s.taishi14142@gmail.com>
> ---

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

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

end of thread, other threads:[~2025-08-08 16:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-13  7:18 [PATCH v2 0/2] ARM: BCM5301X: Add support for Buffalo WXR-1750DHP Taishi Shimizu
2025-07-13  7:18 ` [PATCH v2 1/2] dt-bindings: arm: bcm: " Taishi Shimizu
2025-08-08 16:04   ` Florian Fainelli
2025-07-13  7:18 ` [PATCH v2 2/2] ARM: dts: BCM5301X: " Taishi Shimizu
2025-08-08 16:04   ` Florian Fainelli
2025-07-14 15:24 ` [PATCH v2 0/2] ARM: " Rob Herring (Arm)

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).