Skip to content

Commit 69c910d

Browse files
mwalleShawn Guo
authored andcommitted
arm64: dts: ls1028a: fix FlexSPI clock
Now that we have a proper driver for the FlexSPI interface use it. This will fix SCK frequency switching on Layerscape SoCs. This was tested on the Kontron sl28 board. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 8b6b175 commit 69c910d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,20 @@
206206
};
207207

208208
dcfg: syscon@1e00000 {
209-
compatible = "fsl,ls1028a-dcfg", "syscon";
209+
#address-cells = <1>;
210+
#size-cells = <1>;
211+
compatible = "fsl,ls1028a-dcfg", "syscon", "simple-mfd";
210212
reg = <0x0 0x1e00000 0x0 0x10000>;
213+
ranges = <0x0 0x0 0x1e00000 0x10000>;
211214
little-endian;
215+
216+
fspi_clk: clock-controller@900 {
217+
compatible = "fsl,ls1028a-flexspi-clk";
218+
reg = <0x900 0x4>;
219+
#clock-cells = <0>;
220+
clocks = <&clockgen QORIQ_CLK_HWACCEL 0>;
221+
clock-output-names = "fspi_clk";
222+
};
212223
};
213224

214225
rst: syscon@1e60000 {
@@ -326,8 +337,7 @@
326337
<0x0 0x20000000 0x0 0x10000000>;
327338
reg-names = "fspi_base", "fspi_mmap";
328339
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
329-
clocks = <&clockgen QORIQ_CLK_HWACCEL 0>,
330-
<&clockgen QORIQ_CLK_HWACCEL 0>;
340+
clocks = <&fspi_clk>, <&fspi_clk>;
331341
clock-names = "fspi_en", "fspi";
332342
status = "disabled";
333343
};

0 commit comments

Comments
 (0)