Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp457620lqt; Fri, 19 Apr 2024 00:23:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDXOACyPKfWE6WkFhwQfFg4g3Irty9r0bZ91cS4nTyJ/p3dztNUw22/U6URVCjB6Sd4hMr54c5b2Qgfnd+6JqvtHYvckWCwVBeHQkcFw== X-Google-Smtp-Source: AGHT+IFUErzK9pl400XX7Tkvt5vJP/dIQmQAHOiqsoDtgpztCizOU6kTqq1cQxdif5RNjngjo/oH X-Received: by 2002:ae9:f449:0:b0:78e:ba60:89f4 with SMTP id z9-20020ae9f449000000b0078eba6089f4mr1394224qkl.16.1713511396471; Fri, 19 Apr 2024 00:23:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713511396; cv=pass; d=google.com; s=arc-20160816; b=cmQ9k1MMECalKOIMolhai9taTJVZ/k5qMl0vbW0UNe00p8XRGiZ8NhW/R3FVmVTQ5B 6oFAdNnNRi826SpA07bgApOWz+nHZG9DaNPGPEddUeBZEtBic+0o/3KWrmZyU2via6ab wkGx1Fjb7mhekSFnc9iwxPNJyaI/tYlqhjH0pB42HLRfw9BtnnWTVNAUW7EctXx0NBwb A7GAnR+hbFzdlJ6kZ7JQkLUU2EKbs/Zs6c+ybi+sPiEHeQQGrLUUZN6V63aULEdYWRGX 5RIo20tay8FwOEtbAzSzS+S6hTqiPiyE06eVNv++JNDdaxT5HaFOQketlxrEwaeSHjdw 0vbg== 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=7N21p84UhMOGgOComOwIYYIF0qaZE7dtUywp06usyus=; fh=SgE+UuoXqggA9sXJpufMCatWNNjrWUbMnKoZ+ZxOLIo=; b=hwBcgDzBJsYy/eBHa9zPDPz6M8dmYVzFQWrVPGj/4bdmWefoQmdcEGEg08idb6sXdf RV1CW8yVMVbE/reH4WNfw4gHAIUoxv3up0c5NeNWm3wUpunTkSDDsfOSYERkd1GScH90 jPgu7bbIPNR/hAVXMF04Iu69xuiMEseOs1zDLCuVv5wF1JHGG7UvkjdKpEZ8ijflNJRa s6MOiZk1zu3KZb2SvT3b6gvXF3yJXsingyfNg97s7r1OmOENY7Q1WU0h0XkAF+AvNup4 ZrJCVVURE08k79K6VNpjSedTuukEwNwoWEbAyWK23MStI3K7VyY7S13wyaQEQGjnzfwp GAdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YsFK3sw4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d8-20020a05620a136800b0078d660e8c23si3060547qkl.479.2024.04.19.00.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:23:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YsFK3sw4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151097-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2717C1C20BF4 for ; Fri, 19 Apr 2024 07:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78C304CDEB; Fri, 19 Apr 2024 07:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YsFK3sw4" 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 6EE3F3F8EA; Fri, 19 Apr 2024 07:22:50 +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=1713511370; cv=none; b=bthv9GTG6uBDWbrlnQv3GFdx6Pn2MVBD4O5ICJjEtAjm+zFOt7FZcwOmJCA+PNvLY7yrsv9V8le6Y7uvhlh2sI+R5N10IiggeqFO8Cv21FEX6p08a57u77/PEwFelpyL+qfKCj7Ydb8RbUHh6mFy/h/hpvMq7Z94Om+BBqhvwIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713511370; c=relaxed/simple; bh=6vKQ1YUDD97UB7gfwj/VT8OGiYLvu5Z0lBIvNse7W9s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=a3qESUhgyDkkz95VewypxYRd4jhpdLHf2aGI84nLD3jd13y7aCSETGBFvKsQ/x0dHFMY2YO9496qFnp9BdFMieX7nXIC8lUH7LhGSHHUaMVB4INybsaZ4EACit8lAI6psjWI/YByjWLoBraZIEYYTjyOut3OT8xffo/HsR0Jyf4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YsFK3sw4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 400A1C4AF12; Fri, 19 Apr 2024 07:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713511370; bh=6vKQ1YUDD97UB7gfwj/VT8OGiYLvu5Z0lBIvNse7W9s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YsFK3sw4Lk5H0nqLZ1B8EX62fHobvSjlpCyR7Js+d8GoyA+h1kQseiY7yQpTKxe6i pn/a2c1SK/7qwquYitWYFqcZ8jafumgnVfkhDTiKQ2lv47OpORofGSoXg4tfMX3IbS Fw/YkLMSqk/iyk9eO7/woo6kjVr6vyv/dTieX/HHiK1aM9b0jpNcVEvs98hSbg5qwh 6Fb7pVGPCOreEyh60OfzpQYztv5Zi4LpQ6Xbk5bNKOIJH8n/5+ZvPLZlMlLPOV6Gns jJf3Me89txEDbuBT8rrtKsrtrIB1gIt23Shd0/xND4/ehraSdjPRPz6KKGwULyNEJU BdT+u9WbydjwQ== 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 30B52C04FF6; Fri, 19 Apr 2024 07:22:50 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Fri, 19 Apr 2024 10:22:51 +0300 Subject: [PATCH v2 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: <20240419-for-soc-asus-rt-ac3200-ac5300-v2-4-f95ff50c2a4d@arinc9.com> References: <20240419-for-soc-asus-rt-ac3200-ac5300-v2-0-f95ff50c2a4d@arinc9.com> In-Reply-To: <20240419-for-soc-asus-rt-ac3200-ac5300-v2-0-f95ff50c2a4d@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=1713511368; l=4382; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=Hh1hFLSkYeym2L6Ley0dgoK9f6xM572VDJkCcZTPEBo=; b=7FuoBIJgppNlyc5ai7U1smffD/Ml0jmn+kkuuh2OdZBOVuiqsRWjWac5TV+8Ih2XUqK1h/aNN DALNUT9o3XEAflkHEJcvth5mluZx3RIpOKM5rVrfaxQUSw4k9sbZpQp X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=z49tLn29CyiL4uwBTrqH9HO1Wu3sZIuRp4DaLZvtP9M= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-Xeront with auth_id=137 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 | 156 +++++++++++++++++++++ 2 files changed, 157 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..b75154a9710d --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts @@ -0,0 +1,156 @@ +// 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"; + + 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"; + }; + + port@1 { + label = "lan3"; + }; + + port@2 { + label = "lan2"; + }; + + port@3 { + label = "lan1"; + }; + + port@4 { + label = "wan"; + }; + }; +}; + +&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