Re: [PATCH] spi: xilinx: Add DT binding documentation for spi/spi-xilinx.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Oct 10, 2013 at 04:24:38PM +0100, Jens Renner wrote:
> Add device tree binding documentation for the driver in spi/spi-xilinx.c.
> 
> Signed-off-by: Jens Renner <renner@xxxxxxxxxxx>
> ---
> diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.txt b/Documentation/devicetree/bindings/spi/spi-xilinx.txt
> new file mode 100644
> index 0000000..768a1ea
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/spi-xilinx.txt
> @@ -0,0 +1,32 @@
> +Xilinx SPI controller:
> +
> +Required properties:
> +- compatible : Must be "xlnx,axi-1.02.a" or "xlnx,xps-spi-2.00.a"

s/Must be/Should contain/

> +- interrupt-parent : reference to parent interrupt controller

Is this required in all situations? I don't think it is...

> +- interrupts : SPI controller interrupt

Is there a single interrupt:

- interrupts: interrupt-specifier for the SPI controller interrupt.

> +- reg : SPI register location and length

There's a single register? The example looks a bit bigger than that:

- reg: offset and length of the SPI registers.

> +
> +Optional properties:
> +- xlnx,num-ss-bits : # of slave select bits

- xlnx,num-ss-bits: a single u32 cell describing the number of slave
                    select bits.

> +- xlnx,num-transfer_bits : # of data transfer bits (defaults to 8)

Bindings should use '-' rather than '_' in property names, and I don't
see this being used by the driver in mainline. Please fix this:

xlnx,num-transfer-bits: a single u32 cell describing the number of data
                        transfer bits, if not 8.

Why is this needed? I am not familiar with SPI.

> +- xlnx,... : not considered by kernel module

Huh? kernel details shouldn't leak into the dt binding description, but
I can't even tell what this is supposed to mean...

> +		xlnx,family = "spartan6";
> +		xlnx,fifo-exist = <0x1>;
> +		xlnx,instance = "axi_spi_0";

These were not defined. Why are they here?

> +		xlnx,sck-ratio = <0x4>;

This too. Huh?

Thanks,
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux