Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / remoteproc / qcom,adsp.txt
1 Qualcomm ADSP Peripheral Image Loader
2
3 This document defines the binding for a component that loads and boots firmware
4 on the Qualcomm ADSP Hexagon core.
5
6 - compatible:
7         Usage: required
8         Value type: <string>
9         Definition: must be one of:
10                     "qcom,msm8974-adsp-pil"
11                     "qcom,msm8996-adsp-pil"
12                     "qcom,msm8996-slpi-pil"
13
14 - interrupts-extended:
15         Usage: required
16         Value type: <prop-encoded-array>
17         Definition: must list the watchdog, fatal IRQs ready, handover and
18                     stop-ack IRQs
19
20 - interrupt-names:
21         Usage: required
22         Value type: <stringlist>
23         Definition: must be "wdog", "fatal", "ready", "handover", "stop-ack"
24
25 - clocks:
26         Usage: required
27         Value type: <prop-encoded-array>
28         Definition: reference to the xo clock and optionally aggre2 clock to be
29                     held on behalf of the booting Hexagon core
30
31 - clock-names:
32         Usage: required
33         Value type: <stringlist>
34         Definition: must be "xo" and optionally include "aggre2"
35
36 - cx-supply:
37         Usage: required
38         Value type: <phandle>
39         Definition: reference to the regulator to be held on behalf of the
40                     booting Hexagon core
41
42 - px-supply:
43         Usage: required
44         Value type: <phandle>
45         Definition: reference to the px regulator to be held on behalf of the
46                     booting Hexagon core
47
48 - memory-region:
49         Usage: required
50         Value type: <phandle>
51         Definition: reference to the reserved-memory for the ADSP
52
53 - qcom,smem-states:
54         Usage: required
55         Value type: <phandle>
56         Definition: reference to the smem state for requesting the ADSP to
57                     shut down
58
59 - qcom,smem-state-names:
60         Usage: required
61         Value type: <stringlist>
62         Definition: must be "stop"
63
64
65 = SUBNODES
66 The adsp node may have an subnode named "smd-edge" that describes the SMD edge,
67 channels and devices related to the ADSP.  See ../soc/qcom/qcom,smd.txt for
68 details on how to describe the SMD edge.
69
70
71 = EXAMPLE
72 The following example describes the resources needed to boot control the
73 ADSP, as it is found on MSM8974 boards.
74
75         adsp {
76                 compatible = "qcom,msm8974-adsp-pil";
77
78                 interrupts-extended = <&intc 0 162 IRQ_TYPE_EDGE_RISING>,
79                                       <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
80                                       <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
81                                       <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
82                                       <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
83                 interrupt-names = "wdog",
84                                   "fatal",
85                                   "ready",
86                                   "handover",
87                                   "stop-ack";
88
89                 clocks = <&rpmcc RPM_CXO_CLK>;
90                 clock-names = "xo";
91
92                 cx-supply = <&pm8841_s2>;
93
94                 memory-region = <&adsp_region>;
95
96                 qcom,smem-states = <&adsp_smp2p_out 0>;
97                 qcom,smem-state-names = "stop";
98
99                 smd-edge {
100                         interrupts = <0 156 IRQ_TYPE_EDGE_RISING>;
101
102                         qcom,ipc = <&apcs 8 8>;
103                         qcom,smd-edge = <1>;
104                 };
105         };
106
107 The following example describes the resources needed to boot control the
108 SLPI, as it is found on MSM8996 boards.
109
110         slpi {
111                 compatible = "qcom,msm8996-slpi-pil";
112                 interrupts-extended = <&intc 0 390 IRQ_TYPE_EDGE_RISING>,
113                                       <&slpi_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
114                                       <&slpi_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
115                                       <&slpi_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
116                                       <&slpi_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
117                 interrupt-names = "wdog",
118                                   "fatal",
119                                   "ready",
120                                   "handover",
121                                   "stop-ack";
122
123                 clocks = <&rpmcc MSM8996_RPM_SMD_XO_CLK_SRC>,
124                          <&rpmcc MSM8996_RPM_SMD_AGGR2_NOC_CLK>;
125                 clock-names = "xo", "aggre2";
126
127                 cx-supply = <&pm8994_l26>;
128                 px-supply = <&pm8994_lvs2>;
129
130                 memory-region = <&slpi_region>;
131                 qcom,smem-states = <&slpi_smp2p_out 0>;
132                 qcom,smem-state-names = "stop";
133         };