Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3879586pxb; Mon, 1 Nov 2021 23:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmf3Z+3+3/j92xf2qJdcpVBoVTKl0bj4w/v0KG4IFjwxsCtRwpPWz9tvF/h3y/B0pOJu54 X-Received: by 2002:a50:99c6:: with SMTP id n6mr46768554edb.171.1635834482069; Mon, 01 Nov 2021 23:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635834482; cv=none; d=google.com; s=arc-20160816; b=IwxtdLMoX9SzDSNUi9abh5AKkg/iPrZF7kWVk8BphZ/pFVVZU0OKrjHNA631sQsC35 Ju/uywAcWz4u1yBnLHyAp8ZjgwSBqN9R0WfWmNekMhR4Vw+3OnmKJOxBY7ZjIR4UBEMf 6xz68kbgVjnBa1jt7juSgzyiDyeassJvPWKdhgly2TlD1B0tKyPe8e7jsv8aLAhcQcX1 A17xRcGoTaVfDNNQgzTJJxABPVnJi7r3XjjdX/CmZppuTUSCPbyNnRu/xovYyYv/kRgq UVPd1F7/UoK5TO0csDj/nmwICLXl+PK5MxTj/CwjarSFPS/1NY1LcN+Ilxsbf2iytGDH YKOg== 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=/FiCnWHVe2ZLA8swVG1jWBiytbZWzyx2jovClyWrlJU=; b=UgwybV4uPdvbnRugUDjZ92V1Ky7lWdZHWPmhDIzTnIclkHK2R9DiL2x74HXwtZKz9I 9VLFgsoQriEPqVP3gGZONwzRobngW70SYAW72m30RZqKP65OWTXnEQtq6h8IEmrLP3gV lbnV0nnxCKwiBt7x3MGWX/IWzulVb7ZrwmIV+8zASyd8rTJogbJJAf70me7T6uDEDkuF 8gGr5HzpS6JdvGjhbov75jPWmZDeOHVx+EgGGBkoUVskNdWvSXb4MLkKNPQRQBf6O4ne nZk0roan/yKz1s22cRb7geelfi2+XvQ/C6SPOA9e7Z1a8GqlPAkWdBRXDUleyFtrSUP2 RO+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TpJAhHUU; 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 dm4si6573061ejc.637.2021.11.01.23.27.37; Mon, 01 Nov 2021 23:28:02 -0700 (PDT) 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=TpJAhHUU; 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 S230362AbhKBGYt (ORCPT + 99 others); Tue, 2 Nov 2021 02:24:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbhKBGYp (ORCPT ); Tue, 2 Nov 2021 02:24:45 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C207C061714; Mon, 1 Nov 2021 23:22:11 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id o14so4286834plg.5; Mon, 01 Nov 2021 23:22:11 -0700 (PDT) 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=/FiCnWHVe2ZLA8swVG1jWBiytbZWzyx2jovClyWrlJU=; b=TpJAhHUU0WvIhvNisTss2InEVL0Rh9P/wX4ItbPj1xKNh4RNUU+u/5NabytTNT3gXQ 3SBoj1q0dedN7aoCPtIGxs4dGmSUHZBMicqCA+2pbHdzHlhTX9BKnT4r6wkfC2zgbo53 /9tuCzsf/eEfXr/nS+Nk8fJ3Pe2E0mMiOVJgSpoLAKqIceNk5bCX2yiiKoxnBXnG66fj GEuXTh1d3N4lcIUSE7Vq6hMjflLqTsIAUQ0/2F95szuyhUMzDnD+96TRwq41wSMIEZq/ E9HM9n8cvpbT1Nsozv98zOD8BAct/96AwuWLvKOPNaL0Ukl7PTgUISjk/MD1R0uAGvfK hOMQ== 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=/FiCnWHVe2ZLA8swVG1jWBiytbZWzyx2jovClyWrlJU=; b=ZYYHKLrd43qNmeRLs5qa6YjwksXZfPJVeGPApFod6uPTyBPm4VibC93TuT5YH+9LbI l3P+VdTws8ZV05VlngrlSrTg5U9iKpY0mGd2aHH97Yx6kgyrA9jypcnhpz5Wl+/Jqkj6 xilUjuFv9WLuQM6EEguG0zXGb5Syey0VTulfoSSxP9wmoU3MmACBQeIKdTi6YHlYj+B5 OKeKK1js1S4p35RkaaFWJj3oSxI/9d2aZe1K4hQBytwX7Rmx5xEYugUjbee3gARNChI0 FI0lrsiTlJrjNs0TkCDDYw156Uz8lX7BnXroXxerRNO/wRZNR4uK74afs/JQemIJurtB KPjg== X-Gm-Message-State: AOAM532KGTdeePCaUjIX7RtAOHGnB+tdy9NX6T9oY/yvG8q7gCuIA9TT RGv3fKnxAh524zMZ/syeipw= X-Received: by 2002:a17:903:32c5:b0:141:eb39:30b7 with SMTP id i5-20020a17090332c500b00141eb3930b7mr10289277plr.41.1635834130843; Mon, 01 Nov 2021 23:22:10 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id v2sm14859402pga.57.2021.11.01.23.22.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Nov 2021 23:22:10 -0700 (PDT) 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 Cc: Vincent Shih Subject: [PATCH 2/2] dt-bindings: rtc: Convert Sunplus RTC to json-schema Date: Tue, 2 Nov 2021 14:22:03 +0800 Message-Id: <1635834123-24668-3-git-send-email-vincent.shih@sunplus.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1635834123-24668-1-git-send-email-vincent.shih@sunplus.com> References: <1635834123-24668-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 --- .../bindings/rtc/sunplus,sp7021-rtc.yaml | 58 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 59 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..e494c2f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml @@ -0,0 +1,58 @@ +# 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 + #include + #include + + rtc: serial@9c003A00 { + compatible = "sunplus,sp7021-rtc"; + reg = <0x9c003A00 0x80>; + reg-names = "rtc_reg"; + clocks = <&clkc RTC>; + resets = <&rstc RST_RTC>; + 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