From patchwork Fri Jul 8 02:18:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12910491 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 37F85C433EF for ; Fri, 8 Jul 2022 02:19:55 +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=SVRqQ4vcDQEJ0+E1kjEKwrEfbvlitLk4wRLTgRKNLbk=; b=QZ4 GIqe6nQkhU+/1lW1HsOa0RWSoMgsCWkeAVFIx20Nge+wsNfvtIVVXU1YD0tAm1ZX8KaSKyFK1yZGe PP4k3rZYx+uzyXqB6XbIn/0VWyGc7oHVpZT3vwZxHjL0yHFS+4yvuXlF28NtKD+27u+ylWrGuW3TJ epVEhRs9dV+ElP9Mk/hsMBMYbGeQTj35QCiiONw1iCLEOA6M4k8Q16v3IzFnJAjUrXRD+Z5dtMKa7 TcPaPVjJRdq+dWwrKgsgWP4t6J+1YikacF+ycI+5BlEEXhIfZiiV48Nm7XMazCA8rHjxBE5lqjDRe UY2YDk7tInMq5lwhp0qrqpUxLJ9ffSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9da5-001Ayv-EK; Fri, 08 Jul 2022 02:18:57 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9da2-001Ay7-AK for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2022 02:18:55 +0000 Received: by mail-pg1-x534.google.com with SMTP id e132so21192229pgc.5 for ; Thu, 07 Jul 2022 19:18:52 -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=oYIS2y7vPxmrn1rPqlqwdJsqoQhCS+mdiSxbNdGd2/M=; b=fNg49k0LZgKa3Hr/Aez+tvKr1fOg5kY56UXqshsjrteRxxez4ldvGLPNOTQgGccPpj aDDj6k1Fg7qtlSGnDb2SRZlVrHzA2/WxqqmktDJcmYXNOYtMwrzijUmjmjKEHujxPRBX WQLgvSvLBw2GsRZgNSjmPTH5q+nCSQSBnSLUo= 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=oYIS2y7vPxmrn1rPqlqwdJsqoQhCS+mdiSxbNdGd2/M=; b=0LGzbLH7ZGwpddFCDFyd9juwMFtADin3VZb1NB1L/2hyDsFyPScdoJ9gJ6FzK2V7jf na3LvhB2/C7bCNLIt9fmF3DvofFsmQSvQoLY0hUNwPDTU8Pl5sDU0zBtBKvoq5vsXu2U yrMjJNlGXCK/mIXpvbNbY0LBEitA8hQbETuo/wD1+3nG09ts2M3MN7QDZvl0EHLorD05 bTBJ6ZzzH059LBpIqwpgE4L9NM1g9bRHs59b+H8k0jG0OEPoOBvCCjMC7Sr7uGRAtji1 82OgRpYTf10Iv7KrrKm3H/p+09cEF+AiSwcvAE60u0L/acWDvQukHfH1apTtgmTJfdIc nAdA== X-Gm-Message-State: AJIora+iKxgeNKzrRQ5welkQaIY3ZpE2jLReQpxOWhuOSrn0RoKap0N4 EjlCGoEvC2su4NqfZz1SC7ZdCEz0goNuSKOxhBP01ggAI0WTYHFI82ahnIiD7ihW7cKHAhijPA+ piLWfxf+Q3nsukLciksDgDNdb7dNxUArJpg/t6Eqkj7+hUTKl8uF0Uy4FlJgd0TX+BrwiI7BNpv EcTrakCswRiaP/0YNSDcE= X-Google-Smtp-Source: AGRyM1sqtsFtQW8Zp6cnmeHcUiLiG9u6Y96V/eBSzZx3FmU4Z4ztIThad5VNvt+FwrFWvOCKmGYqZw== X-Received: by 2002:a05:6a00:2449:b0:528:3a29:e79d with SMTP id d9-20020a056a00244900b005283a29e79dmr1130638pfj.39.1657246731536; Thu, 07 Jul 2022 19:18:51 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id l18-20020a635b52000000b003fba1a97c49sm26635307pgm.61.2022.07.07.19.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 19:18:50 -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] arm64: dts: broadcom: bcm4908: Fix cpu and timer node Date: Thu, 7 Jul 2022 19:18:08 -0700 Message-Id: <20220708021807.19080-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-20220707_191854_477402_20E81491 X-CRM114-Status: GOOD ( 13.86 ) 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. Also fix the cpu mask in the interrupts property of the timer node for dual core bcm4906 SoC. Signed-off-by: William Zhang --- arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi | 8 ++++++++ arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi | 2 ++ 2 files changed, 10 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 = , 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>; };