All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Weihong Guan" <weihong.guan@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: nvmem: rockchip,otp: Add RV1106
Date: Thu, 03 Dec 2026 12:48:18 +0000	[thread overview]
Message-ID: <sashiko-outbox-247782@kernel.org> (raw)
In-Reply-To: <20261203122416.682071-2-weihong.guan@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: nvmem: rockchip,rv1106-otp requires absent phy
  clock and reset
--

commit f0e228867b478683405ba8909839fc2a663be34d
Author: Weihong Guan <weihong.guan@gmail.com>

dt-bindings: nvmem: rockchip,otp: Add RV1106

This commit adds the rockchip,rv1106-otp compatible to the Rockchip OTP
binding and raises the maximum clock and reset counts to six.

> diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
> index 7e4d5e1c4cedc..0db99a3651c34 100644
> --- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml

[ ... ]

> @@ -174,6 +175,35 @@ allOf:
>              - const: apb
>              - const: arb
>  
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - rockchip,rv1106-otp
> +    then:
> +      properties:
> +        clocks:
> +          minItems: 6
> +        clock-names:
> +          items:
> +            - const: otp
> +            - const: apb_pclk
> +            - const: phy
> +            - const: sbpi
> +            - const: arb
> +            - const: pmc
> +        resets:
> +          minItems: 6
> +        reset-names:
> +          items:
> +            - const: otp
> +            - const: apb
> +            - const: phy
> +            - const: sbpi
> +            - const: arb
> +            - const: pmc

[Severity: Medium]
Does rockchip,rv1106-otp actually have a phy clock and reset?

Neither include/dt-bindings/clock/rockchip,rv1106-cru.h nor
drivers/clk/rockchip/clk-rv1106.c defines an OTP PHY clock.  Like RK3528,
which omits phy in this binding, RV1106 defines PCLK_OTP_MASK instead of
an OTP PHY clock alongside its arbiter, APB, SBPI, user, and PMC clocks.

Requiring a mandatory phy entry prevents an RV1106 or RV1103 DTS from
satisfying the schema with a valid OTP PHY clock ID, or forces it to
mislabel an unrelated clock such as PCLK_OTP_MASK as phy.

If RV1106 has no OTP PHY clock, phy should be dropped (or PCLK_OTP_MASK
named explicitly if needed); otherwise the missing clock should be added
to the RV1106 CRU binding and driver first.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203122416.682071-1-weihong.guan@gmail.com?part=1

  reply	other threads:[~2026-12-03 12:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 12:24 [PATCH 0/2] nvmem: rockchip-otp: Add support for the RV1106 Weihong Guan
2026-12-03 12:24 ` Weihong Guan
2026-12-03 12:24 ` [PATCH 1/2] dt-bindings: nvmem: rockchip,otp: Add RV1106 Weihong Guan
2026-12-03 12:24   ` Weihong Guan
2026-12-03 12:48   ` sashiko-bot [this message]
2026-12-03 12:24 ` [PATCH 2/2] nvmem: rockchip-otp: Add support for RV1106 Weihong Guan
2026-12-03 12:24   ` Weihong Guan
2026-12-03 13:06   ` sashiko-bot

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=sashiko-outbox-247782@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=weihong.guan@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.