From patchwork Sat May 14 23:27:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 572856 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 A6491C433F5 for ; Sat, 14 May 2022 23:28:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbiENX2s (ORCPT ); Sat, 14 May 2022 19:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231883AbiENX2r (ORCPT ); Sat, 14 May 2022 19:28:47 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0078C19C04 for ; Sat, 14 May 2022 16:28:45 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id n18so11216924plg.5 for ; Sat, 14 May 2022 16:28:45 -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; bh=LLETAdgsNjTTYMobsGqcI/zncx39Rx+sHgGCybSfDkM=; b=BCRLwL6A+qx6iXe1vVcKatXm8Xudepn1oV4Stt1fYBdCdXXhrr0bto9pdCiYhlV/ol 59u7Eusi/WIlDOrOZr2v9+XzpaE/SDW+nPhDrRNTGVN617TG7J0nXas0Gic8oRT3ubic Coq+PGXAG8wUqbJ7n3TCL5E+kYxTXerzKyyvo= 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; bh=LLETAdgsNjTTYMobsGqcI/zncx39Rx+sHgGCybSfDkM=; b=QgiiZOfRdPT31htulK+Ie0RLnKx0IopZdy1OmPnsmt1/dzg6enUDFbDE6lh71SyNIx JzIq1cT3QV/qAErQF4Z1uxJV6YX5d9OiOuvVbZyoTohwDZtATbXbHtOxYTMUELGj8pHd Sn341wU7rKNAvbjGnOkC6Pka2KEoKTAMNY/v3UokwWw2DN4GU6eDS3uKwtg3XIXXTz4G uFVIBMJMWHfAof0gyGoDTJ8SRrvI9NAU83VtgpP4EwfoqWymh25vIbKzNOKJHGkzYwTR q/ARGVP8eFozDZnNoxwKe15rOPm55WVFlCnnI7k60POH8TBypzinia78WVtAXZN3lAm3 ABcA== X-Gm-Message-State: AOAM531p2OgTKkSydJHKvs+vpuANnFFjEFMAwojDjYnDU2SkWn4VecW+ d7EybFDWGFbXafq6k0egbSW9ZQ== X-Google-Smtp-Source: ABdhPJz1ZnnpjnfItdXmdyhukGj7li0Ly4S14lROQtfPN2XF7lolJCoYUO+Le2VGW1e8/mLbpVypng== X-Received: by 2002:a17:90a:343:b0:1cb:234a:a975 with SMTP id 3-20020a17090a034300b001cb234aa975mr23320106pjf.83.1652570925259; Sat, 14 May 2022 16:28:45 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k9-20020a170902d58900b0015e8d4eb2b8sm4165087plh.258.2022.05.14.16.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 16:28:43 -0700 (PDT) From: William Zhang To: Linux ARM List , Broadcom Kernel List Cc: kursad.oney@broadcom.com, florian.fainelli@broadcom.com, joel.peshkin@broadcom.com, tomer.yacoby@broadcom.com, samyon.furman@broadcom.com, philippe.reynes@softathome.com, anand.gore@broadcom.com, dan.beygelman@broadcom.com, William Zhang , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: arm64: add BCM63158 soc to binding document Date: Sat, 14 May 2022 16:27:56 -0700 Message-Id: <20220514232800.24653-2-william.zhang@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220514232800.24653-1-william.zhang@broadcom.com> References: <20220514232800.24653-1-william.zhang@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add BCM63158 SOC device tree description to bcmbca binding document. Signed-off-by: William Zhang --- 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 5fb455840417..4e3a1a5391f6 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: BCM63158 based boards + items: + - enum: + - brcm,bcm963158 + - const: brcm,bcm63158 + - const: brcm,bcmbca + additionalProperties: true ... From patchwork Sat May 14 23:27:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 572615 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 991A3C433FE for ; Sat, 14 May 2022 23:28:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231985AbiENX2x (ORCPT ); Sat, 14 May 2022 19:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbiENX2w (ORCPT ); Sat, 14 May 2022 19:28:52 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E1EC19C0F for ; Sat, 14 May 2022 16:28:50 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id c11so11188014plg.13 for ; Sat, 14 May 2022 16:28:50 -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; bh=hV66n2g21J+SyKDQh1bQ3CsE91mTJmp1hWsggYteQJ8=; b=anH/J/S+kpWzDc2oqQDJMlGZa9qgQTUO1SsBd9kX73WWMCzbXqFMED22KzngCKrRrp ++RE2jwOW1+qsDWBu11wwlpdBj1ihU4VJcq1iP5HG+MWIuI3GOZgBjdYS0BubqficFnj lgArZOyCOE/snd1PgF6QRyiNPE5V720Ds6hfk= 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; bh=hV66n2g21J+SyKDQh1bQ3CsE91mTJmp1hWsggYteQJ8=; b=zZ44wnMwtlONDk514KIvTh1f21UH3kGXXzyu/mNLX66MBCMPskTE7Crr2aRpq5ia9u UeUXOieOpoTca5bu6Jj8MDSq+6zfkoPVbBPCpmUql6UYVmJgPAIeqelcnn4Hou9OrY0E EXttIQnwH09C1swrmvIb2u5+/wFaBHSKKMXEs7Od8iEWCqIERnfx5knBFdvi7jHt23D5 Ya5ns8mcftGdZq0Ulifz8iBUto1PiqiOvbYBM+1N+0wYN2CLoF91ty9mP8756FQEdV0O TfGtgXZDvMjtIuc+I0Mt3MqNiMRcbHGiERDZpCUTbsBx2vIS3dMZsaZzlrZ4/1aGq/vB cjlg== X-Gm-Message-State: AOAM531HDIYHOH3oHA62aK4wbHIlAtG6LPJ3feUOF82ex0guGq21b/Gz TKksOxf6sEu3Kt1r7LaZ/YzZQA== X-Google-Smtp-Source: ABdhPJz2b5SJhj6uFkp+wWP7bRXaYoRfspb6GFr2rRMUE0+GPPbY5c5N8zV89xyT//jQ0EyhQDzdww== X-Received: by 2002:a17:903:1205:b0:15e:8cbc:fd2b with SMTP id l5-20020a170903120500b0015e8cbcfd2bmr11190155plh.99.1652570929705; Sat, 14 May 2022 16:28:49 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k9-20020a170902d58900b0015e8d4eb2b8sm4165087plh.258.2022.05.14.16.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 16:28:49 -0700 (PDT) From: William Zhang To: Linux ARM List , Broadcom Kernel List Cc: kursad.oney@broadcom.com, florian.fainelli@broadcom.com, joel.peshkin@broadcom.com, tomer.yacoby@broadcom.com, samyon.furman@broadcom.com, philippe.reynes@softathome.com, anand.gore@broadcom.com, dan.beygelman@broadcom.com, William Zhang , Florian Fainelli , Krzysztof Kozlowski , Nicolas Saenz Julienne , Rob Herring , Stefan Wahren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: add dts files for bcmbca soc 63158 Date: Sat, 14 May 2022 16:27:58 -0700 Message-Id: <20220514232800.24653-4-william.zhang@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220514232800.24653-1-william.zhang@broadcom.com> References: <20220514232800.24653-1-william.zhang@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add dts for ARMv8 based broadband SoC BCM63158. bcm63158.dtsi is the SoC description dts header and bcm963158.dts is a simple dts file for Broadcom BCM963158 Reference board that only enable the UART port. Signed-off-by: William Zhang --- arch/arm64/boot/dts/broadcom/Makefile | 1 + arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 2 + .../boot/dts/broadcom/bcmbca/bcm63158.dtsi | 128 ++++++++++++++++++ .../boot/dts/broadcom/bcmbca/bcm963158.dts | 30 ++++ 4 files changed, 161 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/Makefile create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile index 5082fcd1fea5..e8584d3b698f 100644 --- a/arch/arm64/boot/dts/broadcom/Makefile +++ b/arch/arm64/boot/dts/broadcom/Makefile @@ -9,5 +9,6 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \ bcm2837-rpi-zero-2-w.dtb subdir-y += bcm4908 +subdir-y += bcmbca subdir-y += northstar2 subdir-y += stingray diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile new file mode 100644 index 000000000000..d5f89245336c --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi new file mode 100644 index 000000000000..cfa235d99a32 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi @@ -0,0 +1,128 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +#include +#include + +/ { + compatible = "brcm,bcm63158", "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/bcm963158.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts new file mode 100644 index 000000000000..eba07e0b1ca6 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm63158.dtsi" + +/ { + model = "Broadcom BCM963158 Reference Board"; + compatible = "brcm,bcm963158", "brcm,bcm63158", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};