btrfs: trim: Check the range passed into to prevent overflow
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / arm / amlogic.txt
1 Amlogic MesonX device tree bindings
2 -------------------------------------------
3
4 Work in progress statement:
5
6 Device tree files and bindings applying to Amlogic SoCs and boards are
7 considered "unstable". Any Amlogic device tree binding may change at
8 any time. Be sure to use a device tree binary and a kernel image
9 generated from the 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
16 Boards with the Amlogic Meson6 SoC shall have the following properties:
17   Required root node property:
18     compatible: "amlogic,meson6"
19
20 Boards with the Amlogic Meson8 SoC shall have the following properties:
21   Required root node property:
22     compatible: "amlogic,meson8";
23
24 Boards with the Amlogic Meson8b SoC shall have the following properties:
25   Required root node property:
26     compatible: "amlogic,meson8b";
27
28 Boards with the Amlogic Meson8m2 SoC shall have the following properties:
29   Required root node property:
30     compatible: "amlogic,meson8m2";
31
32 Boards with the Amlogic Meson GXBaby SoC shall have the following properties:
33   Required root node property:
34     compatible: "amlogic,meson-gxbb";
35
36 Boards with the Amlogic Meson GXL S905X SoC shall have the following properties:
37   Required root node property:
38     compatible: "amlogic,s905x", "amlogic,meson-gxl";
39
40 Boards with the Amlogic Meson GXL S905D SoC shall have the following properties:
41   Required root node property:
42     compatible: "amlogic,s905d", "amlogic,meson-gxl";
43
44 Boards with the Amlogic Meson GXL S805X SoC shall have the following properties:
45   Required root node property:
46     compatible: "amlogic,s805x", "amlogic,meson-gxl";
47
48 Boards with the Amlogic Meson GXL S905W SoC shall have the following properties:
49   Required root node property:
50     compatible: "amlogic,s905w", "amlogic,meson-gxl";
51
52 Boards with the Amlogic Meson GXM S912 SoC shall have the following properties:
53   Required root node property:
54     compatible: "amlogic,s912", "amlogic,meson-gxm";
55
56 Boards with the Amlogic Meson AXG A113D SoC shall have the following properties:
57   Required root node property:
58     compatible: "amlogic,a113d", "amlogic,meson-axg";
59
60 Boards with the Amlogic Meson G12A S905D2 SoC shall have the following properties:
61   Required root node property:
62     compatible: "amlogic,g12a";
63
64 Board compatible values (alphabetically, grouped by SoC):
65
66   - "geniatech,atv1200" (Meson6)
67
68   - "minix,neo-x8" (Meson8)
69
70   - "endless,ec100" (Meson8b)
71   - "hardkernel,odroid-c1" (Meson8b)
72   - "tronfy,mxq" (Meson8b)
73
74   - "tronsmart,mxiii-plus" (Meson8m2)
75
76   - "amlogic,p200" (Meson gxbb)
77   - "amlogic,p201" (Meson gxbb)
78   - "friendlyarm,nanopi-k2" (Meson gxbb)
79   - "hardkernel,odroid-c2" (Meson gxbb)
80   - "nexbox,a95x" (Meson gxbb or Meson gxl s905x)
81   - "tronsmart,vega-s95-pro", "tronsmart,vega-s95" (Meson gxbb)
82   - "tronsmart,vega-s95-meta", "tronsmart,vega-s95" (Meson gxbb)
83   - "tronsmart,vega-s95-telos", "tronsmart,vega-s95" (Meson gxbb)
84   - "wetek,hub" (Meson gxbb)
85   - "wetek,play2" (Meson gxbb)
86
87   - "amlogic,p212" (Meson gxl s905x)
88   - "hwacom,amazetv" (Meson gxl s905x)
89   - "khadas,vim" (Meson gxl s905x)
90   - "libretech,cc" (Meson gxl s905x)
91
92   - "amlogic,p230" (Meson gxl s905d)
93   - "amlogic,p231" (Meson gxl s905d)
94   - "phicomm,n1" (Meson gxl s905d)
95
96   - "amlogic,p241" (Meson gxl s805x)
97   - "libretech,aml-s805x-ac" (Meson gxl s805x)
98
99   - "amlogic,p281" (Meson gxl s905w)
100   - "oranth,tx3-mini" (Meson gxl s905w)
101
102   - "amlogic,q200" (Meson gxm s912)
103   - "amlogic,q201" (Meson gxm s912)
104   - "khadas,vim2" (Meson gxm s912)
105   - "kingnovel,r-box-pro" (Meson gxm S912)
106   - "nexbox,a1" (Meson gxm s912)
107   - "tronsmart,vega-s96" (Meson gxm s912)
108
109   - "amlogic,s400" (Meson axg a113d)
110
111   - "amlogic,u200" (Meson g12a s905d2)
112   - "amediatech,x96-max" (Meson g12a s905x2)
113   - "seirobotics,sei510" (Meson g12a s905x2)
114
115 Amlogic Meson Firmware registers Interface
116 ------------------------------------------
117
118 The Meson SoCs have a register bank with status and data shared with the
119 secure firmware.
120
121 Required properties:
122  - compatible: For Meson GX SoCs, must be "amlogic,meson-gx-ao-secure", "syscon"
123
124 Properties should indentify components of this register interface :
125
126 Meson GX SoC Information
127 ------------------------
128 A firmware register encodes the SoC type, package and revision information on
129 the Meson GX SoCs.
130 If present, the following property should be added :
131
132 Optional properties:
133   - amlogic,has-chip-id: If present, the interface gives the current SoC version.
134
135 Example
136 -------
137
138 ao-secure@140 {
139         compatible = "amlogic,meson-gx-ao-secure", "syscon";
140         reg = <0x0 0x140 0x0 0x140>;
141         amlogic,has-chip-id;
142 };