Skip to content

Commit 54c799c

Browse files
knaerzchemmind
authored andcommitted
ARM: dts: rockchip: Add SFC for RK3128
Add the Serial Flash Controller and it's pincontrols. Signed-off-by: Alex Bee <[email protected]> Link: https://lore.kernel.org/r/[email protected] [reference HCLK_SFC by its numeric id to prevent conflicts with the clock binding/controller changes] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 041f240 commit 54c799c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

arch/arm/boot/dts/rockchip/rk3128.dtsi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,15 @@
425425
status = "disabled";
426426
};
427427

428+
sfc: spi@1020c000 {
429+
compatible = "rockchip,sfc";
430+
reg = <0x1020c000 0x8000>;
431+
interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
432+
clocks = <&cru SCLK_SFC>, <&cru 479>;
433+
clock-names = "clk_sfc", "hclk_sfc";
434+
status = "disabled";
435+
};
436+
428437
sdmmc: mmc@10214000 {
429438
compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc";
430439
reg = <0x10214000 0x4000>;
@@ -1196,6 +1205,32 @@
11961205
};
11971206
};
11981207

1208+
sfc {
1209+
sfc_bus2: sfc-bus2 {
1210+
rockchip,pins = <1 RK_PD0 3 &pcfg_pull_default>,
1211+
<1 RK_PD1 3 &pcfg_pull_default>;
1212+
};
1213+
1214+
sfc_bus4: sfc-bus4 {
1215+
rockchip,pins = <1 RK_PD0 3 &pcfg_pull_default>,
1216+
<1 RK_PD1 3 &pcfg_pull_default>,
1217+
<1 RK_PD2 3 &pcfg_pull_default>,
1218+
<1 RK_PD3 3 &pcfg_pull_default>;
1219+
};
1220+
1221+
sfc_clk: sfc-clk {
1222+
rockchip,pins = <2 RK_PA4 3 &pcfg_pull_none>;
1223+
};
1224+
1225+
sfc_cs0: sfc-cs0 {
1226+
rockchip,pins = <2 RK_PA2 2 &pcfg_pull_default>;
1227+
};
1228+
1229+
sfc_cs1: sfc-cs1 {
1230+
rockchip,pins = <2 RK_PA3 2 &pcfg_pull_default>;
1231+
};
1232+
};
1233+
11991234
spdif {
12001235
spdif_tx: spdif-tx {
12011236
rockchip,pins = <3 RK_PD3 1 &pcfg_pull_none>;

0 commit comments

Comments
 (0)