Skip to contentSkip to conversation

dt-bindings: iio: adc: rockchip-saradc: Fix RV1106 compatible

PATCH In review Vladislav Leonov 4 participants 7 messages Aug 16 – Aug 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: iio: adc: rockchip-saradc: Fix RV1106 compatible

rockchip,rv1106-saradc was folded into the fallback enum together with rockchip,rk3576-saradc, falling back to rockchip,rk3588-saradc. The two IP blocks are not equivalent, though: per the RV1106 TRM v0.3, chapter 20 (SAR-ADC), RV1106 only has 2 channels at 10-bit resolution, versus 8 channels at 12-bit on RK3588. Documenting it as falling back to rk3588-saradc allows device trees that would bind against the wrong channel table and report an incorrect voltage scale.

Remove rockchip,rv1106-saradc from the RK3588 fallback enum and give it its own standalone compatible entry, matching the dedicated match table entry added by the driver patch.

Fixes bdba14f6122c ("dt-bindings: iio: adc: rockchip-saradc: Add RV1106 compatible")
---
 .../devicetree/bindings/iio/adc/rockchip-saradc.yaml         | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +2 -3
index f0551d665916..dc56855527b8 100644
@@ -22,9 +22,7 @@ properties:
       - const: rockchip,rk3562-saradc
       - const: rockchip,rk3588-saradc
       - items:
-          - enum:
-              - rockchip,rk3576-saradc
-              - rockchip,rv1106-saradc
+          - const: rockchip,rk3576-saradc
           - const: rockchip,rk3588-saradc
       - items:
           - enum:
@@ -35,6 +33,7 @@ properties:
               - rockchip,rv1108-saradc
               - rockchip,rv1126-saradc
           - const: rockchip,rk3399-saradc
+      - const: rockchip,rv1106-saradc
 
   reg:
     maxItems: 1
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Sun, 16 Aug 2026 14:36:36 +0300 Vladislav Leonov <[email protected]> wrote:

rockchip,rv1106-saradc was folded into the fallback enum together with rockchip,rk3576-saradc, falling back to rockchip,rk3588-saradc. The two IP blocks are not equivalent, though: per the RV1106 TRM v0.3, chapter 20 (SAR-ADC), RV1106 only has 2 channels at 10-bit resolution, versus 8 channels at 12-bit on RK3588. Documenting it as falling back to rk3588-saradc allows device trees that would bind against the wrong channel table and report an incorrect voltage scale.

Quoted 8 lines

Remove rockchip,rv1106-saradc from the RK3588 fallback enum and give it its own standalone compatible entry, matching the dedicated match table entry added by the driver patch.

Fixes bdba14f6122c ("dt-bindings: iio: adc: rockchip-saradc: Add RV1106 compatible")

---

Looking at the link provided, it seems that there should be a Suggested-by tag for Jonathan?

Otherwise LGTM

Signature · 2 lines
Kind regards,
Joshua Crofts
#2 lore raw

Hi Joshua,

Sorry, I forgot the Suggested-by tag. Should I send a v2, or can the tag be added when applying the patch?

Regards,
Vladislav

#3 lore raw
Quoted 6 lines · On Wed, 19 Aug 2026 10:59:21 +0300 Vladislav Leonov <[email protected]> wrote:

Hi Joshua,

Sorry, I forgot the Suggested-by tag. Should I send a v2, or can the tag be added when applying the patch?

Regards,
Vladislav

I think that Jonathan can just add it while applying. No need to send a v2 unless explicitly asked.

Signature · 2 lines
Kind regards,
Joshua Crofts
#4 lore raw
In reply to Vladislav Leonov
Quoted 35 lines · Vladislav Leonov

rockchip,rv1106-saradc was folded into the fallback enum together with rockchip,rk3576-saradc, falling back to rockchip,rk3588-saradc. The two IP blocks are not equivalent, though: per the RV1106 TRM v0.3, chapter 20 (SAR-ADC), RV1106 only has 2 channels at 10-bit resolution, versus 8 channels at 12-bit on RK3588. Documenting it as falling back to rk3588-saradc allows device trees that would bind against the wrong channel table and report an incorrect voltage scale.

Remove rockchip,rv1106-saradc from the RK3588 fallback enum and give it its own standalone compatible entry, matching the dedicated match table entry added by the driver patch.

Fixes bdba14f6122c ("dt-bindings: iio: adc: rockchip-saradc: Add RV1106 compatible")
---
 .../devicetree/bindings/iio/adc/rockchip-saradc.yaml         | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +1 -3
index f0551d665916..dc56855527b8 100644
@@ -22,9 +22,7 @@ properties:
       - const: rockchip,rk3562-saradc
       - const: rockchip,rk3588-saradc
       - items:
-          - enum:
-              - rockchip,rk3576-saradc
-              - rockchip,rv1106-saradc
+          - const: rockchip,rk3576-saradc
           - const: rockchip,rk3588-saradc
       - items:
           - enum:

Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml properties: · line 36

