From patchwork Wed Dec 29 10:23:14 2021 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: 12700838 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 4358EC433EF for ; Wed, 29 Dec 2021 10:25:15 +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-Transfer-Encoding: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-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lD927yqq6tRtIUkknqQe/vAFY8PRxUMvwIS2GRHmCbo=; b=aNXRKU0Ni2PcNo HnPIr8v3ecasKH0sZRsOEfvp6UP83VDR/Vet0UwnWg9sKvw9Jve6Tjv5gNLMTKWPN9FBvJ1aVcsNE cv6m73tC9qTbiENTr/k72VN9Vm3JwM9Tr0ccjyDSHzmAj6dnoNV3Lf3BnJjXx2lC86KtBS6+Vo3W4 ALw693Kx3um184s+qJbMXOn8R1Kp1ZtJOphH1LqD39mKspKYXKNu30zJ8fzscmSgVT4zmG9Dpds2l eH65N7W3LUc6SJ+3IX2cGVY9E9BGqoTRr73bJaGs9QpavfrKaQoRZaqRgAGkXXsbTck1WjaR24yGV i5OJ4YKEDfhObgG3eW8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2W7h-002cJn-10; Wed, 29 Dec 2021 10:23:57 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2W7d-002cIz-NH for linux-arm-kernel@lists.infradead.org; Wed, 29 Dec 2021 10:23:55 +0000 Received: by mail-ed1-x52e.google.com with SMTP id z29so84403165edl.7 for ; Wed, 29 Dec 2021 02:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EA0qkbRaoKZN2LJIyAhcaamMLi0dAd0M02lNssX5Iok=; b=EPiuY3A9acdx00QrZkSO9AofczW76WMUh5iimGjhK5LwdFzgzBNjE+nGEN89Rt/I+E Hnq40F5holtMuR4yskSl3xEWtwdihYuSHo8kzFwJcCahc2YztbaF/JM72W4zupIgmat4 8p74rb8fMx0RI8iScTJpFmdE5upSgAkPTp7hI6S6POlU2hhFMtkH5HXFtGfh8L5u75WU kMJR4LlI0iFDTjMARnw3mSmgFfyNlDJOr0kO7+IRrKyElfSxLoKBQ3aQtH+BwSNj2BQh mo6H7BYnDKfl7dZSL4X81vxxEeLYIEMEIU+rFVGROizvs7iuBiEgNIvdF6UUud5BUGDr QA3g== 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 :content-transfer-encoding; bh=EA0qkbRaoKZN2LJIyAhcaamMLi0dAd0M02lNssX5Iok=; b=jwNp4VUX7i9rYItaUcoiao8dMxuB349EemR1FsmLWYIm+zbdw1UbETyPO1m3wjHs2X Rbob1MFsHF1+nNbBL0vdbLqvzaaorRQ+0yF+GHWEc5VlfDGRiRFr39rjilO1RzvtlMw5 ZTmtc3IYDeuon27+cQvf5NMAlovDgL2+s2fBMN4KSnC9c8Vz0bjt/oUmD55kVzIzgAHR TbuTEcPdOGuKJOxQNJV/9HKUJpEIw7gApFL7lluYcoJdryLLnae+IVfMmq0mIZSLMSGP OibQVbNH6xOj5wT5aSeV5LZs9hOBEjLmFDbiIgQkf65xj9kHtkZMZUWMt9CnBfG7jZ8C 5c4Q== X-Gm-Message-State: AOAM531gqkr8WTbvjjk12O2H9O9cW/Ifvo/KblZxnPVyBiT5E5xDrM/U tlh0Mz6bY7i6jyWHRbToLW4= X-Google-Smtp-Source: ABdhPJwbqHz+srlkVIl/yRjEeVWNby3WH8gSVVOFq9YkjVFnloTKo6i7xUwrMQU8eZlg7QSc0SLJWg== X-Received: by 2002:a17:907:1b21:: with SMTP id mp33mr19866000ejc.580.1640773428350; Wed, 29 Dec 2021 02:23:48 -0800 (PST) Received: from localhost.localdomain ([2a00:f41:3894:b142:1667:a0ff:5387:8a85]) by smtp.gmail.com with ESMTPSA id n8sm6189490edb.41.2021.12.29.02.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 02:23:47 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] arm64: dts: broadcom: bcm4908: use proper TWD binding Date: Wed, 29 Dec 2021 11:23:14 +0100 Message-Id: <20211229102314.5423-1-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211229_022353_811237_E83E3191 X-CRM114-Status: GOOD ( 12.99 ) 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 From: Rafał Miłecki Block at is a TWD that contains timers, watchdog and reset. Actual timers happen to be at block beginning but they only span across the first 0x28 registers. It means the old block description was incorrect (size 0x3c). Drop timers binding for now and use documented TWD binding. Timers should be properly documented and defined as TWD subnode. Fixes: 2961f69f151c ("arm64: dts: broadcom: add BCM4908 and Asus GT-AC5300 early DTS files") Signed-off-by: Rafał Miłecki --- arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi index 984c737fa627..6e738f2a3701 100644 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi @@ -273,9 +273,9 @@ bus@ff800000 { #size-cells = <1>; ranges = <0x00 0x00 0xff800000 0x3000>; - timer: timer@400 { - compatible = "brcm,bcm6328-timer", "syscon"; - reg = <0x400 0x3c>; + twd: timer-mfd@400 { + compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon"; + reg = <0x400 0x4c>; }; gpio0: gpio-controller@500 { @@ -330,7 +330,7 @@ reset-controller@2644 { reboot { compatible = "syscon-reboot"; - regmap = <&timer>; + regmap = <&twd>; offset = <0x34>; mask = <1>; };