From patchwork Sat Nov 13 09:47:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12692487 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55D9BC433FE for ; Sat, 13 Nov 2021 09:49:37 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2738D60F70 for ; Sat, 13 Nov 2021 09:49:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2738D60F70 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=svenpeter.dev Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=Fu6eWJyxCf+Ynn72QE8+mIArsd2qTAEWDB/fyXwmJYw=; b=F5l2IOjcB+tLB/ HEtujKo4XgRKueWSUkPD3SQKPjHiyku2WCciPPVjfnS9s1ix4tRTtDxM9ulO9zqoT3CfP6jcIcBK/ xFWtfv87naMFzEVlXz/3/dLPlIFAQZrlG9pciRKp7tYtkCbmR/FCo7SgyPODU3bJ9CGP3R9QQI9RD S5/tC9SH9qagtB+kdHTdakFaM94CnwAmStm4JhfBxAuVcPSfyKavaCofR/wP/BapgF9+hiisrb0WC 6mOwwRLujJr7oJt1RZpeLkxjbd3vsCHTWlMLIO1Ki9QkcTRZox74hj9mwE40g697qzvwqAlp8EGfK fkxZdanP36HCWlgttaeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlpdc-00CRAF-Vz; Sat, 13 Nov 2021 09:47:57 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlpdZ-00CR8R-3Q for linux-arm-kernel@lists.infradead.org; Sat, 13 Nov 2021 09:47:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id BC77E580C06; Sat, 13 Nov 2021 04:47:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 13 Nov 2021 04:47:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=TQ9hcmGxps5GZp3N9bxxRcf5+B NwI07/EPaXfrdG24I=; b=Dhf3UQmQJ9zrCQVxgDRKoKA/EiMuKMHvP3AmVpXqJa Mrd3MruhQGsXmJiUttc8PBKOrq33YWRfScx7lBZMnGQPvQ4nws6bg2OfFpGVwgfW bjTyUk/RhPFxE/gJxe/TFsNeSm0ubgmREYpx7kMCfoNzr51FpzLrOKurSHfNU3Wl /IpVFNrTcJei30jcX9sIUGkbXn27o30iWWjhWkcAuBxD8tDwVrDLYmQHj9OE4S3i 3QuThN5RdComOsFsi4QwNSMYVle1+bEysKy3GnOfesUw1948bfEMbd4kwMM7+FHL zCTlGyQGX0QnJy862mvQCzx2Zv5Ugbmb6ZAzDtGOdQHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=TQ9hcmGxps5GZp3N9 bxxRcf5+BNwI07/EPaXfrdG24I=; b=OnPb97xwBbA7+UDraNjr3WUmMVuaZWy0J a6OD4IqByEB0M7fQdawSnqDAnGS8QYylTMdwO2q1hkn3ELIGLXGeCIQc8nbtXnHH EtVLlpGJORoUdQf9YhbftWsmA4JBuVyLjRrUnvdRayJuo5KKZNBrGTlY9nnnfx6X ojkU3fhYZLbsviGzEhpV+ksN4RHyBPCc+uHpUI0oKEIFh0lJ0zZ11E6IeQpseCRH 0iM29MhENEjA6OGPFObvSMtY3siPS6no5fe6PND+hrjuZnhQ8eJf7amLx3GUlFbz cVZIiRxwkYBM9/YAS10fRszyC/o5Dzhwlg5fuYgN1xqaqzzDEGbkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrvdehgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhvvghnucfrvght vghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrghtthgvrhhnpe duffejkeevlefggfekkeevjeffgeekjedtjedtfeethfeludehkeehgfeuteekhfenucff ohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 13 Nov 2021 04:47:42 -0500 (EST) From: Sven Peter To: Rob Herring , devicetree@vger.kernel.org Cc: Sven Peter , Wim Van Sebroeck , Guenter Roeck , Hector Martin , Alyssa Rosenzweig , Mark Kettenis , linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: watchdog: Add Apple Watchdog Date: Sat, 13 Nov 2021 10:47:31 +0100 Message-Id: <20211113094732.73889-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211113_014753_272057_F8531391 X-CRM114-Status: GOOD ( 11.97 ) 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 Apple SoCs come with a simple embedded watchdog. This watchdog is also required in order to reset the SoC. Signed-off-by: Sven Peter Reviewed-by: Mark Kettenis Reviewed-by: Rob Herring --- .../bindings/watchdog/apple,wdt.yaml | 52 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/apple,wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml b/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml new file mode 100644 index 000000000000..e58c56a6fdf6 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/apple,wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SoC Watchdog + +allOf: + - $ref: "watchdog.yaml#" + +maintainers: + - Sven Peter + +properties: + compatible: + items: + - enum: + - apple,t8103-wdt + - apple,t6000-wdt + - const: apple,wdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + + wdt: watchdog@50000000 { + compatible = "apple,t8103-wdt", "apple,wdt"; + reg = <0x50000000 0x4000>; + clocks = <&clk>; + interrupts = ; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 5b7a13f706fa..ba480837724d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1749,6 +1749,7 @@ F: Documentation/devicetree/bindings/interrupt-controller/apple,aic.yaml F: Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml F: Documentation/devicetree/bindings/pci/apple,pcie.yaml F: Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml +F: Documentation/devicetree/bindings/watchdog/apple,wdt.yaml F: arch/arm64/boot/dts/apple/ F: drivers/i2c/busses/i2c-pasemi-core.c F: drivers/i2c/busses/i2c-pasemi-platform.c