From nobody Mon May 11 06:17:34 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 E15B9C433F5 for ; Tue, 12 Apr 2022 15:45:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357239AbiDLPsD (ORCPT ); Tue, 12 Apr 2022 11:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235507AbiDLPsB (ORCPT ); Tue, 12 Apr 2022 11:48:01 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5876320BCE; Tue, 12 Apr 2022 08:45:43 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id n18so17129176plg.5; Tue, 12 Apr 2022 08:45:43 -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=3okIYTvZNPFDunpvxgG2iXtNjtosYg6lQPzQ1MGwbJk=; b=X/UPOyLBVYd9TIRyXWlv2m/qBkAxBI3gZcp892x+jLOpWGQjCrY6l21VxfC6OIj2zx y+LNFLSq/2ySZEPpl9NRKL7mVdXtUA6ygKL9jgpGDbOZYiwjU1Vb610Kau3kM9gkp9Vb pxoPd+4QWSBTcPUSacGXjBsZ1U6p1WJdjjzj1RpFHx6tlnqyz7G1VHbgGj/NqCc1OBoZ s7apPROniiyoUB7V+1tf/XE6jONPrZleR1Ms1Hwt7RGFgF2SL8UDaLhwpJpepNe2ZOHX 1vbaO0ALE1SXpeS3xeAmff5kPNqCp0FmAlOvGBrg5Q4pOpLmKjxZ6qAgXnVtTr9VxIq3 DvRg== 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=3okIYTvZNPFDunpvxgG2iXtNjtosYg6lQPzQ1MGwbJk=; b=aDrJgLzO7LLst3jqniN5B1bbzZIHUxgFJ+bxy3wJs/mYoLONtxdmtTgv+AJBqSJX3W UMjlj3Yk2FkFQQDO4kPwlJm1kLhlKSmf48uLUFE01xprjlR72rEUtJkahXERjeI5o2U8 f+TYu9KlHrgdl7RhZfep/bSqvIeR+r0JsY1lbGqmyBlhtMTrOtatVmmKuZmhcybvkyDx AcmdFXJmahkHRvVCOis8fbwP3YSHf3ej1VWEz4ev9dHy6QG6wqtCxm59VVTPF99ThVJG KilXuMXrMIqwVvlsisV+WaYDVf4bLn29iFTp6Hv4geKEe8Hf+lQFQvi6mlJkDQ4qZmVH B9VA== X-Gm-Message-State: AOAM532+pqcaalM9mnFGVqU07YTK9nglm52x9P3+K6KUCNZTXgwmMGtB 7kP5TpJVcq2tuKT788U9DE8= X-Google-Smtp-Source: ABdhPJwfCHUCHLh1AyfvndnhFyCvr6gFxb9RB5wBg1ql/h57JQt+JyCDcfyRnQmR3mPH3+JjWND2EQ== X-Received: by 2002:a17:902:eb81:b0:158:937e:adf with SMTP id q1-20020a170902eb8100b00158937e0adfmr1853244plg.123.1649778342872; Tue, 12 Apr 2022 08:45:42 -0700 (PDT) Received: from V2.localdomain (M106073234000.v4.enabler.ne.jp. [106.73.234.0]) by smtp.gmail.com with ESMTPSA id pg14-20020a17090b1e0e00b001c75634df70sm3285157pjb.31.2022.04.12.08.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 08:45:42 -0700 (PDT) From: SHIMAMOTO Takayoshi To: takayoshi.shimamoto.360@gmail.com Cc: Florian Fainelli , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , bcm-kernel-feedback-list@broadcom.com, Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Buffalo WZR-1166DHP2 Date: Wed, 13 Apr 2022 00:44:30 +0900 Message-Id: <20220412154432.12124-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-1166DHP2 wireless router with - BCM4708A0 - 256MiB DDR2 SDRAM - 128MiB NAND flash - 2T2R 11ac/a/b/g/n Wi-Fi - 4x 10/100M ethernet switch The hardware configuration is very similar to the WZR-1750DHP, except for memory size and number of antennas. Signed-off-by: SHIMAMOTO Takayoshi --- .../boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts | 189 ++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts 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..22e54a0a202a --- /dev/null +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp2.dts @@ -0,0 +1,189 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Broadcom BCM470X / BCM5301X ARM platform code. + * DTS for Buffalo WZR-1166DHP2 + * + * Copyright (C) 2014 Rafa=C5=82 Mi=C5=82ecki + * Copyright (C) 2022 SHIMAMOTO Takayoshi + */ + +/dts-v1/; + +#include "bcm4708.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" + +/ { + compatible =3D "buffalo,wzr-1166dhp2", "brcm,bcm4708"; + model =3D "Buffalo WZR-1166DHP2 (BCM4708)"; + + chosen { + bootargs =3D "console=3DttyS0,115200"; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x00000000 0x08000000>, + <0x88000000 0x08000000>; + }; + + 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"; + 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"; + gpios =3D <&hc595 1 GPIO_ACTIVE_HIGH>; + }; + + power1 { + label =3D "bcm53xx:white:power"; + gpios =3D <&hc595 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "default-on"; + }; + + router0 { + label =3D "bcm53xx:blue:router"; + gpios =3D <&hc595 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "default-on"; + }; + + router1 { + label =3D "bcm53xx:amber:router"; + gpios =3D <&hc595 4 GPIO_ACTIVE_HIGH>; + }; + + wan { + label =3D "bcm53xx:blue:wan"; + gpios =3D <&hc595 5 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "default-on"; + }; + + wireless0 { + label =3D "bcm53xx:blue:wireless"; + gpios =3D <&hc595 6 GPIO_ACTIVE_HIGH>; + }; + + wireless1 { + label =3D "bcm53xx:amber:wireless"; + 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>; + }; + }; +}; --=20 2.30.2