Sebastian Hesselbarth | 2440946 | 2013-09-09 14:17:52 +0200 | [diff] [blame] | 1 | Marvell Berlin SoC Family Device Tree Bindings |
| 2 | --------------------------------------------------------------- |
| 3 | |
Antoine Tenart | f07b4e4 | 2015-04-27 21:39:47 +0200 | [diff] [blame] | 4 | Work in progress statement: |
| 5 | |
| 6 | Device tree files and bindings applying to Marvell Berlin SoCs and boards are |
| 7 | considered "unstable". Any Marvell Berlin device tree binding may change at any |
| 8 | time. Be sure to use a device tree binary and a kernel image generated from the |
| 9 | same source tree. |
| 10 | |
| 11 | Please refer to Documentation/devicetree/bindings/ABI.txt for a definition of a |
| 12 | stable binding/ABI. |
| 13 | |
| 14 | --------------------------------------------------------------- |
| 15 | |
Sebastian Hesselbarth | 2440946 | 2013-09-09 14:17:52 +0200 | [diff] [blame] | 16 | Boards with a SoC of the Marvell Berlin family, e.g. Armada 1500 |
| 17 | shall have the following properties: |
| 18 | |
| 19 | * Required root node properties: |
| 20 | compatible: must contain "marvell,berlin" |
| 21 | |
| 22 | In addition, the above compatible shall be extended with the specific |
| 23 | SoC and board used. Currently known SoC compatibles are: |
| 24 | "marvell,berlin2" for Marvell Armada 1500 (BG2, 88DE3100), |
| 25 | "marvell,berlin2cd" for Marvell Armada 1500-mini (BG2CD, 88DE3005) |
| 26 | "marvell,berlin2ct" for Marvell Armada ? (BG2CT, 88DE????) |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 27 | "marvell,berlin2q" for Marvell Armada 1500-pro (BG2Q, 88DE3114) |
Sebastian Hesselbarth | 2440946 | 2013-09-09 14:17:52 +0200 | [diff] [blame] | 28 | "marvell,berlin3" for Marvell Armada ? (BG3, 88DE????) |
| 29 | |
| 30 | * Example: |
| 31 | |
| 32 | / { |
| 33 | model = "Sony NSZ-GS7"; |
| 34 | compatible = "sony,nsz-gs7", "marvell,berlin2", "marvell,berlin"; |
| 35 | |
| 36 | ... |
| 37 | } |
Sebastian Hesselbarth | 55a4b07 | 2014-05-10 13:46:12 +0200 | [diff] [blame] | 38 | |
Antoine Ténart | 9ab5fb8 | 2014-06-04 18:03:43 +0200 | [diff] [blame] | 39 | * Marvell Berlin CPU control bindings |
| 40 | |
| 41 | CPU control register allows various operations on CPUs, like resetting them |
| 42 | independently. |
| 43 | |
| 44 | Required properties: |
| 45 | - compatible: should be "marvell,berlin-cpu-ctrl" |
| 46 | - reg: address and length of the register set |
| 47 | |
| 48 | Example: |
| 49 | |
| 50 | cpu-ctrl@f7dd0000 { |
| 51 | compatible = "marvell,berlin-cpu-ctrl"; |
| 52 | reg = <0xf7dd0000 0x10000>; |
| 53 | }; |
| 54 | |
Sebastian Hesselbarth | 55a4b07 | 2014-05-10 13:46:12 +0200 | [diff] [blame] | 55 | * Marvell Berlin2 chip control binding |
| 56 | |
| 57 | Marvell Berlin SoCs have a chip control register set providing several |
| 58 | individual registers dealing with pinmux, padmux, clock, reset, and secondary |
| 59 | CPU boot address. Unfortunately, the individual registers are spread among the |
| 60 | chip control registers, so there should be a single DT node only providing the |
| 61 | different functions which are described below. |
| 62 | |
| 63 | Required properties: |
Antoine Tenart | 7c90a5a | 2015-04-27 21:39:48 +0200 | [diff] [blame] | 64 | - compatible: |
Antoine Tenart | 576efe3 | 2015-04-07 16:45:06 +0200 | [diff] [blame] | 65 | * the first and second values must be: |
Antoine Tenart | 7c90a5a | 2015-04-27 21:39:48 +0200 | [diff] [blame] | 66 | "simple-mfd", "syscon" |
Sebastian Hesselbarth | 55a4b07 | 2014-05-10 13:46:12 +0200 | [diff] [blame] | 67 | - reg: address and length of following register sets for |
| 68 | BG2/BG2CD: chip control register set |
| 69 | BG2Q: chip control register set and cpu pll registers |
| 70 | |
Antoine Tenart | e9673a7 | 2014-05-05 07:27:28 +0200 | [diff] [blame] | 71 | * Marvell Berlin2 system control binding |
| 72 | |
| 73 | Marvell Berlin SoCs have a system control register set providing several |
| 74 | individual registers dealing with pinmux, padmux, and reset. |
| 75 | |
| 76 | Required properties: |
Antoine Tenart | 7c90a5a | 2015-04-27 21:39:48 +0200 | [diff] [blame] | 77 | - compatible: |
Antoine Tenart | 576efe3 | 2015-04-07 16:45:06 +0200 | [diff] [blame] | 78 | * the first and second values must be: |
Antoine Tenart | 7c90a5a | 2015-04-27 21:39:48 +0200 | [diff] [blame] | 79 | "simple-mfd", "syscon" |
Antoine Tenart | e9673a7 | 2014-05-05 07:27:28 +0200 | [diff] [blame] | 80 | - reg: address and length of the system control register set |
| 81 | |
Sebastian Hesselbarth | 55a4b07 | 2014-05-10 13:46:12 +0200 | [diff] [blame] | 82 | Example: |
| 83 | |
| 84 | chip: chip-control@ea0000 { |
Antoine Tenart | 576efe3 | 2015-04-07 16:45:06 +0200 | [diff] [blame] | 85 | compatible = "simple-mfd", "syscon"; |
Sebastian Hesselbarth | 55a4b07 | 2014-05-10 13:46:12 +0200 | [diff] [blame] | 86 | reg = <0xea0000 0x400>; |
Antoine Tenart | c1f86f2 | 2015-04-07 16:45:02 +0200 | [diff] [blame] | 87 | |
| 88 | /* sub-device nodes */ |
Antoine Tenart | e9673a7 | 2014-05-05 07:27:28 +0200 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | sysctrl: system-controller@d000 { |
Antoine Tenart | 576efe3 | 2015-04-07 16:45:06 +0200 | [diff] [blame] | 92 | compatible = "simple-mfd", "syscon"; |
Antoine Tenart | e9673a7 | 2014-05-05 07:27:28 +0200 | [diff] [blame] | 93 | reg = <0xd000 0x100>; |
Antoine Tenart | c1f86f2 | 2015-04-07 16:45:02 +0200 | [diff] [blame] | 94 | |
| 95 | /* sub-device nodes */ |
Sebastian Hesselbarth | 55a4b07 | 2014-05-10 13:46:12 +0200 | [diff] [blame] | 96 | }; |