Quoted 4 lines
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +1 -0
@@ -35,6 +33,7 @@ properties:
               - rockchip,rv1108-saradc
               - rockchip,rv1126-saradc
           - const: rockchip,rk3399-saradc
+      - const: rockchip,rv1106-saradc

So this goes to an enum with all the other single-entries.

Anyway, where is a driver binding to above compatible (see DT submitting patches). git grep on a week old next gave me nothing.

Best regards,
Krzysztof

#5 lore raw
Quoted 43 lines · Krzysztof Kozlowski
Quoted 35 lines · Vladislav Leonov

rockchip,rv1106-saradc was folded into the fallback enum together with rockchip,rk3576-saradc, falling back to rockchip,rk3588-saradc. The two IP blocks are not equivalent, though: per the RV1106 TRM v0.3, chapter 20 (SAR-ADC), RV1106 only has 2 channels at 10-bit resolution, versus 8 channels at 12-bit on RK3588. Documenting it as falling back to rk3588-saradc allows device trees that would bind against the wrong channel table and report an incorrect voltage scale.

Remove rockchip,rv1106-saradc from the RK3588 fallback enum and give it its own standalone compatible entry, matching the dedicated match table entry added by the driver patch.

Fixes bdba14f6122c ("dt-bindings: iio: adc: rockchip-saradc: Add RV1106 compatible")
---
 .../devicetree/bindings/iio/adc/rockchip-saradc.yaml         | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +1 -3
index f0551d665916..dc56855527b8 100644
@@ -22,9 +22,7 @@ properties:
       - const: rockchip,rk3562-saradc
       - const: rockchip,rk3588-saradc
       - items:
-          - enum:
-              - rockchip,rk3576-saradc
-              - rockchip,rv1106-saradc
+          - const: rockchip,rk3576-saradc
           - const: rockchip,rk3588-saradc
       - items:
           - enum:

Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml properties: · line 36

Quoted 4 lines
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +1 -0
@@ -35,6 +33,7 @@ properties:
               - rockchip,rv1108-saradc
               - rockchip,rv1126-saradc
           - const: rockchip,rk3399-saradc
+      - const: rockchip,rv1106-saradc

So this goes to an enum with all the other single-entries.

Quoted 6 lines

Anyway, where is a driver binding to above compatible (see DT submitting patches). git grep on a week old next gave me nothing.

Best regards,
Krzysztof

Hi Krzysztof,

I will combine it into a single enum in v2.

The driver patch adding this compatible has been sent but is not merged yet:

Signature · 2 lines
Regards,
Vladislav
maintainer
#6 lore raw
Quoted 52 lines · On Fri, 21 Aug 2026 12:30:00 +0300 "Vladislav Leonov" <[email protected]> wrote:
Quoted 43 lines · Krzysztof Kozlowski
Quoted 35 lines · Vladislav Leonov

rockchip,rv1106-saradc was folded into the fallback enum together with rockchip,rk3576-saradc, falling back to rockchip,rk3588-saradc. The two IP blocks are not equivalent, though: per the RV1106 TRM v0.3, chapter 20 (SAR-ADC), RV1106 only has 2 channels at 10-bit resolution, versus 8 channels at 12-bit on RK3588. Documenting it as falling back to rk3588-saradc allows device trees that would bind against the wrong channel table and report an incorrect voltage scale.

Remove rockchip,rv1106-saradc from the RK3588 fallback enum and give it its own standalone compatible entry, matching the dedicated match table entry added by the driver patch.

Fixes bdba14f6122c ("dt-bindings: iio: adc: rockchip-saradc: Add RV1106 compatible")
---
 .../devicetree/bindings/iio/adc/rockchip-saradc.yaml         | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +1 -3
index f0551d665916..dc56855527b8 100644
@@ -22,9 +22,7 @@ properties:
       - const: rockchip,rk3562-saradc
       - const: rockchip,rk3588-saradc
       - items:
-          - enum:
-              - rockchip,rk3576-saradc
-              - rockchip,rv1106-saradc
+          - const: rockchip,rk3576-saradc
           - const: rockchip,rk3588-saradc
       - items:
           - enum:

Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml properties: · line 36

Quoted 4 lines
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml +1 -0
@@ -35,6 +33,7 @@ properties:
               - rockchip,rv1108-saradc
               - rockchip,rv1126-saradc
           - const: rockchip,rk3399-saradc
+      - const: rockchip,rv1106-saradc  

So this goes to an enum with all the other single-entries.

Quoted 6 lines

Anyway, where is a driver binding to above compatible (see DT submitting patches). git grep on a week old next gave me nothing.

Best regards,
Krzysztof

Quoted 7 lines

Hi Krzysztof,

I will combine it into a single enum in v2.

The driver patch adding this compatible has been sent but is not merged yet:

Please combine the 2 patches into a small series as a v2.

We aren't in a hurry at this point in the cycle and will make it easier for everyone to see what is going on.

Thanks

Jonathan