[v2,1/2] dt-bindings: iio: adc: rtq6056: add support for the whole RTQ6056 family
Commit Message
From: ChiYuan Huang <cy_huang@richtek.com>
Add compatible support for RTQ6053 and RTQ6059.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
v2
- Refine the 'compatible' description with oneOf and listed items.
---
.../devicetree/bindings/iio/adc/richtek,rtq6056.yaml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Comments
On 28/12/2023 12:29, cy_huang@richtek.com wrote:
> From: ChiYuan Huang <cy_huang@richtek.com>
>
> Add compatible support for RTQ6053 and RTQ6059.
>
> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
@@ -25,7 +25,14 @@ description: |
properties:
compatible:
- const: richtek,rtq6056
+ oneOf:
+ - enum:
+ - richtek,rtq6056
+ - richtek,rtq6059
+ - items:
+ - enum:
+ - richtek,rtq6053
+ - const: richtek,rtq6056
reg:
maxItems: 1