Skip to content

Commit

Permalink
arm64: dts: nanopct6: add sfc node
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek authored and amazingfate committed Aug 8, 2023
1 parent d4e474a commit 8cae9a3
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,37 @@
status = "okay";
};

&sfc {
status = "okay";
max-freq = <50000000>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&fspim1_pins>;

spi_flash: spi-flash@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-max-frequency = <50000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
status = "okay";

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

loader@0 {
label = "loader";
reg = <0x0 0x1000000>;
};
};
};
};

&pinctrl {
gpio-leds {
sys_led_pin: sys-led-pin {
Expand All @@ -489,6 +520,25 @@
};
};

fspi {
/omit-if-no-ref/
fspim1_pins: fspim1-pins {
rockchip,pins =
/* fspi_clk_m1 */
<2 RK_PB3 2 &pcfg_pull_up_drv_level_2>,
/* fspi_cs0n_m1 */
<2 RK_PB4 2 &pcfg_pull_up_drv_level_2>,
/* fspi_d0_m1 */
<2 RK_PA6 2 &pcfg_pull_up_drv_level_2>,
/* fspi_d1_m1 */
<2 RK_PA7 2 &pcfg_pull_up_drv_level_2>,
/* fspi_d2_m1 */
<2 RK_PB0 2 &pcfg_pull_up_drv_level_2>,
/* fspi_d3_m1 */
<2 RK_PB1 2 &pcfg_pull_up_drv_level_2>;
};
};

headphone {
hp_det: hp-det {
rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
Expand Down

0 comments on commit 8cae9a3

Please sign in to comment.