Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4324767pxj; Wed, 12 May 2021 03:09:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZK/Zy6sg3yQx1KZVrvCGGt0828bm8ffcXoGViohho2+MXFgw7VzlSSvovJO/NxovhbvhG X-Received: by 2002:a05:6402:1281:: with SMTP id w1mr38285072edv.148.1620814152185; Wed, 12 May 2021 03:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620814152; cv=none; d=google.com; s=arc-20160816; b=QumB9C3BENdvPbhA3bD9pF8mdrANU+qeI8jGvtWs5HTEBllgmml8sAITXrSBJmKuKw BROc1/2lqaq5ZMNqVehvniwLfPuVnmsChcqcUqUptbHfja0FTFSRSf3tOiMt93yU/iz6 Fy2b7TFrBACUABdZwUMIpQTe4+qtLnjcmjk+gPRO6GG+LVmZSxRSgYAV65iX6pQuMRg4 VhjX4jKwue01kHfqtPCG/zB4sqgm+oN+XXQ9mP63Ala5yHEVWM03aenXxDB80Ruu0fh6 yg5BVNfTwrzHbVTKt2a41i3H3S5RfMk2lBf4gN2rSiqywchmPdF/4CXNhikS5nXVccJb Mfjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=i2u5/rbbRL9hnmzW4Zk7wU7ZfHFyEsuwaa0tNJ0O7XI=; b=gIDYPGKCwYcQEpeyXfiZ1CWqs426dNZDvUa/1QqMGU3dqjSq2MfIt/6SOZ5bDAsLsa jgJyBZwXxoi2HCmQmcR1AwVWU4hgA6n0BpvOVhzlwVnQLasQXo88AM8yaD+3vwMfvxuv c0DTfyGGz/5Orzzo2Gp4W+cbLuzXvDWB7OfDDb56AOCJ18rvxqfXgSvZFzkjrsW987dR v497RQhcjPebbFk+DUQcGNZeH5evufmTya1Q1najNAhvPPm8Ts6FShkctds4o8Gh8JN9 QYpQ46jrFjr7jCYSnHsFn+pHmwus/kvZvY6x/nv9y1g37CturOn+tenYO5mhZzM62m2d DOSw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj23si1944546ejb.7.2021.05.12.03.08.48; Wed, 12 May 2021 03:09:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbhELKI5 (ORCPT + 99 others); Wed, 12 May 2021 06:08:57 -0400 Received: from mail03.asahi-net.or.jp ([202.224.55.15]:46596 "EHLO mail03.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbhELKIy (ORCPT ); Wed, 12 May 2021 06:08:54 -0400 Received: from sakura.ysato.name (ik1-413-38519.vs.sakura.ne.jp [153.127.30.23]) (Authenticated sender: PQ4Y-STU) by mail03.asahi-net.or.jp (Postfix) with ESMTPA id 5090F2135D; Wed, 12 May 2021 19:00:16 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (v096177.dynamic.ppp.asahi-net.or.jp [124.155.96.177]) by sakura.ysato.name (Postfix) with ESMTPSA id E21241C00E3; Wed, 12 May 2021 19:00:15 +0900 (JST) Date: Wed, 12 May 2021 19:00:15 +0900 Message-ID: <87im3o6zm8.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Geert Uytterhoeven Cc: Rob Herring , Thierry Reding , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Lee Jones , Daniel Lezcano , Thomas Gleixner , Laurent Pinchart , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: Re: [PATCH v2 2/2] dt-bindings: timer: renesas,tpu: Convert to json-schema In-Reply-To: <1c33e62c3a74979c3ca9580176e6cf89384caea9.1620648868.git.geert+renesas@glider.be> References: <1c33e62c3a74979c3ca9580176e6cf89384caea9.1620648868.git.geert+renesas@glider.be> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/27 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 May 2021 21:18:35 +0900, Geert Uytterhoeven wrote: > > Convert the Renesas H8/300 Timer Pulse Unit Device Tree binding > documentation to json-schema. > > Correct clock-names, as "peripheral_clk" is the name of the supplier, > and all users use "fck". > > Note that there are two different bindings for the TPU, both using > "renesas,tpu": this one for using the TPU as a clock source (used on > H8/300), and a second use for using the TPU as a PWM controller (used on > ARM). To avoid conflicts, both bindings are marked with the appropriate > "select" logic, to check for the absence respectively presence of the > "#pwm-cells" property. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Rob Herring > --- > v2: > - Drop unneeded "'#pwm-cells': true" from "select" section in > renesas,tpu-pwm.yaml, > - Add Reviewed-by. > > I have listed Sato-san as the maintainer, as he wrote the original > driver and bindings. > Sato-san: Please scream if this is inappropriate ;-) > --- > .../bindings/pwm/renesas,tpu-pwm.yaml | 9 +++ > .../devicetree/bindings/timer/renesas,tpu.txt | 21 ------- > .../bindings/timer/renesas,tpu.yaml | 56 +++++++++++++++++++ > 3 files changed, 65 insertions(+), 21 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/timer/renesas,tpu.txt > create mode 100644 Documentation/devicetree/bindings/timer/renesas,tpu.yaml > > diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > index 7c99e42ad780c2cd..81ccb2110162c3eb 100644 > --- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > +++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > @@ -9,6 +9,15 @@ title: Renesas R-Car Timer Pulse Unit PWM Controller > maintainers: > - Laurent Pinchart > > +select: > + properties: > + compatible: > + contains: > + const: renesas,tpu > + required: > + - compatible > + - '#pwm-cells' > + > properties: > compatible: > items: > diff --git a/Documentation/devicetree/bindings/timer/renesas,tpu.txt b/Documentation/devicetree/bindings/timer/renesas,tpu.txt > deleted file mode 100644 > index 1d46f9de4feb8a84..0000000000000000 > --- a/Documentation/devicetree/bindings/timer/renesas,tpu.txt > +++ /dev/null > @@ -1,21 +0,0 @@ > -* Renesas H8/300 Timer Pulse Unit > - > -The TPU is a 16bit timer/counter with configurable clock inputs and > -programmable compare match. > -This implementation support only cascade mode. > - > -Required Properties: > - > - - compatible: must contain "renesas,tpu" > - - reg: base address and length of the registers block in 2 channel. > - - clocks: a list of phandle, one for each entry in clock-names. > - - clock-names: must contain "peripheral_clk" for the functional clock. > - > - > -Example: > - tpu: tpu@ffffe0 { > - compatible = "renesas,tpu"; > - reg = <0xffffe0 16>, <0xfffff0 12>; > - clocks = <&pclk>; > - clock-names = "peripheral_clk"; > - }; > diff --git a/Documentation/devicetree/bindings/timer/renesas,tpu.yaml b/Documentation/devicetree/bindings/timer/renesas,tpu.yaml > new file mode 100644 > index 0000000000000000..01554dff23d8a954 > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/renesas,tpu.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/timer/renesas,tpu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas H8/300 Timer Pulse Unit > + > +maintainers: > + - Yoshinori Sato > + > +description: > + The TPU is a 16bit timer/counter with configurable clock inputs and > + programmable compare match. > + This implementation supports only cascade mode. > + > +select: > + properties: > + compatible: > + contains: > + const: renesas,tpu > + '#pwm-cells': false > + required: > + - compatible > + > +properties: > + compatible: > + const: renesas,tpu > + > + reg: > + items: > + - description: First channel > + - description: Second channel > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: fck > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + tpu: tpu@ffffe0 { > + compatible = "renesas,tpu"; > + reg = <0xffffe0 16>, <0xfffff0 12>; > + clocks = <&pclk>; > + clock-names = "fck"; > + }; > -- > 2.25.1 > Acked-by: Yoshinori Sato -- Yosinori Sato