Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp736306rwb; Fri, 18 Nov 2022 07:36:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Q/iBeBpbHiNLXlQyMjPxFoBvTJbnvmjGxhk6TMv3TNip3Dlp6SeZZYpcouvrq7J/vnUCU X-Received: by 2002:a17:902:7885:b0:17e:c0f0:96a4 with SMTP id q5-20020a170902788500b0017ec0f096a4mr49856pll.80.1668785812035; Fri, 18 Nov 2022 07:36:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668785812; cv=none; d=google.com; s=arc-20160816; b=oXErWHZdYvwxeJ070lbZ4lmQRTpKpqUF+5OIq37gWHgMc8QtfVMfDF6LlXwnAsE7mt Afe1eZMSV3+gjNObY5fFnfyL5v9De2BZtstmAEmX9mPkORSCr2iJaSD7C9LroM0cGaCh VcEnc8Y3YYiJk/FT65ysr637849F8swc7TCP//0yd496P6h7AVNAt43ClYyllwP2ibYZ v2qo/brDfHulpAIg2wroI/QUDA/habsl2DNpYy4zwblU2Z29siQqCalIHLk8Ju2m2HUw Plq8AUKT7KOEcfVbgEvqwyDpubaJ50alksG/4DMG0nV5+EIPje18xcBEYLGLiVPeaE5X 7JCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=09aY4u5C18C95IeW01R0+92XJvP4bpZqONCKdfc3+Xw=; b=o2liz/iyfOmBiJ1E5l5kUmMZHJf//fvAZ5sFbyqRAj6ixhQQZuxRWp88QMMLFPn0O0 pSQdoN9UYGk8d62xx6Z7O8vgJUyvi11rStjD7r2O8uFvCzS2uJcWzxDe1v7njsYQx1hF ikpJM+fMx5mj4A8QALXP1SMZLf6x+z15QFAzsBBueUICzgfv+hiZ4iFaDqk6MLZMcw0Y EQRd65reA091hLAjev6nEw6ff5zjD2C9vDjSlLF6tyjpLszVea93yhLgA/cHl4K+7V4v HbbSyPKop51p9DpbDsmyO2jNYcfGqNB/io1+Fe3cgybzjnxpbIortxKplh3XiN9o3URH 4dVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hz6QAFCl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp7-20020a170902e78700b00176c59140c5si3838366plb.138.2022.11.18.07.36.40; Fri, 18 Nov 2022 07:36:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hz6QAFCl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242441AbiKROeh (ORCPT + 91 others); Fri, 18 Nov 2022 09:34:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242439AbiKROeC (ORCPT ); Fri, 18 Nov 2022 09:34:02 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 114516868A for ; Fri, 18 Nov 2022 06:33:40 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id 84-20020a1c0257000000b003cfe48519a6so1404293wmc.0 for ; Fri, 18 Nov 2022 06:33:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=09aY4u5C18C95IeW01R0+92XJvP4bpZqONCKdfc3+Xw=; b=Hz6QAFCl6u3Xg9aZpvQtddO3JKE/IgN/I5pDQoSPQf5cdZwtlhLKb8TgdVwLTtOq9C UOycTp7N8Shc+QeRli8chI3ys0R3LIkynrk+6dbqocreNS22aR+fYFeMU5tnWDSnmlpM NpWRroujyOa4rO1bPwEKyUy59P0eLFtFVqP0ESM63wHz/aZ3t64uAA7JhkOPKdGqgRvs /IxKVbSoYISyxh72nb1/0zz0IIZJffX3c4bVbl4V3BZna6wHmeYqmvvOk1Iqil0d7y0J ObPOjfJPfHyw0AJBcg3VjRPMRT4BHp9sagQl/tyfZjyy1ZtJIjw2Dgx89wRI7YoZ/4i4 jn6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=09aY4u5C18C95IeW01R0+92XJvP4bpZqONCKdfc3+Xw=; b=IUT1QTfOnOF5xA4cq5P3o9QafU4zKp20KkMdB0II27qxc7cT2JIC+fkfgG0I/ylEgq UqKvpYDQpBG9xd/L7qfvM/DP2GNvWv9YmbhEUknCkintsfeTnZ40wOKz1zvowofo08C0 HRAYtslcUyaI5nJiPgOr6UAQcUGeMOt9nXfBvgbkFwPBhxi+LFQPdH3OfTeCyILWMKML +raiszJS/XGhXYvUf74rKTv7lj0NYiWTup/G/Qb8ndCEzcjLeNGEGN5/Q+DBHaGGlAeG vua/6Ne+vsmjcjHwMRK+LyTqtzEiKzZEF/bwCBZxV4y7mteTwGaavk2xhYaPfEk0SeII BeKQ== X-Gm-Message-State: ANoB5pnHhV/pgtACHa5Z4aXC4IhonC49hix2yxgvojogNOFYrQZn9lNG X0wCJTTS/O6utq88Dj++2Y9OXA== X-Received: by 2002:a05:600c:3109:b0:3cf:5731:53db with SMTP id g9-20020a05600c310900b003cf573153dbmr8846282wmo.85.1668782019560; Fri, 18 Nov 2022 06:33:39 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id j21-20020a05600c1c1500b003cfb7c02542sm5436726wms.11.2022.11.18.06.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 06:33:39 -0800 (PST) From: Neil Armstrong Date: Fri, 18 Nov 2022 15:33:32 +0100 Subject: [PATCH 06/12] dt-bindings: rtc: convert rtc-meson.txt to dt-schema MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221117-b4-amlogic-bindings-convert-v1-6-3f025599b968@linaro.org> References: <20221117-b4-amlogic-bindings-convert-v1-0-3f025599b968@linaro.org> In-Reply-To: <20221117-b4-amlogic-bindings-convert-v1-0-3f025599b968@linaro.org> To: Jakub Kicinski , Wim Van Sebroeck , Srinivas Kandagatla , Rob Herring , Andrew Lunn , Alessandro Zummo , Eric Dumazet , Bjorn Helgaas , Kevin Hilman , Ulf Hansson , Heiner Kallweit , Vinod Koul , Russell King , Thomas Gleixner , Kishon Vijay Abraham I , Guenter Roeck , Krzysztof Kozlowski , Martin Blumenstingl , Alexandre Belloni , Daniel Lezcano , Jerome Brunet , Paolo Abeni , Mauro Carvalho Chehab , "David S. Miller" Cc: linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-rtc@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Neil Armstrong , devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Amlogic Meson6 RTC bindings to dt-schema. Signed-off-by: Neil Armstrong --- .../bindings/rtc/amlogic,meson6-rtc.yaml | 62 ++++++++++++++++++++++ .../devicetree/bindings/rtc/rtc-meson.txt | 35 ------------ 2 files changed, 62 insertions(+), 35 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/amlogic,meson6-rtc.yaml b/Documentation/devicetree/bindings/rtc/amlogic,meson6-rtc.yaml new file mode 100644 index 000000000000..8bf7d3a9be98 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/amlogic,meson6-rtc.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/amlogic,meson6-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC + +maintainers: + - Neil Armstrong + - Martin Blumenstingl + +allOf: + - $ref: rtc.yaml# + - $ref: /schemas/nvmem/nvmem.yaml# + +properties: + compatible: + enum: + - amlogic,meson6-rtc + - amlogic,meson8-rtc + - amlogic,meson8b-rtc + - amlogic,meson8m2-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + rtc: rtc@740 { + compatible = "amlogic,meson6-rtc"; + reg = <0x740 0x14>; + interrupts = ; + clocks = <&rtc32k_xtal>; + vdd-supply = <&rtc_vdd>; + resets = <&reset_rtc>; + #address-cells = <1>; + #size-cells = <1>; + + mac@0 { + reg = <0 6>; + }; + }; diff --git a/Documentation/devicetree/bindings/rtc/rtc-meson.txt b/Documentation/devicetree/bindings/rtc/rtc-meson.txt deleted file mode 100644 index e921fe66a362..000000000000 --- a/Documentation/devicetree/bindings/rtc/rtc-meson.txt +++ /dev/null @@ -1,35 +0,0 @@ -* Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC - -Required properties: -- compatible: should be one of the following describing the hardware: - * "amlogic,meson6-rtc" - * "amlogic,meson8-rtc" - * "amlogic,meson8b-rtc" - * "amlogic,meson8m2-rtc" - -- reg: physical register space for the controller's memory mapped registers. -- interrupts: the interrupt line of the RTC block. -- clocks: reference to the external 32.768kHz crystal oscillator. -- vdd-supply: reference to the power supply of the RTC block. -- resets: reset controller reference to allow reset of the controller - -Optional properties for the battery-backed non-volatile memory: -- #address-cells: should be 1 to address the battery-backed non-volatile memory -- #size-cells: should be 1 to reference the battery-backed non-volatile memory - -Optional child nodes: -- see ../nvmem/nvmem.txt - -Example: - - rtc: rtc@740 { - compatible = "amlogic,meson6-rtc"; - reg = <0x740 0x14>; - interrupts = ; - clocks = <&rtc32k_xtal>; - vdd-supply = <&rtc_vdd>; - resets = <&reset RESET_RTC>; - - #address-cells = <1>; - #size-cells = <1>; - }; -- b4 0.10.1