From patchwork Tue Nov 30 16:18:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12694187 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 31C4BC433F5 for ; Tue, 30 Nov 2021 16:20:17 +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=/IVhUgWBOne8UbT6v7H2rrYQ1bG1e/iclleFka3gJ+Q=; b=nV8VmcP/tYWHgX eBEdmfenxrddW+a0ZuJUDBAlkL8wFtyMuSJ7PDBZWoflTpbF7SRR861PxZjoUm9hh4sqSY/1WCRja pi0LMUlyW+9nXp4MRGEhsJFuokzbvyAX5j3MM3EwkjByaEkACGFmNdj9r/oGkREwy+hsTae7EmaTN 7JYOVpMz1tL0h6MXg1pDRyyK647fIiUjBDjH0pbIsheuOp3jR3L2QYsvY4MbkJ2UzxKDqnYowjhvA 8hJ8duaWXRaz+ndre66ESU7gCPG8eUTddGet7MAwtOSBl6DT5O6RHQkCPQyCHZIG2mceI2kqnTc9V qDnnE8Mn1QTdi5fT+BNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ms5pz-0068Dx-E8; Tue, 30 Nov 2021 16:18:35 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ms5pu-0068By-Ea for linux-arm-kernel@lists.infradead.org; Tue, 30 Nov 2021 16:18:32 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 6E760580129; Tue, 30 Nov 2021 11:18:24 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 30 Nov 2021 11:18:24 -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=fm3; bh=yqwoBj/vWfeXNQgCvpj+YqonSU yi2vtvBoiOZzTnEUE=; b=ULWafKAXsOC4xDUqQoDhiXfx1RWMiIAmrDWWBX8qzl ni1OfFtOpZGeBIq3Xtk5YCO1Z4gsTP0Id5qI+f6HBeLqD8GwOlb7ns1KsPr+t3Th fFw9/oCNEHG+1kVB1TYPluxJrBGS1ZneiC3Jpm/xzLbB9+cAi2AqAVyzN0Hjju9f Pi+SCnzMdp8PeeUOqCtibzozOwPQF2241J+bw/oBDOGO9sg3YGxEkJzK5xxbQ/Iz R7FbJcMEwTllpHYOe32I+a3FKJiyeDTd7Z6WuyzjewarXZDcmQnO8JGeHwJ0RLrS 7BygfMfp2EzuWMtaUO57b8CsjFpBra3z1l4iEUU0Rv0w== 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=yqwoBj/vWfeXNQgCv pj+YqonSUyi2vtvBoiOZzTnEUE=; b=a5sCJf0LHQjoYtkMzotyeH+cK5YxpoWrx 9t2t8wogWoaYqXwU9bNjtjhyEflfUsIBw+L2EjjtKIbO70yPz44tin3eGChm6aIO diIdIg48lZt6qizBn9TfxEsqS6KSGULMM+JLXKJoXazFWbxzTThgoeAd38udFGP3 Ghq+atmLLvrvpSKM2VjDmC2UxmAHFcEnvq5oyHyP9tcYAuv+aHxUsqccf9ej3z09 3CkwbSdt3UL4IyDwuNgnAwTTCOweCTWX4fNiddiM9ZJGPJLYy0XjqHJJwlfGPwnK PH1SyuUifM3mlsQk6bL63Xy7ByN5T8JG2lD+IXRbvLUdxvXRPjEog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddriedugdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhvvghnucfrvght vghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrghtthgvrhhnpe duffejkeevlefggfekkeevjeffgeekjedtjedtfeethfeludehkeehgfeuteekhfenucff ohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Nov 2021 11:18:20 -0500 (EST) From: Sven Peter To: Rob Herring , devicetree@vger.kernel.org Cc: Sven Peter , Wim Van Sebroeck , Guenter Roeck , Hector Martin , Alyssa Rosenzweig , linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Janne Grunau , Mark Kettenis , Rob Herring Subject: [PATCH v2 1/2] dt-bindings: watchdog: Add Apple Watchdog Date: Tue, 30 Nov 2021 17:18:08 +0100 Message-Id: <20211130161809.64591-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-20211130_081830_650302_482A55B7 X-CRM114-Status: GOOD ( 13.07 ) 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. Reviewed-by: Mark Kettenis Reviewed-by: Rob Herring Signed-off-by: Sven Peter Reviewed-by: Guenter Roeck --- v1 --> v2: - add Mark's and Rob's r-b tags .../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 360e9aa0205d..859201bbd4e8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1750,6 +1750,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