From patchwork Thu Nov 12 07:21:31 2020 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: 11899231 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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 B4539C2D0A3 for ; Thu, 12 Nov 2020 07:22:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1BF572083E for ; Thu, 12 Nov 2020 07:22:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Uyev+yU6"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q5MOoBFR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1BF572083E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=CC1V7QJucc/jTrwXrEkINj8SUCSAz34pd3uGdf8IPSY=; b=Uyev+yU6uBoLK6ss8zddQ+955c duHYxZuSW2/any2c4Lgeu0ZTi/kuB7dKXK+50kz/PuJA52YAz+GahfdlQ6NQi5vCyLP1qUm0WRU54 6ExYH5Wtg0v4rmhapoARGkvTQeC3NMU2EGC0bMvpGi86BKFoQGSL3VA/nH7MhxEVdbXR7JWysu8OM Y/EEr0wr+IxCtjnARG1KwhE7TJDK+D381neIjf1VptfezFBBJmn13IH0GUmDiYKPzSEfz9/rQxBHR wIVR/lISGxt+QjIYnbV9VuiyucdN/wlJ8cpTrrNvJLKtx4OuUnLH6jSk8MkVvVoYaAepKG/nQ+MiB 4uC8zBBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kd6vX-0004PH-W2; Thu, 12 Nov 2020 07:21:52 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kd6vV-0004Nn-E6 for linux-arm-kernel@lists.infradead.org; Thu, 12 Nov 2020 07:21:50 +0000 Received: by mail-lf1-x142.google.com with SMTP id f11so6848571lfs.3 for ; Wed, 11 Nov 2020 23:21:47 -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:mime-version :content-transfer-encoding; bh=MRa8qRVzTNVMwjc9Z58WD45Itu63riYrYK/p4P2hSRk=; b=q5MOoBFRiFy0R79aztQHCi9I0yuNMu1NB0EEbOqL9l79B7ChE8WvYvW/YV7Epzrs9y hLS3j0YqSN2Bk9ENAq9/dQx1l0e8vFZeObOZQXNdVmJT7M+MyeX75Jksle5hfaPViBOA IGwWXwLOKri55Tw5NCM9AEQZ8tCKfaW9xmqGQ7cwVpRLMpyLD36RQQMOnweZaTXJUsme X/+Pc4A4yLWtBE7BJVtYQrWifZOPwN1sLVS66c3vWzk5CaZslTzbl6EUNXdHXf6BoN0t CUfvLJAGqnETJcpxfoinF2ZfbYJo8laOaBV70n0zeTYu0Wrkrb8qQ0IPMfxLoPWjqEh1 aq2Q== 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:mime-version :content-transfer-encoding; bh=MRa8qRVzTNVMwjc9Z58WD45Itu63riYrYK/p4P2hSRk=; b=dbKTKjLa2DNbBN4K9zH/x7nOInZaHPqFPhOHUyhpOyHGH+JoWiAzC3WJflHpYeAq0W uG0AZx9NXL53gQ2/ffkS0WeeR2XdTuQ5n86d2b5MG0+ciaf/wBSrrceMBDPiTNx0bQ0v yAx52GztCSQRdSbGxHoBRR/RJZBC5M4rZIMTPL/pR8DiX1UWPi1ViH5Y1ebO72wy4KGQ ykB99sUEv7M7IA1er+6kayIvrzJheJbL1zsuP3ZvpuBBKivaxc+8UUdcrV8LyH7ZhF2y TGHNRQG9mB//ANqiHcwB47SAaUWxtiCp3MiGsucQTXx2ovqJSbuwLuOFZPrKKw76IwvE zxFA== X-Gm-Message-State: AOAM530RaaP5zzaZpixOFJhRjXz7lY8Bfkrxyf5/ScN0NELUuEWSlenx 5E07QbE972IOVFMHNQFU01g= X-Google-Smtp-Source: ABdhPJzzAbd0DJP7USElBeKtIL9BO/RONxfke8um6r5woEsi/eVbcXYPUIIqV1ICzuFUKsliq9q2AA== X-Received: by 2002:a05:6512:3312:: with SMTP id k18mr1982507lfe.403.1605165705204; Wed, 11 Nov 2020 23:21:45 -0800 (PST) Received: from localhost.localdomain (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id w18sm460427lfc.5.2020.11.11.23.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 23:21:44 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Subject: [PATCH V3 1/3] arm64: add config for Broadcom BCM4908 SoCs Date: Thu, 12 Nov 2020 08:21:31 +0100 Message-Id: <20201112072133.17039-1-zajec5@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201112_022149_497104_6172CA75 X-CRM114-Status: GOOD ( 13.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Catalin Marinas , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Will Deacon , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki Add ARCH_BCM4908 config that can be used for compiling DTS files. Signed-off-by: Rafał Miłecki --- arch/arm64/Kconfig.platforms | 8 ++++++++ arch/arm64/configs/defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 6f2494dd6d60..d1c02a4a93c8 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -43,6 +43,14 @@ config ARCH_BCM2835 This enables support for the Broadcom BCM2837 and BCM2711 SoC. These SoCs are used in the Raspberry Pi 3 and 4 devices. +config ARCH_BCM4908 + bool "Broadcom BCM4908 family" + select GPIOLIB + help + This enables support for the Broadcom BCM4906, BCM4908 and + BCM49408 SoCs. These SoCs use Cortex-B53 cores and can be + found in home routers. + config ARCH_BCM_IPROC bool "Broadcom iProc SoC Family" select COMMON_CLK_IPROC diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 17a2df6a263e..ead6fa942994 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -32,6 +32,7 @@ CONFIG_ARCH_AGILEX=y CONFIG_ARCH_SUNXI=y CONFIG_ARCH_ALPINE=y CONFIG_ARCH_BCM2835=y +CONFIG_ARCH_BCM4908=y CONFIG_ARCH_BCM_IPROC=y CONFIG_ARCH_BERLIN=y CONFIG_ARCH_BRCMSTB=y From patchwork Thu Nov 12 07:21:32 2020 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: 11899235 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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 BE6E7C2D0A3 for ; Thu, 12 Nov 2020 07:22:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 422452083E for ; Thu, 12 Nov 2020 07:22:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="l5SgsE12"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aZNt4p67" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 422452083E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CqWPy2hYfUCAMa6e+nwSaXxR+zzSuQbqUrANujwMZZ8=; b=l5SgsE12ApZ83MWKcfsmV82o6 ourjzIH0ExHMD6Dg64uTkLPpoirMrE9hcBg1bpXABxcgnrChSd5ccWOOYjMkm/s5/MFR6/o4Qs+tw eVsptUpCud5W+etwuumeFOZqgnbkKt9GZK07PW5uhDq1n+TIdMLUW3AZAKKB1+l8tjOZY3tS6JBU+ HdwMm9ecKk4JBLqIKveqA6hgX6yqHfkZCapcKzPg4SQtH/rZkuI1ssGSjvPQYOiBghEODiZfxsjZ0 Xh9NWR1l7aL46Tv5hCHQV86wLYJPOYR2qqTpgQEbm79lFkXew/pVQQfVQrTyXc87rF2p30x4mXp58 s5UfCUXbA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kd6vb-0004Q3-De; Thu, 12 Nov 2020 07:21:55 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kd6vV-0004OO-Sg for linux-arm-kernel@lists.infradead.org; Thu, 12 Nov 2020 07:21:50 +0000 Received: by mail-lj1-x22b.google.com with SMTP id y16so4942874ljk.1 for ; Wed, 11 Nov 2020 23:21:49 -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=GyWk5PjDUYTSk9QfIFovmi6CDCNql+TgvrDx6+B7tds=; b=aZNt4p67a9HuFvNvMHWxqKoWsGjjmevBM2+yqT86vIaT4npiWlsgatjc5hKxL9SmdE JTUhwobsZOqC9w2TcHocRvMxUPfBLE8oIHF9dNOTl0ZlDj909uoBetrOM1uqMX0OZyK/ ROeZgKnvC/MqP7yEy96R1YNeKpVeq5I56Y9AKDBkZcP+HXDqCzcjUnS4cRRCZgnI2is+ pu7Cjqua9cbTDH6cv1X1XO7xeARg+kaMl1KruyMxIt3EpbnGXS41kyzR5oH0oYsF8JWb GJPaYXo/svZiYuLPyX8Ln9ZVOTH+n0OEqBDm+JSATg5kOWK0+EAcj2Y4wPUkr4wChMli Qf+A== 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=GyWk5PjDUYTSk9QfIFovmi6CDCNql+TgvrDx6+B7tds=; b=FfN9XV/Bjq9ncnv4pDglZR4P2OL/dA9TuIf80K2Cw585da/WrfntwCsOdnqvE7tT5+ +AnZWkBP8Ahae256PNvJEOzpzZ+/T6TOVc5zY7uuetGlDqjCIvDn/UhtlyRqNrxQsEBG vsYMmT52wnljQI4As0t0N0k+NQPFoKPP6viZOQNNcKYq+DUVjxvhIO9pAxtolLhkw4xj g7tkM7lSQ+fSYtUhTCIM2bDxLICG07Bj1kW9cJ61TCdyD0HmQb1dH088SXf/08Qx4HCn h+wwathhcgSz4tBco3lTToOdYfVZTYdMr+xS9fXQqvXHCctnrpy5Nxgvt6gFg+I+PE6P W59Q== X-Gm-Message-State: AOAM533M0qHKLMmhwTMSd2w548ulDGWHokvHxzyV6SvCwHGe3kjkgSej tPNSiGG4H2Dfzl5ohVWLACY= X-Google-Smtp-Source: ABdhPJyeqDPsFT0CAMOdUP5tSrIMjh3hPu9SOVWVbPBCT/KJaEFvRoS1RN+7CyNrzveC/keRaedo6g== X-Received: by 2002:a2e:8942:: with SMTP id b2mr12352853ljk.441.1605165708494; Wed, 11 Nov 2020 23:21:48 -0800 (PST) Received: from localhost.localdomain (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id w18sm460427lfc.5.2020.11.11.23.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 23:21:47 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Subject: [PATCH V3 2/3] dt-bindings: arm: bcm: document BCM4908 bindings Date: Thu, 12 Nov 2020 08:21:32 +0100 Message-Id: <20201112072133.17039-2-zajec5@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201112072133.17039-1-zajec5@gmail.com> References: <20201112072133.17039-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201112_022149_951779_FCD35745 X-CRM114-Status: GOOD ( 15.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Catalin Marinas , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Will Deacon , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki BCM4908 is a new family that includes BCM4906, BCM4908 and BCM49408. It's mostly used in home routers and often replaces Northstar in vendors portfolio. Signed-off-by: Rafał Miłecki --- V3: New patch in the series --- .../bindings/arm/bcm/brcm,bcm4908.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml new file mode 100644 index 000000000000..dfe1c1c6bb8c --- /dev/null +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4908.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm4908.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM4908 device tree bindings + +description: + Broadcom BCM4906 / BCM4908 / BCM49408 Wi-Fi/network SoCs with Brahma CPUs. + +maintainers: + - Rafał Miłecki + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM4906 based boards + items: + - const: brcm,bcm4906 + - const: brcm,bcm4908 + + - description: BCM4908 based boards + items: + - enum: + - asus,gt-ac5300 + - const: brcm,bcm4908 + + - description: BCM49408 based boards + items: + - const: brcm,bcm49408 + - const: brcm,bcm4908 + +additionalProperties: false + +... From patchwork Thu Nov 12 07:21:33 2020 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: 11899233 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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 0CBD8C5517A for ; Thu, 12 Nov 2020 07:23:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69F2D20709 for ; Thu, 12 Nov 2020 07:23:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ep6LtsLh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wd2tLDq1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69F2D20709 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8LseAmKLvtGI8yMVJgMs+trvK4RInbe7usUVLcPo2Uc=; b=Ep6LtsLhKSf0BVxwej1fqM5il w2l/wAmqhmvi/x5ZJaDqgOJz/l0/NoJXJMERuTWEjVH4VQboQZSPzOZBYkLd52lelAWAqFNSCHOvK 4IkuM05IlFpdXV0vV2YqNg8AxRj0/llLA1wQnhZQu2/YfqVxbIQHy10LJPipzZiGdDbIFPF/2E0LB nJgev9FpQw1BVPhCEjR19kjJnwUBYxECY1T1ZCuR+nOj6ujFO+VyAwMdAbLNUm0toSINwqz4Udoql XOryE9XqoDLPeVgxA7MYU5GyZkam05AqVlvNtSTTMnCEcA72Z8dOJdDHMQfrosms+c08Wk9CLRoM/ xiwusXabQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kd6vf-0004RI-4e; Thu, 12 Nov 2020 07:21:59 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kd6vY-0004PG-IV for linux-arm-kernel@lists.infradead.org; Thu, 12 Nov 2020 07:21:54 +0000 Received: by mail-lf1-x144.google.com with SMTP id i6so6859979lfd.1 for ; Wed, 11 Nov 2020 23:21:52 -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=LAHh2HOszsglx/HRv5nHmz74iQXo3hAYeu8cPz9Bj78=; b=Wd2tLDq1nEVHD6pK/xvRmpocKTCBhK3XM59k3jAbZjTyNW4G3VjZRAvGrRVuIsKivm 5XR/hTTPq61CfnSWqBVRuQsM8PXk/GxyF/I8tFMcmJoe0NQs5koJ1tag5p3ZvKWzZs8Y ZxQ+MIus2ieDJsH5ojaX4kr4O+7Nl1RW5Zp8R0IHEdfuoqkHPn/yB5lXo/jYgAn0DHkd q0qoMerHc8ffGNIqNUw+QIg9MIpxyIJnga3ZDE/QTXMkHZklsBG+tJu9OUX2EiC3FZYR dYUntSWJuGDm/erU0QVmb9h6RG5+biQ7EaM4xKpvYCX1hYDUmgGf0apGPnRReIe3MkaD udqA== 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=LAHh2HOszsglx/HRv5nHmz74iQXo3hAYeu8cPz9Bj78=; b=jru4znH89WW6lgl6QAcJloJQYHtKkz9MiqU3jIRAHtDpAlInHflfc74OAmRsv/0+S5 EvUYF/z8xJZFJl+CKfveANcxAU6tPE0Ci+XYQYdCT1byAWyhmYGr1xpgqPJs/6LrOw0s 79SHmCRZlzPQh43pA/ywKbaw8DxpE5Nn+G1WVrz6ZyBEGfzy6E0oLY4fBZ75q12hpd3A dlmzMLLbfAAswtXEsw7wsV8PKVhq5rOgDs6XxFV+sYoByPKTSlQStCuVWJuYpa3tz/Z7 6q4u2ibDA1v0elYAvgV6KPmRimAdafXdaMkXqu6Q5on7mjr37TevVTG7mdDWjIAHuaSa narw== X-Gm-Message-State: AOAM532Ix8b1b8wuigS/GiOyJ6Pil1HU+WB8aXvWg7rmq/SFTEbaj9Sb HuYDRX9kroZBg77DdkNjarX5I/pH6CM= X-Google-Smtp-Source: ABdhPJxayevQuMQOiUfySC52bcF3T4Sytoy17SnHESV6l9XYnkJL1oSZd5ORz2Z8VRljiioB9fsQHQ== X-Received: by 2002:ac2:5c01:: with SMTP id r1mr12086807lfp.436.1605165711179; Wed, 11 Nov 2020 23:21:51 -0800 (PST) Received: from localhost.localdomain (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id w18sm460427lfc.5.2020.11.11.23.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 23:21:50 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Subject: [PATCH V3 3/3] arm64: dts: broadcom: add BCM4908 and Asus GT-AC5300 early DTS files Date: Thu, 12 Nov 2020 08:21:33 +0100 Message-Id: <20201112072133.17039-3-zajec5@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201112072133.17039-1-zajec5@gmail.com> References: <20201112072133.17039-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201112_022152_700316_C000EBCE X-CRM114-Status: GOOD ( 18.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Catalin Marinas , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Will Deacon , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki They don't descibe hardware fully yet but it's enough to boot a system. Some missing blocks: 1. PMC (Power Management Controller?) 2. Ethernet 3. Crypto 4. Thermal Asus DTS is missing defining full NAND partitions layout and buttons. Further changes will fill those gaps as soon as required bindings will be found / tested / added. Signed-off-by: Rafał Miłecki --- V2: Move some NAND properties to device dts Fix CPU compatible strings Add axi@81000000 Fix PMU compatible string V3: Drop leading 0s Drop bootargs with debugging earlycon Use usb@ syntax to match [PATCH v2 00/18] dt-bindings: usb: Harmonize xHCI/EHCI/OHCI/DWC3 nodes name --- arch/arm64/boot/dts/broadcom/Makefile | 1 + arch/arm64/boot/dts/broadcom/bcm4908/Makefile | 2 + .../bcm4908/bcm4908-asus-gt-ac5300.dts | 66 +++++++ .../boot/dts/broadcom/bcm4908/bcm4908.dtsi | 187 ++++++++++++++++++ 4 files changed, 256 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/Makefile create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile index cb7de8d99223..998e240aa698 100644 --- a/arch/arm64/boot/dts/broadcom/Makefile +++ b/arch/arm64/boot/dts/broadcom/Makefile @@ -5,5 +5,6 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-4-b.dtb \ bcm2837-rpi-3-b-plus.dtb \ bcm2837-rpi-cm3-io3.dtb +subdir-y += bcm4908 subdir-y += northstar2 subdir-y += stingray diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/Makefile b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile new file mode 100644 index 000000000000..ef26c23603ce --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_BCM4908) += bcm4908-asus-gt-ac5300.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts new file mode 100644 index 000000000000..13c6b86eef21 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include +#include + +#include "bcm4908.dtsi" + +/ { + compatible = "asus,gt-ac5300", "brcm,bcm4908"; + model = "Asus GT-AC5300"; + + memory@0 { + device_type = "memory"; + reg = <0x00 0x00 0x00 0x40000000>; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + wifi { + label = "WiFi"; + linux,code = ; + gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "WPS"; + linux,code = ; + gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; + }; + + restart { + label = "Reset"; + linux,code = ; + gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; + }; + + brightness { + label = "LEDs"; + linux,code = ; + gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&nandcs { + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-on-flash-bbt; + brcm,nand-has-wp; + + #address-cells = <1>; + #size-cells = <0>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "cferom"; + reg = <0x0 0x100000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi new file mode 100644 index 000000000000..a9e01ecb00b2 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi @@ -0,0 +1,187 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include +#include + +/dts-v1/; + +/ { + interrupt-parent = <&gic>; + + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "brcm,brahma-b53"; + reg = <0x0>; + next-level-cache = <&l2>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "brcm,brahma-b53"; + reg = <0x1>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0xfff8>; + next-level-cache = <&l2>; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "brcm,brahma-b53"; + reg = <0x2>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0xfff8>; + next-level-cache = <&l2>; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "brcm,brahma-b53"; + reg = <0x3>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0xfff8>; + next-level-cache = <&l2>; + }; + + l2: l2-cache0 { + compatible = "cache"; + }; + }; + + axi@81000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x81000000 0x4000>; + + gic: interrupt-controller@1000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x1000 0x1000>, + <0x2000 0x2000>; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + }; + + clocks { + periph_clk: periph_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <50000000>; + clock-output-names = "periph"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x80000000 0x10000>; + + usb@c300 { + compatible = "generic-ehci"; + reg = <0xc300 0x100>; + interrupts = ; + status = "disabled"; + }; + + usb@c400 { + compatible = "generic-ohci"; + reg = <0xc400 0x100>; + interrupts = ; + status = "disabled"; + }; + + usb@d000 { + compatible = "generic-xhci"; + reg = <0xd000 0x8c8>; + interrupts = ; + status = "disabled"; + }; + }; + + ubus@ff800000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0xff800000 0x3000>; + + timer: timer@400 { + compatible = "brcm,bcm6328-timer", "syscon"; + reg = <0x400 0x3c>; + }; + + gpio0: gpio-controller@500 { + compatible = "brcm,bcm6345-gpio"; + reg-names = "dirout", "dat"; + reg = <0x500 0x28>, <0x528 0x28>; + + #gpio-cells = <2>; + gpio-controller; + }; + + uart0: serial@640 { + compatible = "brcm,bcm6345-uart"; + reg = <0x640 0x18>; + interrupts = ; + clocks = <&periph_clk>; + clock-names = "periph"; + status = "okay"; + }; + + nand@1800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,brcmnand-v7.1", "brcm,brcmnand"; + reg = <0x1800 0x600>, <0x2000 0x10>; + reg-names = "nand", "nand-int-base"; + interrupts = ; + interrupt-names = "nand"; + status = "okay"; + + nandcs: nandcs@0 { + compatible = "brcm,nandcs"; + reg = <0>; + }; + }; + + reboot { + compatible = "syscon-reboot"; + regmap = <&timer>; + offset = <0x34>; + mask = <1>; + }; + }; +};