diff options
author | Aishwarya Kothari <aishwarya.kothari@toradex.com> | 2022-09-01 13:46:14 +0200 |
---|---|---|
committer | Aishwarya Kothari <aishwarya.kothari@toradex.com> | 2022-09-07 10:27:37 +0200 |
commit | 12a2ff3497dc679ac2a60ffab14d7d8c180e0f51 (patch) | |
tree | 7b85c63e0146fe8a0b7460c54434b6ca1652fed6 /overlays/colibri-imx6ull_spidev_overlay.dts | |
parent | 4d391402e393bbdd22e0989fc966502358514794 (diff) |
colibri-imx6ull: add spidev overlay
This overlay enables spidev driver on the colibri iMX6ULL spi interface.
Related-to: ELB-4689
Signed-off-by: Aishwarya Kothari <aishwarya.kothari@toradex.com>
Diffstat (limited to 'overlays/colibri-imx6ull_spidev_overlay.dts')
-rw-r--r-- | overlays/colibri-imx6ull_spidev_overlay.dts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/overlays/colibri-imx6ull_spidev_overlay.dts b/overlays/colibri-imx6ull_spidev_overlay.dts new file mode 100644 index 0000000..362ce22 --- /dev/null +++ b/overlays/colibri-imx6ull_spidev_overlay.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Colibri imx6ull spidev + +#include <dt-bindings/gpio/gpio.h> + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri-imx6ull", + "toradex,colibri-imx6ull-emmc"; +}; + +/* Colibri SPI */ +&ecspi1 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + spidev@0 { + /* Use compatible "rohm,dh2228fv" to bind spidev driver */ + compatible = "rohm,dh2228fv"; + reg = <0>; + spi-max-frequency = <10000000>; + }; +}; |