From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 176863F6C4D; Fri, 10 Jul 2026 10:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783679500; cv=none; b=Iq7/kHKb9kRqfwZ60xxGY7nDzDEQMkuaDEoWrCyVPOk1ujc3792Rxf6kXpMTb+9Y4byLGz9icWK+s1P/+nBWH+BainE8E9reXu4WZcFyV7mVajenVDvmoYDTQhui0A24a7koGQJpBb2b8cZ1oYXV4DjBlfOsA3qu29h3lZ+dNUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783679500; c=relaxed/simple; bh=LqoiRnStXFd6VuaQ2xJ0qTmfqtOIEJ06j648rHWrXyY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fxgyf5rM2UHECwwGR4bfTq0Bq9/1Zy6xHE3jEZYRLRK3b/Xt/IWf3ysEIpt1+LOzRGcfjNVk5Lm1Gk7kEeKDbMSkrrZdD40TPJfqI9r7fd2rqVGSwzfZTD8BD358uth48wC/ZGAdTnLmFZD6AXSmvGMI3yyYAG15L2CVQg9jTm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XrlteZyI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XrlteZyI" Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 305191F000E9; Fri, 10 Jul 2026 10:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783679498; bh=B/0P6CjkFCqMXZpshxscC8fggHEtFDHkHgmueIFeARI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=XrlteZyITiTdyCYT+QTMlv7oyxY4ow9O28q/YRWuSlvBnyi7poznDF/ThmSDZxxPB w7veUv+18dltW9ecVdH1DQr9bE11YUPBPax5UthbczOYmgPmKccMut/QTjUQW7QTDK oR0vbTQ3gtR2Sy4a/foGnQ+nHBkLHBYF5y6vF1wylkAEvRTd8ylBdhYjqRJf5clxM6 /ONYaZLt60BANJFnZ3KojsppG1VDEgJZm52ITUsC0PLcRxtB/T5/8KvzUgcd5HsQWS Xd7MiWxZcvUluTvvQX5tKQTf72vMRMDUywzXzF38BUVRZ4LH2OH68tpVk6MNiznIIT BHkOg3CcE8Hvg== Date: Fri, 10 Jul 2026 12:31:35 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Nicolas Frattaroli , Heiko Stuebner , Lee Jones , William Breathitt Gray , Damon Ding , kernel@collabora.com, Jonas Karlman , Alexey Charkov , linux-rockchip@lists.infradead.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Conor Dooley Subject: Re: [PATCH v5 1/6] dt-bindings: pwm: Add a new binding for rockchip,rk3576-pwm Message-ID: References: <20260420-rk3576-pwm-v5-0-ae7cfbbe5427@collabora.com> <20260420-rk3576-pwm-v5-1-ae7cfbbe5427@collabora.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mnh6xjyjg3d65ymy" Content-Disposition: inline In-Reply-To: <20260420-rk3576-pwm-v5-1-ae7cfbbe5427@collabora.com> --mnh6xjyjg3d65ymy Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v5 1/6] dt-bindings: pwm: Add a new binding for rockchip,rk3576-pwm MIME-Version: 1.0 Hello, On Mon, Apr 20, 2026 at 03:52:38PM +0200, Nicolas Frattaroli wrote: > The Rockchip RK3576 SoC has a newer PWM controller IP revision than > previous Rockchip SoCs. This IP, called "PWMv4" by Rockchip, introduces > several new features, and consequently differs in its bindings. >=20 > Instead of expanding the ever-growing rockchip-pwm binding that already > has an if-condition, add an entirely new binding to handle this. >=20 > There are two additional clocks, "osc" and "rc". These are available for > every PWM instance, and the PWM hardware can switch between the "pwm", > "osc" and "rc" clock at runtime. >=20 > The PWM controller also comes with an interrupt now. This interrupt is > used to signal various conditions. >=20 > Reviewed-by: Conor Dooley > Reviewed-by: Rob Herring (Arm) > Signed-off-by: Nicolas Frattaroli > --- > .../bindings/pwm/rockchip,rk3576-pwm.yaml | 77 ++++++++++++++++= ++++++ > MAINTAINERS | 7 ++ > 2 files changed, 84 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/pwm/rockchip,rk3576-pwm.ya= ml b/Documentation/devicetree/bindings/pwm/rockchip,rk3576-pwm.yaml > new file mode 100644 > index 000000000000..48d5055c8b06 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/rockchip,rk3576-pwm.yaml > @@ -0,0 +1,77 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/rockchip,rk3576-pwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Rockchip PWMv4 controller > + > +maintainers: > + - Nicolas Frattaroli > + > +description: | > + The Rockchip PWMv4 controller is a PWM controller found on several Roc= kchip > + SoCs, such as the RK3576. > + > + It supports both generating and capturing PWM signals. > + > +allOf: > + - $ref: pwm.yaml# > + > +properties: > + compatible: > + items: > + - const: rockchip,rk3576-pwm > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Used to derive the PWM signal. > + - description: Used as the APB bus clock. > + - description: Used as an alternative to derive the PWM signal. > + - description: Used as another alternative to derive the PWM signa= l. > + > + clock-names: > + items: > + - const: pwm > + - const: pclk > + - const: osc > + - const: rc > + > + interrupts: > + maxItems: 1 > + > + "#pwm-cells": > + const: 3 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts pwm.yaml has: required: - "#pwm-cells" Still Sashiko[1] claims: The binding defines #pwm-cells under properties, but omitting it from the required list allows device tree nodes missing the property to pass schema validation. I played a bit around with dt-validate and I think Sashiko is wrong here and pwm.yaml's requirement isn't overridden by the local required list. So this patch should be fine. Best regards Uwe [1] https://sashiko.dev/#/patchset/20260420-rk3576-pwm-v5-0-ae7cfbbe5427%40= collabora.com --mnh6xjyjg3d65ymy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpQygUACgkQj4D7WH0S /k530Qf/Yrgd15Oua0wX8H9DeijzIE3bpRLuqNvVEsc2me0Ww9zPov4iHylUuu1a RubtMDQyyXRuiGSqbcmeNV8lWGFbd/moOm1pw/KXnkvtIuBd2S3tIlTC2qCKRwpF MVE2yBKSN1h4IAZ88/ei1M2RCCTX6WQ13Tp3cvt1MEx9+y06qLmjgkrBixr/mPMq JZYYzZh//1spbCmc6clKnfshjrRB1iDOQiS1VeTZgCv/bcNgYxIRDov/BJZzLnRZ GYYcl6tFqfbJ8UA7sn7s9I6q6/1ZlHwjK7e7/DWPeyPgD7ncpJHr7a91ajTCtZmC lnC4jZZBJcY1/1UCHZTUCTXDhQRwhQ== =FvaV -----END PGP SIGNATURE----- --mnh6xjyjg3d65ymy--