From patchwork Sat May 28 00:56:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 577021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1839C433EF for ; Sat, 28 May 2022 00:57:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355304AbiE1A5N (ORCPT ); Fri, 27 May 2022 20:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355305AbiE1A5K (ORCPT ); Fri, 27 May 2022 20:57:10 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C93C565D09 for ; Fri, 27 May 2022 17:57:08 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id s68so5257044pgs.10 for ; Fri, 27 May 2022 17:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=AtG7I+F36VpIdCuuzA9wRgJE9G+/I95g7+YR0czTpmw=; b=Q37Bp96cfKcUiQ1ZMTbKR+uhbRZvSf3yg6Y/A8hIKbH/ziKkGnQ4O43UaqNOSSjpdw LdAN3tRWTYH5LGg4RGc/6OakkAjDcW7DhY6OGmuPz0iddF9HQvIqfOvymlk1Jnw/Bz+v CI89WGg5cDGHLk2kVncfERv+9Rh0UCkc82qw8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version; bh=AtG7I+F36VpIdCuuzA9wRgJE9G+/I95g7+YR0czTpmw=; b=WUN5X1zWEh6WuQ9Z1JPOAbadys+v1uEdjWZTQn9qF+SA/5EWio8Mszrg3ya4D7OU93 1qv2YGSt6Vz6AnptWWZb0KpcETaV/xkDS+GjIkpeqCMyXQDX/tbwKCAIODAO3dutUTLH SxnddpJC3PwF0WrrmKZH3i4+Hx3PC6c51I0U9Hg3lfakfL0qA4QtiRPZH0Rc6RMrv6De r1JcIUxgMfqpcf205ABE/Q1YjJKQTwuRO/mgvrd3wYbQFI6Ap466uN3iHzxUb4PIpZII 7SGRxMx4tu+DuTfd2YK2RLCAYWde1llvPJo5zKpgU24M6DgmzdVo/msCnAv+OJODpKDC Bmcw== X-Gm-Message-State: AOAM530L8BJ42wA57sJs08JGn2bTDr6Sn3Dairs91ritoVeUhAh+yWMj 7NbciQXaGvaXKEHMaO2zZA5v4A== X-Google-Smtp-Source: ABdhPJxkhTh/6m/C9lpT//x6QJVRjczMmFestaxg3ZZnVpWfuB5XRbQldxUQbPDyh/83J6Mu1ewBsg== X-Received: by 2002:a63:d34f:0:b0:3fa:8a90:f395 with SMTP id u15-20020a63d34f000000b003fa8a90f395mr20919601pgi.107.1653699428124; Fri, 27 May 2022 17:57:08 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u12-20020a170903304c00b0015e8d4eb288sm4184991pla.210.2022.05.27.17.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 17:57:07 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: florian.fainelli@broadcom.com, dan.beygelman@broadcom.com, joel.peshkin@broadcom.com, philippe.reynes@softathome.com, kursad.oney@broadcom.com, tomer.yacoby@broadcom.com, samyon.furman@broadcom.com, anand.gore@broadcom.com, William Zhang , Broadcom internal kernel review list , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: arm64: add bcm4912 SoC to binding document Date: Fri, 27 May 2022 17:56:51 -0700 Message-Id: <20220528005654.13809-2-william.zhang@broadcom.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220528005654.13809-1-william.zhang@broadcom.com> References: <20220528005654.13809-1-william.zhang@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add BCM4912 SoC device tree description to bcmbca binding document. Signed-off-by: William Zhang Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml index 4e3a1a5391f6..323f09b0f95d 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml @@ -28,6 +28,13 @@ properties: - const: brcm,bcm47622 - const: brcm,bcmbca + - description: BCM4912 based boards + items: + - enum: + - brcm,bcm94912 + - const: brcm,bcm4912 + - const: brcm,bcmbca + - description: BCM63158 based boards items: - enum: From patchwork Sat May 28 00:56:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 577095 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2320C4332F for ; Sat, 28 May 2022 00:57:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355307AbiE1A5N (ORCPT ); Fri, 27 May 2022 20:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiE1A5N (ORCPT ); Fri, 27 May 2022 20:57:13 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82601663D7 for ; Fri, 27 May 2022 17:57:10 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id w2-20020a17090ac98200b001e0519fe5a8so5738240pjt.4 for ; Fri, 27 May 2022 17:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=4R0QoHuxLJou/y9If7ncdfxxD1/Azl7rK03BCJXvuSA=; b=dzOHUYp3gD8YMyJadjNNfVZk19ZSO740iX80OEMNFCyfKQPpJv7M1HnqDj2AwGNTf/ T9V5D8GMYXWWVi+hFeZ4r1fiMBvd9iqvnbQQPGZ0y7pXbE8GoMo7UOSc9P7ernTXnRHI 3ngG38nKHWDzWAID/ncPzearTILZ/1H6nCYAM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version; bh=4R0QoHuxLJou/y9If7ncdfxxD1/Azl7rK03BCJXvuSA=; b=GhES97z611AeybqmhyoXSEsn827vm4Ms/CC7qrI+4a5lGn35gYRr9uVrBu5UTaB8Hv lFwSA0q+Q5ZNdk9kijBVpo64WiAyu7vmRHEqfU6VitIRRc6C0Imm6hr/70wZ0uhqoYI6 2Zc46ni9YVVkDzwKL8rA94sTan0uzn9XBj9JNij13tm2iIjve7NqlyxS55BTKBkMpZS3 GeoC2soarZhBUXzI+dXW6+dS13f4NBwA9My/iWBa7q15NwEY85mp8Am6uZWIzWLvWZ7J UGcAdsXAHZ+spQQHYuVHgj5XYZww4v8Tf1rgavoBA8imaF26zDBoDOdUNiqBKQCYipef Nuhg== X-Gm-Message-State: AOAM530PN0VjDx/qLfCjOZQzDBKqz2e48G8Y0A3bku5dqYgo0Tij6pKS 4A6MgoCjFrRRsW1H0iKvcDd76A== X-Google-Smtp-Source: ABdhPJyfVxi9QgN8UJQXfnmj/tuUORHuWrYVGuY94+z5kDD9RZWp/VRdLJREzejC3SVmyzcZ7aJBTw== X-Received: by 2002:a17:90b:4acb:b0:1df:af66:1d2 with SMTP id mh11-20020a17090b4acb00b001dfaf6601d2mr10886812pjb.181.1653699429917; Fri, 27 May 2022 17:57:09 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u12-20020a170903304c00b0015e8d4eb288sm4184991pla.210.2022.05.27.17.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 17:57:09 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: florian.fainelli@broadcom.com, dan.beygelman@broadcom.com, joel.peshkin@broadcom.com, philippe.reynes@softathome.com, kursad.oney@broadcom.com, tomer.yacoby@broadcom.com, samyon.furman@broadcom.com, anand.gore@broadcom.com, William Zhang , Broadcom internal kernel review list , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: add dts files for bcmbca SoC bcm4912 Date: Fri, 27 May 2022 17:56:52 -0700 Message-Id: <20220528005654.13809-3-william.zhang@broadcom.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220528005654.13809-1-william.zhang@broadcom.com> References: <20220528005654.13809-1-william.zhang@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add dts for ARMv8 based broadband SoC BCM4912. bcm4912.dtsi is the SoC description dts header and bcm94912.dts is a simple dts file for Broadcom BCM94912 Reference board that only enable the UART port. Signed-off-by: William Zhang --- arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 3 +- .../boot/dts/broadcom/bcmbca/bcm4912.dtsi | 128 ++++++++++++++++++ .../boot/dts/broadcom/bcmbca/bcm94912.dts | 30 ++++ 3 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile index d5f89245336c..9bdab7778cbd 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile @@ -1,2 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb +dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb \ + bcm94912.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi new file mode 100644 index 000000000000..312076e0b002 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi @@ -0,0 +1,128 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +#include +#include + +/ { + compatible = "brcm,bcm4912", "brcm,bcmbca"; + #address-cells = <2>; + #size-cells = <2>; + + interrupt-parent = <&gic>; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + B53_0: cpu@0 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x0>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + B53_1: cpu@1 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x1>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + B53_2: cpu@2 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x2>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + B53_3: cpu@3 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x3>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + L2_0: l2-cache0 { + compatible = "cache"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + pmu: pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = , + , + , + ; + interrupt-affinity = <&B53_0>, <&B53_1>, + <&B53_2>, <&B53_3>; + }; + + clocks: clocks { + periph_clk: periph-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <200000000>; + }; + uart_clk: uart-clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clocks = <&periph_clk>; + clock-div = <4>; + clock-mult = <1>; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + cpu_off = <1>; + cpu_on = <2>; + }; + + axi@81000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0x81000000 0x0 0x4000>; + + gic: interrupt-controller@1000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0x1000 0x0 0x1000>, + <0x0 0x2000 0x0 0x2000>; + }; + }; + + bus@ff800000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xff800000 0x0 0x800000>; + + uart0: serial@12000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0x12000 0x0 0x1000>; + interrupts = ; + clocks = <&uart_clk>, <&uart_clk>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts new file mode 100644 index 000000000000..a3623e6f6919 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm4912.dtsi" + +/ { + model = "Broadcom BCM94912 Reference Board"; + compatible = "brcm,bcm94912", "brcm,bcm4912", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};