Re: [PATCH v1 1/2] dt-bindings: pwm: opencores: Add starfive,jhb100-pwm

From: Uwe Kleine-König

Date: Mon Nov 30 2026 - 05:42:44 EST


On Mon, Oct 19, 2026 at 04:08:54AM -0700, Changhuang Liang wrote:
> Add a new compatible string "starfive,jhb100-pwm" for the PWM
> controller found on the StarFive JHB100 SoC.
>
> The StarFive JHB100 PWM is based on the OpenCores PWM v1 controller
> but with a modification: the polarity has been changed from inverted
> to normal. The generic opencores,pwm-v1 hardware only supports
> inverted polarity, so the JHB100 variant cannot reuse the
> "opencores,pwm-v1" fallback and must be described with a standalone
> compatible string.
>
> Signed-off-by: Changhuang Liang <changhuang.liang@xxxxxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/pwm/opencores,pwm.yaml | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml b/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml
> index b15468f97b59..a7798310d350 100644

I tried to `git am` this patch series, but it fails to apply and git
wails:

error: sha1 information is lacking or useless (Documentation/devicetree/bindings/pwm/opencores,pwm.yaml).

Indeed I don't have b15468f97b59 in my linux.git.

Please use a known tree as base for your changes and ideally use the
--base option for format-patch to document that.

> --- a/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml
> +++ b/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml
> @@ -19,11 +19,13 @@ allOf:
>
> properties:
> compatible:
> - items:
> - - enum:
> - - starfive,jh7100-pwm
> - - starfive,jh7110-pwm
> - - const: opencores,pwm-v1
> + oneOf:
> + - items:
> + - enum:
> + - starfive,jh7100-pwm
> + - starfive,jh7110-pwm
> + - const: opencores,pwm-v1
> + - const: starfive,jhb100-pwm

The starfive,jhb100-pwm variant isn't v2 as it is a modification that
Starfive implemented for that SoC only and opencores isn't involved,
right?

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature