diff options
author | Lin Huang <hl@rock-chips.com> | 2018-06-16 15:53:26 +0800 |
---|---|---|
committer | Shirle Yuen <shirleyshukyee@google.com> | 2018-06-21 12:36:05 -0700 |
commit | 83fb9030feb95f799f4dc1dee00aac6e602cda15 (patch) | |
tree | 2af208edb5c2684fa2ac19980631598f5032d80e | |
parent | af872c2951687ef262ac6e2dedcfe00d72aebad2 (diff) | |
download | rk-v4.4-83fb9030feb95f799f4dc1dee00aac6e602cda15.tar.gz |
ARM: dts: rockchip: usg gpio spi communcate to LED display controller
LED controller use spi bus, We controlled gpio to simulate spi in
userspace before, that's very slow, so let do it in kernel to
speed up it.
Change-Id: Iab92d3a11831b82722bd51031c342afec96eea0f
Signed-off-by: Lin Huang <hl@rock-chips.com>
(cherry picked from commit 0cc6df5e5cf62b4b45a751cd7edc84140996f4a6)
-rw-r--r-- | arch/arm/boot/dts/rk3229-at-gva.dts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3229-at-gva.dts b/arch/arm/boot/dts/rk3229-at-gva.dts index 1a022f51f380..b01dd0667d21 100644 --- a/arch/arm/boot/dts/rk3229-at-gva.dts +++ b/arch/arm/boot/dts/rk3229-at-gva.dts @@ -102,7 +102,23 @@ debounce-interval = <100>; wakeup-source; }; + }; + + spi_gpio: spi-gpio { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + gpio-sck = <&gpio1 0 GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio1 3 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + status = "okay"; + spi@0 { + compatible = "spidev"; + reg = <0>; + spi-max-frequency = <100000>; + }; }; }; |