From 1ebaa293a12d9dde715e6610c0dd341a824aae2c Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Sun, 7 Jan 2024 19:31:03 +0100 Subject: [PATCH] dts: bindings: adc: ti: lmp90xxx: use common io-channel-cells naming Use the common io-channel-cells name "input" instead of "positive" and "negative" to make this binding work with the various ADC DT macros. Signed-off-by: Henrik Brix Andersen --- boards/shields/lmp90100_evb/lmp90100_evb.overlay | 2 +- dts/bindings/adc/ti,lmp90xxx-base.yaml | 5 ++--- .../build_all/adc/boards/native_sim.overlay | 16 ++++++++-------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/boards/shields/lmp90100_evb/lmp90100_evb.overlay b/boards/shields/lmp90100_evb/lmp90100_evb.overlay index 600eefdb127..5b17aa9ff91 100644 --- a/boards/shields/lmp90100_evb/lmp90100_evb.overlay +++ b/boards/shields/lmp90100_evb/lmp90100_evb.overlay @@ -13,7 +13,7 @@ spi-max-frequency = <1000000>; /* Uncomment to use IRQ instead of polling: */ /* drdyb-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; */ - #io-channel-cells = <2>; + #io-channel-cells = <1>; lmp90100_gpio: gpio { compatible = "ti,lmp90xxx-gpio"; diff --git a/dts/bindings/adc/ti,lmp90xxx-base.yaml b/dts/bindings/adc/ti,lmp90xxx-base.yaml index 4225c9b0cc3..8c0bb066b80 100644 --- a/dts/bindings/adc/ti,lmp90xxx-base.yaml +++ b/dts/bindings/adc/ti,lmp90xxx-base.yaml @@ -10,8 +10,7 @@ properties: description: Data Ready Bar "#io-channel-cells": - const: 2 + const: 1 io-channel-cells: - - positive - - negative + - input diff --git a/tests/drivers/build_all/adc/boards/native_sim.overlay b/tests/drivers/build_all/adc/boards/native_sim.overlay index 120e05dcfb0..cc7ac9a45e2 100644 --- a/tests/drivers/build_all/adc/boards/native_sim.overlay +++ b/tests/drivers/build_all/adc/boards/native_sim.overlay @@ -140,7 +140,7 @@ reg = <0x1>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90078: lmp90078@2 { @@ -148,7 +148,7 @@ reg = <0x2>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90079: lmp90079@3 { @@ -156,7 +156,7 @@ reg = <0x3>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90080: lmp90080@4 { @@ -164,7 +164,7 @@ reg = <0x4>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90097: lmp90097@5 { @@ -172,7 +172,7 @@ reg = <0x5>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90098: lmp90098@6 { @@ -180,7 +180,7 @@ reg = <0x6>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90099: lmp90099@7 { @@ -188,7 +188,7 @@ reg = <0x7>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_lmp90100: lmp90100@8 { @@ -196,7 +196,7 @@ reg = <0x8>; spi-max-frequency = <0>; drdyb-gpios = <&test_gpio 0 0>; - #io-channel-cells = <2>; + #io-channel-cells = <1>; }; test_spi_ads7052: ads7052@9 {