Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp892948lqp; Sun, 14 Apr 2024 04:47:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNhc9j8M6B4JlmOOkcqN2wsAtXCTXvC3NvmqJdCV2DgUpl8f/2ZIBmgmDcoD+l/MGyY7rnNRFliBlAt7ecq/nB+CVoRbXK6FJr3cuhCA== X-Google-Smtp-Source: AGHT+IEhnJWUHgZWztUYHCO20B3Ud8iSp9ruW2Xgd/ykmKZqAOrALv9tFOqFTSwPJVe2QdEioNmy X-Received: by 2002:a05:6a20:4092:b0:1a9:4186:2047 with SMTP id a18-20020a056a20409200b001a941862047mr7034043pzf.44.1713095221486; Sun, 14 Apr 2024 04:47:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713095221; cv=pass; d=google.com; s=arc-20160816; b=sgev5w+yRf0uzNTuRhs0xEjmHk2Nj695uHYxW+nfBw+izjYt5x6pOjRUygWzu/Kbb+ wqPmE9QN9mOBEIlaIZCjYMDKOul2d8tXTSju+IMpYspjHi/COD1B6OwuEIX1o5kydytF +ch/yxUYgf0CDzuWsOGm21loPam5ZgJ/sYRBeeOQtjmUZeBD6QukAHL75UP9eZfFNbzg vQVbYfyOP3EHavSuuHvK7MgyMvwEigV1fs3QgvA9FTPplkBJ8qrJT8MYCLIeG+LBihWI +2x4Ria6fUJRePa7DD1i38z9zL+9c1YZuFiIf+wOVz7rOmhvZHJhiRKGWLv7KkzaDKig E8KQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=dZRrM2RU3X6Z5RH07rll8Bj9tg0djl9bkCw0Th3enJw=; fh=SgE+UuoXqggA9sXJpufMCatWNNjrWUbMnKoZ+ZxOLIo=; b=w/IMvjk/puZfJ1EMq11hgSdJWKjxzEVKBADN22a+lLfk7nMsv6zQJZdeBxHgT6eMi8 Z72P5E3ZnXt/Zv0EMmcrboAE8k+0m56KOUIHs2mbUD8sphoEvgvR03dJUR+UWyHdgkIM Of8Xn0pLV1L80at2Hi59Qr9XhE8d4wp6T1X0puvILoiBsv32Ka9j4+BnI7WZwWYu9G8x 57Bg6z9bHXlaOFrC9cdZzA8ssOpoAjYou8iPTbShfrTLw6gT+jxUsS9dd+k6zPMx+5qn gTnjlvfu47gZSD2RkQSpVwLeXxpof/yIg/CvdR7/Pf2bcNmC/gfz+eOrZuKHCPiWC5AT KHbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vi93Dh7p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-144123-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id kq3-20020a17090aed0300b002a5ed4b418bsi6375057pjb.115.2024.04.14.04.47.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 04:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144123-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vi93Dh7p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-144123-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9A4F7B2129B for ; Sun, 14 Apr 2024 11:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E848745953; Sun, 14 Apr 2024 11:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vi93Dh7p" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6D2A3613D; Sun, 14 Apr 2024 11:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713095180; cv=none; b=aZDn5JF806aG1WnFCXFCwnqfxS8A1SGB09+5Q49BdavykoD+z5A5jtTP0eQRWyzf3XGiIs8wLkeuj1pyGArfUiyy0HGgztk69UN/CX24TojQ7QP2kWLqtwEPIyPKXBkvx+mvYQC6LZm7U6M0VeCKvGSJnDGoG6B3UddMLi8WXYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713095180; c=relaxed/simple; bh=iOTbMvh8oo8qfCdUhfbJs9sLC03dXhPCXmOTbb7K93o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jonq6PcImQk1NohhoaPZL/xbSUVppfpOEGBzkR36RRy3E9WNiSRbwdA+yu+bhNEu/S8AilCJEcMYGov0L3RnWmTtGyKozkl5cxYsYc++zmZNr6/Fvq4I4EODUd34YyfTIK2O1K9PYBBIIL7EO8EXiO57P84GTjPNTufdhp5RfUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vi93Dh7p; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 8C8C1C4AF0A; Sun, 14 Apr 2024 11:46:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713095180; bh=iOTbMvh8oo8qfCdUhfbJs9sLC03dXhPCXmOTbb7K93o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Vi93Dh7pqiV62TLmnkl5pjC6ixAoTE2eEiY4fJ4Mq7131zJ2rgIrMjixLGB/ei/Li ninoLsGd6HT4QAHkETwG2eTDtFB/BOrGkJKgZ4RwEq/dQ9RjrmN6FrYluQudHY0yMk BDdFs4zZrdkz+c3UjxGIhCfC5dk2SzKxIPX18zbTkya7hNJPM303oMCnQAppQ3rVPL j29CvjfEs3VrydUO0QV4awGwPVWyDEEwwx/6xKnvWbfRJArd4/YgTsX65Yej4Py8YI IcF5CL1NmqTwWdGWAMNYEm5QG9E+EowPHTpKTQlJWHCiXZY4UZub36L05/eILSHXji x5muPU0Zyu3CQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F967C05024; Sun, 14 Apr 2024 11:46:20 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Sun, 14 Apr 2024 14:46:03 +0300 Subject: [PATCH 4/4] ARM: dts: BCM5301X: Add DT for ASUS RT-AC5300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240414-for-soc-asus-rt-ac3200-ac5300-v1-4-118c90bae6e5@arinc9.com> References: <20240414-for-soc-asus-rt-ac3200-ac5300-v1-0-118c90bae6e5@arinc9.com> In-Reply-To: <20240414-for-soc-asus-rt-ac3200-ac5300-v1-0-118c90bae6e5@arinc9.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Hauke Mehrtens , Rafal Milecki , Florian Fainelli , Broadcom internal kernel review list Cc: Tom Brautaset , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713095170; l=4826; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=c/8HaPqKjp8S34BaI+MyH3eEMu3y9Wkl8uy/jpRF7IU=; b=oeOazBKHkZuyczClozvfl62Fuv/byhjHgqlTqXWQVV0zoK/ShxrfEE2bHePajqRHli1NGJ6c2 CAocWOtD0G2BJh/noJ38ZuFL7d8ldKfwgBBZ0+61QnwmNelbT1141qc X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=VmvgMWwm73yVIrlyJYvGtnXkQJy9CvbaeEqPQO9Z4kA= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-patatt with auth_id=115 X-Original-From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= Reply-To: arinc.unal@arinc9.com From: Arınç ÜNAL Add the device tree for ASUS RT-AC5300 which is an AC5300 router featuring 5 Ethernet ports over the integrated Broadcom switch. Hardware info: * Processor: Broadcom BCM4709C0 dual-core @ 1.4 GHz * Switch: BCM53012 in BCM4709C0 * DDR3 RAM: 512 MB * Flash: 128 MB * 2.4GHz: BCM4366 4x4 single chip 802.11b/g/n SoC * 5GHz: BCM4366 4x4 two chips 802.11a/n/ac SoC * Ports: 4 LAN Ports, 1 WAN Port Co-developed-by: Tom Brautaset Signed-off-by: Tom Brautaset Signed-off-by: Arınç ÜNAL --- arch/arm/boot/dts/broadcom/Makefile | 1 + .../boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts | 170 +++++++++++++++++++++ 2 files changed, 171 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile index c61fca514775..5881bcc95eba 100644 --- a/arch/arm/boot/dts/broadcom/Makefile +++ b/arch/arm/boot/dts/broadcom/Makefile @@ -72,6 +72,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ bcm4709-netgear-r8000.dtb \ bcm4709-tplink-archer-c9-v1.dtb \ bcm47094-asus-rt-ac3100.dtb \ + bcm47094-asus-rt-ac5300.dtb \ bcm47094-asus-rt-ac88u.dtb \ bcm47094-dlink-dir-885l.dtb \ bcm47094-dlink-dir-890l.dtb \ diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts new file mode 100644 index 000000000000..b7e55d4ce999 --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts @@ -0,0 +1,170 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Author: Tom Brautaset + */ + +/dts-v1/; + +#include "bcm47094.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" + +#include + +/ { + compatible = "asus,rt-ac5300", "brcm,bcm47094", "brcm,bcm4708"; + model = "ASUS RT-AC5300"; + + chosen { + bootargs = "console=ttyS0,115200 earlycon"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x00000000 0x08000000>, + <0x88000000 0x18000000>; + }; + + nvram@1c080000 { + compatible = "brcm,nvram"; + reg = <0x1c080000 0x00180000>; + + et1macaddr: et1macaddr { + #nvmem-cell-cells = <1>; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-lan { + color = ; + function = LED_FUNCTION_LAN; + gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; + }; + + led-power { + color = ; + function = LED_FUNCTION_POWER; + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-on"; + }; + + led-wan-red { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; + }; + + led-wps { + color = ; + function = LED_FUNCTION_WPS; + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + button-reset { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; + }; + + button-wifi { + label = "Wi-Fi"; + linux,code = ; + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; + }; + + button-wps { + label = "WPS"; + linux,code = ; + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&usb2 { + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; +}; + +&usb3_phy { + status = "okay"; +}; + +&gmac0 { + nvmem-cells = <&et1macaddr 0>; + nvmem-cell-names = "mac-address"; +}; + +&gmac1 { + nvmem-cells = <&et1macaddr 1>; + nvmem-cell-names = "mac-address"; +}; + +&gmac2 { + nvmem-cells = <&et1macaddr 2>; + nvmem-cell-names = "mac-address"; +}; + +&srab { + status = "okay"; + + ports { + port@0 { + label = "lan4"; + nvmem-cells = <&et1macaddr 0>; + nvmem-cell-names = "mac-address"; + }; + + port@1 { + label = "lan3"; + nvmem-cells = <&et1macaddr 1>; + nvmem-cell-names = "mac-address"; + }; + + port@2 { + label = "lan2"; + nvmem-cells = <&et1macaddr 2>; + nvmem-cell-names = "mac-address"; + }; + + port@3 { + label = "lan1"; + nvmem-cells = <&et1macaddr 3>; + nvmem-cell-names = "mac-address"; + }; + + port@4 { + label = "wan"; + nvmem-cells = <&et1macaddr 4>; + nvmem-cell-names = "mac-address"; + }; + }; +}; + +&nandcs { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x00000000 0x00080000>; + read-only; + }; + + partition@80000 { + label = "nvram"; + reg = <0x00080000 0x00180000>; + }; + + partition@200000 { + label = "firmware"; + reg = <0x00200000 0x07e00000>; + compatible = "brcm,trx"; + }; + }; +}; -- 2.40.1