Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: add binding for the Allwinner A64 DE2 bus

All the sub-blocks of Allwinner A64 DE2 needs the SRAM C on A64 SoC to
be claimed, otherwise the whole DE2 space is inaccessible.

Add a device tree binding of the DE2 part as a sub-bus.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

authored by

Icenowy Zheng and committed by
Maxime Ripard
a6e3ab0b ede18ae3

+37
+37
Documentation/devicetree/bindings/bus/sun50i-de2-bus.txt
··· 1 + Device tree bindings for Allwinner A64 DE2 bus 2 + 3 + The Allwinner A64 DE2 is on a special bus, which needs a SRAM region (SRAM C) 4 + to be claimed for enabling the access. 5 + 6 + Required properties: 7 + 8 + - compatible: Should contain "allwinner,sun50i-a64-de2" 9 + - reg: A resource specifier for the register space 10 + - #address-cells: Must be set to 1 11 + - #size-cells: Must be set to 1 12 + - ranges: Must be set up to map the address space inside the 13 + DE2, for the sub-blocks of DE2. 14 + - allwinner,sram: the SRAM that needs to be claimed 15 + 16 + Example: 17 + 18 + de2@1000000 { 19 + compatible = "allwinner,sun50i-a64-de2"; 20 + reg = <0x1000000 0x400000>; 21 + allwinner,sram = <&de2_sram 1>; 22 + #address-cells = <1>; 23 + #size-cells = <1>; 24 + ranges = <0 0x1000000 0x400000>; 25 + 26 + display_clocks: clock@0 { 27 + compatible = "allwinner,sun50i-a64-de2-clk"; 28 + reg = <0x0 0x100000>; 29 + clocks = <&ccu CLK_DE>, 30 + <&ccu CLK_BUS_DE>; 31 + clock-names = "mod", 32 + "bus"; 33 + resets = <&ccu RST_BUS_DE>; 34 + #clock-cells = <1>; 35 + #reset-cells = <1>; 36 + }; 37 + };