From patchwork Fri Oct 27 10:43:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 158897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp513244vqb; Fri, 27 Oct 2023 04:01:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFW9mFW2Fo22htuLHBf1hox+FJdAhhon4Q0nomRc29CMVghJDDHUeDYr7E5W0viM0PnbYkJ X-Received: by 2002:a25:84c9:0:b0:d81:5d5a:25a3 with SMTP id x9-20020a2584c9000000b00d815d5a25a3mr2097583ybm.43.1698404470322; Fri, 27 Oct 2023 04:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404470; cv=none; d=google.com; s=arc-20160816; b=mUxvwIBGEIEkD7Zcz9/clII3vJdo32xDKsegWNSg8zGPfQxB7EFSUxBodFIAXNb4yG bDRGs2LiCroraeRWEGefFep2QVNYssB5/Ur6TZN8Oh4XGyCAhb9F0mlOB2OaJIT8CxPL P0nvi+1D6NiZlRJRs4maMftY5njwexHir9SeuFMHDs0cEi37EB0Bwl0dgzsGDosd3giD VNDHyEiOUTXcuT9lwyIMotsppglsCex4DX7gL6D5uOG/KWO0I78+D7TxFc8cPCMLdwwH UpXYJxeKuJMI6cpJEuKsLTmfM8/gowLYq0DbjqlfDfU7rijBMQe3i7kHIFDsrqDHpK91 xv0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qCFlFGVDKZOk3it4BxKV5F4HS9vv4A41djN66zMfYx0=; fh=jl+6xami2wMN5/WImgUgWF+yM7SARCr/QXw/jnT6odM=; b=cBk/BJe4NpNA+5CSML/1IMR4eM/KoSWvuNq59VeDQCjqdFHe7LLgXb2qzIsTdYUlVB MjmJO60hvQAS06NIXUqsuz0NIFw/9j3rVBDba/e+as64F3S1AOobmEjvJNnrTj2Wb04Y GyAJh8CHAaslX8kXiXBj1JdvFRWilnEu+W32nYdUHv9vyrdhsfdUpBulx2Zh+TnV1Hnk lIZvzY3VxKlduOq+BEpLgzGSD0txX9u0dovKZlrRLuBoOLvYebMHJbhqBAskIAZijlMI bm+y66j0dFD2slqeNUZZxXC5wtxBFU+jRA+P3sjbz7YNENxGsF+vI9SI9w+ISegIvUrv AAGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 83-20020a251856000000b00da04292553fsi1963992yby.78.2023.10.27.04.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 04:01:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 14CE38098427; Fri, 27 Oct 2023 04:00:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbjJ0LA1 (ORCPT + 25 others); Fri, 27 Oct 2023 07:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345585AbjJ0LAY (ORCPT ); Fri, 27 Oct 2023 07:00:24 -0400 Received: from mail-sh.amlogic.com (unknown [58.32.228.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39091D6; Fri, 27 Oct 2023 03:59:33 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Fri, 27 Oct 2023 18:44:25 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V3 1/3] dt-bindings: watchdog: Add support for Amlogic C3 and S4 SoCs Date: Fri, 27 Oct 2023 18:43:56 +0800 Message-ID: <20231027104358.342861-2-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027104358.342861-1-huqiang.qin@amlogic.com> References: <20231027104358.342861-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 27 Oct 2023 04:00:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780906166354822271 X-GMAIL-MSGID: 1780906166354822271 Update dt-binding document for watchdog of Amlogic C3 and S4 SoCs. Signed-off-by: Huqiang Qin Acked-by: Conor Dooley Reviewed-by: Guenter Roeck --- .../bindings/watchdog/amlogic,meson-gxbb-wdt.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml b/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml index 443e2e7ab467..69845ec32e81 100644 --- a/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml @@ -15,9 +15,15 @@ allOf: properties: compatible: - enum: - - amlogic,meson-gxbb-wdt - - amlogic,t7-wdt + oneOf: + - enum: + - amlogic,meson-gxbb-wdt + - amlogic,t7-wdt + - items: + - enum: + - amlogic,c3-wdt + - amlogic,s4-wdt + - const: amlogic,t7-wdt reg: maxItems: 1 From patchwork Fri Oct 27 10:43:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 158896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp512975vqb; Fri, 27 Oct 2023 04:00:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsiRPz0l5LeDcBOG3j7q1Zi1u0FVF4AYlpznB8DR6/dSK5mu3u+pRx2JCzD+KTPB4sOPqm X-Received: by 2002:ad4:5f4e:0:b0:66d:6705:5c50 with SMTP id p14-20020ad45f4e000000b0066d67055c50mr2405007qvg.44.1698404450289; Fri, 27 Oct 2023 04:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404450; cv=none; d=google.com; s=arc-20160816; b=FTd4Qz0/QPPVHH051onhf5w0SELDRCa4nPG7YKSCnkWnTqKTfRFojJdg83F61YwHVN hSXjnQRrc2RxIWkkYtMWWT1XXZassjlKYvG3m/ccpc532ENwPM6YhgB0EGz6QkwVDwM7 4PEzNF4Nieen6HZov/oDM37hA2oRIWOjhZoctW/W3tZFQkBWoEv2wiZxbNdrLq/eITAG fkMO68AaqEaRsQItmTO4N4+O+7jeAStfHh2iVq4WeDXUTH28H+cPmuQHI3zoePzCYUft MqW8KCFsZy2JDh/DdXBvJnyMpRJPPKwjd4ZJuKHHNhtBu/hfjIq/dvLP18sFGien+OXr SXHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8qVGLi6p9k5wYd39BngQOvllZ+V3oAiTJBLGp4RPfK4=; fh=jl+6xami2wMN5/WImgUgWF+yM7SARCr/QXw/jnT6odM=; b=SKeEFRlxJ8kO1uRDcANWPQpDUFIs3CLJ5tkXIDCOGUKDTacb6wAVjNYPvk7uHv8Ej3 z/uZNxl8RM08qDMxTyNvqzTYJjzVEAva7HAaI7knYz0IMnZVx2z/AH8M1ZwGu0UlkzZM 0iXkLYbp0csCH/2tbHuVfb0LCjVJJdcSKzn2KC2DR10VG09pvaJB6vt2+43JDxVUP3dm CHICaGAQ4vIuGkawJTROXm/UrYHifVCcnUd5C2LRKwXj6G4EwHwPl2nf+v/3zAMYYadu uDqU9rmHedJNxkxKyzcvAwipYQx2YiyAAYqYi5JlI2N7ZfPj+mIAfuFGm/jsZI0XcYb+ ua/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id kf4-20020a056214524400b00653589bac4fsi660695qvb.48.2023.10.27.04.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 04:00:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 114E6808751F; Fri, 27 Oct 2023 04:00:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345649AbjJ0LAY (ORCPT + 25 others); Fri, 27 Oct 2023 07:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjJ0LAW (ORCPT ); Fri, 27 Oct 2023 07:00:22 -0400 Received: from mail-sh.amlogic.com (unknown [58.32.228.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2F6129; Fri, 27 Oct 2023 03:59:34 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Fri, 27 Oct 2023 18:44:26 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V3 2/3] arm64: dts: Add watchdog node for Amlogic C3 SoCs Date: Fri, 27 Oct 2023 18:43:57 +0800 Message-ID: <20231027104358.342861-3-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027104358.342861-1-huqiang.qin@amlogic.com> References: <20231027104358.342861-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 04:00:39 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780906144667892246 X-GMAIL-MSGID: 1780906144667892246 Add watchdog device. Signed-off-by: Huqiang Qin Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index 998f5050795c..2ad1f8eef199 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -81,6 +81,12 @@ apb4: bus@fe000000 { #size-cells = <2>; ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; + watchdog@2100 { + compatible = "amlogic,c3-wdt", "amlogic,t7-wdt"; + reg = <0x0 0x2100 0x0 0x10>; + clocks = <&xtal>; + }; + periphs_pinctrl: pinctrl@4000 { compatible = "amlogic,c3-periphs-pinctrl"; #address-cells = <2>; From patchwork Fri Oct 27 10:43:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 158895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp512331vqb; Fri, 27 Oct 2023 03:59:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpqRJHeuLDRa0VQPyDzTq46P/xNb4xK+Yd6htSSmS9FCi9UQunWQcGLMF3kTlVyfaguQA/ X-Received: by 2002:a25:44:0:b0:d9a:5409:60a8 with SMTP id 65-20020a250044000000b00d9a540960a8mr9541947yba.14.1698404393723; Fri, 27 Oct 2023 03:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404393; cv=none; d=google.com; s=arc-20160816; b=dPMAlP3U0qIqN8cxfR6fXoGg58REvq3VxzpPwnpu7uxqBPTbQTB7eHsXkvwJCRoapk XBp3wyAur7IllbWQpOP8t6I4tz+iZsYfKYAZuR+sUTVMiyIqpMEnkCPNqQQYTRtMmHh/ c1rpkjKSCP+EiUJ4+41HG8YWuQPP/MJ2dQbBBOUZmIvwNnU3gWsiMaKk721JYB2b36v7 4oDUSueGsw8RC0DKWGoGTlx4ekHyxXZN0Sw2oC4znnZnZikGf6cTQIibzztLe7M9XnhK hjJRBjugJFV7cW7Dd42pYEWdd+0TlsEDABt/ubZVlPYmbv5hq0T63yG0tXp5jeDj2LcT jxqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=17Y9eRkA+qYDXkh7kuHqzuI1w8UFD82Bqy2dksPBx5w=; fh=jl+6xami2wMN5/WImgUgWF+yM7SARCr/QXw/jnT6odM=; b=pprZhJT4WEu1Fu1bXLDKzPkG+4YIp0yxPBqpE9ucq0IqObQbvibraRUbwH9ottf0b1 XbyCs1mEK9qgU48ZSxaKnh9gZ7U5Wrxpz9DDrbfEqiPJB3WHup7I0KDSsTydfDKqBo6z VlAWBfX6xhMu03TAxi6W8kR4N1wnqgAH65P43rgz1LTSOZdvVUXHikH5dcHe82nOEzM5 YdQ7JHtJYk6/fYnnSsr9frKPLANmsSuQXVCLp86q1Z+gy/AM3Ee0YpSy/qBdDwcFZaDv 6Lv+ldkjFFdLK8JyUhLOajQrumFa1bjWdWOs9I++6Oj93DK7ajzfanY9mXDBrbTzly4z P6bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id e5-20020a5b0045000000b00d86a6df0617si2094055ybp.725.2023.10.27.03.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3C89B8348DB9; Fri, 27 Oct 2023 03:59:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345692AbjJ0K7j (ORCPT + 25 others); Fri, 27 Oct 2023 06:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjJ0K7i (ORCPT ); Fri, 27 Oct 2023 06:59:38 -0400 Received: from mail-sh.amlogic.com (unknown [58.32.228.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECC9B9C; Fri, 27 Oct 2023 03:59:35 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Fri, 27 Oct 2023 18:44:27 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V3 3/3] arm64: dts: Add watchdog node for Amlogic S4 SoCs Date: Fri, 27 Oct 2023 18:43:58 +0800 Message-ID: <20231027104358.342861-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027104358.342861-1-huqiang.qin@amlogic.com> References: <20231027104358.342861-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:59:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780906085584869728 X-GMAIL-MSGID: 1780906085584869728 Add watchdog device. Signed-off-by: Huqiang Qin Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi index e0cfc54ebccb..2344b2d741c3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi @@ -92,6 +92,12 @@ apb4: bus@fe000000 { #size-cells = <2>; ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; + watchdog@2100 { + compatible = "amlogic,s4-wdt", "amlogic,t7-wdt"; + reg = <0x0 0x2100 0x0 0x10>; + clocks = <&xtal>; + }; + periphs_pinctrl: pinctrl@4000 { compatible = "amlogic,meson-s4-periphs-pinctrl"; #address-cells = <2>;