lkml.org 
[lkml]   [2019]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 13/25] arm64: dts: realtek: rtd1295-xnano-x5: Add FD628 LED controller
Date
Add a spi-gpio node and LED controller slave node.

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts b/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts
index d7878ff942e6..ea9e9a96f1d3 100644
--- a/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts
+++ b/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts
@@ -5,6 +5,8 @@

/dts-v1/;

+#include <dt-bindings/gpio/gpio.h>
+
#include "rtd1295.dtsi"

/ {
@@ -23,6 +25,26 @@
chosen {
stdout-path = "serial0:115200n8";
};
+
+ spi {
+ compatible = "spi-gpio";
+ sck-gpios = <&iso_gpio 4 GPIO_ACTIVE_HIGH>;
+ mosi-gpios = <&iso_gpio 3 GPIO_ACTIVE_HIGH>;
+ cs-gpios = <&iso_gpio 2 GPIO_ACTIVE_LOW>;
+ num-chipselects = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ fd628: led-controller@0 {
+ compatible = "fdhisi,fd628";
+ reg = <0>;
+ spi-3wire;
+ spi-lsb-first;
+ spi-rx-delay-us = <1>;
+ spi-max-frequency = <500000>;
+ #grids = <7>;
+ };
+ };
};

&uart0 {
--
2.16.4
\
 
 \ /
  Last update: 2019-12-12 04:41    [W:0.125 / U:7.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site