From nobody Sat May 18 04:13:27 2024 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 5B59C59B4E; Tue, 23 Apr 2024 09:51:00 +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=1713865860; cv=none; b=r+nOzwSRgN8TGCCGvOYBmZslFRDFsVLWacXrIF/IIC9oR/MSMFYmDr9MvmXJqlchdwn4ivldwiRJM9BPIPdbZQ9JGju3eB6dsYd/A4zammvlGi5+uTHhR/6peMy3gEnFOZhBj869fD5JfDselFpnv/SN+uewM9VGw1Pvum9W9ic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865860; c=relaxed/simple; bh=+Ki+y+oOlJkXf+8GfyodfprS3kBHMk0C/sDmofucD/U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TQwEP99H3tJtwdPrqyWxQ6hNvhJuRZyYv+Hn0JDMjO6d6T92XyoOifT1AtjPF1J6fOOu0hHMbaEYq6wZijMCZOLIGjOe60T2SCocwnw4jED7JpF1qbGt8U0ZFEln0v750QPIPPAPwDYHKoIAkDVhzuOxp/QdkH5b8AvJAnOfHnA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ObGKp8j/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ObGKp8j/" Received: by smtp.kernel.org (Postfix) with ESMTPS id E8F70C3277B; Tue, 23 Apr 2024 09:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713865860; bh=+Ki+y+oOlJkXf+8GfyodfprS3kBHMk0C/sDmofucD/U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ObGKp8j/USdRDtAAEhm/egqMYmyTpWFbl1/bdAAKnCe066ywX+VTFMjzM5wIc9leH oeU0xPzxc1s9kfKdaiHAbscKJVxLLMablsj+VX+jffA1lH50a+hyyqxeqMuUMc2MEF 7ufhPjm1f90B3QawGtgqllm14ffxpS4YpG+ZiDabRaO7+bIPUMpqwD27d0ixpL4ApU pnONa+fTq+/U5i8duLrUj0K1uw0bnMWHF0T9rDHsg3vEtr/Fy7+5w8hTx0Zd5ro2uo KhgK5EBlX5RmaGJHIK8ogzHotaZLNPoacXjeuhc4cTJxlWlnXwPncQxdYPEqPn8xS7 mPX0HHco/8K9w== 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 DA135C10F15; Tue, 23 Apr 2024 09:50:59 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Tue, 23 Apr 2024 12:50:45 +0300 Subject: [PATCH v3 1/5] dt-bindings: arm: bcm: add bindings for ASUS RT-AC3200 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: quoted-printable Message-Id: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-1-23d33cfafe7a@arinc9.com> References: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@arinc9.com> In-Reply-To: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@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?= , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713865858; l=835; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=j6C9XYG4vLVN+NzaIcMBXdgQq43KpkgAe4BMdqdb8ws=; b=4lpXT3JtgHo8WW9dJStKgQ72i4VdH+Pnh8JAzHn23gA0zLUNFd+Qr/F0bi7hgDQA1jMxzhlhp BlkLDxbR8H/D91gx7jG1BolX5QO0T8XLM1gLW+Qczej3mlUQzJSAnsA 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=C4=B1n=C3=A7 =C3=9CNAL Add ASUS RT-AC3200 under BCM4709 based boards. Acked-by: Krzysztof Kozlowski Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/= Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml index 4cc4e6754681..215bef740aca 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml @@ -53,6 +53,7 @@ properties: - description: BCM4709 based boards items: - enum: + - asus,rt-ac3200 - asus,rt-ac87u - buffalo,wxr-1900dhp - linksys,ea9200 --=20 2.40.1 From nobody Sat May 18 04:13:27 2024 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 5B5D45A788; Tue, 23 Apr 2024 09:51:00 +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=1713865860; cv=none; b=gP7xuJPgylxKixjgy50NoZ3LYxRKDv2JJmB/tSXNAZloFEcrCx4In5lhSAsP/iGMCfZc9toTAVGjh1wTXG62uRX+c2d5xRZjMonaqCk2ZgpTDnURidaslnKaOhlmmX0Qybl0LUbMT/+dWLqRPKSBXBOfsZhC6aBsWO2YynOYqO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865860; c=relaxed/simple; bh=D58bpNiwkjigEqu3orXa0dwljJSDDM8OT7oG26JXKrk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RHpjcN5gbMPPOv9DluVLGHXyoWaoXogVrE+6Hp1XlnSDJF5NIsWmW1Ct2cvl10TRaM+Ruey+L1hzJPH1httzl3mM9q9XgVxgIYZwFnQnKKGz6CBFnto4Bnf9Ibg45/A4TX6K5xDEbcVNEoo378nij1gPdPFWS5yw8yp2rYvimTM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ddv5C7Jc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ddv5C7Jc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0A190C32786; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713865860; bh=D58bpNiwkjigEqu3orXa0dwljJSDDM8OT7oG26JXKrk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Ddv5C7JcA0imZoNoMYVgKdxrakT4mZUUfMFBmjpa43/M329RD2BJ9V3cVTZIvyJfX v4qnhKDIClS6k461R6gR53N9b6bnPrMCeRoP49bjDdstejI4uDw5pZl7DX5nFL4P0Z tV2Oxwg9SrTUf73IWYup+lbXJF6szxLACaBa0I9rDDg6BXtKQXE9bf1k0otfDyJ3w5 Jn6Fgdgqd8Jen4ssWKCxlvdcK42aSn5j+h4dqtpTCxozLsniOx7BNozVZIaUDWYiMv pFf3R+rI0Q2l/Q5KN9GB0mLwkZ+W9mXTNlWG5RO99JtmjdA/Bd4/r8JH50kaZb/ysr nDNGt2KqryK6A== 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 EB85EC18E72; Tue, 23 Apr 2024 09:50:59 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Tue, 23 Apr 2024 12:50:46 +0300 Subject: [PATCH v3 2/5] dt-bindings: arm: bcm: add bindings 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: quoted-printable Message-Id: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-2-23d33cfafe7a@arinc9.com> References: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@arinc9.com> In-Reply-To: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@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?= , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713865858; l=820; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=bR3OtlLxsoLW4OgOTwPQgCaooezqCeVMoRpFlbGyxMw=; b=sZPI9h9sXXvsKJQNzYSAKsug3RZfz3KggVOvyq+m6a/+7Vd0fOL1c/GIPTxShzMus2Ervcq+F PsjcdxDIddzBbAaTjrGn9+pqRtJ1zbxYHeGXoiKdV1AizhCqgan7exg 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=C4=B1n=C3=A7 =C3=9CNAL Add ASUS RT-AC5300 under BCM47094 based boards. Acked-by: Krzysztof Kozlowski Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/= Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml index 215bef740aca..d925e7a3b5ef 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml @@ -68,6 +68,7 @@ properties: items: - enum: - asus,rt-ac3100 + - asus,rt-ac5300 - asus,rt-ac88u - dlink,dir-885l - dlink,dir-890l --=20 2.40.1 From nobody Sat May 18 04:13:27 2024 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 5B5605914C; Tue, 23 Apr 2024 09:51:00 +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=1713865860; cv=none; b=iOIK0K7JhMRVRXzlswHXmFpL85Xn0l6JzCgtjxhNEPIwJEkArefXbakGTQ7GYExnKZnNbp4WOVPWXuezgW/QdOdTMcWDipkrY/wg2+zHoC12iXoVEfysjT9UDa3xnn52AkahqK3lbp4RzTip87kfH1CHvAOOWoGqkQ7pM/NMjls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865860; c=relaxed/simple; bh=ZhqBEdEffOXsyEaHXhjd8E7KHJl7rrnb6Uh8uim8bp0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ivuUrSuUYKMbOXlTTgYXCTB9DLexNLntBjB0FIE3Y8G9H2FkMxUsgJGW252oXVAT8kx/fOzBDrfBupHbiIL/xwwr/WIVkct36raR+cwgLDXuRCM8wcLFFuBXfZzJeEFuY6yJwW7ag1e/Rp5Dgsh46PdQDwzKLZ1bLxvM5V3qfzo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aCUsaGjV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aCUsaGjV" Received: by smtp.kernel.org (Postfix) with ESMTPS id 114B3C4AF0A; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713865860; bh=ZhqBEdEffOXsyEaHXhjd8E7KHJl7rrnb6Uh8uim8bp0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aCUsaGjVquArZxfBKi2nTnxshdOWrCnpd3Evqy6pfvHskkz327Dev7P0hQaMDAdlG MizmvrNhARxRC6hoTWDT0Zk4i0i45o8gw/Zicc2uAcyWZq40hngBX1Zk9x/6fH8Qi6 /l0D5bBcEFg0dcTpVCCTA/3t3TiMoS7uPKpE1Pm3MWK/vRFtnUXsuCTHWEgJZPrfrV gLeHz8e6CBw+AQVxRfQXrwIlun9G3BoaGd9KfmMknKHeWORJi2MT03jHif1RJvYGMf aMz3UEUudJr19EtCLrQClbUJp7J4q6cLbz+xb3u/flNB0r2H8p4RAUeUQKgU8GVffX R6uwFcwQDtrVg== 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 07E78C4345F; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Tue, 23 Apr 2024 12:50:47 +0300 Subject: [PATCH v3 3/5] ARM: dts: BCM5301X: Add DT for ASUS RT-AC3200 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: quoted-printable Message-Id: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-3-23d33cfafe7a@arinc9.com> References: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@arinc9.com> In-Reply-To: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@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=1713865858; l=4241; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=rzvkGU8XYLFoJJLUOwkBJjuiHr53mnc39d+oLj0VaB8=; b=yVyNDxioUjfJOYcBXOy2mKFHErFQ4rTCTHIynhHmmls0VRE3UDq4IkfGsYsfcOB8qufib1dvd Egf2mpgcjTVDvlFew5hjnf1vSXm4pu/9l+mPNGSBCt0vXiWc9PmwxKn 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=C4=B1n=C3=A7 =C3=9CNAL Add the device tree for ASUS RT-AC3200 which is an AC3200 router featuring 5 Ethernet ports over the integrated Broadcom switch. Hardware info: * Processor: Broadcom BCM4709A0 dual-core @ 1.0 GHz * Switch: BCM53012 in BCM4709A0 * DDR3 RAM: 256 MB * Flash: 128 MB * 2.4GHz: BCM43602 3x3 single chip 802.11b/g/n SoC * 5GHz: BCM43602 3x3 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=C4=B1n=C3=A7 =C3=9CNAL Reviewed-by: Linus Walleij --- arch/arm/boot/dts/broadcom/Makefile | 1 + .../boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts | 150 +++++++++++++++++= ++++ 2 files changed, 151 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadc= om/Makefile index 7099d9560033..c61fca514775 100644 --- a/arch/arm/boot/dts/broadcom/Makefile +++ b/arch/arm/boot/dts/broadcom/Makefile @@ -64,6 +64,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) +=3D \ bcm47081-luxul-xap-1410.dtb \ bcm47081-luxul-xwr-1200.dtb \ bcm47081-tplink-archer-c5-v2.dtb \ + bcm4709-asus-rt-ac3200.dtb \ bcm4709-asus-rt-ac87u.dtb \ bcm4709-buffalo-wxr-1900dhp.dtb \ bcm4709-linksys-ea9200.dtb \ diff --git a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts b/arch/a= rm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts new file mode 100644 index 000000000000..53cb0c58f6d0 --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Author: Tom Brautaset + */ + +/dts-v1/; + +#include "bcm4709.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" + +#include + +/ { + compatible =3D "asus,rt-ac3200", "brcm,bcm4709", "brcm,bcm4708"; + model =3D "ASUS RT-AC3200"; + + memory@0 { + reg =3D <0x00000000 0x08000000>, + <0x88000000 0x08000000>; + device_type =3D "memory"; + }; + + nvram@1c080000 { + compatible =3D "brcm,nvram"; + reg =3D <0x1c080000 0x00180000>; + + et0macaddr: et0macaddr { + #nvmem-cell-cells =3D <1>; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + button-reset { + label =3D "Reset"; + linux,code =3D ; + gpios =3D <&chipcommon 11 GPIO_ACTIVE_LOW>; + }; + + button-wifi { + label =3D "Wi-Fi"; + linux,code =3D ; + gpios =3D <&chipcommon 4 GPIO_ACTIVE_LOW>; + }; + + button-wps { + label =3D "WPS"; + linux,code =3D ; + gpios =3D <&chipcommon 7 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible =3D "gpio-leds"; + + led-power { + color =3D ; + function =3D LED_FUNCTION_POWER; + gpios =3D <&chipcommon 3 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "default-on"; + }; + + led-wan-red { + color =3D ; + function =3D LED_FUNCTION_WAN; + gpios =3D <&chipcommon 5 GPIO_ACTIVE_HIGH>; + }; + + led-wps { + color =3D ; + function =3D LED_FUNCTION_WPS; + gpios =3D <&chipcommon 14 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gmac0 { + nvmem-cells =3D <&et0macaddr 0>; + nvmem-cell-names =3D "mac-address"; +}; + +&gmac1 { + nvmem-cells =3D <&et0macaddr 1>; + nvmem-cell-names =3D "mac-address"; +}; + +&gmac2 { + nvmem-cells =3D <&et0macaddr 2>; + nvmem-cell-names =3D "mac-address"; +}; + +&nandcs { + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + reg =3D <0x00000000 0x00080000>; + label =3D "boot"; + read-only; + }; + + partition@80000 { + reg =3D <0x00080000 0x00180000>; + label =3D "nvram"; + }; + + partition@200000 { + compatible =3D "brcm,trx"; + reg =3D <0x00200000 0x07e00000>; + label =3D "firmware"; + }; + }; +}; + +&srab { + status =3D "okay"; + + ports { + port@0 { + label =3D "wan"; + }; + + port@1 { + label =3D "lan1"; + }; + + port@2 { + label =3D "lan2"; + }; + + port@3 { + label =3D "lan3"; + }; + + port@4 { + label =3D "lan4"; + }; + }; +}; + +&usb2 { + vcc-gpio =3D <&chipcommon 9 GPIO_ACTIVE_HIGH>; +}; + +&usb3_phy { + status =3D "okay"; +}; --=20 2.40.1 From nobody Sat May 18 04:13:27 2024 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 8FA215DF3B; Tue, 23 Apr 2024 09:51:00 +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=1713865860; cv=none; b=W+RIuavuiS+2VPV67197t4NVhA3UJG3cXBjj+BjhheETsvhwuHFrd/pzxKDSFcx+P22Q308yxotZJwwdWNMuoecAedisf6t8RFoAhqjicw4C8cIJP5kw87RGoTDouBtI0GdHx5jceADjTCK4RwWQUWRylWOVLRSEGZxurCSSrcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865860; c=relaxed/simple; bh=eCAm4uysp0SicThr1Ge6mTqr6oX3S354wyUDSjBEAhA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LqSbnmSO9c1TW4EMrgnptotIMe9fj8SegiV8ZRAxLUQtmpyyXfjRpI/0Cad7U2dMcKbOpHKW48DlJCrHx/qXepK6mcfCdXILkxmx9mx8pNoegPa3OObZ5m6tu2xLzcoVzw8sQHs0I0XlOjDg6I3kJEWKX5348qZOQ5/XoaV/0Eo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LLjV27gj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LLjV27gj" Received: by smtp.kernel.org (Postfix) with ESMTPS id 23162C4AF0E; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713865860; bh=eCAm4uysp0SicThr1Ge6mTqr6oX3S354wyUDSjBEAhA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LLjV27gjkDtgCi0GGotsI50+o+wbBNhpLl1DjpzGqP7tYEFHKLjYJ2W05WSM6YfTZ vBF3f2/vKr5u37yExRytDVOkdIcLCvb8++SdS6bn5uerDiR+eOoWPjJk/khuh0xROI E8ttGOc+AnLCS4jZhYsuGm1fbjPOSgvPCpTvXlSst1Lmvv22+6zjesAH52eE4aVWYN AGaqDZgW29XngpYmc7XyL4SlogupG8rMzho+JEvu/VRHmJ/c5xVica9tbWSM86DkXA 4p1UlrSi1wc0KjD8At8/JrSDu7buwHxpo6HZzoqZin1/VFqpvzyY3oxG6GJ3C3ra3e FwwCVJ9d0wIaQ== 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 1591CC10F15; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Tue, 23 Apr 2024 12:50:48 +0300 Subject: [PATCH v3 4/5] 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: quoted-printable Message-Id: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-4-23d33cfafe7a@arinc9.com> References: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@arinc9.com> In-Reply-To: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@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=1713865858; l=4382; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=P5yJlg4wjk2VTZLTm+4BjnQv6HiOdlE4FvT7F0PL3pw=; b=Sqe0IqL3rOc5pQHur9LFA7gCu7+/FNZzyvXHvCvNwvcup82i1DAERrYhbLOfQ+jsrk+WydIJV /6Vlsj8F4b+BD0ASrlJK5iqIT+lUYYIVAzMkxPU91KTm9N7rKYU0+DR 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=C4=B1n=C3=A7 =C3=9CNAL 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=C4=B1n=C3=A7 =C3=9CNAL Reviewed-by: Linus Walleij --- 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/broadc= om/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) +=3D \ 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..6c666dc7ad23 --- /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 =3D "asus,rt-ac5300", "brcm,bcm47094", "brcm,bcm4708"; + model =3D "ASUS RT-AC5300"; + + memory@0 { + reg =3D <0x00000000 0x08000000>, + <0x88000000 0x18000000>; + device_type =3D "memory"; + }; + + nvram@1c080000 { + compatible =3D "brcm,nvram"; + reg =3D <0x1c080000 0x00180000>; + + et1macaddr: et1macaddr { + #nvmem-cell-cells =3D <1>; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + button-reset { + label =3D "Reset"; + linux,code =3D ; + gpios =3D <&chipcommon 11 GPIO_ACTIVE_LOW>; + }; + + button-wifi { + label =3D "Wi-Fi"; + linux,code =3D ; + gpios =3D <&chipcommon 20 GPIO_ACTIVE_LOW>; + }; + + button-wps { + label =3D "WPS"; + linux,code =3D ; + gpios =3D <&chipcommon 18 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible =3D "gpio-leds"; + + led-lan { + color =3D ; + function =3D LED_FUNCTION_LAN; + gpios =3D <&chipcommon 21 GPIO_ACTIVE_LOW>; + }; + + led-power { + color =3D ; + function =3D LED_FUNCTION_POWER; + gpios =3D <&chipcommon 3 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "default-on"; + }; + + led-wan-red { + color =3D ; + function =3D LED_FUNCTION_WAN; + gpios =3D <&chipcommon 5 GPIO_ACTIVE_HIGH>; + }; + + led-wps { + color =3D ; + function =3D LED_FUNCTION_WPS; + gpios =3D <&chipcommon 19 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gmac0 { + nvmem-cells =3D <&et1macaddr 0>; + nvmem-cell-names =3D "mac-address"; +}; + +&gmac1 { + nvmem-cells =3D <&et1macaddr 1>; + nvmem-cell-names =3D "mac-address"; +}; + +&gmac2 { + nvmem-cells =3D <&et1macaddr 2>; + nvmem-cell-names =3D "mac-address"; +}; + +&nandcs { + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + reg =3D <0x00000000 0x00080000>; + label =3D "boot"; + read-only; + }; + + partition@80000 { + reg =3D <0x00080000 0x00180000>; + label =3D "nvram"; + }; + + partition@200000 { + compatible =3D "brcm,trx"; + reg =3D <0x00200000 0x07e00000>; + label =3D "firmware"; + }; + }; +}; + +&srab { + status =3D "okay"; + + ports { + port@0 { + label =3D "lan4"; + }; + + port@1 { + label =3D "lan3"; + }; + + port@2 { + label =3D "lan2"; + }; + + port@3 { + label =3D "lan1"; + }; + + port@4 { + label =3D "wan"; + }; + }; +}; + +&usb2 { + vcc-gpio =3D <&chipcommon 9 GPIO_ACTIVE_HIGH>; +}; + +&usb3_phy { + status =3D "okay"; +}; --=20 2.40.1 From nobody Sat May 18 04:13:27 2024 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 881E55D8E4; Tue, 23 Apr 2024 09:51:00 +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=1713865860; cv=none; b=q9+gHU6Jljr9rnexsbQzmVgxUUspuwF3Q6eevltyST2pirp/KP4J9HuaSJChPUtfxIm79gOtcXhNAPuJO6HR8/7iZIfUXV+CQ/jR40BUsB1KHK+x/vPc9LCogvmtBEcvP/EFrLZVbzxSW1unNu1H4QoK2IHdkPIZnQM2wgFaw9s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865860; c=relaxed/simple; bh=RonRZhOuFd4FZR72ZlEGahew6p/6xifPhjtBZhvCVw0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ENGu9Qe/WG5AtfQPEJoKOLfK+qmtUrOtokSm22hWWDvqdI0yWsuXxwYvq8ceD20yoK+72IT+C0mVMMaJqlSZpoSpECXwN9HUSqCjBY5cvMwRramb3pcnNFh7J1S0YOVTYX2obmprZ6aZDGKWAUcjMIZ1bwZzuD1n4lG7zNB55FA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=di/JyNso; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="di/JyNso" Received: by smtp.kernel.org (Postfix) with ESMTPS id 313BBC4AF0F; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713865860; bh=RonRZhOuFd4FZR72ZlEGahew6p/6xifPhjtBZhvCVw0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=di/JyNsoxsIwgIOZTUCfH5Oc9I684En/J4R8V+inZmpuMhZbYVYZTsAqoewGy5mgx 8uah7YllM/TX5uVnToZB7oarz4PW/J3ySlPgYofuznuyp0gprrNcwwUtIPPjnZLXi7 Dfs3FM3pWpXBj4BIl0ksrzUJt2ex/+V+5LL9cLZqkz25GCL5FJXkp77LG5bwTiIzAI lWInihCOPFugSkSHFU7HD1t6Dr139fjskLyCA6MKFL4warXEq6pc/1y844D8S1+dK0 As6Dg26oou6QwuNW0jcM5ebkhwyVP/gEq2WY4AMFbmhKqyBmLXLz2ddIlhwZWndp0c WbbKwxkA+QrJw== 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 231CFC16B13; Tue, 23 Apr 2024 09:51:00 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Tue, 23 Apr 2024 12:50:49 +0300 Subject: [PATCH v3 5/5] ARM: dts: BCM5301X: Conform to DTS Coding Style on ASUS RT-AC3100 & AC88U 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: quoted-printable Message-Id: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-5-23d33cfafe7a@arinc9.com> References: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@arinc9.com> In-Reply-To: <20240423-for-soc-asus-rt-ac3200-ac5300-v3-0-23d33cfafe7a@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=1713865858; l=5167; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=7L5W/7z1WpF8NCI8e+TnYZn6sscmCDy3pZyH1HtB4TY=; b=4cWPEzSSJNXKt801p2f2aFZ9J2U7DbqJ4jQ8ThzSDmM9xJDRIqCbAwmOM0n2jKuiLGogoEkL7 f2X06SHj9LLCKUxF+booXR8f0cfre9vQuL/W7a6fF8aEuW51Rqovoe8 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=C4=B1n=C3=A7 =C3=9CNAL Reorder the nodes and properties to conform to the Devicetree Sources (DTS) Coding Style. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL Reviewed-by: Linus Walleij --- .../boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi | 92 +++++++++++-------= ---- .../boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts | 69 ++++++++-------- 2 files changed, 80 insertions(+), 81 deletions(-) diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi b/arch= /arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi index 9c7efb1c44f1..2cfaaabc7a6a 100644 --- a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi @@ -10,9 +10,9 @@ =20 / { memory@0 { - device_type =3D "memory"; reg =3D <0x00000000 0x08000000>, <0x88000000 0x18000000>; + device_type =3D "memory"; }; =20 nvram@1c080000 { @@ -20,6 +20,34 @@ nvram@1c080000 { reg =3D <0x1c080000 0x00180000>; }; =20 + gpio-keys { + compatible =3D "gpio-keys"; + + button-led { + label =3D "Backlight"; + linux,code =3D ; + gpios =3D <&chipcommon 4 GPIO_ACTIVE_LOW>; + }; + + button-reset { + label =3D "Reset"; + linux,code =3D ; + gpios =3D <&chipcommon 11 GPIO_ACTIVE_LOW>; + }; + + button-wifi { + label =3D "Wi-Fi"; + linux,code =3D ; + gpios =3D <&chipcommon 18 GPIO_ACTIVE_LOW>; + }; + + button-wps { + label =3D "WPS"; + linux,code =3D ; + gpios =3D <&chipcommon 20 GPIO_ACTIVE_LOW>; + }; + }; + leds { compatible =3D "gpio-leds"; =20 @@ -66,32 +94,29 @@ led-wps { gpios =3D <&chipcommon 19 GPIO_ACTIVE_LOW>; }; }; +}; =20 - gpio-keys { - compatible =3D "gpio-keys"; - - button-led { - label =3D "Backlight"; - linux,code =3D ; - gpios =3D <&chipcommon 4 GPIO_ACTIVE_LOW>; - }; +&nandcs { + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; =20 - button-reset { - label =3D "Reset"; - linux,code =3D ; - gpios =3D <&chipcommon 11 GPIO_ACTIVE_LOW>; + partition@0 { + reg =3D <0x00000000 0x00080000>; + label =3D "boot"; + read-only; }; =20 - button-wifi { - label =3D "Wi-Fi"; - linux,code =3D ; - gpios =3D <&chipcommon 18 GPIO_ACTIVE_LOW>; + partition@80000 { + reg =3D <0x00080000 0x00180000>; + label =3D "nvram"; }; =20 - button-wps { - label =3D "WPS"; - linux,code =3D ; - gpios =3D <&chipcommon 20 GPIO_ACTIVE_LOW>; + partition@200000 { + compatible =3D "brcm,trx"; + reg =3D <0x00200000 0x07e00000>; + label =3D "firmware"; }; }; }; @@ -141,28 +166,3 @@ &usb2 { &usb3_phy { status =3D "okay"; }; - -&nandcs { - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <1>; - #size-cells =3D <1>; - - partition@0 { - label =3D "boot"; - reg =3D <0x00000000 0x00080000>; - read-only; - }; - - partition@80000 { - label =3D "nvram"; - reg =3D <0x00080000 0x00180000>; - }; - - partition@200000 { - label =3D "firmware"; - reg =3D <0x00200000 0x07e00000>; - compatible =3D "brcm,trx"; - }; - }; -}; diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts b/arch/a= rm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts index c78f0c7b137d..a197f447fd97 100644 --- a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts +++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts @@ -19,13 +19,34 @@ et1macaddr: et1macaddr { =20 switch { compatible =3D "realtek,rtl8365mb"; - /* 7 =3D MDIO (has input reads), 6 =3D MDC (clock, output only) */ mdc-gpios =3D <&chipcommon 6 GPIO_ACTIVE_HIGH>; mdio-gpios =3D <&chipcommon 7 GPIO_ACTIVE_HIGH>; reset-gpios =3D <&chipcommon 10 GPIO_ACTIVE_LOW>; realtek,disable-leds; dsa,member =3D <1 0>; =20 + mdio { + compatible =3D "realtek,smi-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + ethphy0: ethernet-phy@0 { + reg =3D <0>; + }; + + ethphy1: ethernet-phy@1 { + reg =3D <1>; + }; + + ethphy2: ethernet-phy@2 { + reg =3D <2>; + }; + + ethphy3: ethernet-phy@3 { + reg =3D <3>; + }; + }; + ports { #address-cells =3D <1>; #size-cells =3D <0>; @@ -69,29 +90,21 @@ fixed-link { }; }; }; + }; +}; =20 - mdio { - compatible =3D "realtek,smi-mdio"; - #address-cells =3D <1>; - #size-cells =3D <0>; - - ethphy0: ethernet-phy@0 { - reg =3D <0>; - }; - - ethphy1: ethernet-phy@1 { - reg =3D <1>; - }; +&gmac0 { + status =3D "disabled"; +}; =20 - ethphy2: ethernet-phy@2 { - reg =3D <2>; - }; +&gmac1 { + nvmem-cells =3D <&et1macaddr 0>; + nvmem-cell-names =3D "mac-address"; +}; =20 - ethphy3: ethernet-phy@3 { - reg =3D <3>; - }; - }; - }; +&gmac2 { + nvmem-cells =3D <&et1macaddr 1>; + nvmem-cell-names =3D "mac-address"; }; =20 &srab { @@ -112,17 +125,3 @@ fixed-link { }; }; }; - -&gmac0 { - status =3D "disabled"; -}; - -&gmac1 { - nvmem-cells =3D <&et1macaddr 0>; - nvmem-cell-names =3D "mac-address"; -}; - -&gmac2 { - nvmem-cells =3D <&et1macaddr 1>; - nvmem-cell-names =3D "mac-address"; -}; --=20 2.40.1