2018-04-26 02:00:14

by Rob Herring (Arm)

[permalink] [raw]
Subject: [PATCH] dt-bindings: staging: remove a couple of ADC bindings

Remove LPC32xx and SPEAr ADC bindings in staging. They have not been
touched since 2012.

Cc: Roland Stigge <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Viresh Kumar <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
---
Move these out of staging please or they are going to be removed.

.../bindings/staging/iio/adc/lpc32xx-adc.txt | 16 -------------
.../bindings/staging/iio/adc/spear-adc.txt | 26 ----------------------
2 files changed, 42 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt
delete mode 100644 Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt

diff --git a/Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt b/Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt
deleted file mode 100644
index b3629d3a9adf..000000000000
--- a/Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-* NXP LPC32xx SoC ADC controller
-
-Required properties:
-- compatible: must be "nxp,lpc3220-adc"
-- reg: physical base address of the controller and length of memory mapped
- region.
-- interrupts: The ADC interrupt
-
-Example:
-
- adc@40048000 {
- compatible = "nxp,lpc3220-adc";
- reg = <0x40048000 0x1000>;
- interrupt-parent = <&mic>;
- interrupts = <39 0>;
- };
diff --git a/Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt b/Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt
deleted file mode 100644
index 02ea23a63f20..000000000000
--- a/Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-* ST SPEAr ADC device driver
-
-Required properties:
-- compatible: Should be "st,spear600-adc"
-- reg: Address and length of the register set for the device
-- interrupt-parent: Should be the phandle for the interrupt controller
- that services interrupts for this device
-- interrupts: Should contain the ADC interrupt
-- sampling-frequency: Default sampling frequency
-
-Optional properties:
-- vref-external: External voltage reference in milli-volts. If omitted
- the internal voltage reference will be used.
-- average-samples: Number of samples to generate an average value. If
- omitted, single data conversion will be used.
-
-Examples:
-
- adc: adc@d8200000 {
- compatible = "st,spear600-adc";
- reg = <0xd8200000 0x1000>;
- interrupt-parent = <&vic1>;
- interrupts = <6>;
- sampling-frequency = <5000000>;
- vref-external = <2500>; /* 2.5V VRef */
- };
--
2.14.1



2018-04-26 05:34:35

by Viresh Kumar

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: staging: remove a couple of ADC bindings

@Thomas: Do you guys use this ?

On 25-04-18, 20:57, Rob Herring wrote:
> Remove LPC32xx and SPEAr ADC bindings in staging. They have not been
> touched since 2012.
>
> Cc: Roland Stigge <[email protected]>
> Cc: Stefan Roese <[email protected]>
> Cc: Jonathan Cameron <[email protected]>
> Cc: Viresh Kumar <[email protected]>
> Signed-off-by: Rob Herring <[email protected]>
> ---
> Move these out of staging please or they are going to be removed.
>
> .../bindings/staging/iio/adc/lpc32xx-adc.txt | 16 -------------
> .../bindings/staging/iio/adc/spear-adc.txt | 26 ----------------------
> 2 files changed, 42 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt
> delete mode 100644 Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt
>
> diff --git a/Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt b/Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt
> deleted file mode 100644
> index b3629d3a9adf..000000000000
> --- a/Documentation/devicetree/bindings/staging/iio/adc/lpc32xx-adc.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -* NXP LPC32xx SoC ADC controller
> -
> -Required properties:
> -- compatible: must be "nxp,lpc3220-adc"
> -- reg: physical base address of the controller and length of memory mapped
> - region.
> -- interrupts: The ADC interrupt
> -
> -Example:
> -
> - adc@40048000 {
> - compatible = "nxp,lpc3220-adc";
> - reg = <0x40048000 0x1000>;
> - interrupt-parent = <&mic>;
> - interrupts = <39 0>;
> - };
> diff --git a/Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt b/Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt
> deleted file mode 100644
> index 02ea23a63f20..000000000000
> --- a/Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -* ST SPEAr ADC device driver
> -
> -Required properties:
> -- compatible: Should be "st,spear600-adc"
> -- reg: Address and length of the register set for the device
> -- interrupt-parent: Should be the phandle for the interrupt controller
> - that services interrupts for this device
> -- interrupts: Should contain the ADC interrupt
> -- sampling-frequency: Default sampling frequency
> -
> -Optional properties:
> -- vref-external: External voltage reference in milli-volts. If omitted
> - the internal voltage reference will be used.
> -- average-samples: Number of samples to generate an average value. If
> - omitted, single data conversion will be used.
> -
> -Examples:
> -
> - adc: adc@d8200000 {
> - compatible = "st,spear600-adc";
> - reg = <0xd8200000 0x1000>;
> - interrupt-parent = <&vic1>;
> - interrupts = <6>;
> - sampling-frequency = <5000000>;
> - vref-external = <2500>; /* 2.5V VRef */
> - };
> --
> 2.14.1

