Skip to content

Commit f5ac5ac

Browse files
Kuldeep SinghShawn Guo
authored andcommitted
arm64: dts: ls1012a: Add QSPI node properties
Add support for QSPI on NXP layerscape LS1012A-RDB, LS1012A-QDS, LS1012A-FRDM and LS1012A-FRWY boards. LS1012A-RDB has 2 Spansion "s25fs512s" flashes of size 64M each and only one can be accessed at a time. LS1012A-QDS/FRDM has 1 spansion "s25fs512s" flash of size 64M. LS1012A-FRWY has one winbond "w25q16dw" flash of size 2M. Use generic compatibles as "jedec,spi-nor" for automatic detection of flash. Configure RX and TX buswidth values as 2 as only two I/O lines are available for data transfer. Add ls1012a(si) node alongwith flash nodes. Signed-off-by: Ashish Kumar <[email protected]> Signed-off-by: Kuldeep Singh <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 593816f commit f5ac5ac

File tree

5 files changed

+73
-0
lines changed

5 files changed

+73
-0
lines changed

arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@
7474
};
7575
};
7676

77+
&qspi {
78+
status = "okay";
79+
80+
s25fs512s0: flash@0 {
81+
compatible = "jedec,spi-nor";
82+
#address-cells = <1>;
83+
#size-cells = <1>;
84+
spi-max-frequency = <50000000>;
85+
m25p,fast-read;
86+
reg = <0>;
87+
spi-rx-bus-width = <2>;
88+
spi-tx-bus-width = <2>;
89+
};
90+
};
91+
7792
&sai2 {
7893
status = "okay";
7994
};

arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,18 @@
2323
&i2c0 {
2424
status = "okay";
2525
};
26+
27+
&qspi {
28+
status = "okay";
29+
30+
w25q16dw0: flash@0 {
31+
compatible = "jedec,spi-nor";
32+
#address-cells = <1>;
33+
#size-cells = <1>;
34+
m25p,fast-read;
35+
spi-max-frequency = <50000000>;
36+
reg = <0>;
37+
spi-rx-bus-width = <2>;
38+
spi-tx-bus-width = <2>;
39+
};
40+
};

arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@
128128
};
129129
};
130130

131+
&qspi {
132+
status = "okay";
133+
134+
s25fs512s0: flash@0 {
135+
compatible = "jedec,spi-nor";
136+
#address-cells = <1>;
137+
#size-cells = <1>;
138+
spi-max-frequency = <50000000>;
139+
m25p,fast-read;
140+
reg = <0>;
141+
spi-rx-bus-width = <2>;
142+
spi-tx-bus-width = <2>;
143+
};
144+
};
145+
131146
&sai2 {
132147
status = "okay";
133148
};

arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@
3535
status = "okay";
3636
};
3737

38+
&qspi {
39+
status = "okay";
40+
41+
s25fs512s0: flash@0 {
42+
compatible = "jedec,spi-nor";
43+
#address-cells = <1>;
44+
#size-cells = <1>;
45+
spi-max-frequency = <50000000>;
46+
m25p,fast-read;
47+
reg = <0>;
48+
spi-rx-bus-width = <2>;
49+
spi-tx-bus-width = <2>;
50+
};
51+
};
52+
3853
&sata {
3954
status = "okay";
4055
};

arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@
137137
#size-cells = <2>;
138138
ranges;
139139

140+
qspi: spi@1550000 {
141+
compatible = "fsl,ls1021a-qspi";
142+
#address-cells = <1>;
143+
#size-cells = <0>;
144+
reg = <0x0 0x1550000 0x0 0x10000>,
145+
<0x0 0x40000000 0x0 0x10000000>;
146+
reg-names = "QuadSPI", "QuadSPI-memory";
147+
interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
148+
clock-names = "qspi_en", "qspi";
149+
clocks = <&clockgen 4 0>, <&clockgen 4 0>;
150+
status = "disabled";
151+
};
152+
140153
esdhc0: esdhc@1560000 {
141154
compatible = "fsl,ls1012a-esdhc", "fsl,esdhc";
142155
reg = <0x0 0x1560000 0x0 0x10000>;

0 commit comments

Comments
 (0)