Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6EC7C43217 for ; Fri, 18 Nov 2022 14:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242278AbiKROWf (ORCPT ); Fri, 18 Nov 2022 09:22:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242394AbiKROW3 (ORCPT ); Fri, 18 Nov 2022 09:22:29 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D80769C4 for ; Fri, 18 Nov 2022 06:22:27 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id d6so8419806lfs.10 for ; Fri, 18 Nov 2022 06:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jaam7Rwpep2aPOzsoJKOhuI5H5q95ZEKsBuX54/RkA0=; b=LYUEDUuxlj0DTXL+fqITK6FJC1hTD370PBv9ogvxbnJAWFja2FM/7aVNHtwhHHTfyj uK4f0bJP1jwsjevvdi5D+WEy9e5SmvuZ+CNBwCLdu8WfgrhWYMDCRGV0nNzoJk8thp5R b8MyNClVFoqZYON3xTbRcJgprpwzNo76mpx0JDsTFSLdhUFhMpw2vaJjIzjZKMSCXcgc aKIAr4wXJUG5Ccjx14QkWuLmnt6AKpWGChddEn9wV1qmD6rV44wMN8LA6WARvxQ5BPk9 gBFX7zhxvt9IKYyiwYeTIe+6NskI1gEs/od8GhZisTkqufzx+xUMP42ebeNcytVrH30e 2JHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jaam7Rwpep2aPOzsoJKOhuI5H5q95ZEKsBuX54/RkA0=; b=4bqnEJEWXqhZLw4vSm8sZPsQRstkyL+kGOuBN9ghtypctKNHtdl00YVUlAczZiS5Lt O5IvJBbn1s7xwu67amb3d0GsseZ5CMxEDh7aliwMtRwDXJonY7J0v5e86CEuSCaZLvq1 v5FdM+b97Z0wtq+C9hQkya+aAk+IShSul7PvaEphFy61BUAyXxrqRbx5xpfOL7EDqnIl LJQxHZg3y2tBHOngammUdKeouTvLk0C0NEN5UfotEFYshxK9vFTN+4f8m3e+srLEPXU6 LgVyQ+FUkuEJ4hKdrgCXmYyR0uoeELSoD58n/Ubn10V/fCB/lRA0ZESF9cVrvb8nSzTH UdTw== X-Gm-Message-State: ANoB5pkKxkThvnOadXF0rXoBJPwghoVsGq+SfNxB/7KCnZFVRf+m51Cn oTUKabEgr+1kcv8kjYsZa+LU7g== X-Google-Smtp-Source: AA0mqf51HJl/xsmP40ZEmRXj9Mv6ATcQou5uaRKEZUbj2VWNgmg8eJV3LNSeHUe57wXceFqn4S4gXQ== X-Received: by 2002:ac2:5f41:0:b0:4b3:cc01:102b with SMTP id 1-20020ac25f41000000b004b3cc01102bmr2639277lfz.133.1668781346170; Fri, 18 Nov 2022 06:22:26 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id be34-20020a056512252200b0049e9122bd1bsm678121lfb.164.2022.11.18.06.22.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Nov 2022 06:22:25 -0800 (PST) Message-ID: Date: Fri, 18 Nov 2022 15:22:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] dt-bindings: pwm: ti,pwm-omap-dmtimer: Update binding for yaml Content-Language: en-US To: Tony Lindgren , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Nishanth Menon , Vignesh Raghavendra References: <20221118125435.9479-1-tony@atomide.com> From: Krzysztof Kozlowski In-Reply-To: <20221118125435.9479-1-tony@atomide.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 18/11/2022 13:54, Tony Lindgren wrote: > Update for yaml and remove the old txt binding. > > Cc: Nishanth Menon > Cc: Vignesh Raghavendra > Signed-off-by: Tony Lindgren Thank you for your patch. There is something to discuss/improve. > -Example: > - pwm9: dmtimer-pwm@9 { > - compatible = "ti,omap-dmtimer-pwm"; > - ti,timers = <&timer9>; > - #pwm-cells = <3>; > - }; > diff --git a/Documentation/devicetree/bindings/pwm/ti,pwm-omap-dmtimer.yaml b/Documentation/devicetree/bindings/pwm/ti,pwm-omap-dmtimer.yaml > new file mode 100644 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/ti,pwm-omap-dmtimer.yaml Use filename matching the compatible, so ti,omap-dmtimer-pwm.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/ti,pwm-omap-dmtimer.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI dual mode timer PWM controller > + > +maintainers: > + - Tony Lindgren > + > +description: > + TI dual mode timer instances have an IO pin for PWM capability > + > +allOf: > + - $ref: pwm.yaml# > + > +properties: > + $nodename: > + pattern: "^pwm-([1-9]|1[0-2])$" Drop the nodename, device schemas do not need to enforce it. > + > + compatible: > + const: ti,omap-dmtimer-pwm > + > + "#pwm-cells": > + const: 3 > + > + ti,timers: > + description: phandle to the timer instance used for PWM > + $ref: /schemas/types.yaml#/definitions/phandle > + > + ti,prescaler: > + description: legacy clock prescaled for timer > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ] > + deprecated: true This was not deprecated before and your commit msg does not mention it. > + > + ti,clock-source: > + description: legacy clock for timer, use assigned-clocks instead > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1, 2 ] You miss here explanation of constants. > + deprecated: true This was not deprecated before and your commit msg does not mention it. > + > +required: > + - compatible > + - ti,timers > + > +unevaluatedProperties: false > + > +examples: > + - | > + pwm9: pwm-9 { Node name: pwm > + compatible = "ti,omap-dmtimer-pwm"; > + ti,timers = <&timer9>; > + #pwm-cells = <3>; > + }; Best regards, Krzysztof