arm64: dts: Add ADI device node for Spreadtrum SC9860
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 28 Feb 2018 10:47:05 +0000 (18:47 +0800)
committerArnd Bergmann <arnd@arndb.de>
Wed, 7 Mar 2018 14:26:36 +0000 (15:26 +0100)
We will access the PMIC through ADI controller, thus this patch adds
the ADI device node for Spreadtrum SC9860 platform.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
arch/arm64/boot/dts/sprd/whale2.dtsi

index ae0b28c..d124833 100644 (file)
@@ -20,6 +20,7 @@
                serial1 = &uart1; /* UART console */
                serial2 = &uart2; /* Reserved */
                serial3 = &uart3; /* for GPS */
+               spi0 = &adi_bus;
        };
 
        memory{
index b9cc0fb..63fe89e 100644 (file)
                        #size-cells = <2>;
                        ranges;
 
+                       adi_bus: spi@40030000 {
+                               compatible = "sprd,sc9860-adi";
+                               reg = <0 0x40030000 0 0x10000>;
+                               hwlocks = <&hwlock 0>;
+                               hwlock-names = "adi";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
                        hwlock: hwspinlock@40500000 {
                                compatible = "sprd,hwspinlock-r3p0";
                                reg = <0 0x40500000 0 0x1000>;