sunxi: H3: add device tree changes for H3 Ethernet
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.9 / 0070-arm-sun8i-sunxi-h3-h5-Add-dt-node-for-the-syscon-con.patch
1 From d91d3daf5de90e0118227d8ddcb7bb4ff40c1b91 Mon Sep 17 00:00:00 2001
2 From: Corentin Labbe <clabbe.montjoie@gmail.com>
3 Date: Wed, 31 May 2017 09:18:37 +0200
4 Subject: arm: sun8i: sunxi-h3-h5: Add dt node for the syscon control module
5
6 This patch add the dt node for the syscon register present on the
7 Allwinner H3/H5
8
9 Only two register are present in this syscon and the only one useful is
10 the one dedicated to EMAC clock..
11
12 Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
13 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
14 ---
15 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 6 ++++++
16 1 file changed, 6 insertions(+)
17
18 --- a/arch/arm/boot/dts/sun8i-h3.dtsi
19 +++ b/arch/arm/boot/dts/sun8i-h3.dtsi
20 @@ -140,6 +140,12 @@
21 #size-cells = <1>;
22 ranges;
23
24 + syscon: syscon@1c00000 {
25 + compatible = "allwinner,sun8i-h3-system-controller",
26 + "syscon";
27 + reg = <0x01c00000 0x1000>;
28 + };
29 +
30 dma: dma-controller@01c02000 {
31 compatible = "allwinner,sun8i-h3-dma";
32 reg = <0x01c02000 0x1000>;