From: Baolin Wang Date: Wed, 28 Feb 2018 10:47:05 +0000 (+0800) Subject: arm64: dts: Add ADI device node for Spreadtrum SC9860 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e254460a8988a44040e905234fae0fb32cfa3450;p=openwrt%2Fstaging%2Fblogic.git arm64: dts: Add ADI device node for Spreadtrum SC9860 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 Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts index ae0b28ce6319..d124833e7835 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -20,6 +20,7 @@ serial1 = &uart1; /* UART console */ serial2 = &uart2; /* Reserved */ serial3 = &uart3; /* for GPS */ + spi0 = &adi_bus; }; memory{ diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index b9cc0fb575a7..63fe89ecad1c 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -113,6 +113,15 @@ #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>;