[PATCH v2 1/2] dt-bindings: iio: adc: Add support for MT7981
David Lechner
dlechner at baylibre.com
Wed Jul 2 15:01:07 PDT 2025
On 7/2/25 4:48 PM, Aleksander Jan Bajkowski wrote:
> The temperature sensor in the MT7981 is same as in the MT7986.
> Add compatible string for mt7981.
>
> Signed-off-by: Aleksander Jan Bajkowski <olek2 at wp.pl>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
> ---
> .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml
> index b489c984c1bb..ceb914dde15b 100644
> --- a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml
> @@ -26,6 +26,7 @@ properties:
> - mediatek,mt2712-auxadc
> - mediatek,mt6765-auxadc
> - mediatek,mt7622-auxadc
> + - mediatek,mt7981-auxadc
> - mediatek,mt7986-auxadc
> - mediatek,mt8173-auxadc
> - items:
The new compatible with fallback should look like this:
diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml
index b489c984c1bb..14363389f30a 100644
--- a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml
@@ -32,6 +32,10 @@ properties:
- enum:
- mediatek,mt7623-auxadc
- const: mediatek,mt2701-auxadc
+ - items:
+ - enum:
+ - mediatek,mt7981-auxadc
+ - const: mediatek,mt7986-auxadc
- items:
- enum:
- mediatek,mt6893-auxadc
---
Then you can validate that the next patch matches the bindings with
`make CHECK_DTBS=1`. I would expect it to fail currently since the
binding is specifying a compatible without a fallback but the .dts
uses a fallback.
More information about the linux-arm-kernel
mailing list