Skip to content

Commit

Permalink
arm64: dts: rockchip: Enable SPI NOR flash on Rock64
Browse files Browse the repository at this point in the history
The Pine64 Rock64 board comes with a GigaDevice GD25Q128CSIG
or GD25Q127CSIG chip, which is a 128 Mbit SPI NOR flash chip
that supports the JEDEC read-ID command.

This patch enables the SPI controller and adds a device node
for the flash chip using the generic "jedec,spi-nor" comaptible.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
  • Loading branch information
Chen-Yu Tsai authored and Heiko Stuebner committed Sep 26, 2018
1 parent e4f3fb4 commit cd7ab13
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,18 @@
};
};

&spi0 {
status = "okay";

spiflash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

/* maximum speed for Rockchip SPI */
spi-max-frequency = <50000000>;
};
};

&tsadc {
rockchip,hw-tshut-mode = <0>;
rockchip,hw-tshut-polarity = <0>;
Expand Down

0 comments on commit cd7ab13

Please sign in to comment.