From patchwork Sat Feb 17 15:45:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 202651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp384284dyc; Sat, 17 Feb 2024 07:46:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUXMmXMOQjCRRvvwc02UbtX8HA9QYckqaLgPsPG1e+LbuMwU3SbWEwUf/DHlNwz0lxnjz848wCieVgqLVMrUUfnaHYS+A== X-Google-Smtp-Source: AGHT+IGSFRkqgx1XrBIe0YK3GT6XC6+XFT8tRTRLsYVSuTiFixWTIiSob97gNEQVu3cXQri23pwk X-Received: by 2002:a9d:7996:0:b0:6e4:448d:42e3 with SMTP id h22-20020a9d7996000000b006e4448d42e3mr774343otm.3.1708184760669; Sat, 17 Feb 2024 07:46:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708184760; cv=pass; d=google.com; s=arc-20160816; b=K6O+Old3BcjN0hgQwd8AmVml4dOzghej12Y5JQWssVIPmxRkM1dPKucv6k9za5GpXo 4g/e6FzBCMlFELH76HAVz55O/KfCb8Ocu6TtnRQy/YnefqDCO2qehV8Z9IXiE+8PnW12 3EugQAdKUai2J5HFSUZ0w6YbGnBgKAV1kFa6EC9TD8JQgr5lMyrTbu/oTAnnKM1ylR0/ t1/PJCx2ZxNEZC7R+H/ND6PxWekvMARE8eJ1xLHzdKtM4L2yItpVQz7i+9BxuL2T+o+R S+fmhWT6iujH7FEzEeF3CVo3UrwREm080x/5cNxVkzdvtyCpM336+zn17Vvi6eHQXunf psHw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69945-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w4-20020a05622a190400b0042dd5264d2bsi2630435qtc.139.2024.02.17.07.46.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 07:46:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69945-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69945-ouuuleilei=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 65D911C212B4 for ; Sat, 17 Feb 2024 15:46:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A226D7C6DE; Sat, 17 Feb 2024 15:45:33 +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-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791161543663339502 X-GMAIL-MSGID: 1791161543663339502 Convert Spreadtrum SP9860 watchdog timer bindings to DT schema. Adjust file name to match compatible. Signed-off-by: Stanislav Jakubek Acked-by: Chunyan Zhang Reviewed-by: Krzysztof Kozlowski --- .../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>; - };