Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3913586rdh; Fri, 29 Sep 2023 06:13:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVfoXmFJvlh9lVn5QNG+hLETz5AmAkZ0wpqJby8BDVNBS0vCT+6YzuqrdGZhf3dBSP80f2 X-Received: by 2002:aca:1a01:0:b0:3a9:cfb5:4632 with SMTP id a1-20020aca1a01000000b003a9cfb54632mr4443848oia.40.1695993231397; Fri, 29 Sep 2023 06:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695993231; cv=none; d=google.com; s=arc-20160816; b=VCyMe9wJO8Ag+oTY6UVHFUhI6PgQwCremPnz72RowQXzPdZq/I2vtdt7A2VIpe4yJC DZLFVeR9D1Jyj6OUxUuIRhVFT5vp/HAIcNtLvkC65zkK+ABQxzMBnPINH4YZ0rUf7EfJ 2YCJvSDdT1aNO0YUspRLefiJffsYG04FrloojBYk0eDIYT6osNvtAf36AjF5KVGJLilp vvYi8noUA8YZYE4ZLJ8qJqVTrgpeCEEFt91jpmuO2ifY8gxYFlVOf+hN9vUQ6DInqMKf 5ohKqSEd++ZWaXj6p4tIKoriub1pzKPtWUoG+a0IGQ0pJMEPVbK2PzA2ntBP+sbA+Zbg +cwA== 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:dkim-signature; bh=/vC9SdQuLExbO6VFnXjLMY13gDF46QWEi7TNttl7ktE=; fh=9IKeGbLB2+Umlsh92HE1HapIc7cM04Mdpu/ur4gdgx8=; b=Z+WCVrNFhMinIME33u2VQc0QvlR8PvCj16kOMCSTNVHJgKPXXy0CMVXcOpfgKWts3B AQSAU36Zi1CSDM2p4GJLmM+pZxvN39YzAB9LA/gqA3lEf/hL5r8PRJ68OvspFY/VXvwH O5IPLmC8Jz7MiOrXDXf6HUw/E9hQovds+19A5m+mQ9xWMREWhSvFrrDi2Gk4xHV0i2AC WV6324K52JAtXnXVTyhydNQa+KL831pBA3L/ip8XApR/ul8ljgo3obOdPFqx+kdI5n6e FP/7/OsrJztYpGEeLIw7wTEL+Jdc1gQf41zvLxO5Hnawt+3iJOExv2bo+RG9zWnpFl3l iyYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D6gSDAtn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id n190-20020a6327c7000000b005637e28270fsi21252967pgn.243.2023.09.29.06.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 06:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D6gSDAtn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0827D80BB219; Fri, 29 Sep 2023 06:11:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233134AbjI2NKt (ORCPT + 99 others); Fri, 29 Sep 2023 09:10:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233125AbjI2NKs (ORCPT ); Fri, 29 Sep 2023 09:10:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2381B6; Fri, 29 Sep 2023 06:10:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F2F8C433C7; Fri, 29 Sep 2023 13:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695993043; bh=5Ol5wAReAsTCoXnxR80HvvP42Eru4mOmS+P6qbZsgiU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D6gSDAtnKEHECNEDsB6F3lZqPBFTgmdMExMCpOMwH34KXE5Zo8euVaVEa3LoxysTv t8roJKvnCVdEYwUL0x/blP6u5li6gS2RusB0aYvWArLwq7t4yQtxdf/qWRd9Lcnh9S qC5ffpyl4uFCbwBPfffvFa0+jidNj/axAQzPJmL9pRcWuEQ1A+awoQ1Q9uVtVyScGS iy/xsHcU8yoH8/eOrKNzJSnEFe/RSfmF4jgj7yfe5VKAMwPQCSONoYLhLKd8FEgYIo NKONdP7bPRj6UQUOJBtlBJR+iHxRy5F9yxvCHuptCVoi57k/Fx/AS+XOV1AqJ7p0Uv 79c3a+GYQv52g== Date: Fri, 29 Sep 2023 14:10:39 +0100 From: Conor Dooley To: Jisheng Zhang Cc: Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Ren , Fu Wei , linux-riscv@lists.infradead.org Subject: Re: [PATCH 1/2] dt-bindings: pwm: Add T-HEAD PWM controller Message-ID: <20230929-equipment-july-949cffaddc22@spud> References: <20230928170254.413-1-jszhang@kernel.org> <20230928170254.413-2-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G32AAMWduI7PPuPP" Content-Disposition: inline In-Reply-To: <20230928170254.413-2-jszhang@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 29 Sep 2023 06:11:14 -0700 (PDT) --G32AAMWduI7PPuPP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Fri, Sep 29, 2023 at 01:02:53AM +0800, Jisheng Zhang wrote: > T-HEAD SoCs such as the TH1520 contain a PWM controller used > among other things to control the LCD backlight, fan and so on. "such as", are there others? >=20 > Signed-off-by: Jisheng Zhang > --- > .../devicetree/bindings/pwm/pwm-thead.yaml | 44 +++++++++++++++++++ > 1 file changed, 44 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-thead.yaml >=20 > diff --git a/Documentation/devicetree/bindings/pwm/pwm-thead.yaml b/Docum= entation/devicetree/bindings/pwm/pwm-thead.yaml > new file mode 100644 > index 000000000000..8a7cf7129321 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/pwm-thead.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/pwm-thead.yaml# The filename etc should match the compatible, especially when afaict there's only one applicable SoC. Otherwise, this looks good to me. Thanks, Conor. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: T-HEAD PWM > + > +maintainers: > + - Jisheng Zhang > + > +allOf: > + - $ref: pwm.yaml# > + > +properties: > + compatible: > + enum: > + - thead,th1520-pwm > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + "#pwm-cells": > + const: 2 > + > +required: > + - compatible > + - reg > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + > + pwm@ec01c000 { > + compatible =3D "thead,th1520-pwm"; > + reg =3D <0xec01c000 0x1000>; > + clocks =3D <&clk 1>; > + #pwm-cells =3D <2>; > + }; > --=20 > 2.40.1 >=20 --G32AAMWduI7PPuPP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRbMzgAKCRB4tDGHoIJi 0jBTAP9bC/3fxKIett/RV53md9zbCAYSbpmA2h/aaFI/scbk7gD/Xgq9XvhDe+db C1sCsh1BJQxISaGvnocyMU6nso6HMQ0= =BboF -----END PGP SIGNATURE----- --G32AAMWduI7PPuPP--