Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp623286ybg; Wed, 3 Jun 2020 09:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG0FuXp7IUl1wlzI0JeJbZnvFEfOBMO4gw4vvVb8K/aKj8NtlIviiowrIl2tX5cI6oCbmQ X-Received: by 2002:a50:eb01:: with SMTP id y1mr193144edp.85.1591201200083; Wed, 03 Jun 2020 09:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591201200; cv=none; d=google.com; s=arc-20160816; b=Y5x845gUT+yonomrQnHt8DK/aOtx9UdsMg9KXY0ja80mvaC/uLRHOMd5ZUEKwZ9IBw +jT3obbhwTOsL6D0z4AdGJbT1zdoAgHdwfhno1jKYwZj+hbyKVUZVEA3dEV/y65v0S/T lEEK4P9nzXvPt8nNiaX+wmmf6xpK2DDW3Q/pr/a+4RebhQGcfzg4enz5faK7scRlAj4V Naq6p1wubznNwgPLarNbJkVf/pZzCqSMZa8V4VApYqIg4wJ39PfNJ9lMwoBNnZi37+nw z9Y/jUQZmD9QHHUYW9rOSUsIdodHlYFUD5zYjbrL0n7hzr2FZ0hXWYXmsmCYwKPCsKZB EjBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JbTEhSHE1GzKAxzyRD295M8AsS4AAWSwi+uNJwQarq8=; b=WeUUSzFaIJANGNdPy9NTcdxF+VusH+Zhr89elZAvGiRAy+C8R61QJHdRDb+EZqyam0 lInDwV8zd4VDGLMcKS+X+vfPolBmIpsR56kXqsgbXc2TAerYaRAopUIVVWvfVNoZEa/I 8euHOjouBM3a+7nFZHWYzMGpVvBsinWqQ+AzXFqd8FVGtO7CpU9R/uRVVsLVw9teF0pH TeegKbR2UefBSbxs+siLuFT0Th8qODPv5NGwWHcRDQtJar+rT1iLeVfC+YZ5/0iG142y +jQ9hAbNZsfqGsCfHa7+TjVzd493ssG4ggwNWesAxjheCXg+sBUU7wp8Q5bDxXMVKH/C CDMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0xIWs3b4; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si15425eda.5.2020.06.03.09.19.36; Wed, 03 Jun 2020 09:20:00 -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=@kernel.org header.s=default header.b=0xIWs3b4; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726088AbgFCQQS (ORCPT + 99 others); Wed, 3 Jun 2020 12:16:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:38572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgFCQQR (ORCPT ); Wed, 3 Jun 2020 12:16:17 -0400 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C2CE0206E6; Wed, 3 Jun 2020 16:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591200976; bh=BoDLkq02THt+WbJVaiCCXtU5luclbfhVMmW4TS/e9Qg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0xIWs3b4/5BAZl5fKQdnqF63gWHhHFrLKLNd3bnlrXtYV3z5O3XIMZKKAeViSvDpj 7QtQQmZgy6EEP1w0l1pRehQWLxi2AUoS7PW4Tszk7IMBO1IehQCvOH9ILZ2VVEHWlA elWvPMGVyHjgU46ArmjkTY1B+lAU3xRVTCndgAlI= Received: by mail-ot1-f46.google.com with SMTP id h7so2340121otr.3; Wed, 03 Jun 2020 09:16:16 -0700 (PDT) X-Gm-Message-State: AOAM531YoKakT/77tl1BZqmjNOs0g9IUw9CHRbb2QjFiODuL7kShC3/2 /Mf4a3YtSAsj+NOlVEN1X5Ywuk7JgeGWqHalvA== X-Received: by 2002:a05:6830:3104:: with SMTP id b4mr575554ots.192.1591200976092; Wed, 03 Jun 2020 09:16:16 -0700 (PDT) MIME-Version: 1.0 References: <1591184925-13055-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1591184925-13055-1-git-send-email-Anson.Huang@nxp.com> From: Rob Herring Date: Wed, 3 Jun 2020 10:15:55 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: rtc: Convert imxdi rtc to json-schema To: Anson Huang Cc: Alessandro Zummo , Alexandre Belloni , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Roland Stigge , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , NXP Linux Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 3, 2020 at 5:59 AM Anson Huang wrote: > > Convert the i.MXDI RTC binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > .../devicetree/bindings/rtc/imxdi-rtc.txt | 20 ----------- > .../devicetree/bindings/rtc/imxdi-rtc.yaml | 42 ++++++++++++++++++++++ > 2 files changed, 42 insertions(+), 20 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/rtc/imxdi-rtc.txt > create mode 100644 Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt b/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt > deleted file mode 100644 > index c797bc9..0000000 > --- a/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt > +++ /dev/null > @@ -1,20 +0,0 @@ > -* i.MX25 Real Time Clock controller > - > -Required properties: > -- compatible: should be: "fsl,imx25-rtc" > -- reg: physical base address of the controller and length of memory mapped > - region. > -- clocks: should contain the phandle for the rtc clock > -- interrupts: rtc alarm interrupt > - > -Optional properties: > -- interrupts: dryice security violation interrupt (second entry) > - > -Example: > - > -rtc@53ffc000 { > - compatible = "fsl,imx25-rtc"; > - reg = <0x53ffc000 0x4000>; > - clocks = <&clks 81>; > - interrupts = <25 56>; > -}; > diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml > new file mode 100644 > index 0000000..6e43926 > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/imxdi-rtc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: i.MX25 Real Time Clock controller > + > +maintainers: > + - Roland Stigge > + > +properties: > + compatible: > + const: fsl,imx25-rtc > + > + reg: > + maxItems: 1 > + > + interrupts: > + items: > + - description: rtc alarm interrupt > + - description: dryice security violation interrupt > + minItems: 1 > + maxItems: 2 > + > + clocks: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks Needs: additionalProperties: false (or if you have a top level $ref, 'unevaluatedProperties: false') I fixed these up in what I applied already, but please check all of yours pending and fix. Rob