Re: [PATCH 5/7] add bindings for stm32 IIO timer drivers

From: Lars-Peter Clausen
Date: Tue Nov 22 2016 - 11:53:32 EST


On 11/22/2016 05:13 PM, Benjamin Gaignard wrote:
> Define bindings for stm32 IIO timer
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@xxxxxx>
> ---
> .../bindings/iio/timer/stm32-iio-timer.txt | 33 ++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt
>
> diff --git a/Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt b/Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt
> new file mode 100644
> index 0000000..b80025e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt
> @@ -0,0 +1,33 @@
> +timer IIO trigger bindings for STM32
> +
> +Must be a child of STM32 multifunctions timer driver
> +
> +Required parameters:
> +- compatible: must be one of the follow value:
> + "st,stm32-iio-timer1"
> + "st,stm32-iio-timer2"
> + "st,stm32-iio-timer3"
> + "st,stm32-iio-timer4"
> + "st,stm32-iio-timer5"
> + "st,stm32-iio-timer6"
> + "st,stm32-iio-timer7"
> + "st,stm32-iio-timer8"
> + "st,stm32-iio-timer9"
> + "st,stm32-iio-timer10"
> + "st,stm32-iio-timer11"
> + "st,stm32-iio-timer12"
> + "st,stm32-iio-timer13"
> + "st,stm32-iio-timer14"

We can't do this. This is a binding for a driver, not for the hardware.