Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp89720ybx; Tue, 5 Nov 2019 20:10:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzvQdqMctlvZ722wSUjN10TgP9Z3kLP0RMeAOcVw4I8ZVNzS9LfOtUGh4cH8Iuq/5REXS9y X-Received: by 2002:aa7:cf8b:: with SMTP id z11mr430110edx.294.1573013409168; Tue, 05 Nov 2019 20:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573013409; cv=none; d=google.com; s=arc-20160816; b=IsK3zv/8YvlnxQ3RWm1NKZhSBsOy+ryJPjyfszDlpZXeZ2H+VRSViFMwfg7vDJBmdK peYjP0MUvtFh+VDVUB5qEfxaNuG4Ou01oV2bpPM93czE701cvKDsLkD/3rdCFqRamYmX bU/0oUGzUdySY5SoEgGqU82Px1Ln+e6LwyjmtLRMlM1xNWE2+ldC0x1Kv0rHs2C4svqu T0Eos3QdD5D1DWvLSiee2ZudrqNmAgr2YI5bVRHV5eHDntuig/078S3yjL3MmpXa5cG3 C0ItCSf0LjE0fS1hsj8JMxQs9AhtQ13SyMSMLNgPGnvHS6RASPMuQrjdc1L7DmXcjAmQ ppTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pbXWYeEjjc1tNeD8Va0Rn7W5q8WImyzirMTHLiEKYGY=; b=h5MrdXpeFZ4AJk35r9aglbh5qFbv93WfJI/XOECbczOqHFAzWEZJ9j4j8plzh8wjs+ lVNa3ByirkBYCvWDb8STu/iANkGbsI+5OW4Dv0L4bf2gyoVi/Jzu4aBQi05ubjmN9a9o UFT9BO3U8rmLNjLH7n22u2bspjAeGsf3YFqUj6J0TTWlipP4gQsXhGrrvJIWRkoIAHua LECQsMo2JFlrPVMk5uuufZoP+QI5JXm7gvZJfShK8nJ7YZbgAwI6QMy3o71oAImmbJfI 764Y8FwvK3tRWh/bNBrKzL2EpKmpBIUNQ7XnfecgNQ1bkDvidF0Vn2ZOVjk9BWKfm5W3 a8pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23si14175154ejk.186.2019.11.05.20.09.44; Tue, 05 Nov 2019 20:10:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731171AbfKFEHA (ORCPT + 99 others); Tue, 5 Nov 2019 23:07:00 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:45954 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfKFEHA (ORCPT ); Tue, 5 Nov 2019 23:07:00 -0500 Received: by mail-oi1-f195.google.com with SMTP id k2so19721544oij.12; Tue, 05 Nov 2019 20:06:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=pbXWYeEjjc1tNeD8Va0Rn7W5q8WImyzirMTHLiEKYGY=; b=HDvT0r1O4hYvec9HRTLyyiRoRCgRpMUAnN8NYp3qonrng2HCXN05NI8IF//H6UzyTz s37E6T15SEV+ZNYj4JbFAvNUzQ2njM88WrhHTmWiv2VI/tmYa/GkJYl3fBPghGLjRap7 TCc6L2ixyel0KqCdeHQaW8MP5faYkPGaNoxdyNQJMbnIdiVoIGr+XxJSIs3+8LSxEZy/ UhhiL++TWq+rig8o3KvXasRs1axFUSltBNfM5aUZk4uPxbQD9zi5MJ8YMXkTZdyaJTsq XrjXuetjq/Kcd+fGjcyCJ6kuZLfd2D+mSCt4hG/lVpagelMVrD1F0IoTJzXR/W67mI93 KqIA== X-Gm-Message-State: APjAAAWxQyuhT2AoHxUH1Uqccj9rF26Efe3IdILIKmorCJAh1t8/RZYH RZR/QMpzTz8HNSkW/g/R0iBxHjk= X-Received: by 2002:aca:f18b:: with SMTP id p133mr406122oih.22.1573013219216; Tue, 05 Nov 2019 20:06:59 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k93sm6726958otc.30.2019.11.05.20.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 20:06:58 -0800 (PST) Date: Tue, 5 Nov 2019 22:06:57 -0600 From: Rob Herring To: Benjamin Gaignard Cc: Jonathan Cameron , Benjamin Gaignard , Mark Rutland , devicetree@vger.kernel.org, Lars-Peter Clausen , Alexandre Torgue , Linux PWM List , linux-iio@vger.kernel.org, u.kleine-koenig@pengutronix.de, Linux Kernel Mailing List , Thierry Reding , Peter Meerwald-Stadler , Hartmut Knaack , Fabrice Gasnier , Lee Jones , linux-stm32@st-md-mailman.stormreply.com, Linux ARM Subject: Re: [PATCH 2/4] dt-bindings: iio: timer: Convert stm32 IIO trigger bindings to json-schema Message-ID: <20191106040657.GA5294@bogus> References: <20191031123040.26316-1-benjamin.gaignard@st.com> <20191031123040.26316-3-benjamin.gaignard@st.com> <20191103110841.3ad3ecfb@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 05, 2019 at 11:07:16AM +0100, Benjamin Gaignard wrote: > Le dim. 3 nov. 2019 ? 12:08, Jonathan Cameron a ?crit : > > > > On Thu, 31 Oct 2019 13:30:38 +0100 > > Benjamin Gaignard wrote: > > > > > Convert the STM32 IIO trigger binding to DT schema format using json-schema > > > > > > Signed-off-by: Benjamin Gaignard > > I'm far from great on these as still haven't taken the time I should to learn > > the yaml syntax properly. A few comments inline however based mostly on this > > doesn't quite look like other ones I've seen recently. > > > > Thanks, > > > > Jonathan > > > > > --- > > > .../bindings/iio/timer/st,stm32-timer-trigger.yaml | 44 ++++++++++++++++++++++ > > > .../bindings/iio/timer/stm32-timer-trigger.txt | 25 ------------ > > > 2 files changed, 44 insertions(+), 25 deletions(-) > > > create mode 100644 Documentation/devicetree/bindings/iio/timer/st,stm32-timer-trigger.yaml > > > delete mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt > > > > > > diff --git a/Documentation/devicetree/bindings/iio/timer/st,stm32-timer-trigger.yaml b/Documentation/devicetree/bindings/iio/timer/st,stm32-timer-trigger.yaml > > > new file mode 100644 > > > index 000000000000..1c8c8b55e8cd > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/iio/timer/st,stm32-timer-trigger.yaml > > > @@ -0,0 +1,44 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/iio/timer/st,stm32-timer-trigger.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: STMicroelectronics STM32 Timers IIO timer bindings > > > + > > > +maintainers: > > > + - Benjamin Gaignard > > > + - Fabrice Gasnier > > > + > > > +properties: > > > + $nodemane: > > > > nodename? > > That will be in v2 No, $nodename is correct. The '$' signifies something we generate and add in. IOW, not a real property. I guess we could have used 'name' here and stuck with traditional OpenFirmware. > > > > > > + pattern: "^timer@[0-9]+$" > > > + type: object > > > + > > > + description: > > > + must be a sub-node of an STM32 Timer device tree node > > > + > > > + properties: > > > + compatible: > > > + oneOf: > > > > enum is I think preferred for these. > > as you like it will be in v2 > > > > > > + - const: st,stm32-timer-trigger > > > + - const: st,stm32h7-timer-trigger > > > + > > > + reg: true > > > > Normally some info for what the reg value is.. > I can't put "description" on this field because the syntax doesn't allow it. > I will add a comment in v2 to explain what reg is. items: - maximum: Rob