Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1090384pxb; Tue, 9 Nov 2021 05:05:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0ABGKjNMYv8VPIKQM7HZrclet5HhhfY3yzjyYTH43w2oPM88X4kpKE7dfstpQ9Shsh8n/ X-Received: by 2002:a5e:8701:: with SMTP id y1mr87833ioj.80.1636463146762; Tue, 09 Nov 2021 05:05:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636463146; cv=none; d=google.com; s=arc-20160816; b=rwlAAeDGRDyZvrIquUMWPi0lnDj3VBSsch6U1GwjIh/O2GDutpjozCDH4xgwVZL1mM FoYcNim2Jkz8GL1OW1fEeDZLOCu78To/gUYHBBu+5655XShnZGXoDEnwtpKqoyq2NvfG Ox7DiijMfZt+TueiBQ0TYenkQBT1KglMBlxZ7OMc/h6KYBB9Y+8XehFDZDijX5vWIcvm IWoVT68C02gHzU1zllU9ERpU4j5yfRqJ7ZIJrYzqVl8YOoHw/lCoafJ94Lya5IF6lgIy 4hC9N3ShuXaoI74j6NJfHo7qOoF5SFF3Bx/SeUJgA9u9Wi1Vlu2rMWGzrNs08Ilb9ye5 1bPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=UB4V8gB82S0vFVTGGphWdCiuV+cw0bIsRKVDST5Y/j4=; b=S4IYYV5DB/V1iAgnQtjx6pZ5R3u/YmaHzyJV4rMAU1PTAwjvIO6+NeXDtnQ4ZWGbUM 12kRotJLJOhXK3sAkK226jJK2ZzU6Oyn0ryNFeQt84Vg7qbgMLkdcPJA9DoYNnyIMWgQ PsJ2bR2EkE2ge9Jb35A0hYIWY25n7ILeQ1jk1YIM/LuK0zoOXpdVXG1iQeuNX6ToOgff 4K005hOdp2gQREObEdnsn5Gn5dIcbICKXOofKlBpX/rOv6g1ivimULP4IDRBmZO1137J PBXYYcEw+j57TDjc9alNRrsGYUiPxYM2rk9Wjrl+/5VLAYXQVbAXGkIQ7zjA1bFGEAWU yeLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I61sUheh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si28137599ilk.22.2021.11.09.05.05.31; Tue, 09 Nov 2021 05:05:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I61sUheh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243267AbhKIGlY (ORCPT + 99 others); Tue, 9 Nov 2021 01:41:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243274AbhKIGlR (ORCPT ); Tue, 9 Nov 2021 01:41:17 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B692FC061766; Mon, 8 Nov 2021 22:38:29 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id y7so2086342plp.0; Mon, 08 Nov 2021 22:38:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UB4V8gB82S0vFVTGGphWdCiuV+cw0bIsRKVDST5Y/j4=; b=I61sUhehW07dKl/629xyognhfqsIZ8AJ7ImbiFGh10ojE0UL+Lbi5PkPMocu1J5fA1 +jIfh257cPeWKfYgrUKDrC+B5uezhRglKrVhDpsQ9KXDr/3opERCzQJP/XoB/39trSoR kULfyWbqDRaxakqsOHdMxgYMfo05PkvQGHMNz+jv2qfNhWvP9dS64Utxxz2jM8LB5qPE QuHo3MxNMz4YnC+9zSO/G5sMWNqLiiv1s0PpsdH8B/xTq2x+RyWNTlQ4239GHHVXbBi0 An7nNLv9hf0eRtw5whFBeqF8DrXUKqDSB43yCSSPVPBgSAmFUke1Bk1GrExPo8S5CooB smVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UB4V8gB82S0vFVTGGphWdCiuV+cw0bIsRKVDST5Y/j4=; b=DN0ALEiCX3e5zpmXUm8n+h9P+AbHVFIl0GmgfDR4K4nRTumC0CQLISjFqHGH+OrXRM kOkc/X2YFfgvTOagYwls8wv0w53wF1hfzQQRhIV5EadezXDvivaym0uMbkHsaKZdMVck 3me1gWpSbb/HbJAp78+RvYKdGTW5JNoXO8twI6yOXU62om/FrPZQaj83CUdt0eR3Obaa UgsJ5QObbM++zORiiPay7evzm/Dz7O/6vGZygX9yO/RqTvp70gK6fsmz6HcT5OItoJHW fQ9pZgcJYA/z1rT2Oa7+LJjnnKqjA9dKBGNcvsp1EOvVy6ZmgcKWiHpI9MosOgRQViR9 8d8g== X-Gm-Message-State: AOAM532RDHRgWzqdJvEge0V9AgkWKa37NjFkCQfXNhxsKLLjNq9QKd5h 4DnvGq5fkU/Xorb9w/J4osU= X-Received: by 2002:a17:90b:4ad1:: with SMTP id mh17mr4647948pjb.33.1636439909308; Mon, 08 Nov 2021 22:38:29 -0800 (PST) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id k22sm17466833pfi.149.2021.11.08.22.38.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Nov 2021 22:38:28 -0800 (PST) From: Vincent Shih X-Google-Original-From: Vincent Shih To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, wells.lu@sunplus.com, in-reply-to=1635834123-24668-1-git-send-email-vincent.shih@sunplus.com Cc: Vincent Shih Subject: [PATCH v2 2/2] dt-bindings: rtc: Convert Sunplus RTC to json-schema Date: Tue, 9 Nov 2021 14:38:18 +0800 Message-Id: <1636439898-7358-3-git-send-email-vincent.shih@sunplus.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1636439898-7358-1-git-send-email-vincent.shih@sunplus.com> References: <1636439898-7358-1-git-send-email-vincent.shih@sunplus.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert Sunplus RTC to json-schema Signed-off-by: Vincent Shih --- Changes in v2: - Removed the header file of dt-bindings/clock/sp-sp7021.h - Removed the header file of dt-bindings/reset/sp-sp7021.h - Modified some statements after removing the header files .../bindings/rtc/sunplus,sp7021-rtc.yaml | 56 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml b/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml new file mode 100644 index 0000000..e74e015 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) Sunplus Co., Ltd. 2021 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/sunplus,sp7021-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sunplus SP7021 Real Time Clock controller + +maintainers: + - Vincent Shih + +properties: + compatible: + const: sunplus,sp7021-rtc + + reg: + maxItems: 1 + + reg-names: + items: + - const: rtc_reg + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - clocks + - resets + - interrupts + +additionalProperties: false + +examples: + - | + #include + + rtc: serial@9c003A00 { + compatible = "sunplus,sp7021-rtc"; + reg = <0x9c003A00 0x80>; + reg-names = "rtc_reg"; + clocks = <&clkc 0x12>; + resets = <&rstc 0x02>; + interrupt-parent = <&intc>; + interrupts = <163 IRQ_TYPE_EDGE_RISING>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 6c1a535..c6774d1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17949,6 +17949,7 @@ SUNPLUS RTC DRIVER M: Vincent Shih L: linux-rtc@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml F: drivers/rtc/rtc-sunplus.c SUPERH -- 2.7.4