The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@kernel.org>
To: Changhuang Liang <changhuang.liang@starfivetech.com>
Cc: Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-pwm@vger.kernel.org,  linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, Hal Feng <hal.feng@starfivetech.com>
Subject: Re: [PATCH v1 1/2] dt-bindings: pwm: opencores: Add starfive,jhb100-pwm
Date: Mon, 30 Nov 2026 11:42:39 +0100	[thread overview]
Message-ID: <aw1RZa1FClc26M3j@monoceros> (raw)
In-Reply-To: <20261019110855.52420-2-changhuang.liang@starfivetech.com>

[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]

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@starfivetech.com>
> ---
>  .../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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2026-11-30 10:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 11:08 [PATCH v1 0/2] Add PWM support for JHB100 SoC Changhuang Liang
2026-10-19 11:08 ` [PATCH v1 1/2] dt-bindings: pwm: opencores: Add starfive,jhb100-pwm Changhuang Liang
2026-10-22  9:54   ` Krzysztof Kozlowski
2026-11-30 10:42   ` Uwe Kleine-König [this message]
2026-11-30 10:52     ` Uwe Kleine-König
2026-10-19 11:08 ` [PATCH v1 2/2] pwm: ocores: Add support for StarFive JHB100 PWM polarity Changhuang Liang
2026-11-30 10:58   ` Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw1RZa1FClc26M3j@monoceros \
    --to=ukleinek@kernel.org \
    --cc=changhuang.liang@starfivetech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hal.feng@starfivetech.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox