diff options
author | Clark Wang <xiaoning.wang@nxp.com> | 2018-11-28 17:46:52 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:35:33 +0800 |
commit | 64113623bf7ef58359a9db986e63fd2102e22435 (patch) | |
tree | 8eb655e0873bbaa6a950a842abe7e48c715824c6 /arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts | |
parent | c226de571e73424d672352c54fe7b6af44ac2258 (diff) |
MLK-20441-2 dts: lpspi: Add lpspi3 and its slave dts files for imx8qm
For lpspi test, add these two features, use lpspi3 without cs-gpio.
Still support spi-nor using lpspi0 with cs-gpio mode.
- fsl-imx8qm-device.dtsi:
Add node to support lpspi3.
- fsl-imx8qm-lpddr4-arm2-lpspi.dts:
Add lpspi3 support for imx8qm-lpddr4-arm2 board.
- fsl-imx8qm-lpddr4-arm2-lpspi-slave.dts:
Enable spi slave mode for lpspi3.
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts')
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts index d6d7d770eaee..844bdda456d4 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-lpspi.dts @@ -32,6 +32,15 @@ >; }; + pinctrl_lpspi3: lpspi3grp { + fsl,pins = < + SC_P_SPI3_SCK_DMA_SPI3_SCK 0x0600004c + SC_P_SPI3_SDO_DMA_SPI3_SDO 0x0600004c + SC_P_SPI3_SDI_DMA_SPI3_SDI 0x0600004c + SC_P_SPI3_CS0_DMA_SPI3_CS0 0x0600004c + >; + }; + }; }; @@ -48,7 +57,23 @@ #address-cells = <1>; #size-cells = <1>; compatible = "atmel,at45", "atmel,dataflash"; - spi-max-frequency = <500000>; + spi-max-frequency = <5000000>; reg = <0>; }; }; + +&lpspi3 { + #address-cells = <1>; + #size-cells = <0>; + fsl,spi-num-chipselects = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpspi3>; + status = "okay"; + + spidev0: spi@0 { + reg = <0>; + compatible = "rohm,dh2228fv"; + spi-max-frequency = <30000000>; + }; + +}; |