Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp272098rdb; Sat, 17 Feb 2024 07:45:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVfKAStBzIMMTLfzLuKp55vu4LMxiYHYyD6o3WZiiMsEmZnZ2mG193xNuesjP1pp4NMM4NhUZ/2r7ncX8MNVcEb4Dy6f3Tv4rv6XjqOHw== X-Google-Smtp-Source: AGHT+IEQ+l9VJg9elFQmYNffGvedy4b6yCYkCjfBG97YdmYnJ5JMxkRawA1txO1RO2GU/Fyjkzdc X-Received: by 2002:a0c:f349:0:b0:68c:b694:2f05 with SMTP id e9-20020a0cf349000000b0068cb6942f05mr8373911qvm.2.1708184753682; Sat, 17 Feb 2024 07:45:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708184753; cv=pass; d=google.com; s=arc-20160816; b=aozJVujclV95OV40HhcB+sm/XJPM6C7AOETA7RhdGKv0IhKVWFS4I9t1IqDOwGsdU1 pcuaZtIN6N6jvf2dWYkuSTipo6p25GeY9dTT/Yj89Y2FaZBN8ajf835L+1oftp9tBrzo lFws5piVXgT/IbogMRvxxHIaAzWRlsUUbrVL0mbFDcIEIAlZonTy+U/5qv21WrJ4VYi6 2vOsdzhp1oTwggItti6e1OoB92hDhEUZd/wxz19XRc+5aHiSxpCZnvqBeFR35SjEi7NB g0yhaPu1swJR/zFzYCTZF/HATmtaO6yOlNwhzmVmfhQZgXzhMEfgM/x/oaTLPHLBQqmr p+TQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=2c0F2fDyumXqRJj33BJeUUEOgxgwM5bGtk5xsr/q5Z4=; fh=5wg+gv4HEyApPbsuA7lL4TDlGtCTJbrXQL9JqncoJqk=; b=NjRHfNI9UBSOIbTo4+HiRqr6ZfPVlKcVp22N4fM8D1EureLQYNbuc2o59sXD3uS3gv w0OIziPy0PmLTIp0qvJXoZO0HQELTT2NmCbML05FzmLkzYZk5/q4uZS+q9DAq2nnzazI ngHjfpoDpgDWs6gZgzwVCbQ7EG6Bp2w0q4Ef1fhpzI6+GSaeMJxPD/HYMF9QtwW7S+cY eydLepa+c5kkwtrUUXsOS4IEVyQTGpO5SqYqP/W0MtU32C9ESDKOJtGaNvw1C8DRzbGI K1sztM13yANACscwuVB6K/aBXLcJVHKAmCjoWbhR/2y7MB0P235VSrJD9oM7jBMS6CGf VTPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=afZd5570; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-69945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a2-20020a056214062200b0068f08ce8109si2211739qvx.505.2024.02.17.07.45.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 07:45:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=afZd5570; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-69945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6131B1C210F6 for ; Sat, 17 Feb 2024 15:45:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A77727CF31; Sat, 17 Feb 2024 15:45:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="afZd5570" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD47E7CF29; Sat, 17 Feb 2024 15:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708184730; cv=none; b=Bj4lyvWvj5eFRBxiR4flsQrIQW9Mn6W6hXAC3DdJJvU5saUuRTjXNx/1fDGjjm10Gz+PlMEGal2h39N4IuCwAbimrrg4+mOjhYzp4ShaZ+lzgy2dQgTg9yCXAeVW2Clwo3cdjcJyX2atzI3b0W5pDNk/itUvhJdYLVn9rStfIfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708184730; c=relaxed/simple; bh=LRJSEJIP8aRKuM+hbH7pznUA2w2kB4lfNNyrDXDbJPI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ZXOnBeF4wlAAqUvY+s62Q5EmX4woMMh1fx5x8zTw+EYPGFaXyUi6cDx6Xtnk8aPpf855ETgitCT3G8x6sT4cBc9h4nKdzMoD0cVB1XswIOENxq0uGEoco3IoshIZjd2K37MpBniIwxsm2Dhb0+z7DvgGMX9xeAcqVAm+VvZHJXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=afZd5570; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5118290fcd8so3746357e87.3; Sat, 17 Feb 2024 07:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708184727; x=1708789527; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=2c0F2fDyumXqRJj33BJeUUEOgxgwM5bGtk5xsr/q5Z4=; b=afZd5570tpGa06MFmQcZaICRSF4Ueatj5zp5ccSvbZIpUa8SfFsW3xTvFc2/ujOJk8 xFl7ayR4NYsCm3HvokN4VQVML6N5efgO8cuTQUb67By7YZI/VqlqS+QGfjm89ot/8h7V G3ekBHxIaqS1sfx3wnhoHGbHWW686oNMMtRju4k6OB64o1/7rZrSjqihGZreuxmgy9hR HvLYBR7XujFGXU/gh3P2HqOGYmnolqZa4PKIxBuk6UDtAUSPmNmlZmAOOVjmGfXST4jf cRuj7ZKZ5DB8TYOS37VwfGubkatvz3v9xpG58pUvtOucqUss0IeCqx0FAqfO6iLKPfr6 P49A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708184727; x=1708789527; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2c0F2fDyumXqRJj33BJeUUEOgxgwM5bGtk5xsr/q5Z4=; b=cLZsDMa4yyRNhbaAgfiPR4uVa+tvwh1dHkspL8lVGdtECDVq81a8xpyVAWyko1hx9z zutzAAHLRx/NTWXnW4GFHa6ZiPbHM18KEe/S4NGqkkK+/7pjzxzJbI1h8nnvC31pqn5l /c/MwtYTG6yYMNAxkTjAsYn7dbS00MaDuTZ6stffoHwIji39WwjvTHQ/oTN11QNa4WOQ fVYnLfRXZixpDXPiaLM/cyy3bHaJTiEQcZywrl/ud3juwQ7NmEHWDDx6HYyYe9Ryf9av Ncx6/mKY2r36uhOM8l/Gj/vNBUALVGFqAjiot9FworkEggJmsGjeVvsgiyjWBT12Ufl1 pFNw== X-Forwarded-Encrypted: i=1; AJvYcCW14R/dqH1tnNbf2DRwNCmRjya8nMwzCJO1UrceOty5JXhYC/Isbp8eSYhcISDwCSFMN1kssQW88jaaAX4uxUxjPomisHu/piWCOH39SC+Y2DfupnMxiN469jVXAzikyYatCxfkG5bBcg== X-Gm-Message-State: AOJu0YzEd7Z5SOHQOLgYMfsHxT1LxB/xuiwIshJ4do1HIhjpki8W1FBg w5CJyxVcAf4gUvsGvb213MO55fte2DkRGijnI+8k608ICcpUgOPh X-Received: by 2002:ac2:5632:0:b0:512:a8e2:e335 with SMTP id b18-20020ac25632000000b00512a8e2e335mr588029lff.64.1708184726747; Sat, 17 Feb 2024 07:45:26 -0800 (PST) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id cu2-20020a170906e00200b00a3e1939b24csm793287ejb.208.2024.02.17.07.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 07:45:26 -0800 (PST) Date: Sat, 17 Feb 2024 16:45:24 +0100 From: Stanislav Jakubek To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Baolin Wang , Chunyan Zhang Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: watchdog: sprd,sp9860-wdt: convert to YAML Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Convert Spreadtrum SP9860 watchdog timer bindings to DT schema. Adjust file name to match compatible. Signed-off-by: Stanislav Jakubek --- .../bindings/watchdog/sprd,sp9860-wdt.yaml | 64 +++++++++++++++++++ .../devicetree/bindings/watchdog/sprd-wdt.txt | 19 ------ 2 files changed, 64 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/watchdog/sprd,sp9860-wdt.yaml delete mode 100644 Documentation/devicetree/bindings/watchdog/sprd-wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/sprd,sp9860-wdt.yaml b/Documentation/devicetree/bindings/watchdog/sprd,sp9860-wdt.yaml new file mode 100644 index 000000000000..730d9a3a3cc5 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/sprd,sp9860-wdt.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/sprd,sp9860-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spreadtrum SP9860 watchdog timer + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + const: sprd,sp9860-wdt + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: enable + - const: rtc_enable + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - timeout-sec + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + watchdog@40310000 { + compatible = "sprd,sp9860-wdt"; + reg = <0 0x40310000 0 0x1000>; + interrupts = ; + clocks = <&aon_gate CLK_APCPU_WDG_EB>, <&aon_gate CLK_AP_WDG_RTC_EB>; + clock-names = "enable", "rtc_enable"; + timeout-sec = <12>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/watchdog/sprd-wdt.txt b/Documentation/devicetree/bindings/watchdog/sprd-wdt.txt deleted file mode 100644 index aeaf3e0caf47..000000000000 --- a/Documentation/devicetree/bindings/watchdog/sprd-wdt.txt +++ /dev/null @@ -1,19 +0,0 @@ -Spreadtrum SoCs Watchdog timer - -Required properties: -- compatible : Should be "sprd,sp9860-wdt". -- reg : Specifies base physical address and size of the registers. -- interrupts : Exactly one interrupt specifier. -- timeout-sec : Contain the default watchdog timeout in seconds. -- clock-names : Contain the input clock names. -- clocks : Phandles to input clocks. - -Example: - watchdog: watchdog@40310000 { - compatible = "sprd,sp9860-wdt"; - reg = <0 0x40310000 0 0x1000>; - interrupts = ; - timeout-sec = <12>; - clock-names = "enable", "rtc_enable"; - clocks = <&clk_aon_apb_gates1 8>, <&clk_aon_apb_rtc_gates 9>; - }; -- 2.34.1