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

Merge tag 'dt-for-armsoc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/dt

Merge "Device Tree changes for Ux500 and ARM SOC" from Linus Walleij:

- Document Snoop Control Unit (SCU) bindings
- Document Ux500 board bindings
- Define the backup RAM in the DBx500 device tree

* tag 'dt-for-armsoc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson:
ARM: ux500: define the backupram in the device tree
ARM: ux500: add board documentation
ARM: scu: document Snoop Control Unit DT bindings

+117
+25
Documentation/devicetree/bindings/arm/scu.txt
··· 1 + * ARM Snoop Control Unit (SCU) 2 + 3 + As part of the MPCore complex, Cortex-A5 and Cortex-A9 are provided 4 + with a Snoop Control Unit. The register range is usually 256 (0x100) 5 + bytes. 6 + 7 + References: 8 + 9 + - Cortex-A9: see DDI0407E Cortex-A9 MPCore Technical Reference Manual 10 + Revision r2p0 11 + - Cortex-A5: see DDI0434B Cortex-A5 MPCore Technical Reference Manual 12 + Revision r0p1 13 + 14 + - compatible : Should be: 15 + "arm,cortex-a9-scu" 16 + "arm,cortex-a5-scu" 17 + 18 + - reg : Specify the base address and the size of the SCU register window. 19 + 20 + Example: 21 + 22 + scu@a04100000 { 23 + compatible = "arm,cortex-a9-scu"; 24 + reg = <0xa0410000 0x100>; 25 + };
+83
Documentation/devicetree/bindings/arm/ux500/boards.txt
··· 1 + ST-Ericsson Ux500 boards 2 + ------------------------ 3 + 4 + Required properties (in root node) one of these: 5 + compatible = "st-ericsson,mop500" (legacy) 6 + compatible = "st-ericsson,u8500" 7 + 8 + Required node (under root node): 9 + 10 + soc: represents the system-on-chip and contains the chip 11 + peripherals 12 + 13 + Required property of soc node, one of these: 14 + compatible = "stericsson,db8500" 15 + 16 + Required subnodes under soc node: 17 + 18 + backupram: (used for CPU spin tables and for storing data 19 + during retention, system won't boot without this): 20 + compatible = "ste,dbx500-backupram" 21 + 22 + scu: 23 + see binding for arm/scu.txt 24 + 25 + interrupt-controller: 26 + see binding for arm/gic.txt 27 + 28 + timer: 29 + see binding for arm/twd.txt 30 + 31 + clocks: 32 + see binding for clocks/ux500.txt 33 + 34 + Example: 35 + 36 + /dts-v1/; 37 + 38 + / { 39 + model = "ST-Ericsson HREF (pre-v60) and ST UIB"; 40 + compatible = "st-ericsson,mop500", "st-ericsson,u8500"; 41 + 42 + soc { 43 + #address-cells = <1>; 44 + #size-cells = <1>; 45 + compatible = "stericsson,db8500"; 46 + interrupt-parent = <&intc>; 47 + ranges; 48 + 49 + backupram@80150000 { 50 + compatible = "ste,dbx500-backupram"; 51 + reg = <0x80150000 0x2000>; 52 + }; 53 + 54 + intc: interrupt-controller@a0411000 { 55 + compatible = "arm,cortex-a9-gic"; 56 + #interrupt-cells = <3>; 57 + #address-cells = <1>; 58 + interrupt-controller; 59 + reg = <0xa0411000 0x1000>, 60 + <0xa0410100 0x100>; 61 + }; 62 + 63 + scu@a04100000 { 64 + compatible = "arm,cortex-a9-scu"; 65 + reg = <0xa0410000 0x100>; 66 + }; 67 + 68 + timer@a0410600 { 69 + compatible = "arm,cortex-a9-twd-timer"; 70 + reg = <0xa0410600 0x20>; 71 + interrupts = <1 13 0x304>; /* IRQ level high per-CPU */ 72 + clocks = <&smp_twd_clk>; 73 + }; 74 + 75 + clocks { 76 + compatible = "stericsson,u8500-clks"; 77 + 78 + smp_twd_clk: smp-twd-clock { 79 + #clock-cells = <0>; 80 + }; 81 + }; 82 + }; 83 + };
+9
arch/arm/boot/dts/ste-dbx5x0.dtsi
··· 190 190 reg = <0xa0410000 0x100>; 191 191 }; 192 192 193 + /* 194 + * The backup RAM is used for retention during sleep 195 + * and various things like spin tables 196 + */ 197 + backupram@80150000 { 198 + compatible = "ste,dbx500-backupram"; 199 + reg = <0x80150000 0x2000>; 200 + }; 201 + 193 202 L2: l2-cache { 194 203 compatible = "arm,pl310-cache"; 195 204 reg = <0xa0412000 0x1000>;