Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp609660rdb; Tue, 16 Jan 2024 10:03:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFm5UiO+NFHhe1yYYW3PKBRhPB94RVSXHJyk6Oxu2zHhP0s2hr5+KY4OD6foQKPvZ5DLVta X-Received: by 2002:a05:620a:2056:b0:783:49da:b0f4 with SMTP id d22-20020a05620a205600b0078349dab0f4mr6971577qka.17.1705428215896; Tue, 16 Jan 2024 10:03:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705428215; cv=pass; d=google.com; s=arc-20160816; b=hDwq2RdMtWNGsVeCxHAJEAUIBYf24sCOnRUA2Xumo8Mh7jGapdNiDh+a16ga960KbH koJ1sEqRLmkfQLnwSK9KN94F6oyfYQxXrqDy2i+aTxBUInJpCF8R6lKl6Fen6a2wMx1k pvzi0BhVzbPle5qH5XQbOBAQ9D92HcmcLYkIqNp52MckqhzDs4OFC41bNEygWQ3ECpgA DIWd2y2fUMsPKWWHha1vsKeZNd4Zq5yAr/OK4khpAIa9jJ/8OJd4ghJliIJoFBFJXLqL D0Vx/wMUgSc9uGLJpYNESBim/JOk0hjC2miwiFP5eNm9aIVIphCYi+WbejR8OSnAxotn uZVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=V/QH6ApfVDxHOyQm9+ixIOkuykxpIXukfjQCYEBhitA=; fh=p3Vt054rQCWIUhicoYv9TQvHToyPUJSnXKbJ5FTsu0k=; b=Z/3eVueJ9Ac2fb3je9sroQyq4x4y+MZ2+j9OmfIl1omJdJmSYmO0EN0YUIBYl8t+aD yqjWXILslE1BnjPZttBmz2YvpdKYQd+7R33MrrO1rxz2P9PXtgkyQ74Ryjygg3ItkbVe hmh7nY+dPDdcSlrvCilNzjhfiTeTklgH+GR3ZxT4pEMPa2/g/xAoO/9hYtTOyyPkxKq/ gCeX1LzKFaw+7yZlaOiUuTwQcFM9zENC+xoeY448AolWBsIzqQBd2sh407HuKXp7YPdr FXKPIMBD34O/+QxP/O3LMUHW1o+875jdnCBjE9efwjrVOPdScNxMWafuMIwM7OGRNdIV YN6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BaRaCezC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27647-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c14-20020ac87d8e000000b00429d910d4c8si6710351qtd.170.2024.01.16.10.03.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 10:03:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27647-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BaRaCezC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27647-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 97E0B1C2388B for ; Tue, 16 Jan 2024 18:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9527D1CD1C; Tue, 16 Jan 2024 18:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BaRaCezC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A38B91CD04; Tue, 16 Jan 2024 18:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705428206; cv=none; b=KBGfSqOz00hn3qlWpjSThsbkwgBIYheuR7Q8kwGrZwCT+TeBFdCCRKhLggWfbkadgRXXvKMZbDznIENa9H9fiLEOPDhJ+Lqfr1SSaDxapwMyPeIJZJWylemmHEstXs8bVtNIKTCgfnTMfX0w/X1Ihog8iefRIlDmLa+DosreY1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705428206; c=relaxed/simple; bh=CRg9h5ljaE20inyWideyi9skHzli+4ErlCRBYmz6veQ=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=CTJPmzB8xhylbyQnNe9o+BHA6FHTJkSfwSYhtemFmhIrfqzEkpLnlHL5gQg1gUyMHe0zN7N6joulWCMEgzmYlC9ARGLCv4UPWFxdK1N1WI+xRkt1sS4fn81Jy7vg1wdo6Mliq9+Cca9Ls+0tz0jJ/fj9/uF9/nlvUjZaO3Mqh34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BaRaCezC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A272AC433C7; Tue, 16 Jan 2024 18:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705428206; bh=CRg9h5ljaE20inyWideyi9skHzli+4ErlCRBYmz6veQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BaRaCezCYCB/6jAYn1+DDxNo1cVtLacjtp3GBM1osdwaHvaQqurkeAir7UuN1lg5H POv7TK/LsOheAe83JFTPv7pgHLFD+l3db41OLAbWZiB0kIhhiXGrmYNuNUJNJx+sQ5 FQ7sTPqXd7SxpAyKnlnF06gZ5WzQWSW8iC8eWFZ3xf3NlrmCGwAQB3NRwEC5xQa3DA oxOtY2l+mpHKIQa6k8u2vR7GVUbDAHPS5SNxjYsZRhFybzC5ezJdtpNU11Gi8ajmXP t3+iZx9WdanZUXM+zO9KFvdykp71rC7RVjTYoipDj+ldnotA96ScnFBVTxRDtnlsAr bqEEvihRx7HUQ== Date: Tue, 16 Jan 2024 18:03:19 +0000 From: Conor Dooley To: Dharma Balasubiramani Cc: conor.dooley@microchip.com, sam@ravnborg.org, bbrezillon@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@tuxon.dev, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lee@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, linux-pwm@vger.kernel.org, linux4microchip@microchip.com Subject: Re: [PATCH v2 2/3] dt-bindings: atmel,hlcdc: convert pwm bindings to json-schema Message-ID: <20240116-rising-gap-df4124f191a0@spud> References: <20240116113800.82529-1-dharma.b@microchip.com> <20240116113800.82529-3-dharma.b@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QLbmZbOLjpJ/vPR8" Content-Disposition: inline In-Reply-To: <20240116113800.82529-3-dharma.b@microchip.com> --QLbmZbOLjpJ/vPR8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2024 at 05:07:59PM +0530, Dharma Balasubiramani wrote: > Convert device tree bindings for Atmel's HLCDC PWM controller to YAML > format. >=20 > Signed-off-by: Dharma Balasubiramani > --- > changelog > v1 -> v2 > - Remove the explicit copyrights. > - Modify title (not include words like binding/driver). > - Modify description actually describing the hardware and not the driver. > - Remove pinctrl properties which aren't required. > - Drop parent node and it's other sub-device node which are not related h= ere. > --- > .../bindings/pwm/atmel,hlcdc-pwm.yaml | 47 +++++++++++++++++++ > .../bindings/pwm/atmel-hlcdc-pwm.txt | 29 ------------ > 2 files changed, 47 insertions(+), 29 deletions(-) > create mode 100644 Documentation/devicetree/bindings/pwm/atmel,hlcdc-pwm= =2Eyaml > delete mode 100644 Documentation/devicetree/bindings/pwm/atmel-hlcdc-pwm= =2Etxt >=20 > diff --git a/Documentation/devicetree/bindings/pwm/atmel,hlcdc-pwm.yaml b= /Documentation/devicetree/bindings/pwm/atmel,hlcdc-pwm.yaml > new file mode 100644 > index 000000000000..751122309fa9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/atmel,hlcdc-pwm.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) The original file has no license, but was originally written by a free-electrons employee, so the relicensing here is fine. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/atmel,hlcdc-pwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel's HLCDC's PWM controller > + > +maintainers: > + - Nicolas Ferre > + - Alexandre Belloni > + - Claudiu Beznea > + > +description: | Again, the | is not needed here. > + The LCDC integrates a Pulse Width Modulation (PWM) Controller. This bl= ock > + generates the LCD contrast control signal (LCD_PWM) that controls the > + display's contrast by software. LCDC_PWM is an 8-bit PWM signal that c= an be > + converted to an analog voltage with a simple passive filter. LCD displ= ay > + panels have different backlight specifications in terms of minimum/max= imum > + values for PWM frequency. If the LCDC PWM frequency range does not mat= ch the > + LCD display panel, it is possible to use the standalone PWM Controller= to > + drive the backlight. > + > +properties: > + compatible: > + const: atmel,hlcdc-pwm > + > + "#pwm-cells": > + const: 3 > + description: | > + This PWM chip uses the default 3 cells bindings defined in pwm.yam= l in > + this directory. I would delete this description tbh. > + > +required: > + - compatible > + - "#pwm-cells" > + > +additionalProperties: false > + > +examples: > + - | > + pwm: pwm { > + compatible =3D "atmel,hlcdc-pwm"; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pinctrl_lcd_pwm>; > + #pwm-cells =3D <3>; > + }; The label here is not used and can be dropped. Otherwise, Reviewed-by: Conor Dooley Cheers, Conor. > diff --git a/Documentation/devicetree/bindings/pwm/atmel-hlcdc-pwm.txt b/= Documentation/devicetree/bindings/pwm/atmel-hlcdc-pwm.txt > deleted file mode 100644 > index afa501bf7f94..000000000000 > --- a/Documentation/devicetree/bindings/pwm/atmel-hlcdc-pwm.txt > +++ /dev/null > @@ -1,29 +0,0 @@ > -Device-Tree bindings for Atmel's HLCDC (High-end LCD Controller) PWM dri= ver > - > -The Atmel HLCDC PWM is subdevice of the HLCDC MFD device. > -See ../mfd/atmel-hlcdc.txt for more details. > - > -Required properties: > - - compatible: value should be one of the following: > - "atmel,hlcdc-pwm" > - - pinctr-names: the pin control state names. Should contain "default". > - - pinctrl-0: should contain the pinctrl states described by pinctrl > - default. > - - #pwm-cells: should be set to 3. This PWM chip use the default 3 cells > - bindings defined in pwm.yaml in this directory. > - > -Example: > - > - hlcdc: hlcdc@f0030000 { > - compatible =3D "atmel,sama5d3-hlcdc"; > - reg =3D <0xf0030000 0x2000>; > - clocks =3D <&lcdc_clk>, <&lcdck>, <&clk32k>; > - clock-names =3D "periph_clk","sys_clk", "slow_clk"; > - > - hlcdc_pwm: hlcdc-pwm { > - compatible =3D "atmel,hlcdc-pwm"; > - pinctrl-names =3D "default"; > - pinctrl-0 =3D <&pinctrl_lcd_pwm>; > - #pwm-cells =3D <3>; > - }; > - }; > --=20 > 2.25.1 >=20 --QLbmZbOLjpJ/vPR8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZabE5wAKCRB4tDGHoIJi 0hwFAP9jhcXP9wzaYy0Zz+9WvhngHO1gBGv8fpvpusu/vOgDugEA9tZzT38ZV7GR lEyPDaLupBQig1Y0zS0MvcAUj/eMsQQ= =LcB+ -----END PGP SIGNATURE----- --QLbmZbOLjpJ/vPR8--