1929e3c
From patchwork Mon Mar  6 17:17:45 2017
1929e3c
Content-Type: text/plain; charset="utf-8"
1929e3c
MIME-Version: 1.0
1929e3c
Content-Transfer-Encoding: 7bit
1929e3c
Subject: [v8, 1/6] ARM: dts: sun8i: h3: drop skeleton.dtsi inclusion in H3 DTSI
1929e3c
From: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
X-Patchwork-Id: 9607205
1929e3c
Message-Id: <20170306171750.7491-2-icenowy@aosc.xyz>
1929e3c
To: Rob Herring <robh+dt@kernel.org>,
1929e3c
 Maxime Ripard <maxime.ripard@free-electrons.com>,
1929e3c
 Chen-Yu Tsai <wens@csie.org>
1929e3c
Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com,
1929e3c
 linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
1929e3c
 Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
Date: Tue,  7 Mar 2017 01:17:45 +0800
1929e3c
1929e3c
The skeleton.dtsi file is now deprecated, and do not exist in ARM64
1929e3c
environment.
1929e3c
1929e3c
Since we will soon reuse most part of H3 DTSI for H5, which is an ARM64
1929e3c
chip, drop skeleton.dtsi inclusion now.
1929e3c
1929e3c
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
---
1929e3c
Changes in v8:
1929e3c
- Add h3: in commit message.
1929e3c
1929e3c
 arch/arm/boot/dts/sun8i-h3.dtsi | 2 --
1929e3c
 1 file changed, 2 deletions(-)
1929e3c
1929e3c
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
index 27780b97c863..9a3435527fde 100644
1929e3c
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
@@ -40,8 +40,6 @@
1929e3c
  *     OTHER DEALINGS IN THE SOFTWARE.
1929e3c
  */
1929e3c
 
1929e3c
-#include "skeleton.dtsi"
1929e3c
-
1929e3c
 #include <dt-bindings/clock/sun8i-h3-ccu.h>
1929e3c
 #include <dt-bindings/interrupt-controller/arm-gic.h>
1929e3c
 #include <dt-bindings/pinctrl/sun4i-a10.h>
1929e3c
From patchwork Mon Mar  6 17:17:46 2017
1929e3c
Content-Type: text/plain; charset="utf-8"
1929e3c
MIME-Version: 1.0
1929e3c
Content-Transfer-Encoding: 7bit
1929e3c
Subject: [v8,
1929e3c
 2/6] ARM: dts: sun8i: h3: drop pinctrl-a10.h inclusion for H3 DTSI
1929e3c
From: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
X-Patchwork-Id: 9607207
1929e3c
Message-Id: <20170306171750.7491-3-icenowy@aosc.xyz>
1929e3c
To: Rob Herring <robh+dt@kernel.org>,
1929e3c
 Maxime Ripard <maxime.ripard@free-electrons.com>,
1929e3c
 Chen-Yu Tsai <wens@csie.org>
1929e3c
Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com,
1929e3c
 linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
1929e3c
 Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
Date: Tue,  7 Mar 2017 01:17:46 +0800
1929e3c
1929e3c
After converting to generic pinconf binding, pinctrl-a10.h is now not
1929e3c
used at all.
1929e3c
1929e3c
Drop its inclusion for H3 DTSI.
1929e3c
1929e3c
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
---
1929e3c
Changes in v8:
1929e3c
- Add h3: in commit message.
1929e3c
1929e3c
 arch/arm/boot/dts/sun8i-h3.dtsi | 1 -
1929e3c
 1 file changed, 1 deletion(-)
1929e3c
1929e3c
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
index 9a3435527fde..b250e6d03b57 100644
1929e3c
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
@@ -42,7 +42,6 @@
1929e3c
 
1929e3c
 #include <dt-bindings/clock/sun8i-h3-ccu.h>
1929e3c
 #include <dt-bindings/interrupt-controller/arm-gic.h>
1929e3c
-#include <dt-bindings/pinctrl/sun4i-a10.h>
1929e3c
 #include <dt-bindings/reset/sun8i-h3-ccu.h>
1929e3c
 
1929e3c
 / {
1929e3c
From patchwork Mon Mar  6 17:17:47 2017
1929e3c
Content-Type: text/plain; charset="utf-8"
1929e3c
MIME-Version: 1.0
1929e3c
Content-Transfer-Encoding: 7bit
1929e3c
Subject: [v8,
1929e3c
 3/6] ARM: dts: sun8i: h3: correct the GIC compatible in H3 to gic-400
1929e3c
From: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
X-Patchwork-Id: 9607209
1929e3c
Message-Id: <20170306171750.7491-4-icenowy@aosc.xyz>
1929e3c
To: Rob Herring <robh+dt@kernel.org>,
1929e3c
 Maxime Ripard <maxime.ripard@free-electrons.com>,
1929e3c
 Chen-Yu Tsai <wens@csie.org>
1929e3c
Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com,
1929e3c
 linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
1929e3c
 Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
Date: Tue,  7 Mar 2017 01:17:47 +0800
1929e3c
1929e3c
According to the datasheets provided by Allwinner, both Allwinner H3 and
1929e3c
H5 use GIC-400 as their interrupt controller.
1929e3c
1929e3c
For better device tree reusing, correct the GIC compatible in H3 DTSI to
1929e3c
"arm,gic-400", thus this node can be reused in H5.
1929e3c
1929e3c
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
---
1929e3c
Changes in v8:
1929e3c
- Add h3: in commit message.
1929e3c
1929e3c
 arch/arm/boot/dts/sun8i-h3.dtsi | 2 +-
1929e3c
 1 file changed, 1 insertion(+), 1 deletion(-)
1929e3c
1929e3c
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
index b250e6d03b57..c13fbfb92592 100644
1929e3c
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
@@ -586,7 +586,7 @@
1929e3c
 		};
