Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10787534rwl; Thu, 12 Jan 2023 02:32:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOo/KglUc1BELA36CaG2Qqd5ZdE7edk9PvaxD5DHzTHULDXZY4uCbLgSZ+d8l6ux2ccb5j X-Received: by 2002:a17:907:6d0c:b0:7c1:652:d109 with SMTP id sa12-20020a1709076d0c00b007c10652d109mr79944067ejc.35.1673519534703; Thu, 12 Jan 2023 02:32:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673519534; cv=none; d=google.com; s=arc-20160816; b=c0zEjDAuSpgNotTUpdf6nQoUfuacRGxEnkBRJa3sj+dribDmYxYbgAkmuY0nUBMR3j wJLJ+7jgz/BZg/7DWhMFprQSlBWOZmnGvqvmTzbbRXCrgpGiPRHV3Aq5pO3+Bm3vt/9z F9eEsXMfuDsoGub5hTou90f/P9o3JQfEElzY67Hvz+LD8HVXJlKgBX/atSlX4u9+BBRY qJt3S61daWIUgrJ+3A4+ZIzivZ4DDM3kIGzZ++aXDzrwQ8DaerVJgV/QyVIW6IIoZ/UZ xUgJSaz3dobMWxbajEKJjg/oBI+zXC7/DytZiuOgUIt+n1atR59ZqTcapnX3y1xEJrkl 2JtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EdyTPbxD4tnntcAsIcJdOa+cdBFpxwDdqekxFGg5SMQ=; b=AdARq2iiY2uo+r4w47TLlsc97334tckt2CchZLLpR0toiFf89qRifi8O0TyX7Lt/Fi EBoSfmJzLh+eFfzqFFI64hYKeJxOJHurXm93GV0NoMdfXUwTTji72VoQhSQbaFtkl5fW hn5WmqfyYOzeFXLUboQKnM0xashfYnhGfZ4ccnJK+L1fB2Slw7vWoWqdyG4R9GhEumE9 BYyqnG+1h3dorurnl3HkWZ4BqvCrkEzfN/D6DkLKEte24fpwqWfEUpzVpLt0Tjj4PJMs oAcnJpnpbrvEYA3XYT6vXuY6vb6R6YHZN91/kYI6HpQq+gls/vXwQ/1a4+Z41ylHqssz dMYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TGVnq9Iq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz8-20020a170906fe4800b007c08bfea548si19237806ejb.382.2023.01.12.02.32.02; Thu, 12 Jan 2023 02:32:14 -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=@kernel.org header.s=k20201202 header.b=TGVnq9Iq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235551AbjALKMP (ORCPT + 49 others); Thu, 12 Jan 2023 05:12:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbjALKL1 (ORCPT ); Thu, 12 Jan 2023 05:11:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84A2A2E6; Thu, 12 Jan 2023 02:11:00 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 20D2161FCC; Thu, 12 Jan 2023 10:11:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFF3AC433D2; Thu, 12 Jan 2023 10:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673518259; bh=jHnN5TpjDsuEmpEXoiNJ8vZOnsWHRV/v7Jjf9zxez+c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TGVnq9Iqk9wH7rfxSRBa4J2HpxstIG4Z5WKyITO+s65XJkUX/avf0hrFttJytcQON ZHhnQbJFrndso01+aTlXR4YwkIyCq9ld+l/ujWp5YpecmleYso4IHCoZ+r0182gAWZ ZlKPeren892boP6XKvRxWMt+5TpjaW/y4MYJKPk7EVWIXzaPGjg2BDW66qfLKBrwIC 5zNO9PJ8laBGAWwAHUvx2uqu+EV0Qc2P4PiIEV+eYh9J9QRqzmD6rnZr0gOVsUOcR2 DXZeyGRn11V4+P8Tmz8nS5HuqC6NNqKOqC5FoddN9ZPljiX7QSbKgVGOHlQx/KcFU+ +myzC5Gn5/zTw== Message-ID: <06144828-d1c4-7423-81e3-9c35df996da7@kernel.org> Date: Thu, 12 Jan 2023 11:10:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [LINUX PATCH 2/3] dt-bindings: timer: Update device tree bindings for cadence TTC PWM To: Mubin Sayyed , robh+dt@kernel.org, treding@nvidia.com, u.kleine-koenig@pengutronix.de, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, git@amd.com, michal.simek@amd.com, siva.durga.prasad.paladugu@amd.com, mubin10@gmail.com References: <20230112071526.3035949-1-mubin.sayyed@amd.com> <20230112071526.3035949-3-mubin.sayyed@amd.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230112071526.3035949-3-mubin.sayyed@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 On 12/01/2023 08:15, Mubin Sayyed wrote: > Cadence TTC can act as PWM device, it is supported through Subject: drop second/last, redundant "device tree bindings". The "dt-bindings" prefix is already stating that these are bindings. Anyway subject is poor - every commit is an "update", so basically you said there nothing... > separate PWM framework based driver. Decision to configure > specific TTC device as PWM or clocksource/clockevent would > be done based on presence of "#pwm-cells" property. > > Also, interrupt property is not required for TTC PWM driver. > Updated bindings to support TTC PWM configuration. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > Signed-off-by: Mubin Sayyed > --- > .../devicetree/bindings/timer/cdns,ttc.yaml | 25 ++++++++++++++++++- > 1 file changed, 24 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/timer/cdns,ttc.yaml b/Documentation/devicetree/bindings/timer/cdns,ttc.yaml > index 7d821fd480f6..2855e92e02e3 100644 > --- a/Documentation/devicetree/bindings/timer/cdns,ttc.yaml > +++ b/Documentation/devicetree/bindings/timer/cdns,ttc.yaml > @@ -32,12 +32,26 @@ properties: > description: | > Bit width of the timer, necessary if not 16. > > + "#pwm-cells": > + description: | > + Required to configure TTC as PWM device, supported cells are 0 to 3. > + minimum: 0 > + maximum: 3 Better make it const. What's the benefit of flexible cells? You also should describe the arguments. > + > required: > - compatible > - reg > - - interrupts > - clocks > > +allOf: > + - if: > + not: > + required: > + - "#pwm-cells" > + then: > + required: > + - interrupts > + > additionalProperties: false > > examples: > @@ -50,3 +64,12 @@ examples: > clocks = <&cpu_clk 3>; > timer-width = <32>; > }; > + > + - | > + ttc1: ttc1@f8002000 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "cdns,ttc"; > + reg = <0xF8002000 0x1000>; lowercase hex > + clocks = <&cpu_clk 3>; > + timer-width = <32>; > + #pwm-cells = <3>; > + }; Best regards, Krzysztof