RE: [PATCH v1 1/2] bindings: iio: adc: Add StarFive JHB100 SARADC
From: Xingyu Wu
Date: Thu May 21 2026 - 04:55:38 EST
On 2026/5/20 19:55, Krzysztof Kozlowski wrote:
>
> On 18/05/2026 10:18, Xingyu Wu wrote:
> > Add the new documentation of SAR-ADC for the StarFive JHB100 SoC.
> >
> > Signed-off-by: Xingyu Wu <xingyu.wu@xxxxxxxxxxxxxxxx>
>
> Please use subject prefixes matching the subsystem. You can get them for example
> with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is
> touching. For bindings, the preferred subjects are explained here:
> https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-
> patches.html#i-for-patch-submitters
Noted.
>
> > ---
> > .../iio/adc/starfive,jhb100-saradc.yaml | 62 +++++++++++++++++++
> > 1 file changed, 62 insertions(+)
> > create mode 100644
> > Documentation/devicetree/bindings/iio/adc/starfive,jhb100-saradc.yaml
> >
> > diff --git
> > a/Documentation/devicetree/bindings/iio/adc/starfive,jhb100-saradc.yam
> > l
> > b/Documentation/devicetree/bindings/iio/adc/starfive,jhb100-saradc.yam
> > l
> > new file mode 100644
> > index 000000000000..ba8e19b72ad7
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/adc/starfive,jhb100-saradc
> > +++ .yaml
> > @@ -0,0 +1,62 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id:
> > +http://devicetree.org/schemas/iio/adc/starfive,jhb100-saradc.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Successive Approximation Register (SAR) A/D converter for the
> > +StarFive JHB100 SoC
> > +
> > +maintainers:
> > + - Xingyu Wu <xingyu.wu@xxxxxxxxxxxxxxxx>
> > +
> > +properties:
> > + compatible:
> > + const: starfive,jhb100-saradc
> > +
> > + reg:
> > + maxItem: 1
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + clocks:
> > + maxItems: 1
> > +
> > + resets:
> > + maxItems: 2
>
> Need to list items. See writing bindings.
Will fix.
>
> > +
> > + "#io-channel-cells":
> > + const: 1
> > +
> > + upper-bound-mv:
> > + description: The upper bound voltage value of the monitor.
>
> Please read writing bindings about proper naming.
Noted.
>
>
> > + $ref: /schemas/types.yaml#/definitions/uint16
> > +
> > + lower-bound-mv:
> > + description: The lower bound voltage value of the monitor.
> > + $ref: /schemas/types.yaml#/definitions/uint16
> > +
> > + scan-freq:
> > + description: Number of the scan cycle interval.
> > + $ref: /schemas/types.yaml#/definitions/uint16
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > + - clocks
> > + - resets
> > + - "#io-channel-cells"
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + adc@11be1400 {
> > + compatible = "starfive,jhb100-saradc";
> > + reg = <0x11be1400 0x400>;
> > + interrupts = <172>;
> > + clocks = <&per0crg 18>;
> > + resets = <&per0crg 11>, <&per0crg 46>;
> > + #io-channel-cells = <1>;
> > + };
>
> Messed indentation.
Will fix.
Best regards,
Xingyu Wu