[PATCH 2/2] ARM: dts: TS-7970: add basic device tree
Fabio Estevam
festevam at gmail.com
Mon Nov 20 15:37:04 PST 2017
Hi Sebastien,
On Mon, Nov 20, 2017 at 7:15 PM, Sebastien Bourdelin
<sebastien.bourdelin at savoirfairelinux.com> wrote:
> +&ecspi2 {
> + cs-gpios = <
> + &gpio5 31 GPIO_ACTIVE_HIGH
> + &gpio7 12 GPIO_ACTIVE_HIGH
> + &gpio5 18 GPIO_ACTIVE_HIGH
> + >;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_ecspi2>;
> + status = "okay";
> +
> + spidevfpga: spi at 1 {
> + compatible = "spidev";
> + reg = <1>;
> + spi-max-frequency = <1000000>;
According to drivers/spi/spidev.c:
/*
* spidev should never be referenced in DT without a specific
* compatible string, it is a Linux implementation thing
* rather than a description of the hardware.
*/
More information about the linux-arm-kernel
mailing list