From nobody Tue Jun 16 01:37:07 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44F2EC433EF for ; Thu, 21 Apr 2022 15:11:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389969AbiDUPO0 (ORCPT ); Thu, 21 Apr 2022 11:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389985AbiDUPOR (ORCPT ); Thu, 21 Apr 2022 11:14:17 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE76D46163; Thu, 21 Apr 2022 08:11:10 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id q3so5160928plg.3; Thu, 21 Apr 2022 08:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3FK8dTuLoBtzcuEmwJHQddp5IKeSSjXBglcT/dgsgJE=; b=BOgNinI6yGyyXVu0C94MJIr88RLyuV9PKO8smiv1WF5fPEqDIKzxUSGuFSboxOKmsR WuTICmD6/Hf50TfPfoZFoK2APZrms83bQ9P9IjobwL5nbPpCXZA3cdfj3wNPaGa/HQTz G3GcUgJ1X47ECyLqlZgcsG8b8L/5+QKQpVbWqTPt/jk0WW+hYOxrin4CtnE7AWGyT1mD 1+QNCmHHOnRSQ8q3o89ViJu1us0X0GTaL2SoMkyJp5MshfrqgN4JRUprlEp+KMTfsL0E Q7RXWn2JVR6RCZNPzpiybwjcYZICXz6Y1dndxeFawnpRiO8UseJbsfku8jJGTqjvVFgP xJPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3FK8dTuLoBtzcuEmwJHQddp5IKeSSjXBglcT/dgsgJE=; b=NjmLwSStmZg7ktuinRCPDxEYBSXwJS/lc43BUl9uN0L9PIfibBHHpERvw8GTVMO90D DTXyOt20phCX5cH0u3qOYjCV2+FA0CXKffc5lTUYW3YOwGenloQlfWRaCkI1snAKqYMX 6cvhxboORgTVkeCQ2k4H6/1lhJgOrvt2eQPu8riaWrtywAOlIdzD3pFTQ8DRcqB0t502 2u26wR4D9C6RG70BYq8ndwjxEGBpf/lfNU6n59NXD7wI+L81xal4DfvwhpKp2LH/6SWo PBjh4Xbvrd4cAAirT3uAbvvftqmJozvHQ230SJKYZ8hKWLpuXW+E19IHQ3GZsIW9xaoP 41Sg== X-Gm-Message-State: AOAM533cjBcsflOXU7J6/GG1jl8Fw6OYOhuH1TorRpoBjgTI2PWkra8C bz37EKShl5M0D/drrd48vqB0gaLlSheUpg== X-Google-Smtp-Source: ABdhPJyODH2AISsaZ+PqtXq3kLm8nnNbMGuEcP7ZbCBev1zsTuFGuG863k/Bp9yECP4esT7A9c5asw== X-Received: by 2002:a17:90b:4d81:b0:1d2:8525:5f1c with SMTP id oj1-20020a17090b4d8100b001d285255f1cmr113711pjb.27.1650553870325; Thu, 21 Apr 2022 08:11:10 -0700 (PDT) Received: from V2.localdomain (M106073234000.v4.enabler.ne.jp. [106.73.234.0]) by smtp.gmail.com with ESMTPSA id 16-20020a621410000000b0050aca5f79f5sm6875704pfu.97.2022.04.21.08.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 08:11:10 -0700 (PDT) From: SHIMAMOTO Takayoshi To: takayoshi.shimamoto.360@gmail.com Cc: Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: BCM5301X: Add DT for WZR-1166DHP,DHP2 Date: Fri, 22 Apr 2022 00:10:54 +0900 Message-Id: <20220421151055.6851-1-takayoshi.shimamoto.360@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Buffalo WZR-1166DHP/WZR-1166DHP2 wireless router with - BCM4708A0 - 128MiB NAND flash - 2T2R 11ac/a/b/g/n Wi-Fi - 4x 10/100/1000M ethernet switch - 1x USB 3.0 port WZR-1166DHP and WZR-1166DHP2 have different memory capacity. WZR-1166DHP - 512 MiB DDR2 SDRAM WZR-1166DHP2 - 256 MiB DDR2 SDRAM These hardware components are very similar to the WZR-1750DHP except for the number of antennas. Signed-off-by: SHIMAMOTO Takayoshi --- arch/arm/boot/dts/Makefile | 2 + .../bcm4708-buffalo-wzr-1166dhp-common.dtsi | 192 ++++++++++++++++++ .../boot/dts/bcm4708-buffalo-wzr-1166dhp.dts | 26 +++ .../boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts | 26 +++ 4 files changed, 246 insertions(+) create mode 100644 arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dt= si create mode 100644 arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp.dts create mode 100644 arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7c16f8a2b738..8611d9b38d3b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -103,6 +103,8 @@ dtb-$(CONFIG_ARCH_BCM_5301X) +=3D \ bcm4708-asus-rt-ac56u.dtb \ bcm4708-asus-rt-ac68u.dtb \ bcm4708-buffalo-wzr-1750dhp.dtb \ + bcm4708-buffalo-wzr-1166dhp.dtb \ + bcm4708-buffalo-wzr-1166dhp2.dtb \ bcm4708-linksys-ea6300-v1.dtb \ bcm4708-linksys-ea6500-v2.dtb \ bcm4708-luxul-xap-1510.dtb \ diff --git a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi b/ar= ch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi new file mode 100644 index 000000000000..d659e409a17e --- /dev/null +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi @@ -0,0 +1,192 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Broadcom BCM470X / BCM5301X ARM platform code. + * DTS for Buffalo WZR-1166DHP and WZR-1166DHP2 + * + * Copyright (C) 2014 Rafa=C5=82 Mi=C5=82ecki + * Copyright (C) 2022 SHIMAMOTO Takayoshi + */ + + +#include "bcm4708.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" +#include + +/ { + spi { + compatible =3D "spi-gpio"; + num-chipselects =3D <1>; + gpio-sck =3D <&chipcommon 7 0>; + gpio-mosi =3D <&chipcommon 4 0>; + cs-gpios =3D <&chipcommon 6 0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + hc595: gpio_spi@0 { + compatible =3D "fairchild,74hc595"; + reg =3D <0>; + registers-number =3D <1>; + spi-max-frequency =3D <100000>; + + gpio-controller; + #gpio-cells =3D <2>; + + }; + }; + + leds { + compatible =3D "gpio-leds"; + + usb { + /* label =3D "bcm53xx:blue:usb"; */ + function =3D LED_FUNCTION_USB; + color =3D ; + gpios =3D <&hc595 0 GPIO_ACTIVE_HIGH>; + trigger-sources =3D <&ohci_port1>, <&ehci_port1>, + <&xhci_port1>, <&ohci_port2>, + <&ehci_port2>; + linux,default-trigger =3D "usbport"; + }; + + power0 { + /* label =3D "bcm53xx:red:power"; */ + function =3D LED_FUNCTION_FAULT; + color =3D ; + gpios =3D <&hc595 1 GPIO_ACTIVE_HIGH>; + }; + + power1 { + /* label =3D "bcm53xx:white:power"; */ + function =3D LED_FUNCTION_POWER; + color =3D ; + gpios =3D <&hc595 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "default-on"; + }; + + router0 { + /* label =3D "bcm53xx:blue:router"; */ + function =3D LED_FUNCTION_STATUS; + color =3D ; + gpios =3D <&hc595 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "default-on"; + }; + + router1 { + /* label =3D "bcm53xx:amber:router"; */ + function =3D LED_FUNCTION_STATUS; + color =3D ; + gpios =3D <&hc595 4 GPIO_ACTIVE_HIGH>; + }; + + wan { + /* label =3D "bcm53xx:blue:wan"; */ + function =3D LED_FUNCTION_WAN; + color =3D ; + gpios =3D <&hc595 5 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "default-on"; + }; + + wireless0 { + /* label =3D "bcm53xx:blue:wireless"; */ + function =3D LED_FUNCTION_WLAN; + color =3D ; + gpios =3D <&hc595 6 GPIO_ACTIVE_HIGH>; + }; + + wireless1 { + /* label =3D "bcm53xx:amber:wireless"; */ + function =3D LED_FUNCTION_WLAN; + color =3D ; + gpios =3D <&hc595 7 GPIO_ACTIVE_HIGH>; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + restart { + label =3D "Reset"; + linux,code =3D ; + gpios =3D <&chipcommon 11 GPIO_ACTIVE_LOW>; + }; + + aoss { + label =3D "AOSS"; + linux,code =3D ; + gpios =3D <&chipcommon 12 GPIO_ACTIVE_LOW>; + }; + + /* Commit mode set by switch? */ + mode { + label =3D "Mode"; + linux,code =3D ; + gpios =3D <&chipcommon 13 GPIO_ACTIVE_LOW>; + }; + + /* Switch: AP mode */ + sw_ap { + label =3D "AP"; + linux,code =3D ; + gpios =3D <&chipcommon 14 GPIO_ACTIVE_LOW>; + }; + + eject { + label =3D "USB eject"; + linux,code =3D ; + gpios =3D <&chipcommon 15 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&usb2 { + vcc-gpio =3D <&chipcommon 9 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio =3D <&chipcommon 10 GPIO_ACTIVE_LOW>; +}; + +&spi_nor { + status =3D "okay"; +}; + +&usb3_phy { + status =3D "okay"; +}; + +&srab { + status =3D "okay"; + + ports { + port@0 { + reg =3D <0>; + label =3D "lan1"; + }; + + port@1 { + reg =3D <1>; + label =3D "lan2"; + }; + + port@2 { + reg =3D <2>; + label =3D "lan3"; + }; + + port@3 { + reg =3D <3>; + label =3D "lan4"; + }; + + port@4 { + reg =3D <4>; + label =3D "wan"; + }; + + port@5 { + reg =3D <5>; + label =3D "cpu"; + ethernet =3D <&gmac0>; + }; + }; +}; diff --git a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp.dts b/arch/arm/b= oot/dts/bcm4708-buffalo-wzr-1166dhp.dts new file mode 100644 index 000000000000..8e506269fa1a --- /dev/null +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Device Tree Bindigs for Buffalo WZR-1166DHP + * + * Copyright (C) 2022 SHIMAMOTO Takayoshi + */ + +/dts-v1/; + +#include "bcm4708-buffalo-wzr-1166dhp-common.dtsi" + +/ { + compatible =3D "buffalo,wzr-1166dhp", "brcm,bcm4708"; + model =3D "Buffalo WZR-1166DHP"; + + chosen { + bootargs =3D "console=3DttyS0,115200"; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x00000000 0x08000000>, + <0x88000000 0x18000000>; + }; + +}; diff --git a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts b/arch/arm/= boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts new file mode 100644 index 000000000000..596129027074 --- /dev/null +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Device Tree Bindigs for Buffalo WZR-1166DHP2 + * + * Copyright (C) 2022 SHIMAMOTO Takayoshi + */ + +/dts-v1/; + +#include "bcm4708-buffalo-wzr-1166dhp-common.dtsi" + +/ { + compatible =3D "buffalo,wzr-1166dhp2", "brcm,bcm4708"; + model =3D "Buffalo WZR-1166DHP2"; + + chosen { + bootargs =3D "console=3DttyS0,115200"; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x00000000 0x08000000>, + <0x88000000 0x08000000>; + }; + +}; --=20 2.30.2