From patchwork Fri Jul 8 18:25:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12911732 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3A8FC43334 for ; Fri, 8 Jul 2022 18:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=MuvH2FN9dYtQMjAWkJKtA5vTnZAzDc3ofdo73XfBLRQ=; b=rJO +C1Ah4KSi73hsqOuxoJQd9SJ6BCIJMxUR9s5Ao1vRT3l/BzJ18fh8UL3Y9eogM0imM7LoTkV1uFUf 61S51CBPiWqjjDhdmGOXkXE8X4l9YFNAUnzvS6U/q/+uUpD+T4bo4YMVFsKvXH1FhV5k9fd/0+7X+ a4YEOEvPTx3Yb4aMoC81Uhe8rik/NZvfzPk5lWOna8V8jMrjGnS/KlyO9PMimElF4wi6+5QBSj9jv vkmKrkfLAs93cgqdHsZQrW/Hb/VFNAkil1ZvciHncV+Ar3yk5MLj2uuKdCu2oViLOoyfbyO06KeOH Cf4PGLK0tooMUQzW+mWCqDWpjeq6vVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9sfS-005JqP-21; Fri, 08 Jul 2022 18:25:30 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9sfN-005Jnb-Hs for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2022 18:25:28 +0000 Received: by mail-pg1-x52f.google.com with SMTP id r22so16107044pgr.2 for ; Fri, 08 Jul 2022 11:25:22 -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:mime-version; bh=yCQNtVNaH820qO7WPjrF/eNbJ3FH9oWbSIWasXPh5ZE=; b=ecKnqObCzGSf0QUZuEui6RI1PspznP9BicviIqR4UWMsv+p7az5IclWuOA+W5znZKx CQoqw19yXGzNnY9Pfr/tbUDJ9UxW34mEzdtYB+mRhduRq0ThkCp7lyjGoCicBV2VzhhZ 4a6WeiPhX8lyrb29X67oqiV8kjtB3dBPPoi4Y= 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:mime-version; bh=yCQNtVNaH820qO7WPjrF/eNbJ3FH9oWbSIWasXPh5ZE=; b=bCX+32d8k9p6Oo95DUUcHWN5pJlBVddaGLDbVcQT+a5+fR4JAoR4wB0bRAOwQSFI92 Eo3tj06R7tX4d7L4R0PPZYE8nJ+lK9sweUchfawITQEVGkWP4qah0pH+Ounds4DBKQdG V24bz8/veUemIsi+9mhQo//K9pnC6vJUvWH4A5TFgJmKrQMoznxWRFCgpKysewSH576v Zhmv2FRr/hNRyMVNgd+e7O+HxBkyaY4XFBOjBmsKSu909quTtwEeVb2vcGpw9xi0ShVG RK9SM851SbXQKcR2nNQAGUeMAO/y5xxKy+jRZZioqDrFYIwBDGuFe9mfEFVuuUXTEkeQ pEig== X-Gm-Message-State: AJIora8z0K/06aUX8GzXGefSVseaqdjLMxra7wfl7tx1l7lFdvKr41tZ fE7P4Dm1Pd/7zay3jUwzEfsf1ZM2XnzKM77Urkh8dssdwQ54VSxrtse0tzuR21Bvczm3Mz4L41c NTrRX/4FLVRg4DkX2wmatPKshTdTQ7w1rYPGlk7sruIwSf+Pw+qtgprQYF4fc5UCXrGkK5ywu50 Jxa1FDGqLmQBUTgQ3saho= X-Google-Smtp-Source: AGRyM1sLxZ42xZ3TfMroYrzw3b5AW5c9DwlmdNp8WOg7wi4YbCOROcl4SPN0iGb29VPNph39wDfGuA== X-Received: by 2002:a63:6888:0:b0:3fe:49fc:3be3 with SMTP id d130-20020a636888000000b003fe49fc3be3mr4197674pgc.182.1657304721762; Fri, 08 Jul 2022 11:25:21 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a1a1100b001ef8de342b8sm1992855pjk.15.2022.07.08.11.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 11:25:20 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: Broadcom Kernel List , William Zhang , Florian Fainelli , Krzysztof Kozlowski , =?utf-8?b?UmFmYcWC?= =?utf-8?b?IE1pxYJlY2tp?= , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: broadcom: bcm4908: Fix timer node for BCM4906 SoC Date: Fri, 8 Jul 2022 11:25:06 -0700 Message-Id: <20220708182507.23542-1-william.zhang@broadcom.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220708_112525_879022_6B8CC6F5 X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpu mask value in interrupt property inherits from bcm4908.dtsi which sets to four cpus. Correct the value to two cpus for dual core BCM4906 SoC. Fixes: c8b404fb05dc ("arm64: dts: broadcom: bcm4908: add BCM4906 Netgear R8000P DTS files") Signed-off-by: William Zhang Reviewed-by: Florian Fainelli --- Changes in v2: - Split into two patches and add fix reference arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi index 66023d553524..d084c33d5ca8 100644 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi @@ -9,6 +9,14 @@ cpus { /delete-node/ cpu@3; }; + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + pmu { compatible = "arm,cortex-a53-pmu"; interrupts = , From patchwork Fri Jul 8 18:25:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12911733 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9531CC433EF for ; Fri, 8 Jul 2022 18:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=flqDYIYZKzmcKz3a1BdYm6A9uX5oyAG4JwbWbU85v5Y=; b=bJunuXPv/TNYqBBpVaglHBIbHs +kcjPpv9DUsCVVeXv63rRGqDs4rAbhgTScsYMMWlt4o8ggFSFAvdKwo+TThYJG856xjAz74pPndRI vJbeN5G1/5PRibmYmpCnqlrKSZS7Ij5KAWHQmygqGmpoCiRvOuA9IGurScFCbgA9pFJspkY+BPx9d kNygfX0TWZ5C4I8eCWfam6ub0EJmJqC28Cw3lLp/CzeNfOPf6kxbv/fSLrzCAD3pB2vJcDurdBrcy lq52T3Be15QzcMbcmjAN8gRZSQrOSmszrDlUeZIgrXCUwhoC/3ymEj6rGHXF8Lk9R2vWaKE2T9R02 tM7eoSZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9sfa-005JuO-O7; Fri, 08 Jul 2022 18:25:38 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9sfU-005JqX-It for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2022 18:25:34 +0000 Received: by mail-pf1-x42d.google.com with SMTP id n12so24224633pfq.0 for ; Fri, 08 Jul 2022 11:25:30 -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=Nn7c+g91l3fYEVw8uLwgh9s4nk+rsSCQISsV80I8eew=; b=KPWoU0Ozv2alu7DAyDWZv11iCnpgK9BZG8fFb5qtWXKfjY2M3Qcn42Joa3YVP5LV8q 5NDHr2Gpvf/ET3ITLUtAwOi9aGJIsxS6h9he455+HiVAzh1sNAGRTqdfJRgTIcRZw3vi MqC11Pb7ixR0pzF/4N6/1qOJSnTdZgXY/lMdc= 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=Nn7c+g91l3fYEVw8uLwgh9s4nk+rsSCQISsV80I8eew=; b=BT5mqYgE5nuPB6ZFXW3VXQn++yPQmxpFqq0itHkEVixyaBHi72YF9TsIoy5e+jF2Ku 9lEcgdfOerlyJw4U1F9Sa9/JUEu2BBvGm0rcavW3zyoZmWDf0IydLi1WyFcV7vrkwhzZ GJbJDaPJL4nBhOCHFcezn4LbGW0TFMrrXUwt2UXUWYHJ2hBsyBzNdtfM0Y35iyCnDOjX a26f1kY13KKXYnAXLNmsbXqxX9LNHhlTIZOIfYd8+1aQgCDqJ4KhOHJeqpWV3IcgFeDZ zRzv3Dh3U4ZJZWQIq2ZwqfCBzl11KJqtNvIFM1PUKoVf8ILPUUYQmPLY/3N6yL3wl9Yj Xixg== X-Gm-Message-State: AJIora9mc1R/d6Nh3UFb1sXrEz9TqHrtnWbLXtSWuHtoqKmEz/kHg0I3 lcGt85xrZpf3AJVtzaeNaBMTA08+U1Urse6m6WZDijBEl6kq9ouxid/tLtMHZ2KeWDMoY8gbgdc ilx5SVB55dQpc0BC0RgQI0VqI6BXCGEPnowFN3CRDrZwli16erSoF9kdY/+h+K32KP2eCPVpugy 4R54ZEhnRRI3ik2rb1H2M= X-Google-Smtp-Source: AGRyM1uTgFyu50b7XMsZ1uPHfkbTAPklvLuVY1bohwS5Y/DG+7uCfO3K46/PYovBjgK5832k1CJKwQ== X-Received: by 2002:a63:be41:0:b0:40c:b4a8:dee9 with SMTP id g1-20020a63be41000000b0040cb4a8dee9mr4289647pgo.107.1657304729398; Fri, 08 Jul 2022 11:25:29 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a1a1100b001ef8de342b8sm1992855pjk.15.2022.07.08.11.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 11:25:28 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: Broadcom Kernel List , William Zhang , Florian Fainelli , Krzysztof Kozlowski , =?utf-8?b?UmFmYcWC?= =?utf-8?b?IE1pxYJlY2tp?= , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: broadcom: bcm4908: Fix cpu node for smp boot Date: Fri, 8 Jul 2022 11:25:07 -0700 Message-Id: <20220708182507.23542-2-william.zhang@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220708182507.23542-1-william.zhang@broadcom.com> References: <20220708182507.23542-1-william.zhang@broadcom.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220708_112532_671380_A78A1892 X-CRM114-Status: GOOD ( 14.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add spin-table enable-method and cpu-release-addr properties for cpu0 node. This is required by all ARMv8 SoC. Otherwise some bootloader like u-boot can not update cpu-release-addr and linux fails to start up secondary cpus. Fixes: 2961f69f151c ("arm64: dts: broadcom: add BCM4908 and Asus GT-AC5300 early DTS files") Signed-off-by: William Zhang Reviewed-by: Florian Fainelli --- Changes in v2: - Split into two patches and add fix reference arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi index a4be040a00c0..967d2cd3c3ce 100644 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi @@ -29,6 +29,8 @@ cpu0: cpu@0 { device_type = "cpu"; compatible = "brcm,brahma-b53"; reg = <0x0>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0xfff8>; next-level-cache = <&l2>; };