Add Freescale DSPI driver for Vybrid VF610 platform
v4 cover Add Freescale DSPI driver for Vybrid VF610 platform
This driver is the SPI master mode driver and has been tested on Vybrid VF610TWR board.
Changes in v2:
- Add a document for DSPI driver under Documentation/devicetree/bindings/spi/.
- Move spi-num-chipselects info dtsi nodes.
Changes in v3:
- Remove two dts properties(dbr,pbr) from documentation bindings, they will be calculated in code.
- Update driver code in bitbang framework.
- Brief some functions in driver code.
Changes in v4:
- Correct new dtsi node (DSPI0) in order.
- Remove two unnecessary dts properties.
PATCH v4 1/2 ARM:dts: vf610: Add DSPI nodes
From: Chao Fu <[email protected]>
Add Freescale DSPI node into vf610 dts.
--- arch/arm/boot/dts/vf610.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/vf610.dtsi +12 -0
@@ -123,6 +123,18 @@ status = "disabled"; }; + dspi0: dspi0 at 4002c000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,vf610-dspi"; + reg = <0x4002c000 0x1000>; + interrupts = <0 67 0x04>; + clocks = <&clks VF610_CLK_DSPI0>; + clock-names = "dspi"; + spi-num-chipselects = <5>; + status = "disabled"; + }; + sai2: sai at 40031000 { compatible = "fsl,vf610-sai"; reg = <0x40031000 0x1000>;
Signature · 1 line
1.8.0
PATCH v4 2/2 ARM:dts:vf610-twr:Enable DSPI0 devices and Flash at26df081a
In reply to Chao FuFrom: Chao Fu <[email protected]>
This patch enables DSPI0 and at26df081a flash device for Vybrid VF610 TOWER board.
--- arch/arm/boot/dts/vf610-twr.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm/boot/dts/vf610-twr.dts +17 -0
@@ -36,6 +36,23 @@ }; +&dspi0 { + bus-num = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dspi0_1>; + status = "okay"; + + sflash: at26df081a at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "atmel,at26df081a"; + spi-max-frequency = <16000000>; + spi-cpol; + spi-cpha; + reg = <0>; + }; +}; + &fec0 { phy-mode = "rmii"; pinctrl-names = "default";
Signature · 1 line
1.8.0
Shawn Guo
Appliedv4 cover Add Freescale DSPI driver for Vybrid VF610 platform
In reply to Chao FuQuoted 2 lines · Chao Fu
This driver is the SPI master mode driver and has been tested on Vybrid VF610TWR board.
Applied both, thanks.
Shawn
Quoted 13 lines
Changes in v2:
- Add a document for DSPI driver underDocumentation/devicetree/bindings/spi/.
- Move spi-num-chipselects info dtsi nodes.
Changes in v3:
- Remove two dtsproperties(dbr,pbr)from documentation bindings, they will be calculated in code.
- Update driver code in bitbang framework.
- Brief some functions in driver code.
Changes in v4:
- Correct new dtsi node (DSPI0) in order.
- Remove two unnecessary dts properties.