Browse Source

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 <hebad@vestas.com>
pull/64915/head
Henrik Brix Andersen 2 years ago committed by Carles Cufí
parent
commit
1ebaa293a1
  1. 2
      boards/shields/lmp90100_evb/lmp90100_evb.overlay
  2. 5
      dts/bindings/adc/ti,lmp90xxx-base.yaml
  3. 16
      tests/drivers/build_all/adc/boards/native_sim.overlay

2
boards/shields/lmp90100_evb/lmp90100_evb.overlay

@ -13,7 +13,7 @@ @@ -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";

5
dts/bindings/adc/ti,lmp90xxx-base.yaml

@ -10,8 +10,7 @@ properties: @@ -10,8 +10,7 @@ properties:
description: Data Ready Bar
"#io-channel-cells":
const: 2
const: 1
io-channel-cells:
- positive
- negative
- input

16
tests/drivers/build_all/adc/boards/native_sim.overlay

@ -140,7 +140,7 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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 {

Loading…
Cancel
Save