From nobody Thu Nov 28 08:34:17 2024 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 5F9541CB327; Thu, 3 Oct 2024 22:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727993379; cv=none; b=SJSFtqDPBeujlA17aejuxuYdNO4/uRFGjjaEUl2NN0hRiVw/CxHAzd/8vPpYaYPDPSBm596cAp0rBFKehuORFIGO1YDEFo21ZGR1uKwVwX2fOnGDAyUA8G12eZpUVkyYY2xlHHlsRdoQ03FySPcF1AO9oZgcCN+vB9eR6caH7gc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727993379; c=relaxed/simple; bh=4Q1Deb34MnXtuhesjeCLN57PwpyPJQ5GH+jgBDCLl0M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ktI6lz67vRCj0/DH+QUIbT7Ld/2wmE8g2/m8AvDOrt+Lrhmc1o4EpmwF2bFlfkGhAV97fRwgSq3/rTHWaQ2miv2PTv9ZUY8rGEyZUqzTCbmaPA263y4AcvRgLery4WD39h8l22SExXkTyDDehqGKRSXoSWAv5AlzAIzNgxMnmcU= 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=KXL7M8Jw; arc=none smtp.client-ip=209.85.216.43 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="KXL7M8Jw" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2e18aa9f06dso1112734a91.0; Thu, 03 Oct 2024 15:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727993378; x=1728598178; 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=E91rfKcYw9IuIWwIQIGEzOIkm79LZ9bOHrsBMYtdt+A=; b=KXL7M8JwvwfvaMCXccdIRzjq1WjugwwnL4hJ6LjA+17BCMD0r5g0mTE8r7kKfr/AfD 0Qs6oo88uGuAJZXOAk3HPpAADyrl2kYxuSWHw4z51L9YmbYbtxsTVpjZApoNcTOwRgf6 yDVcVtine7uEEAFlma3R97gjISqNElqmOKvK36iEbr+bo4/yuOhw8Is7kl11O4wRCxZy p//MOjIrxm9VygBdKJwVJNJi6Dn76OaMiS99TcKb9iXfXkqODGYorI1pCnRqUyZqYWlv IDHZC8XdbVRPt03f+mQLQw44dspO1Ep4d5r8cnpr3/njHVJVW7IjSwc3nDwB5zkmiNHI CBFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727993378; x=1728598178; 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=E91rfKcYw9IuIWwIQIGEzOIkm79LZ9bOHrsBMYtdt+A=; b=S37Ge76VcsldWymsW0ECb1sXz1OsTpU1QbUFIpwM2nVuxurUxl9rIyndZf89nF+bcR MipZyLBXAmmZFRPLPtgNtF/jETE+nUOwpefflOQ8YCpOvHbpVJsrTBT7vI7UTi2z1jf+ b98KOA8AdX8jZnW4t9T+ViO27tuaRyhVqyvg/RmWQ8HOadtThvg+lNw7Fs9E7umejlmf 4irYViDJPhOYaxQTl2la7cWUWxcrKPHGSatkJ65P8B7WtcEsoHQfM7sdon5rTLLjcXyN iOEaaFqzyUJBEn6mk8OVL52v3ty5X94fnWAk100DIBF5XoNymaGOgxm3K26UiChGU1JA kMPQ== X-Forwarded-Encrypted: i=1; AJvYcCVBzAGR1Bq9N1Bq24Jrm3x7Al3LBcMnO4aRSWt/WSFDJ9vpg/duxwmmG6NLVV9SPj87cvgKfe0puUB9JEy8@vger.kernel.org, AJvYcCVl8rJad83hp1Xtsw+tvV4PeDZ5GhE2CDbCzI8Fh6N6TDWT68I74OCUEiaU5uWyaCCXqZ6BK155xbG6@vger.kernel.org X-Gm-Message-State: AOJu0Yz8WQE5ilurbHjzqnDTQPP6Xdxz7GHs9RWpbOXiF9RSzj7ytiKG RAtzcaBNMpqq/EAISiOWofhEYDCM0I80VZUpBl8wsAhSv4zp6Pdj X-Google-Smtp-Source: AGHT+IEx31Wo3RHQhlQ+bJER9qwgWtEFev8OhjxjOYjmNLA5Ltf/UkCLEmUf765W3VIw0oyKUCENCg== X-Received: by 2002:a17:90b:33c9:b0:2d8:b510:170f with SMTP id 98e67ed59e1d1-2e1b398fe46mr5668153a91.20.1727993377654; Thu, 03 Oct 2024 15:09:37 -0700 (PDT) Received: from luna.turtle.lan ([2601:1c2:c184:dc00:b8ac:3fa:437b:85fa]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e1e85d211asm5976a91.14.2024.10.03.15.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 15:09:37 -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 2/2] arm64: dts: broadcom: bcmbca: bcm4908: Add DT for Zyxel EX3510-B Date: Thu, 3 Oct 2024 15:08:20 -0700 Message-ID: <20241003220820.1345048-3-CFSworks@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20241003220820.1345048-1-CFSworks@gmail.com> References: <20241003220820.1345048-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 | 197 ++++++++++++++++++ 2 files changed, 198 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..b70d8ffe4922 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-zyxel-ex3510b.dts @@ -0,0 +1,197 @@ +// 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 <0 0 0 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>; + ranges =3D <0 0x0 0x100000>; + + 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