From patchwork Wed Mar 10 07:46:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 397881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 619E9C433E0 for ; Wed, 10 Mar 2021 07:46:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 393F464FDE for ; Wed, 10 Mar 2021 07:46:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbhCJHqT (ORCPT ); Wed, 10 Mar 2021 02:46:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbhCJHqP (ORCPT ); Wed, 10 Mar 2021 02:46:15 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C37AC06174A for ; Tue, 9 Mar 2021 23:46:15 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id x4so25169366lfu.7 for ; Tue, 09 Mar 2021 23:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SzXivdTOCvIZS4rAkfG4jXFG92ohPQe7A3aF14ZFuDo=; b=UfgHXhWd2jOmyTPwbE75lahl3D0cNQoA0JA4bd82WUrFTPjbDbzRv32RXEup9v8jPQ nFI0F20OIosZRHEF6ShmkbrIwNZGfY+Bk9nQpsJjLAmjBn1pf5pzaFmvdCPZ4/3xvUWR T4B4kwOfM27EVPm+T8NOWn1jurPw7DqXO8rqXw668fDmuZ6Drj2lElHpOC/fgjWgNe8d If5DlrmYTtvCC5yUfuCscjCDj3NM9hmtrfpz3uvyU/p0Wg64KZCb/EmmikX3uT3RO0vH rIL9IcOg/F9JYkyzm2Y8m3E52VZVSoB9+7t0W307RROQb+gBeVF+IG1RPHUAiGNLu7gW alXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SzXivdTOCvIZS4rAkfG4jXFG92ohPQe7A3aF14ZFuDo=; b=Y3iCHryvjx+16/Vvom8DoW0NyQT+uM6GBHsSsx9sR8AGWg88WpOCL94DbjqaRynOB+ i97EfZJKApMHbj8LdGl5aYIBxSBqhBSRGhgQYddTTbweM06s+vpxgN9jnKXQuFzzd2K0 Cspkv6JZL3o36JAygl8PKo/zosbyBRXIZYV4cugr/xN1LsOhX9NpIohWB/2j+0CVPU+y e+C+DYw7lPr8MO+cLynSDjwnqW6Koe1bFeb+OZao08p7hZhu2xf7IuipvMjFkju6gcdf 8VURCv6Xm5/PyWL55Wp8IxrtveIPZ1/2DJ4ug2czaG20ZnF2eqLgD5JY6FV+WvZf5lGH LtcA== X-Gm-Message-State: AOAM533kl4hBOwPm79mPDFPSfMAQdwjc9l3IE18TipZLLnJPJCbdrL0M UImEjbyJXZMijpwgtYMZ0+M= X-Google-Smtp-Source: ABdhPJwtIy6SseFDPRQoTTUgwmEaXmyD2L7DL3XXSfhlcyao5rFb/pzs7DGJpthsdGB3QLGfytHEVA== X-Received: by 2002:ac2:47ef:: with SMTP id b15mr1205794lfp.615.1615362373493; Tue, 09 Mar 2021 23:46:13 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id t16sm2858133ljj.137.2021.03.09.23.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 23:46:12 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Subject: [PATCH V3 1/2] dt-bindings: arm: bcm: document TP-Link Archer C2300 binding Date: Wed, 10 Mar 2021 08:46:02 +0100 Message-Id: <20210310074603.17715-1-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210308131850.22576-1-zajec5@gmail.com> References: <20210308131850.22576-1-zajec5@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki One more BCM4906 based device. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml index e55731f43c84..2cd4e4a32278 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml @@ -21,6 +21,7 @@ properties: items: - enum: - netgear,r8000p + - tplink,archer-c2300-v1 - const: brcm,bcm4906 - const: brcm,bcm4908 From patchwork Wed Mar 10 07:46:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 396946 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C588C433DB for ; Wed, 10 Mar 2021 07:46:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 26E1964FE5 for ; Wed, 10 Mar 2021 07:46:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbhCJHqU (ORCPT ); Wed, 10 Mar 2021 02:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbhCJHqS (ORCPT ); Wed, 10 Mar 2021 02:46:18 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8251FC06174A for ; Tue, 9 Mar 2021 23:46:18 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id p15so24281251ljc.13 for ; Tue, 09 Mar 2021 23:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bEIbQZ2WKdtngE3brCqjz9+P9DxEjb2+K3l6rpeagHU=; b=CuIXVBrw2Gz6yv12y84z7gAHvErq7TICgUnnlctla1KzQ51MHi0pUNMPvx4I3eBq3w UJHZOr+SqYgyS8gECrIekbkCRZMpwgjGPUe/EyfoKBKmbQezLDwxXACNzSBBrPcX5JnT S1JYDTVtur+N6iJu8iQZMH+2xS/NVBcYT2XeZT7MOVyraILkF6H13ybsgcfT9+boOifP yrxAJg8pMqbZkcNeBjbddm9eHLAJzajSedH+kYj5GZtBNMG0XZfYoNlCcBR33GERiMrR EMn3O36qxM/Ks0jqgxkPl+VTx436K9QsDuIDVlrlR6gKdpg2FqDdBZYMruznPP+/6J/D 1V3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bEIbQZ2WKdtngE3brCqjz9+P9DxEjb2+K3l6rpeagHU=; b=c/yk4ulAlopa14UHaF9DXUZAQ+whSSR3oNC9nBiXjWstMccfpsna6reO4+SWIKVrGk ndWSCSRosxVewwo+DxO3e93OWAep2jujVibwoDDSTB8NKcp6jQdGqP8iP3eeImWG/xbJ PMd4aiHn17uGtgNjR0HdVNCWGLQq9kbjM9goHxrUUUFifmJ8A39znODLUX1nvtst7rQO FMnLHhWKxRk2/wlI42S7k6m8jNYbbf17va+M5X9BYXc1jOvPg1+DUDy+g5zOo/0jaqQd 1UMpE0ZL93wL/HgFblsxOdN3qzu/+0v25tKgmnN+pW+uUAjLw8K/RoFBSp2aBA0F/dVb I9Cw== X-Gm-Message-State: AOAM532/bfkPkwO+JPB4aAbi7fwI/pArHhC5Pa5SVaJGp6ZhJKn5HV4E davoOnKG22ePdKL75KsLjis= X-Google-Smtp-Source: ABdhPJwptyYZaAFiqPN2VqMfbyhoeOYviz4RY682sO58roH3eIAhAkZcQhW9xoohxChq71JZmYHiMg== X-Received: by 2002:a05:651c:31b:: with SMTP id a27mr1004232ljp.449.1615362376477; Tue, 09 Mar 2021 23:46:16 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id t16sm2858133ljj.137.2021.03.09.23.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 23:46:15 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V3 2/2] arm64: dts: broadcom: bcm4908: add TP-Link Archer C2300 V1 Date: Wed, 10 Mar 2021 08:46:03 +0100 Message-Id: <20210310074603.17715-2-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210310074603.17715-1-zajec5@gmail.com> References: <20210308131850.22576-1-zajec5@gmail.com> <20210310074603.17715-1-zajec5@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki Archer C2300 V1 is a home router based on the BCM4906 (2 CPU cores). It has 512 MiB of RAM, NAND flash, USB 2.0 and USB 3.0 ports, 4 LAN ports, 1 WAN port. Signed-off-by: Rafał Miłecki --- V2: Fix nodes names for power and USB LEDs. V1 got debugging names. V3: Fix USD LEDs nodes names (use "led-" prefix) --- arch/arm64/boot/dts/broadcom/bcm4908/Makefile | 1 + .../bcm4906-tplink-archer-c2300-v1.dts | 182 ++++++++++++++++++ 2 files changed, 183 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/Makefile b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile index ebebc0cd421f..cc75854519ac 100644 --- a/arch/arm64/boot/dts/broadcom/bcm4908/Makefile +++ b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-netgear-r8000p.dtb +dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-tplink-archer-c2300-v1.dtb dtb-$(CONFIG_ARCH_BCM4908) += bcm4908-asus-gt-ac5300.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts new file mode 100644 index 000000000000..b63eefab48bd --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts @@ -0,0 +1,182 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include +#include +#include + +#include "bcm4906.dtsi" + +/ { + compatible = "tplink,archer-c2300-v1", "brcm,bcm4906", "brcm,bcm4908"; + model = "TP-Link Archer C2300 V1"; + + memory@0 { + device_type = "memory"; + reg = <0x00 0x00 0x00 0x20000000>; + }; + + leds { + compatible = "gpio-leds"; + + led-power { + function = LED_FUNCTION_POWER; + color = ; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + + led-2ghz { + function = "2ghz"; + color = ; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + led-5ghz { + function = "5ghz"; + color = ; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + }; + + led-wan-amber { + function = LED_FUNCTION_WAN; + color = ; + gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; + }; + + led-wan-blue { + function = LED_FUNCTION_WAN; + color = ; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + }; + + led-lan { + function = LED_FUNCTION_LAN; + color = ; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + led-wps { + function = LED_FUNCTION_WPS; + color = ; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + led-usb2 { + function = "usb2"; + color = ; + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; + }; + + led-usb3 { + function = "usbd3"; + color = ; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + + led-brightness { + function = LED_FUNCTION_BACKLIGHT; + color = ; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + brightness { + label = "LEDs"; + linux,code = ; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "WPS"; + linux,code = ; + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "WiFi"; + linux,code = ; + gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; + }; + + restart { + label = "Reset"; + linux,code = ; + gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&usb_phy { + brcm,ioc = <1>; + status = "okay"; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&xhci { + status = "okay"; +}; + +&ports { + port@0 { + label = "lan4"; + }; + + port@1 { + label = "lan3"; + }; + + port@2 { + label = "lan2"; + }; + + port@3 { + label = "lan1"; + }; + + port@7 { + reg = <7>; + phy-mode = "internal"; + phy-handle = <&phy12>; + label = "wan"; + }; +}; + +&nandcs { + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-on-flash-bbt; + + #address-cells = <1>; + #size-cells = <0>; + + partitions { + compatible = "brcm,bcm4908-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "cferom"; + reg = <0x0 0x100000>; + }; + + partition@100000 { + compatible = "brcm,bcm4908-firmware"; + reg = <0x100000 0x3900000>; + }; + + partition@5800000 { + compatible = "brcm,bcm4908-firmware"; + reg = <0x3a00000 0x3900000>; + }; + }; +};