Skip to content

Commit 88dcbe1

Browse files
yihsin-hungwzyy2
authored andcommitted
MINIARM: Add spidev node for spi2 interface
Change-Id: I8724d537d73fc21ef932f991b795536c5876c536 Signed-off-by: yi-hsin_hung <yi-hsin_hung@asus.com>
1 parent 8f299ba commit 88dcbe1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

arch/arm/boot/dts/rk3288-miniarm.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,13 @@
489489
status = "okay";
490490
};
491491

492+
492493
&spi2 {
493494
status = "okay";
494495
max-freq = <50000000>;
496+
pinctrl-names = "default";
497+
pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0 &spi2_cs1>;
498+
#address-cells = <2>;
495499

496500
spidev@0 {
497501
compatible = "rockchip,spi_tinker";

drivers/spi/spidev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ static struct class *spidev_class;
695695
static const struct of_device_id spidev_dt_ids[] = {
696696
{ .compatible = "rohm,dh2228fv" },
697697
{ .compatible = "lineartechnology,ltc2488" },
698+
{ .compatible = "rockchip,spi_tinker" },
698699
{},
699700
};
700701
MODULE_DEVICE_TABLE(of, spidev_dt_ids);

0 commit comments

Comments
 (0)