1929e3c
 
1929e3c
 		gic: interrupt-controller@01c81000 {
1929e3c
-			compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1929e3c
+			compatible = "arm,gic-400";
1929e3c
 			reg = <0x01c81000 0x1000>,
1929e3c
 			      <0x01c82000 0x2000>,
1929e3c
 			      <0x01c84000 0x2000>,
1929e3c
From patchwork Mon Mar  6 17:17:48 2017
1929e3c
Content-Type: text/plain; charset="utf-8"
1929e3c
MIME-Version: 1.0
1929e3c
Content-Transfer-Encoding: 7bit
1929e3c
Subject: [v8,4/6] arm: dts: sun8i: h3: split Allwinner H3 .dtsi
1929e3c
From: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
X-Patchwork-Id: 9607211
1929e3c
Message-Id: <20170306171750.7491-5-icenowy@aosc.xyz>
1929e3c
To: Rob Herring <robh+dt@kernel.org>,
1929e3c
 Maxime Ripard <maxime.ripard@free-electrons.com>,
1929e3c
 Chen-Yu Tsai <wens@csie.org>
1929e3c
Cc: devicetree@vger.kernel.org, Andre Przywara <andre.przywara@arm.com>,
1929e3c
 linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com,
1929e3c
 Icenowy Zheng <icenowy@aosc.xyz>, linux-arm-kernel@lists.infradead.org
1929e3c
Date: Tue,  7 Mar 2017 01:17:48 +0800
1929e3c
1929e3c
From: Andre Przywara <andre.przywara@arm.com>
1929e3c
1929e3c
The new Allwinner H5 SoC is pin-compatible to the H3 SoC, but with the
1929e3c
Cortex-A7 cores replaced by Cortex-A53 cores and the MMC controller
1929e3c
updated. So we should really share almost the whole .dtsi.
1929e3c
In preparation for that move the peripheral parts of the existing
1929e3c
sun8i-h3.dtsi into a new sunxi-h3-h5.dtsi.
1929e3c
The actual sun8i-h3.dtsi then includes that and defines the H3 specific
1929e3c
parts on top of it.
1929e3c
1929e3c
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
1929e3c
[Icenowy: also split out mmc and gic, as well as pio and ccu's
1929e3c
 compatible, and make drop of skeleton into a seperated patch]
1929e3c
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
1929e3c
---
1929e3c
Changes in v8:
1929e3c
- Add h3: in commit message.
1929e3c
Changes in v7:
1929e3c
- Extract GIC, skeleton.dtsi and pinctrl-a10.h changes to seperate patches.
1929e3c
Changes in v6:
1929e3c
- Extract GIC device node to sunxi-h3-h5.dtsi and correct its compatible
1929e3c
  as "arm,gic-400".
1929e3c
Changes in v3:
1929e3c
- Use label-based syntax to reference nodes in H3 DTSI file.
1929e3c
Changes in v2:
1929e3c
- Rebase on current linux-next (because of the add of audio codec)
1929e3c
1929e3c
 arch/arm/boot/dts/sun8i-h3.dtsi                    | 771 ++++-----------------
1929e3c
 .../boot/dts/{sun8i-h3.dtsi => sunxi-h3-h5.dtsi}   |  73 +-
1929e3c
 2 files changed, 133 insertions(+), 711 deletions(-)
1929e3c
 rewrite arch/arm/boot/dts/sun8i-h3.dtsi (83%)
1929e3c
 copy arch/arm/boot/dts/{sun8i-h3.dtsi => sunxi-h3-h5.dtsi} (90%)
1929e3c
1929e3c
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
dissimilarity index 83%
1929e3c
index c13fbfb92592..b36f9f423c39 100644
1929e3c
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
@@ -1,645 +1,126 @@
1929e3c
-/*
1929e3c
- * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
1929e3c
- *
1929e3c
- * This file is dual-licensed: you can use it either under the terms
1929e3c
- * of the GPL or the X11 license, at your option. Note that this dual
1929e3c
- * licensing only applies to this file, and not this project as a
1929e3c
- * whole.
1929e3c
- *
1929e3c
- *  a) This file is free software; you can redistribute it and/or
1929e3c
- *     modify it under the terms of the GNU General Public License as
1929e3c
- *     published by the Free Software Foundation; either version 2 of the
1929e3c
- *     License, or (at your option) any later version.
1929e3c
- *
1929e3c
- *     This file is distributed in the hope that it will be useful,
1929e3c
- *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1929e3c
- *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1929e3c
- *     GNU General Public License for more details.
1929e3c
- *
1929e3c
- * Or, alternatively,
1929e3c
- *
1929e3c
- *  b) Permission is hereby granted, free of charge, to any person
1929e3c
- *     obtaining a copy of this software and associated documentation
1929e3c
- *     files (the "Software"), to deal in the Software without
1929e3c
- *     restriction, including without limitation the rights to use,
1929e3c
- *     copy, modify, merge, publish, distribute, sublicense, and/or
1929e3c
- *     sell copies of the Software, and to permit persons to whom the
1929e3c
- *     Software is furnished to do so, subject to the following
1929e3c
- *     conditions:
1929e3c
- *
1929e3c
- *     The above copyright notice and this permission notice shall be
1929e3c
- *     included in all copies or substantial portions of the Software.
1929e3c
- *
1929e3c
- *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1929e3c
- *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
1929e3c
- *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1929e3c
- *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
1929e3c
- *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1929e3c
- *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1929e3c
- *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1929e3c
- *     OTHER DEALINGS IN THE SOFTWARE.
1929e3c
- */
1929e3c
-
1929e3c
-#include <dt-bindings/clock/sun8i-h3-ccu.h>
1929e3c
-#include <dt-bindings/interrupt-controller/arm-gic.h>
1929e3c
-#include <dt-bindings/reset/sun8i-h3-ccu.h>
1929e3c
-
1929e3c
-/ {
1929e3c
-	interrupt-parent = <&gic;;
1929e3c
-
1929e3c
-	cpus {
1929e3c
-		#address-cells = <1>;
1929e3c
-		#size-cells = <0>;
1929e3c
-
1929e3c
-		cpu@0 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		cpu@1 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <1>;
1929e3c
-		};
1929e3c
-
1929e3c
-		cpu@2 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <2>;
1929e3c
-		};
1929e3c
-
1929e3c
-		cpu@3 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <3>;
1929e3c
-		};
1929e3c
-	};
1929e3c
-
1929e3c
-	timer {
1929e3c
-		compatible = "arm,armv7-timer";
1929e3c
-		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
-			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
-			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
-			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
1929e3c
-	};
1929e3c
-
1929e3c
-	clocks {
1929e3c
-		#address-cells = <1>;
1929e3c
-		#size-cells = <1>;
1929e3c
-		ranges;
1929e3c
-
1929e3c
-		osc24M: osc24M_clk {
1929e3c
-			#clock-cells = <0>;
1929e3c
-			compatible = "fixed-clock";
1929e3c
-			clock-frequency = <24000000>;
1929e3c
-			clock-output-names = "osc24M";
1929e3c
-		};
1929e3c
-
1929e3c
-		osc32k: osc32k_clk {
1929e3c
-			#clock-cells = <0>;
1929e3c
-			compatible = "fixed-clock";
1929e3c
-			clock-frequency = <32768>;
1929e3c
-			clock-output-names = "osc32k";
1929e3c
-		};
1929e3c
-
1929e3c
-		apb0: apb0_clk {
1929e3c
-			compatible = "fixed-factor-clock";
1929e3c
-			#clock-cells = <0>;
1929e3c
-			clock-div = <1>;
1929e3c
-			clock-mult = <1>;
1929e3c
-			clocks = <&osc24M>;
1929e3c
-			clock-output-names = "apb0";
1929e3c
-		};
1929e3c
-
1929e3c
-		apb0_gates: clk@01f01428 {
1929e3c
-			compatible = "allwinner,sun8i-h3-apb0-gates-clk",
1929e3c
-				     "allwinner,sun4i-a10-gates-clk";
1929e3c
-			reg = <0x01f01428 0x4>;
1929e3c
-			#clock-cells = <1>;
1929e3c
-			clocks = <&apb0>;
1929e3c
-			clock-indices = <0>, <1>;
1929e3c
-			clock-output-names = "apb0_pio", "apb0_ir";
1929e3c
-		};
1929e3c
-
1929e3c
-		ir_clk: ir_clk@01f01454 {
1929e3c
-			compatible = "allwinner,sun4i-a10-mod0-clk";
1929e3c
-			reg = <0x01f01454 0x4>;
1929e3c
-			#clock-cells = <0>;
1929e3c
-			clocks = <&osc32k>, <&osc24M>;
1929e3c
-			clock-output-names = "ir";
1929e3c
-		};
1929e3c
-	};
1929e3c
-
1929e3c
-	soc {
1929e3c
-		compatible = "simple-bus";
1929e3c
-		#address-cells = <1>;
1929e3c
-		#size-cells = <1>;
1929e3c
-		ranges;
1929e3c
-
1929e3c
-		dma: dma-controller@01c02000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-dma";
1929e3c
-			reg = <0x01c02000 0x1000>;
1929e3c
-			interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_DMA>;
1929e3c
-			resets = <&ccu RST_BUS_DMA>;
1929e3c
-			#dma-cells = <1>;
1929e3c
-		};
1929e3c
-
1929e3c
-		mmc0: mmc@01c0f000 {
1929e3c
-			compatible = "allwinner,sun7i-a20-mmc";
1929e3c
-			reg = <0x01c0f000 0x1000>;
1929e3c
-			clocks = <&ccu CLK_BUS_MMC0>,
1929e3c
-				 <&ccu CLK_MMC0>,
1929e3c
-				 <&ccu CLK_MMC0_OUTPUT>,
1929e3c
-				 <&ccu CLK_MMC0_SAMPLE>;
1929e3c
-			clock-names = "ahb",
1929e3c
-				      "mmc",
1929e3c
-				      "output",
1929e3c
-				      "sample";
1929e3c
-			resets = <&ccu RST_BUS_MMC0>;
1929e3c
-			reset-names = "ahb";
1929e3c
-			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		mmc1: mmc@01c10000 {
1929e3c
-			compatible = "allwinner,sun7i-a20-mmc";
1929e3c
-			reg = <0x01c10000 0x1000>;
1929e3c
-			clocks = <&ccu CLK_BUS_MMC1>,
1929e3c
-				 <&ccu CLK_MMC1>,
1929e3c
-				 <&ccu CLK_MMC1_OUTPUT>,
1929e3c
-				 <&ccu CLK_MMC1_SAMPLE>;
1929e3c
-			clock-names = "ahb",
1929e3c
-				      "mmc",
1929e3c
-				      "output",
1929e3c
-				      "sample";
1929e3c
-			resets = <&ccu RST_BUS_MMC1>;
1929e3c
-			reset-names = "ahb";
1929e3c
-			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		mmc2: mmc@01c11000 {
1929e3c
-			compatible = "allwinner,sun7i-a20-mmc";
1929e3c
-			reg = <0x01c11000 0x1000>;
1929e3c
-			clocks = <&ccu CLK_BUS_MMC2>,
1929e3c
-				 <&ccu CLK_MMC2>,
1929e3c
-				 <&ccu CLK_MMC2_OUTPUT>,
1929e3c
-				 <&ccu CLK_MMC2_SAMPLE>;
1929e3c
-			clock-names = "ahb",
1929e3c
-				      "mmc",
1929e3c
-				      "output",
1929e3c
-				      "sample";
1929e3c
-			resets = <&ccu RST_BUS_MMC2>;
1929e3c
-			reset-names = "ahb";
1929e3c
-			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		usbphy: phy@01c19400 {
1929e3c
-			compatible = "allwinner,sun8i-h3-usb-phy";
1929e3c
-			reg = <0x01c19400 0x2c>,
1929e3c
-			      <0x01c1a800 0x4>,
1929e3c
-			      <0x01c1b800 0x4>,
1929e3c
-			      <0x01c1c800 0x4>,
1929e3c
-			      <0x01c1d800 0x4>;
1929e3c
-			reg-names = "phy_ctrl",
1929e3c
-				    "pmu0",
1929e3c
-				    "pmu1",
1929e3c
-				    "pmu2",
1929e3c
-				    "pmu3";
1929e3c
-			clocks = <&ccu CLK_USB_PHY0>,
1929e3c
-				 <&ccu CLK_USB_PHY1>,
1929e3c
-				 <&ccu CLK_USB_PHY2>,
1929e3c
-				 <&ccu CLK_USB_PHY3>;
1929e3c
-			clock-names = "usb0_phy",
1929e3c
-				      "usb1_phy",
1929e3c
-				      "usb2_phy",
1929e3c
-				      "usb3_phy";
1929e3c
-			resets = <&ccu RST_USB_PHY0>,
1929e3c
-				 <&ccu RST_USB_PHY1>,
1929e3c
-				 <&ccu RST_USB_PHY2>,
1929e3c
-				 <&ccu RST_USB_PHY3>;
1929e3c
-			reset-names = "usb0_reset",
1929e3c
-				      "usb1_reset",
1929e3c
-				      "usb2_reset",
1929e3c
-				      "usb3_reset";
1929e3c
-			status = "disabled";
1929e3c
-			#phy-cells = <1>;
1929e3c
-		};
1929e3c
-
1929e3c
-		ehci1: usb@01c1b000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
1929e3c
-			reg = <0x01c1b000 0x100>;
1929e3c
-			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>;
1929e3c
-			resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
1929e3c
-			phys = <&usbphy 1>;
1929e3c
-			phy-names = "usb";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		ohci1: usb@01c1b400 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
1929e3c
-			reg = <0x01c1b400 0x100>;
1929e3c
-			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>,
1929e3c
-				 <&ccu CLK_USB_OHCI1>;
1929e3c
-			resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
1929e3c
-			phys = <&usbphy 1>;
1929e3c
-			phy-names = "usb";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		ehci2: usb@01c1c000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
1929e3c
-			reg = <0x01c1c000 0x100>;
1929e3c
-			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>;
1929e3c
-			resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
1929e3c
-			phys = <&usbphy 2>;
1929e3c
-			phy-names = "usb";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		ohci2: usb@01c1c400 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
1929e3c
-			reg = <0x01c1c400 0x100>;
1929e3c
-			interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>,
1929e3c
-				 <&ccu CLK_USB_OHCI2>;
1929e3c
-			resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
1929e3c
-			phys = <&usbphy 2>;
1929e3c
-			phy-names = "usb";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		ehci3: usb@01c1d000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
1929e3c
-			reg = <0x01c1d000 0x100>;
1929e3c
-			interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>;
1929e3c
-			resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
1929e3c
-			phys = <&usbphy 3>;
1929e3c
-			phy-names = "usb";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		ohci3: usb@01c1d400 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
1929e3c
-			reg = <0x01c1d400 0x100>;
1929e3c
-			interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>,
1929e3c
-				 <&ccu CLK_USB_OHCI3>;
1929e3c
-			resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
1929e3c
-			phys = <&usbphy 3>;
1929e3c
-			phy-names = "usb";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		ccu: clock@01c20000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ccu";
1929e3c
-			reg = <0x01c20000 0x400>;
1929e3c
-			clocks = <&osc24M>, <&osc32k>;
1929e3c
-			clock-names = "hosc", "losc";
1929e3c
-			#clock-cells = <1>;
1929e3c
-			#reset-cells = <1>;
1929e3c
-		};
1929e3c
-
1929e3c
-		pio: pinctrl@01c20800 {
1929e3c
-			compatible = "allwinner,sun8i-h3-pinctrl";
1929e3c
-			reg = <0x01c20800 0x400>;
1929e3c
-			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1929e3c
-				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
1929e3c
-			clock-names = "apb", "hosc", "losc";
1929e3c
-			gpio-controller;
1929e3c
-			#gpio-cells = <3>;
1929e3c
-			interrupt-controller;
1929e3c
-			#interrupt-cells = <3>;
1929e3c
-
1929e3c
-			i2c0_pins: i2c0 {
1929e3c
-				pins = "PA11", "PA12";
1929e3c
-				function = "i2c0";
1929e3c
-			};
1929e3c
-
1929e3c
-			i2c1_pins: i2c1 {
1929e3c
-				pins = "PA18", "PA19";
1929e3c
-				function = "i2c1";
1929e3c
-			};
1929e3c
-
1929e3c
-			i2c2_pins: i2c2 {
1929e3c
-				pins = "PE12", "PE13";
1929e3c
-				function = "i2c2";
1929e3c
-			};
1929e3c
-
1929e3c
-			mmc0_pins_a: mmc0@0 {
1929e3c
-				pins = "PF0", "PF1", "PF2", "PF3",
1929e3c
-				       "PF4", "PF5";
1929e3c
-				function = "mmc0";
1929e3c
-				drive-strength = <30>;
1929e3c
-				bias-pull-up;
1929e3c
-			};
1929e3c
-
1929e3c
-			mmc0_cd_pin: mmc0_cd_pin@0 {
1929e3c
-				pins = "PF6";
1929e3c
-				function = "gpio_in";
1929e3c
-				bias-pull-up;
1929e3c
-			};
1929e3c
-
1929e3c
-			mmc1_pins_a: mmc1@0 {
1929e3c
-				pins = "PG0", "PG1", "PG2", "PG3",
1929e3c
-				       "PG4", "PG5";
1929e3c
-				function = "mmc1";
1929e3c
-				drive-strength = <30>;
1929e3c
-				bias-pull-up;
1929e3c
-			};
1929e3c
-
1929e3c
-			mmc2_8bit_pins: mmc2_8bit {
1929e3c
-				pins = "PC5", "PC6", "PC8",
1929e3c
-				       "PC9", "PC10", "PC11",
1929e3c
-				       "PC12", "PC13", "PC14",
1929e3c
-				       "PC15", "PC16";
1929e3c
-				function = "mmc2";
1929e3c
-				drive-strength = <30>;
1929e3c
-				bias-pull-up;
1929e3c
-			};
1929e3c
-
1929e3c
-			spdif_tx_pins_a: spdif@0 {
1929e3c
-				pins = "PA17";
1929e3c
-				function = "spdif";
1929e3c
-			};
1929e3c
-
1929e3c
-			spi0_pins: spi0 {
1929e3c
-				pins = "PC0", "PC1", "PC2", "PC3";
1929e3c
-				function = "spi0";
1929e3c
-			};
1929e3c
-
1929e3c
-			spi1_pins: spi1 {
1929e3c
-				pins = "PA15", "PA16", "PA14", "PA13";
1929e3c
-				function = "spi1";
1929e3c
-			};
1929e3c
-
1929e3c
-			uart0_pins_a: uart0@0 {
1929e3c
-				pins = "PA4", "PA5";
1929e3c
-				function = "uart0";
1929e3c
-			};
1929e3c
-
1929e3c
-			uart1_pins: uart1 {
1929e3c
-				pins = "PG6", "PG7";
1929e3c
-				function = "uart1";
1929e3c
-			};
1929e3c
-
1929e3c
-			uart1_rts_cts_pins: uart1_rts_cts {
1929e3c
-				pins = "PG8", "PG9";
1929e3c
-				function = "uart1";
1929e3c
-			};
1929e3c
-
1929e3c
-			uart2_pins: uart2 {
1929e3c
-				pins = "PA0", "PA1";
1929e3c
-				function = "uart2";
1929e3c
-			};
1929e3c
-
1929e3c
-			uart3_pins: uart3 {
1929e3c
-				pins = "PA13", "PA14";
1929e3c
-				function = "uart3";
1929e3c
-			};
1929e3c
-		};
1929e3c
-
1929e3c
-		timer@01c20c00 {
1929e3c
-			compatible = "allwinner,sun4i-a10-timer";
1929e3c
-			reg = <0x01c20c00 0xa0>;
1929e3c
-			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
1929e3c
-				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&osc24M>;
1929e3c
-		};
1929e3c
-
1929e3c
-		spi0: spi@01c68000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-spi";
1929e3c
-			reg = <0x01c68000 0x1000>;
1929e3c
-			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
1929e3c
-			clock-names = "ahb", "mod";
1929e3c
-			dmas = <&dma 23>, <&dma 23>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			pinctrl-names = "default";
1929e3c
-			pinctrl-0 = <&spi0_pins>;
1929e3c
-			resets = <&ccu RST_BUS_SPI0>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		spi1: spi@01c69000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-spi";
1929e3c
-			reg = <0x01c69000 0x1000>;
1929e3c
-			interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
1929e3c
-			clock-names = "ahb", "mod";
1929e3c
-			dmas = <&dma 24>, <&dma 24>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			pinctrl-names = "default";
1929e3c
-			pinctrl-0 = <&spi1_pins>;
1929e3c
-			resets = <&ccu RST_BUS_SPI1>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		wdt0: watchdog@01c20ca0 {
1929e3c
-			compatible = "allwinner,sun6i-a31-wdt";
1929e3c
-			reg = <0x01c20ca0 0x20>;
1929e3c
-			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-		};
1929e3c
-
1929e3c
-		spdif: spdif@01c21000 {
1929e3c
-			#sound-dai-cells = <0>;
1929e3c
-			compatible = "allwinner,sun8i-h3-spdif";
1929e3c
-			reg = <0x01c21000 0x400>;
1929e3c
-			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
1929e3c
-			resets = <&ccu RST_BUS_SPDIF>;
1929e3c
-			clock-names = "apb", "spdif";
1929e3c
-			dmas = <&dma 2>;
1929e3c
-			dma-names = "tx";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		pwm: pwm@01c21400 {
1929e3c
-			compatible = "allwinner,sun8i-h3-pwm";
1929e3c
-			reg = <0x01c21400 0x8>;
1929e3c
-			clocks = <&osc24M>;
1929e3c
-			#pwm-cells = <3>;
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		codec: codec@01c22c00 {
1929e3c
-			#sound-dai-cells = <0>;
1929e3c
-			compatible = "allwinner,sun8i-h3-codec";
1929e3c
-			reg = <0x01c22c00 0x400>;
1929e3c
-			interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
1929e3c
-			clock-names = "apb", "codec";
1929e3c
-			resets = <&ccu RST_BUS_CODEC>;
1929e3c
-			dmas = <&dma 15>, <&dma 15>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			allwinner,codec-analog-controls = <&codec_analog>;
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		uart0: serial@01c28000 {
1929e3c
-			compatible = "snps,dw-apb-uart";
1929e3c
-			reg = <0x01c28000 0x400>;
1929e3c
-			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			reg-shift = <2>;
1929e3c
-			reg-io-width = <4>;
1929e3c
-			clocks = <&ccu CLK_BUS_UART0>;
1929e3c
-			resets = <&ccu RST_BUS_UART0>;
1929e3c
-			dmas = <&dma 6>, <&dma 6>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		uart1: serial@01c28400 {
1929e3c
-			compatible = "snps,dw-apb-uart";
1929e3c
-			reg = <0x01c28400 0x400>;
1929e3c
-			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			reg-shift = <2>;
1929e3c
-			reg-io-width = <4>;
1929e3c
-			clocks = <&ccu CLK_BUS_UART1>;
1929e3c
-			resets = <&ccu RST_BUS_UART1>;
1929e3c
-			dmas = <&dma 7>, <&dma 7>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		uart2: serial@01c28800 {
1929e3c
-			compatible = "snps,dw-apb-uart";
1929e3c
-			reg = <0x01c28800 0x400>;
1929e3c
-			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			reg-shift = <2>;
1929e3c
-			reg-io-width = <4>;
1929e3c
-			clocks = <&ccu CLK_BUS_UART2>;
1929e3c
-			resets = <&ccu RST_BUS_UART2>;
1929e3c
-			dmas = <&dma 8>, <&dma 8>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		uart3: serial@01c28c00 {
1929e3c
-			compatible = "snps,dw-apb-uart";
1929e3c
-			reg = <0x01c28c00 0x400>;
1929e3c
-			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			reg-shift = <2>;
1929e3c
-			reg-io-width = <4>;
1929e3c
-			clocks = <&ccu CLK_BUS_UART3>;
1929e3c
-			resets = <&ccu RST_BUS_UART3>;
1929e3c
-			dmas = <&dma 9>, <&dma 9>;
1929e3c
-			dma-names = "rx", "tx";
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		i2c0: i2c@01c2ac00 {
1929e3c
-			compatible = "allwinner,sun6i-a31-i2c";
1929e3c
-			reg = <0x01c2ac00 0x400>;
1929e3c
-			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_I2C0>;
1929e3c
-			resets = <&ccu RST_BUS_I2C0>;
1929e3c
-			pinctrl-names = "default";
1929e3c
-			pinctrl-0 = <&i2c0_pins>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		i2c1: i2c@01c2b000 {
1929e3c
-			compatible = "allwinner,sun6i-a31-i2c";
1929e3c
-			reg = <0x01c2b000 0x400>;
1929e3c
-			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_I2C1>;
1929e3c
-			resets = <&ccu RST_BUS_I2C1>;
1929e3c
-			pinctrl-names = "default";
1929e3c
-			pinctrl-0 = <&i2c1_pins>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		i2c2: i2c@01c2b400 {
1929e3c
-			compatible = "allwinner,sun6i-a31-i2c";
1929e3c
-			reg = <0x01c2b000 0x400>;
1929e3c
-			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&ccu CLK_BUS_I2C2>;
1929e3c
-			resets = <&ccu RST_BUS_I2C2>;
1929e3c
-			pinctrl-names = "default";
1929e3c
-			pinctrl-0 = <&i2c2_pins>;
1929e3c
-			status = "disabled";
1929e3c
-			#address-cells = <1>;
1929e3c
-			#size-cells = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		gic: interrupt-controller@01c81000 {
1929e3c
-			compatible = "arm,gic-400";
1929e3c
-			reg = <0x01c81000 0x1000>,
1929e3c
-			      <0x01c82000 0x2000>,
1929e3c
-			      <0x01c84000 0x2000>,
1929e3c
-			      <0x01c86000 0x2000>;
1929e3c
-			interrupt-controller;
1929e3c
-			#interrupt-cells = <3>;
1929e3c
-			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1929e3c
-		};
1929e3c
-
1929e3c
-		rtc: rtc@01f00000 {
1929e3c
-			compatible = "allwinner,sun6i-a31-rtc";
1929e3c
-			reg = <0x01f00000 0x54>;
1929e3c
-			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1929e3c
-				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-		};
1929e3c
-
1929e3c
-		apb0_reset: reset@01f014b0 {
1929e3c
-			reg = <0x01f014b0 0x4>;
1929e3c
-			compatible = "allwinner,sun6i-a31-clock-reset";
1929e3c
-			#reset-cells = <1>;
1929e3c
-		};
1929e3c
-
1929e3c
-		codec_analog: codec-analog@01f015c0 {
1929e3c
-			compatible = "allwinner,sun8i-h3-codec-analog";
1929e3c
-			reg = <0x01f015c0 0x4>;
1929e3c
-		};
1929e3c
-
1929e3c
-		ir: ir@01f02000 {
1929e3c
-			compatible = "allwinner,sun5i-a13-ir";
1929e3c
-			clocks = <&apb0_gates 1>, <&ir_clk>;
1929e3c
-			clock-names = "apb", "ir";
1929e3c
-			resets = <&apb0_reset 1>;
1929e3c
-			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			reg = <0x01f02000 0x40>;
1929e3c
-			status = "disabled";
1929e3c
-		};
1929e3c
-
1929e3c
-		r_pio: pinctrl@01f02c00 {
1929e3c
-			compatible = "allwinner,sun8i-h3-r-pinctrl";
1929e3c
-			reg = <0x01f02c00 0x400>;
1929e3c
-			interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
-			clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>;
1929e3c
-			clock-names = "apb", "hosc", "losc";
1929e3c
-			resets = <&apb0_reset 0>;
1929e3c
-			gpio-controller;
1929e3c
-			#gpio-cells = <3>;
1929e3c
-			interrupt-controller;
1929e3c
-			#interrupt-cells = <3>;
1929e3c
-
1929e3c
-			ir_pins_a: ir@0 {
1929e3c
-				pins = "PL11";
1929e3c
-				function = "s_cir_rx";
1929e3c
-			};
1929e3c
-		};
1929e3c
-	};
1929e3c
-};
1929e3c
+/*
1929e3c
+ * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
1929e3c
+ *
1929e3c
+ * This file is dual-licensed: you can use it either under the terms
1929e3c
+ * of the GPL or the X11 license, at your option. Note that this dual
1929e3c
+ * licensing only applies to this file, and not this project as a
1929e3c
+ * whole.
1929e3c
+ *
1929e3c
+ *  a) This file is free software; you can redistribute it and/or
1929e3c
+ *     modify it under the terms of the GNU General Public License as
1929e3c
+ *     published by the Free Software Foundation; either version 2 of the
1929e3c
+ *     License, or (at your option) any later version.
1929e3c
+ *
1929e3c
+ *     This file is distributed in the hope that it will be useful,
1929e3c
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1929e3c
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1929e3c
+ *     GNU General Public License for more details.
1929e3c
+ *
1929e3c
+ * Or, alternatively,
1929e3c
+ *
1929e3c
+ *  b) Permission is hereby granted, free of charge, to any person
1929e3c
+ *     obtaining a copy of this software and associated documentation
1929e3c
+ *     files (the "Software"), to deal in the Software without
1929e3c
+ *     restriction, including without limitation the rights to use,
1929e3c
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
1929e3c
+ *     sell copies of the Software, and to permit persons to whom the
1929e3c
+ *     Software is furnished to do so, subject to the following
1929e3c
+ *     conditions:
1929e3c
+ *
1929e3c
+ *     The above copyright notice and this permission notice shall be
1929e3c
+ *     included in all copies or substantial portions of the Software.
1929e3c
+ *
1929e3c
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1929e3c
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
1929e3c
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1929e3c
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
1929e3c
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1929e3c
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1929e3c
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1929e3c
+ *     OTHER DEALINGS IN THE SOFTWARE.
1929e3c
+ */
1929e3c
+
1929e3c
+#include "sunxi-h3-h5.dtsi"
1929e3c
+
1929e3c
+/ {
1929e3c
+	cpus {
1929e3c
+		#address-cells = <1>;
1929e3c
+		#size-cells = <0>;
1929e3c
+
1929e3c
+		cpu@0 {
1929e3c
+			compatible = "arm,cortex-a7";
1929e3c
+			device_type = "cpu";
1929e3c
+			reg = <0>;
1929e3c
+		};
1929e3c
+
1929e3c
+		cpu@1 {
1929e3c
+			compatible = "arm,cortex-a7";
1929e3c
+			device_type = "cpu";
1929e3c
+			reg = <1>;
1929e3c
+		};
1929e3c
+
1929e3c
+		cpu@2 {
1929e3c
+			compatible = "arm,cortex-a7";
1929e3c
+			device_type = "cpu";
1929e3c
+			reg = <2>;
1929e3c
+		};
1929e3c
+
1929e3c
+		cpu@3 {
1929e3c
+			compatible = "arm,cortex-a7";
1929e3c
+			device_type = "cpu";
1929e3c
+			reg = <3>;
1929e3c
+		};
1929e3c
+	};
1929e3c
+
1929e3c
+	timer {
1929e3c
+		compatible = "arm,armv7-timer";
1929e3c
+		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
+			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
+			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
+			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
1929e3c
+	};
1929e3c
+};
1929e3c
+
1929e3c
+&ccu {
1929e3c
+	compatible = "allwinner,sun8i-h3-ccu";
1929e3c
+};
1929e3c
+
1929e3c
+&mmc0 {
1929e3c
+	compatible = "allwinner,sun7i-a20-mmc";
1929e3c
+	clocks = <&ccu CLK_BUS_MMC0>,
1929e3c
+		 <&ccu CLK_MMC0>,
1929e3c
+		 <&ccu CLK_MMC0_OUTPUT>,
1929e3c
+		 <&ccu CLK_MMC0_SAMPLE>;
1929e3c
+	clock-names = "ahb",
1929e3c
+		      "mmc",
1929e3c
+		      "output",
1929e3c
+		      "sample";
1929e3c
+};
1929e3c
+
1929e3c
+&mmc1 {
1929e3c
+	compatible = "allwinner,sun7i-a20-mmc";
1929e3c
+	clocks = <&ccu CLK_BUS_MMC1>,
1929e3c
+		 <&ccu CLK_MMC1>,
1929e3c
+		 <&ccu CLK_MMC1_OUTPUT>,
1929e3c
+		 <&ccu CLK_MMC1_SAMPLE>;
1929e3c
+	clock-names = "ahb",
1929e3c
+		      "mmc",
1929e3c
+		      "output",
1929e3c
+		      "sample";
1929e3c
+};
1929e3c
+
1929e3c
+&mmc2 {
1929e3c
+	compatible = "allwinner,sun7i-a20-mmc";
1929e3c
+	clocks = <&ccu CLK_BUS_MMC2>,
1929e3c
+		 <&ccu CLK_MMC2>,
1929e3c
+		 <&ccu CLK_MMC2_OUTPUT>,
1929e3c
+		 <&ccu CLK_MMC2_SAMPLE>;
1929e3c
+	clock-names = "ahb",
1929e3c
+		      "mmc",
1929e3c
+		      "output",
1929e3c
+		      "sample";
1929e3c
+};
1929e3c
+
1929e3c
+&pio {
1929e3c
+	compatible = "allwinner,sun8i-h3-pinctrl";
1929e3c
+};
1929e3c
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
1929e3c
similarity index 90%
1929e3c
copy from arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
copy to arch/arm/boot/dts/sunxi-h3-h5.dtsi
1929e3c
index c13fbfb92592..2494ea063cd4 100644
1929e3c
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
1929e3c
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
1929e3c
@@ -46,43 +46,8 @@
1929e3c
 
1929e3c
 / {
1929e3c
 	interrupt-parent = <&gic;;
1929e3c
-
1929e3c
-	cpus {
1929e3c
-		#address-cells = <1>;
1929e3c
-		#size-cells = <0>;
1929e3c
-
1929e3c
-		cpu@0 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <0>;
1929e3c
-		};
1929e3c
-
1929e3c
-		cpu@1 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <1>;
1929e3c
-		};
1929e3c
-
1929e3c
-		cpu@2 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <2>;
1929e3c
-		};
1929e3c
-
1929e3c
-		cpu@3 {
1929e3c
-			compatible = "arm,cortex-a7";
1929e3c
-			device_type = "cpu";
1929e3c
-			reg = <3>;
1929e3c
-		};
1929e3c
-	};
1929e3c
-
1929e3c
-	timer {
1929e3c
-		compatible = "arm,armv7-timer";
1929e3c
-		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
-			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
-			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1929e3c
-			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
1929e3c
-	};
1929e3c
+	#address-cells = <1>;
1929e3c
+	#size-cells = <1>;
1929e3c
 
1929e3c
 	clocks {
1929e3c
 		#address-cells = <1>;
1929e3c
@@ -147,16 +112,8 @@
1929e3c
 		};
1929e3c
 
1929e3c
 		mmc0: mmc@01c0f000 {
1929e3c
-			compatible = "allwinner,sun7i-a20-mmc";
1929e3c
+			/* compatible and clocks are in per SoC .dtsi file */
1929e3c
 			reg = <0x01c0f000 0x1000>;
1929e3c
-			clocks = <&ccu CLK_BUS_MMC0>,
1929e3c
-				 <&ccu CLK_MMC0>,
1929e3c
-				 <&ccu CLK_MMC0_OUTPUT>,
1929e3c
-				 <&ccu CLK_MMC0_SAMPLE>;
1929e3c
-			clock-names = "ahb",
1929e3c
-				      "mmc",
1929e3c
-				      "output",
1929e3c
-				      "sample";
1929e3c
 			resets = <&ccu RST_BUS_MMC0>;
1929e3c
 			reset-names = "ahb";
1929e3c
 			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
@@ -166,16 +123,8 @@
1929e3c
 		};
1929e3c
 
1929e3c
 		mmc1: mmc@01c10000 {
1929e3c
-			compatible = "allwinner,sun7i-a20-mmc";
1929e3c
+			/* compatible and clocks are in per SoC .dtsi file */
1929e3c
 			reg = <0x01c10000 0x1000>;
1929e3c
-			clocks = <&ccu CLK_BUS_MMC1>,
1929e3c
-				 <&ccu CLK_MMC1>,
1929e3c
-				 <&ccu CLK_MMC1_OUTPUT>,
1929e3c
-				 <&ccu CLK_MMC1_SAMPLE>;
1929e3c
-			clock-names = "ahb",
1929e3c
-				      "mmc",
1929e3c
-				      "output",
1929e3c
-				      "sample";
1929e3c
 			resets = <&ccu RST_BUS_MMC1>;
1929e3c
 			reset-names = "ahb";
1929e3c
 			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
@@ -185,16 +134,8 @@
1929e3c
 		};
1929e3c
 
1929e3c
 		mmc2: mmc@01c11000 {
1929e3c
-			compatible = "allwinner,sun7i-a20-mmc";
1929e3c
+			/* compatible and clocks are in per SoC .dtsi file */
1929e3c
 			reg = <0x01c11000 0x1000>;
1929e3c
-			clocks = <&ccu CLK_BUS_MMC2>,
1929e3c
-				 <&ccu CLK_MMC2>,
1929e3c
-				 <&ccu CLK_MMC2_OUTPUT>,
1929e3c
-				 <&ccu CLK_MMC2_SAMPLE>;
1929e3c
-			clock-names = "ahb",
1929e3c
-				      "mmc",
1929e3c
-				      "output",
1929e3c
-				      "sample";
1929e3c
 			resets = <&ccu RST_BUS_MMC2>;
1929e3c
 			reset-names = "ahb";
1929e3c
 			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1929e3c
@@ -305,7 +246,7 @@
1929e3c
 		};
1929e3c
 
1929e3c
 		ccu: clock@01c20000 {
1929e3c
-			compatible = "allwinner,sun8i-h3-ccu";
1929e3c
+			/* compatible is in per SoC .dtsi file */
1929e3c
 			reg = <0x01c20000 0x400>;
1929e3c
 			clocks = <&osc24M>, <&osc32k>;
1929e3c
 			clock-names = "hosc", "losc";
1929e3c
@@ -314,7 +255,7 @@
1929e3c
 		};
1929e3c
 
1929e3c
 		pio: pinctrl@01c20800 {
1929e3c
-			compatible = "allwinner,sun8i-h3-pinctrl";
1929e3c
+			/* compatible is in per SoC .dtsi file */
1929e3c
 			reg = <0x01c20800 0x400>;
1929e3c
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1929e3c
 				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;