From nobody Wed Nov 27 13:01:20 2024 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7D62183CD9; Wed, 9 Oct 2024 21:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728511007; cv=none; b=CoFz/o/eXaJLgKJaKZXoDN3D0XHg0Oj0T+8eMEhzkCkHAxYz4XhAjYCDKsVrcDKBgsuUO37p/0wcxDb01oDkWqDK4wgfd56Y22U/U7VWKZVPMjV3OfwUisaz+D5CstOieXm/D+mkPZgHpdD440ldnE6705lSjvlX6bMW1XgGtds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728511007; c=relaxed/simple; bh=hKBvF7aVl369N1LMdWPFSaqSEPC42/B7x29k/guZb4E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K4wi1t/bObl683CcrKaVtkAjPPjt1pTbI19N9EG/+Tfzrve+FXD6FRCK9DUdqgHUdW8J5SGGDNFU+3d5gBpYDAgjeikpw2y1yBP0l2SrFb9tPDPitUoih98qxRxdWmu1nzfDEi2zQJgFsKGEsMDmmZbkLl8oMu5YJoFUn5T8azc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DcFQXMjZ; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DcFQXMjZ" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-71e0c3e85c5so253237b3a.2; Wed, 09 Oct 2024 14:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728511005; x=1729115805; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5SGAxTreCbsGFlOTTE3BOCBJp/69hyZC6sLc49Fka8o=; b=DcFQXMjZcQpoi7BBM6Vin4FXH5Od5y0mlJJcfr9vfTaSm53gjFwHaKJzyjv5drNvr7 E3BZw47jeQyvC+5FzTtE5VIek0pA/zwG9ANuvWbNpqYgNEW2y7P7b1WQZIWbT+wTIDoA rQnml1Ulwm/A44KDuH4mbW5GbpMBr9SQl2D1SXHMbFO5XqCb3uNKoOy85YW06gxHAcBk XI1686SBtisx+NYwzjbVYY9gOlUiCfkqpm8O7+Wgsgo5FOIDiG4MWGdozPcUNYZrgObq M1jLyFxqtxKY2duSoIm127RGUYsmN4S4aL7kJVXvAp3xNtXCfTpUbjwSOAGjbB9DJq+s c1AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728511005; x=1729115805; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5SGAxTreCbsGFlOTTE3BOCBJp/69hyZC6sLc49Fka8o=; b=rDUnT4BDa3LMr+CNGIT1GxQQkDJ3FxeHXswbUBsMuF0K2yffTemcXZRy7d0r7rhqGx G6FfuK8Z0ERMpF+Rl1oGxwlUyyEwLMLb39gp1DFOi9dO5/ebqqfYgcvRIR4Ly4TkMuz3 hvGf3p4UHXkBFKIbrdnxV4kZMSxtc7PbD6VfDFFHcF0q9E/M7hTWcuulVZE83OjgfplY gGJrkbNx0QxoSp8Q+9NgDtA87awuSpCCzjOU0O0mqyuKOsNVDIHJfMJa7q40Eg2ZRITL amLdMWVYzz1krc5bpGL7f7NY7Jm7rmTX3LmKEM/ApwBUi/E/c7yuSNOD2VPK3W6Hll/8 myiA== X-Forwarded-Encrypted: i=1; AJvYcCU4Q1zKzEb/iq0DG94SykLD28y1YCpW8hIGEmmmfDgBHVeZCse1RgIuFDsgJG+l5AKFAGd/54W6vfHY@vger.kernel.org, AJvYcCXy6qRPjdeMF3UH3uICj98GUCSF/m9+jMmhx4Lkkq2Uvb5q5E1pAYHEA2+QkraiszL5ngAO96fspV+75Eyj@vger.kernel.org X-Gm-Message-State: AOJu0YyOR9SgHKsCKhxGLPXXMojne4gBdzSmEaU7lnIGARiz1KxrWPss HB7RBvgXbmS5o2TV2eg3OYl9DVpGAIe9H6GojK0siIP75YfewEOw X-Google-Smtp-Source: AGHT+IFd7QS07/9s9F8MqCkhV+goz1SkBt+8EtolQ6YwafT/zh65S+z5PhJOcRHIzw7EIROIr/qVMg== X-Received: by 2002:a05:6a00:4fc1:b0:71e:ed6:1cb2 with SMTP id d2e1a72fcca58-71e1dbb54c6mr5773236b3a.20.1728511005180; Wed, 09 Oct 2024 14:56:45 -0700 (PDT) Received: from luna.turtle.lan ([2601:1c2:c184:dc00::315]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e9f6833ce7sm7726646a12.48.2024.10.09.14.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 14:56:44 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: Florian Fainelli , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , William Zhang , Anand Gore , Kursad Oney Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Broadcom internal kernel review list , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Edwards , Krzysztof Kozlowski Subject: [PATCH v2 1/2] dt-bindings: arm64: bcmbca: Add Zyxel EX3510-B based on BCM4906 Date: Wed, 9 Oct 2024 14:54:53 -0700 Message-ID: <20241009215454.1449508-2-CFSworks@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20241009215454.1449508-1-CFSworks@gmail.com> References: <20241009215454.1449508-1-CFSworks@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is a series (EX3510-B0 and EX3510-B1) of residential gateways based on BCM4906, a stripped-down version of the BCM4908 SoC. Although Zyxel's marketing materials call this a "series," the EX3510-B1 appears to be a very minor revision of the EX3510-B0, with only changes that are transparent to software. As far as Linux is concerned, this "series" effectively represents a single model. Signed-off-by: Sam Edwards Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/D= ocumentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml index 07892cbdd23c..4999568225f1 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml @@ -34,6 +34,7 @@ properties: - enum: - netgear,r8000p - tplink,archer-c2300-v1 + - zyxel,ex3510b - const: brcm,bcm4906 - const: brcm,bcm4908 - const: brcm,bcmbca --=20 2.44.2 From nobody Wed Nov 27 13:01:20 2024 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18F8B193092; Wed, 9 Oct 2024 21:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728511008; cv=none; b=IAS+cEhExlD/UoEUQsA2O9Q+UpvY+Pvxw/4BG7CJYRGDZSp6hBxADy5cGHHKk5WbKs5MjDlzt8XJzeTmWYD/x3t/v6QRu1MHdobm4dMEmpQMhAb8dvIRh7vJVpuapZM6J0+pFO4v4JyqFxNDjAZMBI3W5yJZLIucG0h+wtlXZOY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728511008; c=relaxed/simple; bh=luxZS1EIGyKLUGSsyxSU0E6dfvKUVRkocMRabdI39Vo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WtlsFXRuqBMqSfzl+T4TV1T1DKBkFkGHcfxWkjQJ8KR6Dr7EDySiu/BjvejJre9MwIRLW853bRqmyWpnDAGOEJGp5tir+tct4ZGiIaFLgLLWnVYoqGznsVPpNo9jD1hex2tEeolVG0gwebNTKl8/TmbLF8WY7kXcu1xMgxd2MeM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CADBKayP; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CADBKayP" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-71def715ebdso198657b3a.2; Wed, 09 Oct 2024 14:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728511006; x=1729115806; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xvc12RrHD0EbcHd1cDy0DszpAW7DOryGG1aaLpMkDbY=; b=CADBKayPZQOtteiLxcpY4SmHOxd7Y6a1KzJKZ9+hrjYPS7wY/RgcQfuZJJni78pQkl WVPfywUf9U38fjbol+wlvEJbrfsY2c26vS61uQ8Ty8Jd7A/TvxOMnfZfdQdPVdgEHby6 Tue2B47NNrRnkSFKONb0UrZEj08jFjYDiVevJttdTqF+RMGI6cK/Qct3AdE4SwvQmCzU S//aDPajot6VY5WipRuc628Xo14ysVEOt7k5/9JdjO27ouKJAUVug6QQj/rdMYU+uDum cIbGij4EmuUyugIhfQKzIphT6lK7VzxvAWr6CrJc20R7fDZhr0swOnzVDrUOAU2qXBg3 wzew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728511006; x=1729115806; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xvc12RrHD0EbcHd1cDy0DszpAW7DOryGG1aaLpMkDbY=; b=wL8J6YPPC2kYOY5uaI+q/2JIVbtWQ3MInxmO4TucaMVPyFguO+clZSgGXoVlFylyGs OEhqgD4KnHhQGkxG/jKk864D/sGxIDpA9n9Niv1vHKGTNXrXPMmNh1ilf9I47+y9/Aqk LM5ym6VOU8PcEnTvEZJp7GAiJF4Pxouk//wxjURtauTxgRpfFnp1TVuU7qruZCWyKC0T xf+WaKD80+Iz4/n9N2tpSttQHWoYOxVVr0V0TYzRJhWlFYkfjE7z5Yu48RGJu744/QhW pvyPDj1q8IKxtXU8i1D+i1cWGiAgRAhhTIgcaf2llTqmW+1vf9Laqaf1TeTU9QriNddI A7Fw== X-Forwarded-Encrypted: i=1; AJvYcCVFrN/PBXVEUK8ou2VHCL5rABdqDhLA7tMNQ8P4/wfbPVzVDzlFcIirJM5m3PRm70TwnQcIBGvkBBfe@vger.kernel.org, AJvYcCX6xQn3TQdm7Xj+EWUYeLGLQdx4kaMR5+4YXx7Becb2rUB8qLGLXuD86GDMiK+DPQM9JSmVyNmtXmemYUux@vger.kernel.org X-Gm-Message-State: AOJu0YznZNxnCBe2b1iY1bLYld+cq6TBh5NiT+sqLhHghvdjdO8658UC 4VQsvz3/ukjfw6pDPIM3nRP6Xmaq1q1mKJafzsxfbrKE51IcfSLz X-Google-Smtp-Source: AGHT+IEfUmWu5lAViwsQxHBJzI1BXfFw4WFfIWwDFa7hlvWzEhgH9U4Hq4sxnX827I217uJMaHA7CA== X-Received: by 2002:a05:6a00:1149:b0:719:8f48:ff01 with SMTP id d2e1a72fcca58-71e1db63ea9mr6194879b3a.6.1728511006356; Wed, 09 Oct 2024 14:56:46 -0700 (PDT) Received: from luna.turtle.lan ([2601:1c2:c184:dc00::315]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e9f6833ce7sm7726646a12.48.2024.10.09.14.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 14:56:45 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: Florian Fainelli , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , William Zhang , Anand Gore , Kursad Oney Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Broadcom internal kernel review list , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Edwards Subject: [PATCH v2 2/2] arm64: dts: broadcom: bcmbca: bcm4908: Add DT for Zyxel EX3510-B Date: Wed, 9 Oct 2024 14:54:54 -0700 Message-ID: <20241009215454.1449508-3-CFSworks@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20241009215454.1449508-1-CFSworks@gmail.com> References: <20241009215454.1449508-1-CFSworks@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Zyxel EX3510-B is a WiFi 6 capable home gateway (family) based on the BCM4906 SoC, with 512MiB of RAM and 512MiB of NAND flash. WiFi support consists of a BCM6710 and a BCM6715 attached to separate PCIe buses. Add an initial devicetree for this system, with support for: - Onboard UART (per base dtsi) - USB (2.0 only; superspeed devices are treated as high-speed due to an unknown cause) - Both buttons (rear reset, front WPS) - Almost all LEDs: - Power (red/green) - Internet (red/green) - WAN (green) - LAN (green; anode is connected to GPIO 13 so currently nonfunctioning) - USB (green) - WPS button (red/green) - Absent in DT: There are 2.4GHz/5.0GHz WiFi status LEDs connected to the WiFi chips instead of the SoC. - NAND flash - Embedded Ethernet switch - Factory-programmed Ethernet MAC address WiFi cannot be enabled at this time due to Linux lacking drivers for both the PCIe controllers and the PCIe WiFi peripherals. Signed-off-by: Sam Edwards --- arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 1 + .../broadcom/bcmbca/bcm4906-zyxel-ex3510b.dts | 196 ++++++++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-zyxel-ex351= 0b.dts diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile b/arch/arm64/boot= /dts/broadcom/bcmbca/Makefile index 27741b71ba9e..9a8461d91c8c 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile @@ -2,6 +2,7 @@ dtb-$(CONFIG_ARCH_BCMBCA) +=3D \ bcm4906-netgear-r8000p.dtb \ bcm4906-tplink-archer-c2300-v1.dtb \ + bcm4906-zyxel-ex3510b.dtb \ bcm4908-asus-gt-ac5300.dtb \ bcm4908-netgear-raxe500.dtb \ bcm94908.dtb \ diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-zyxel-ex3510b.dts = b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-zyxel-ex3510b.dts new file mode 100644 index 000000000000..54e453bd09f7 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-zyxel-ex3510b.dts @@ -0,0 +1,196 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include +#include +#include + +#include "bcm4906.dtsi" + +/ { + compatible =3D "zyxel,ex3510b", "brcm,bcm4906", "brcm,bcm4908", "brcm,bcm= bca"; + model =3D "Zyxel EX3510-B"; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x20000000>; + }; + + gpio-keys-polled { + compatible =3D "gpio-keys-polled"; + poll-interval =3D <100>; + + key-wps { + label =3D "WPS"; + linux,code =3D ; + gpios =3D <&gpio0 22 GPIO_ACTIVE_LOW>; + }; + + key-reset { + label =3D "Reset"; + linux,code =3D ; + gpios =3D <&gpio0 23 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&leds { + pinctrl-0 =3D <&pins_led_0_a>, <&pins_led_2_a>, <&pins_led_3_a>, + <&pins_led_4_a>, <&pins_led_10_a>, <&pins_led_12_a>, + <&pins_led_14_a>, <&pins_led_15_a>, <&pins_led_21_a>; + pinctrl-names =3D "default"; + + led@0 { + reg =3D <0x0>; + function =3D LED_FUNCTION_POWER; + color =3D ; + }; + + led@2 { + reg =3D <0x2>; + function =3D LED_FUNCTION_WAN_ONLINE; + color =3D ; + }; + + led@3 { + reg =3D <0x3>; + function =3D LED_FUNCTION_WAN_ONLINE; + color =3D ; + }; + + led@4 { + reg =3D <0x4>; + function =3D LED_FUNCTION_USB; + color =3D ; + trigger-sources =3D <&ohci_port1>, <&ohci_port2>, + <&ehci_port1>, <&ehci_port2>, + <&xhci_port1>, <&xhci_port2>; + linux,default-trigger =3D "usbport"; + }; + + led@a { + reg =3D <0xa>; + function =3D LED_FUNCTION_POWER; + color =3D ; + linux,default-trigger =3D "default-on"; + }; + + led@c { + reg =3D <0xc>; + function =3D LED_FUNCTION_LAN; + color =3D ; + active-low; + }; + + led@e { + reg =3D <0xe>; + function =3D LED_FUNCTION_WPS; + color =3D ; + active-low; + }; + + led@f { + reg =3D <0xf>; + function =3D LED_FUNCTION_WPS; + color =3D ; + active-low; + }; + + led@15 { + reg =3D <0x15>; + function =3D LED_FUNCTION_WAN; + color =3D ; + active-low; + }; +}; + +&enet { + nvmem-cells =3D <&base_mac_addr>; + nvmem-cell-names =3D "mac-address"; +}; + +&usb_phy { + brcm,ioc =3D <1>; + brcm,ipp =3D <1>; + status =3D "okay"; +}; + +&ehci { + status =3D "okay"; +}; + +&ohci { + status =3D "okay"; +}; + +&xhci { + status =3D "okay"; +}; + +&ports { + port@0 { + label =3D "lan1"; + }; + + port@1 { + label =3D "lan2"; + }; + + port@2 { + label =3D "lan3"; + }; + + port@3 { + label =3D "lan4"; + }; + + port@7 { + reg =3D <7>; + phy-mode =3D "internal"; + phy-handle =3D <&phy12>; + label =3D "wan"; + }; +}; + +&nand_controller { + status =3D "okay"; +}; + +&nandcs { + brcm,nand-oob-sector-size =3D <27>; + nand-ecc-strength =3D <8>; + nand-ecc-step-size =3D <512>; + nand-on-flash-bbt; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + partitions { + compatible =3D "brcm,bcm4908-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + compatible =3D "nvmem-cells"; + label =3D "cferom"; + reg =3D <0x0 0x100000>; + read-only; + + #address-cells =3D <1>; + #size-cells =3D <1>; + + base_mac_addr: mac@106a0 { + reg =3D <0x106a0 0x6>; + }; + }; + + partition@100000 { + compatible =3D "brcm,bcm4908-firmware"; + reg =3D <0x100000 0x5f80000>; + }; + + partition@6080000 { + compatible =3D "brcm,bcm4908-firmware"; + reg =3D <0x6080000 0x5f80000>; + }; + }; +}; --=20 2.44.2