diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2018-04-11 17:16:41 +0300 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2018-06-19 17:57:14 +0300 |
commit | 1f1f5183981d70bf0950f8467772851a05eb9148 (patch) | |
tree | edc17b6fae182579ebfaddb3625d6a21e253d7ca /arch/arm64/boot/dts/allwinner | |
parent | df35fbcfa3983c233f5fadaf8db18bfd10ac58b6 (diff) | |
download | linux-1f1f5183981d70bf0950f8467772851a05eb9148.tar.xz |
arm64: dts: allwinner: a64: add SRAM controller device tree node
Allwinner A64 has a SRAM controller, and in the device tree currently
we have a syscon node to enable EMAC driver to access the EMAC clock
register. As SRAM controller driver can now export regmap for this
register, replace the syscon node to the SRAM controller device node,
and let EMAC driver to acquire its EMAC clock regmap.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
[wens@csie.org: Updated compatible string]
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'arch/arm64/boot/dts/allwinner')
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 2777b2d02d77..ff2ddde1e117 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -170,9 +170,24 @@ ranges; syscon: syscon@1c00000 { - compatible = "allwinner,sun50i-a64-system-controller", - "syscon"; + compatible = "allwinner,sun50i-a64-system-control"; reg = <0x01c00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + sram_c: sram@18000 { + compatible = "mmio-sram"; + reg = <0x00018000 0x28000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x00018000 0x28000>; + + de2_sram: sram-section@0 { + compatible = "allwinner,sun50i-a64-sram-c"; + reg = <0x0000 0x28000>; + }; + }; }; dma: dma-controller@1c02000 { |