forked from radxa-pkg/radxa-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nascs Fang <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
arch/arm64/boot/dts/rockchip/overlays/rk3528-spi1-cs-gpio.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/pinctrl/rockchip.h> | ||
|
||
/ { | ||
metadata { | ||
title = "Enable spidev on SPI1 over PIN_26"; | ||
compatible = "radxa,rock-2a", "radxa,rock-2f", "radxa,medge-rk3528a-io"; | ||
category = "misc"; | ||
exclusive = "GPIO1_B6", "GPIO1_B7", "GPIO1_C0", "GPIO4_C1"; | ||
description = "Enable spidev on SPI1 over PIN_26."; | ||
}; | ||
}; | ||
|
||
&spi1 { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
max-freq = <50000000>; | ||
num-cs = <1>; | ||
cs-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_LOW>; | ||
pinctrl-0 = <&spi1_pins>; | ||
|
||
spidev@1 { | ||
compatible = "rockchip,spidev"; | ||
status = "okay"; | ||
reg = <1>; | ||
spi-max-frequency = <50000000>; | ||
}; | ||
}; |