Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4058765rdg; Wed, 18 Oct 2023 13:47:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJcM2yqwo0VJ1jQjElLdlA7m3hYvMTEvRz0KOBn0QAipcPqWIaZ3S66R3hs7QiZTwjQlBk X-Received: by 2002:a17:90b:188d:b0:27d:839:52ae with SMTP id mn13-20020a17090b188d00b0027d083952aemr328118pjb.32.1697662022028; Wed, 18 Oct 2023 13:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697662022; cv=none; d=google.com; s=arc-20160816; b=EwsQeo6sdnLQxdLdIRKaWvkTNmoQLRR+suW0LtV288usQDHGSkPWQmCCdS7x0U0Mz6 dg721OTwcfD7K8S8JpV/xn2G09jqXruGB6d/AYNcaN9o5p4J9o6c61E03hOi9b2q44yj N7uy/9ZRCI3Z1V0wPMOKJYV3awIXAw85WQFX8Pc2h0OVwtom414Mhx8kdw2G5BWtDfuS IE8HtOPUsjoOyfzY0ao2kv5FvQi1Bp7/aOx+4HlDjkznrB0ERnSThjKdisL4cWmfCRtr qOEjrn7Ef1R8XY14IAaLUUA7m8FvAHN19C3RjoW29eBd+WwvhsAEzW+jgfe2ssQXyW+J Wmpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LCuI6Ns5p5619+79G2Kclx5SIj165GxtuoIGAci+18s=; fh=pBpw3Hi/QMrEO2cgXmCrxSAAOytjWd5dcntZEhJLXAY=; b=mCiJSXRv02VPAFT5Fom0PmY/gP52wQxjwR34Jg2Qmfbb8dZIOU7s5inAJrz+vnVuiF vYVLy+ozhXHw5qc1BA3xUOes0T7B6OXNQf77tvccGJysTQGgesfZaspmZIly27JNbwNz Qz20Hc3Aq89a+6hzzdEUnJ3jc/XiPDngFtLppZlpavquJ7vjVoWlyc0aMxAMqo4wJX/C yJUBA7GbVsdDp3BUBztcsrojX+HQSMkwNAVu3qK+jDOxsUKjbEkBHzkk4pywbDjKP4PM JI1arEDsccJMXZpyfKCTudFrqClKEyueNNjYKW3cOLFPvAPo3ZTbfO6HXob0uqZNBzDp F6sA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d24-20020a637358000000b005ab6142f1besi2812865pgn.169.2023.10.18.13.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0767281BD031; Wed, 18 Oct 2023 13:46:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjJRUqa (ORCPT + 99 others); Wed, 18 Oct 2023 16:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbjJRUq3 (ORCPT ); Wed, 18 Oct 2023 16:46:29 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BD7A4 for ; Wed, 18 Oct 2023 13:46:27 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qtDQh-0000gU-1z; Wed, 18 Oct 2023 22:46:11 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtDQf-002dSA-0e; Wed, 18 Oct 2023 22:46:09 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qtDQe-001EpL-N1; Wed, 18 Oct 2023 22:46:08 +0200 Date: Wed, 18 Oct 2023 22:46:08 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Devi Priya Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, thierry.reding@gmail.com, ndesaulniers@google.com, trix@redhat.com, baruch@tkos.co.il, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-pwm@vger.kernel.org, nathan@kernel.org Subject: Re: [PATCH V15 2/4] dt-bindings: pwm: add IPQ6018 binding Message-ID: <20231018204608.qyifcnnzgi2bgzn6@pengutronix.de> References: <20231005160550.2423075-1-quic_devipriy@quicinc.com> <20231005160550.2423075-3-quic_devipriy@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xtsetqyrpzzycxzw" Content-Disposition: inline In-Reply-To: <20231005160550.2423075-3-quic_devipriy@quicinc.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 13:46:52 -0700 (PDT) --xtsetqyrpzzycxzw Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Thu, Oct 05, 2023 at 09:35:48PM +0530, Devi Priya wrote: > DT binding for the PWM block in Qualcomm IPQ6018 SoC. >=20 > Reviewed-by: Bjorn Andersson > Reviewed-by: Krzysztof Kozlowski > Co-developed-by: Baruch Siach > Signed-off-by: Baruch Siach > Signed-off-by: Devi Priya > --- > v15: >=20 > No change >=20 > v14: >=20 > Picked up the R-b tag >=20 > v13: >=20 > Updated the file name to match the compatible > =20 > Sorted the properties and updated the order in the required field >=20 > Dropped the syscon node from examples >=20 > v12: >=20 > Picked up the R-b tag >=20 > v11: >=20 > No change >=20 > v10: >=20 > No change >=20 > v9: >=20 > Add 'ranges' property to example (Rob) >=20 > Drop label in example (Rob) >=20 > v8: >=20 > Add size cell to 'reg' (Rob) >=20 > v7: >=20 > Use 'reg' instead of 'offset' (Rob) >=20 > Drop 'clock-names' and 'assigned-clock*' (Bjorn) >=20 > Use single cell address/size in example node (Bjorn) >=20 > Move '#pwm-cells' lower in example node (Bjorn) >=20 > List 'reg' as required >=20 > v6: >=20 > Device node is child of TCSR; remove phandle (Rob Herring) >=20 > Add assigned-clocks/assigned-clock-rates (Uwe Kleine-K=F6nig) >=20 > v5: Use qcom,pwm-regs for phandle instead of direct regs (Bjorn > Andersson, Kathiravan T) >=20 > v4: Update the binding example node as well (Rob Herring's bot) >=20 > v3: s/qcom,pwm-ipq6018/qcom,ipq6018-pwm/ (Rob Herring) >=20 > v2: Make #pwm-cells const (Rob Herring) >=20 > .../bindings/pwm/qcom,ipq6018-pwm.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/qcom,ipq6018-pw= m.yaml >=20 > diff --git a/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml = b/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml > new file mode 100644 > index 000000000000..6d0d7ed271f7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/qcom,ipq6018-pwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm IPQ6018 PWM controller > + > +maintainers: > + - Baruch Siach Not being very fluent in dt and binding yaml I wonder if adding allOf: - $ref: pwm.yaml# would be beneficial?! > +properties: > + compatible: > + const: qcom,ipq6018-pwm > + > + reg: > + description: Offset of PWM register in the TCSR block. > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + "#pwm-cells": > + const: 2 The driver only supports normal polarity. Is this a shortcoming of the driver, or is the hardware incapable to do that, too? If it's only the former I'd want #pwm-cells =3D <3> here. For ease of use I'd not oppose if you pick #pwm-cells =3D <3> even if the hardware can only do normal polarity. > + > +required: > + - compatible > + - reg > + - clocks > + - "#pwm-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + pwm: pwm@a010 { > + compatible =3D "qcom,ipq6018-pwm"; > + reg =3D <0xa010 0x20>; > + clocks =3D <&gcc GCC_ADSS_PWM_CLK>; > + assigned-clocks =3D <&gcc GCC_ADSS_PWM_CLK>; > + assigned-clock-rates =3D <100000000>; > + #pwm-cells =3D <2>; > + }; Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --xtsetqyrpzzycxzw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUwRA8ACgkQj4D7WH0S /k4+QAf/WN6mLqG3+DlwosYZcJESOcX2S6K+CSxJ+01EkCGvXaNAPnaNasVmGzCa iWvYmgoRhuFYuzrppCsUER6+lrHZz/C4HfnOsQlsVfjRIm/Si4qelPWc0jKfvsQ9 EV82d4hR/X2OT0ujmOcJZvwTMaITfER4B+9lzkVE0NvDzUIxzjZRgLDUX1j75All 994dvdSy0b6x3NHnCuryt4ORwe8cIj866wXsJgrSC/Cg+9kyqW7UXWriTGQNAcfT 0cfY92KCimjFjqfCuanOyBBN+41jlwwaiUnsB4gx8ZEh1mFgE50OXX9QK8eEgzzl 56qTKAjNGv8LdOd+XgAiPuVPd0+6yg== =Vd7V -----END PGP SIGNATURE----- --xtsetqyrpzzycxzw--