--
viresh

2018-04-26 19:44:06

by Thomas Petazzoni

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: staging: remove a couple of ADC bindings

Hello,

On Thu, 26 Apr 2018 11:02:55 +0530, Viresh Kumar wrote:
> @Thomas: Do you guys use this ?
>
> On 25-04-18, 20:57, Rob Herring wrote:
> > Remove LPC32xx and SPEAr ADC bindings in staging. They have not been
> > touched since 2012.
> >
> > Cc: Roland Stigge <[email protected]>
> > Cc: Stefan Roese <[email protected]>
> > Cc: Jonathan Cameron <[email protected]>
> > Cc: Viresh Kumar <[email protected]>
> > Signed-off-by: Rob Herring <[email protected]>
> > ---
> > Move these out of staging please or they are going to be removed.
> >
> > .../bindings/staging/iio/adc/lpc32xx-adc.txt | 16 -------------
> > .../bindings/staging/iio/adc/spear-adc.txt | 26 ----------------------
> > 2 files changed, 42 deletions(-)

We are using the spear-adc driver, which is out of staging
in ./drivers/iio/adc/spear_adc.c. So rather than removing its DT binding
entirely, it should be moved out of staging.

I'm not using the LPC32xx ADC, but the IIO driver is also out of
staging, so for the same reason, it would be strange to remove the DT
binding.

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

2018-04-27 02:15:41

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: staging: remove a couple of ADC bindings

On Thu, Apr 26, 2018 at 2:42 PM, Thomas Petazzoni
<[email protected]> wrote:
> Hello,
>
> On Thu, 26 Apr 2018 11:02:55 +0530, Viresh Kumar wrote:
>> @Thomas: Do you guys use this ?
>>
>> On 25-04-18, 20:57, Rob Herring wrote:
>> > Remove LPC32xx and SPEAr ADC bindings in staging. They have not been
>> > touched since 2012.
>> >
>> > Cc: Roland Stigge <[email protected]>
>> > Cc: Stefan Roese <[email protected]>
>> > Cc: Jonathan Cameron <[email protected]>
>> > Cc: Viresh Kumar <[email protected]>
>> > Signed-off-by: Rob Herring <[email protected]>
>> > ---
>> > Move these out of staging please or they are going to be removed.
>> >
>> > .../bindings/staging/iio/adc/lpc32xx-adc.txt | 16 -------------
>> > .../bindings/staging/iio/adc/spear-adc.txt | 26 ----------------------
>> > 2 files changed, 42 deletions(-)
>
> We are using the spear-adc driver, which is out of staging
> in ./drivers/iio/adc/spear_adc.c. So rather than removing its DT binding
> entirely, it should be moved out of staging.

Except I have comments on the spear binding and it's fair game to
change it being in staging, right?

Rob

2018-04-30 09:24:31

by Thomas Petazzoni

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: staging: remove a couple of ADC bindings

Hello,

On Thu, 26 Apr 2018 21:13:17 -0500, Rob Herring wrote:

> >> > .../bindings/staging/iio/adc/lpc32xx-adc.txt | 16 -------------
> >> > .../bindings/staging/iio/adc/spear-adc.txt | 26 ----------------------
> >> > 2 files changed, 42 deletions(-)
> >
> > We are using the spear-adc driver, which is out of staging
> > in ./drivers/iio/adc/spear_adc.c. So rather than removing its DT binding
> > entirely, it should be moved out of staging.
>
> Except I have comments on the spear binding and it's fair game to
> change it being in staging, right?

Sure, I don't care about binding changes. We ship the DT together with
the kernel on those SPEAr600 devices, so the DT backward compatibility
is totally useless for us, which allows to freely change the bindings.

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com