Skip to content

Commit

Permalink
arm64: dts: ls1012a: add the DTS node for DSPI support
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  • Loading branch information
Yuan Yao authored and Shawn Guo committed Sep 20, 2017
1 parent 2bd6bf0 commit 519de51
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
33 changes: 33 additions & 0 deletions arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,39 @@
};
};

&dspi {
bus-num = <0>;
status = "okay";

flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "n25q128a11", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
};

flash@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "sst25wf040b", "jedec,spi-nor";
spi-cpol;
spi-cpha;
reg = <1>;
spi-max-frequency = <10000000>;
};

flash@2 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "en25s64", "jedec,spi-nor";
spi-cpol;
spi-cpha;
reg = <2>;
spi-max-frequency = <10000000>;
};
};

&duart0 {
status = "okay";
};
Expand Down
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,19 @@
status = "disabled";
};

dspi: dspi@2100000 {
compatible = "fsl,ls1012a-dspi", "fsl,ls1021a-v1.0-dspi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x2100000 0x0 0x10000>;
interrupts = <0 64 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "dspi";
clocks = <&clockgen 4 0>;
spi-num-chipselects = <5>;
big-endian;
status = "disabled";
};

duart0: serial@21c0500 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x00 0x21c0500 0x0 0x100>;
Expand Down

0 comments on commit 519de51

Please sign in to comment.