~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml (Architecture sparc) and /Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml (Architecture ppc)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/opp/opp-v2-      4 $id: http://devicetree.org/schemas/opp/opp-v2-kryo-cpu.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Qualcomm Technologies, Inc. NVMEM OPP        7 title: Qualcomm Technologies, Inc. NVMEM OPP
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Ilia Lin <ilia.lin@kernel.org>                  10   - Ilia Lin <ilia.lin@kernel.org>
 11                                                    11 
 12 allOf:                                             12 allOf:
 13   - $ref: opp-v2-base.yaml#                        13   - $ref: opp-v2-base.yaml#
 14                                                    14 
 15 description: |                                     15 description: |
 16   In certain Qualcomm Technologies, Inc. SoCs      16   In certain Qualcomm Technologies, Inc. SoCs like APQ8096 and MSM8996,
 17   the CPU frequencies subset and voltage value     17   the CPU frequencies subset and voltage value of each OPP varies based on
 18   the silicon variant in use.                      18   the silicon variant in use.
 19   Qualcomm Technologies, Inc. Process Voltage      19   Qualcomm Technologies, Inc. Process Voltage Scaling Tables
 20   defines the voltage and frequency value base     20   defines the voltage and frequency value based on the speedbin blown in
 21   the efuse combination.                           21   the efuse combination.
 22   The qcom-cpufreq-nvmem driver reads the efus     22   The qcom-cpufreq-nvmem driver reads the efuse value from the SoC to provide
 23   the OPP framework with required information      23   the OPP framework with required information (existing HW bitmap).
 24   This is used to determine the voltage and fr     24   This is used to determine the voltage and frequency value for each OPP of
 25   operating-points-v2 table when it is parsed      25   operating-points-v2 table when it is parsed by the OPP framework.
 26                                                    26 
 27 properties:                                        27 properties:
 28   compatible:                                      28   compatible:
 29     enum:                                          29     enum:
 30       - operating-points-v2-krait-cpu              30       - operating-points-v2-krait-cpu
 31       - operating-points-v2-kryo-cpu               31       - operating-points-v2-kryo-cpu
 32                                                    32 
 33   nvmem-cells:                                     33   nvmem-cells:
 34     description: |                                 34     description: |
 35       A phandle pointing to a nvmem-cells node     35       A phandle pointing to a nvmem-cells node representing the
 36       efuse registers that has information abo     36       efuse registers that has information about the
 37       speedbin that is used to select the righ     37       speedbin that is used to select the right frequency/voltage
 38       value pair.                                  38       value pair.
 39                                                    39 
 40   opp-shared: true                                 40   opp-shared: true
 41                                                    41 
 42 patternProperties:                                 42 patternProperties:
 43   '^opp-?[0-9]+$':                                 43   '^opp-?[0-9]+$':
 44     type: object                                   44     type: object
 45     additionalProperties: false                    45     additionalProperties: false
 46                                                    46 
 47     properties:                                    47     properties:
 48       opp-hz: true                                 48       opp-hz: true
 49                                                    49 
 50       opp-microvolt: true                          50       opp-microvolt: true
 51                                                    51 
 52       opp-peak-kBps: true                          52       opp-peak-kBps: true
 53                                                    53 
 54       opp-supported-hw:                            54       opp-supported-hw:
 55         description: |                             55         description: |
 56           A single 32 bit bitmap value, repres     56           A single 32 bit bitmap value, representing compatible HW.
 57           Bitmap for MSM8996 format:               57           Bitmap for MSM8996 format:
 58           0:  MSM8996, speedbin 0                  58           0:  MSM8996, speedbin 0
 59           1:  MSM8996, speedbin 1                  59           1:  MSM8996, speedbin 1
 60           2:  MSM8996, speedbin 2                  60           2:  MSM8996, speedbin 2
 61           3:  MSM8996, speedbin 3                  61           3:  MSM8996, speedbin 3
 62           4-31:  unused                            62           4-31:  unused
 63                                                    63 
 64           Bitmap for MSM8996SG format (speedbi     64           Bitmap for MSM8996SG format (speedbin shifted of 4 left):
 65           0-3:  unused                             65           0-3:  unused
 66           4:  MSM8996SG, speedbin 0                66           4:  MSM8996SG, speedbin 0
 67           5:  MSM8996SG, speedbin 1                67           5:  MSM8996SG, speedbin 1
 68           6:  MSM8996SG, speedbin 2                68           6:  MSM8996SG, speedbin 2
 69           7-31:  unused                            69           7-31:  unused
 70                                                    70 
 71           Bitmap for IPQ806x SoC:                  71           Bitmap for IPQ806x SoC:
 72           0:  IPQ8062                              72           0:  IPQ8062
 73           1:  IPQ8064/IPQ8066/IPQ8068              73           1:  IPQ8064/IPQ8066/IPQ8068
 74           2:  IPQ8065/IPQ8069                      74           2:  IPQ8065/IPQ8069
 75           3-31:  unused                            75           3-31:  unused
 76                                                    76 
 77           Other platforms use bits directly co     77           Other platforms use bits directly corresponding to speedbin index.
 78                                                    78 
 79       clock-latency-ns: true                       79       clock-latency-ns: true
 80                                                    80 
 81       required-opps: true                          81       required-opps: true
 82                                                    82 
 83     patternProperties:                             83     patternProperties:
 84       '^opp-microvolt-speed[0-9]+-pvs[0-9]+$':     84       '^opp-microvolt-speed[0-9]+-pvs[0-9]+$': true
 85                                                    85 
 86     required:                                      86     required:
 87       - opp-hz                                     87       - opp-hz
 88                                                    88 
 89 required:                                          89 required:
 90   - compatible                                     90   - compatible
 91                                                    91 
 92 if:                                                92 if:
 93   required:                                        93   required:
 94     - nvmem-cells                                  94     - nvmem-cells
 95 then:                                              95 then:
 96   patternProperties:                               96   patternProperties:
 97     '^opp-?[0-9]+$':                               97     '^opp-?[0-9]+$':
 98       required:                                    98       required:
 99         - opp-supported-hw                         99         - opp-supported-hw
100                                                   100 
101 additionalProperties: false                       101 additionalProperties: false
102                                                   102 
103 examples:                                         103 examples:
104   - |                                             104   - |
105     / {                                           105     / {
106         model = "Qualcomm Technologies, Inc. D    106         model = "Qualcomm Technologies, Inc. DB820c";
107         compatible = "arrow,apq8096-db820c", "    107         compatible = "arrow,apq8096-db820c", "qcom,apq8096-sbc", "qcom,apq8096";
108         #address-cells = <2>;                     108         #address-cells = <2>;
109         #size-cells = <2>;                        109         #size-cells = <2>;
110                                                   110 
111         cpus {                                    111         cpus {
112             #address-cells = <2>;                 112             #address-cells = <2>;
113             #size-cells = <0>;                    113             #size-cells = <0>;
114                                                   114 
115             CPU0: cpu@0 {                         115             CPU0: cpu@0 {
116                 device_type = "cpu";              116                 device_type = "cpu";
117                 compatible = "qcom,kryo";         117                 compatible = "qcom,kryo";
118                 reg = <0x0 0x0>;                  118                 reg = <0x0 0x0>;
119                 enable-method = "psci";           119                 enable-method = "psci";
120                 cpu-idle-states = <&CPU_SLEEP_    120                 cpu-idle-states = <&CPU_SLEEP_0>;
121                 capacity-dmips-mhz = <1024>;      121                 capacity-dmips-mhz = <1024>;
122                 clocks = <&kryocc 0>;             122                 clocks = <&kryocc 0>;
123                 operating-points-v2 = <&cluste    123                 operating-points-v2 = <&cluster0_opp>;
124                 power-domains = <&cpr>;           124                 power-domains = <&cpr>;
125                 power-domain-names = "cpr";       125                 power-domain-names = "cpr";
126                 #cooling-cells = <2>;             126                 #cooling-cells = <2>;
127                 next-level-cache = <&L2_0>;       127                 next-level-cache = <&L2_0>;
128                 L2_0: l2-cache {                  128                 L2_0: l2-cache {
129                     compatible = "cache";         129                     compatible = "cache";
130                     cache-level = <2>;            130                     cache-level = <2>;
131                     cache-unified;                131                     cache-unified;
132                 };                                132                 };
133             };                                    133             };
134                                                   134 
135             CPU1: cpu@1 {                         135             CPU1: cpu@1 {
136                 device_type = "cpu";              136                 device_type = "cpu";
137                 compatible = "qcom,kryo";         137                 compatible = "qcom,kryo";
138                 reg = <0x0 0x1>;                  138                 reg = <0x0 0x1>;
139                 enable-method = "psci";           139                 enable-method = "psci";
140                 cpu-idle-states = <&CPU_SLEEP_    140                 cpu-idle-states = <&CPU_SLEEP_0>;
141                 capacity-dmips-mhz = <1024>;      141                 capacity-dmips-mhz = <1024>;
142                 clocks = <&kryocc 0>;             142                 clocks = <&kryocc 0>;
143                 operating-points-v2 = <&cluste    143                 operating-points-v2 = <&cluster0_opp>;
144                 power-domains = <&cpr>;           144                 power-domains = <&cpr>;
145                 power-domain-names = "cpr";       145                 power-domain-names = "cpr";
146                 #cooling-cells = <2>;             146                 #cooling-cells = <2>;
147                 next-level-cache = <&L2_0>;       147                 next-level-cache = <&L2_0>;
148             };                                    148             };
149                                                   149 
150             CPU2: cpu@100 {                       150             CPU2: cpu@100 {
151                 device_type = "cpu";              151                 device_type = "cpu";
152                 compatible = "qcom,kryo";         152                 compatible = "qcom,kryo";
153                 reg = <0x0 0x100>;                153                 reg = <0x0 0x100>;
154                 enable-method = "psci";           154                 enable-method = "psci";
155                 cpu-idle-states = <&CPU_SLEEP_    155                 cpu-idle-states = <&CPU_SLEEP_0>;
156                 capacity-dmips-mhz = <1024>;      156                 capacity-dmips-mhz = <1024>;
157                 clocks = <&kryocc 1>;             157                 clocks = <&kryocc 1>;
158                 operating-points-v2 = <&cluste    158                 operating-points-v2 = <&cluster1_opp>;
159                 power-domains = <&cpr>;           159                 power-domains = <&cpr>;
160                 power-domain-names = "cpr";       160                 power-domain-names = "cpr";
161                 #cooling-cells = <2>;             161                 #cooling-cells = <2>;
162                 next-level-cache = <&L2_1>;       162                 next-level-cache = <&L2_1>;
163                 L2_1: l2-cache {                  163                 L2_1: l2-cache {
164                     compatible = "cache";         164                     compatible = "cache";
165                     cache-level = <2>;            165                     cache-level = <2>;
166                     cache-unified;                166                     cache-unified;
167                 };                                167                 };
168             };                                    168             };
169                                                   169 
170             CPU3: cpu@101 {                       170             CPU3: cpu@101 {
171                 device_type = "cpu";              171                 device_type = "cpu";
172                 compatible = "qcom,kryo";         172                 compatible = "qcom,kryo";
173                 reg = <0x0 0x101>;                173                 reg = <0x0 0x101>;
174                 enable-method = "psci";           174                 enable-method = "psci";
175                 cpu-idle-states = <&CPU_SLEEP_    175                 cpu-idle-states = <&CPU_SLEEP_0>;
176                 capacity-dmips-mhz = <1024>;      176                 capacity-dmips-mhz = <1024>;
177                 clocks = <&kryocc 1>;             177                 clocks = <&kryocc 1>;
178                 operating-points-v2 = <&cluste    178                 operating-points-v2 = <&cluster1_opp>;
179                 power-domains = <&cpr>;           179                 power-domains = <&cpr>;
180                 power-domain-names = "cpr";       180                 power-domain-names = "cpr";
181                 #cooling-cells = <2>;             181                 #cooling-cells = <2>;
182                 next-level-cache = <&L2_1>;       182                 next-level-cache = <&L2_1>;
183             };                                    183             };
184                                                   184 
185             cpu-map {                             185             cpu-map {
186                 cluster0 {                        186                 cluster0 {
187                     core0 {                       187                     core0 {
188                         cpu = <&CPU0>;            188                         cpu = <&CPU0>;
189                     };                            189                     };
190                                                   190 
191                     core1 {                       191                     core1 {
192                         cpu = <&CPU1>;            192                         cpu = <&CPU1>;
193                     };                            193                     };
194                 };                                194                 };
195                                                   195 
196                 cluster1 {                        196                 cluster1 {
197                     core0 {                       197                     core0 {
198                         cpu = <&CPU2>;            198                         cpu = <&CPU2>;
199                     };                            199                     };
200                                                   200 
201                     core1 {                       201                     core1 {
202                         cpu = <&CPU3>;            202                         cpu = <&CPU3>;
203                     };                            203                     };
204                 };                                204                 };
205             };                                    205             };
206         };                                        206         };
207                                                   207 
208         cluster0_opp: opp-table-0 {               208         cluster0_opp: opp-table-0 {
209             compatible = "operating-points-v2-    209             compatible = "operating-points-v2-kryo-cpu";
210             nvmem-cells = <&speedbin_efuse>;      210             nvmem-cells = <&speedbin_efuse>;
211             opp-shared;                           211             opp-shared;
212                                                   212 
213             opp-307200000 {                       213             opp-307200000 {
214                 opp-hz = /bits/ 64 <307200000>    214                 opp-hz = /bits/ 64 <307200000>;
215                 opp-microvolt = <905000 905000    215                 opp-microvolt = <905000 905000 1140000>;
216                 opp-supported-hw = <0x7>;         216                 opp-supported-hw = <0x7>;
217                 clock-latency-ns = <200000>;      217                 clock-latency-ns = <200000>;
218                 required-opps = <&cpr_opp1>;      218                 required-opps = <&cpr_opp1>;
219             };                                    219             };
220             opp-1401600000 {                      220             opp-1401600000 {
221                 opp-hz = /bits/ 64 <1401600000    221                 opp-hz = /bits/ 64 <1401600000>;
222                 opp-microvolt = <1140000 90500    222                 opp-microvolt = <1140000 905000 1140000>;
223                 opp-supported-hw = <0x5>;         223                 opp-supported-hw = <0x5>;
224                 clock-latency-ns = <200000>;      224                 clock-latency-ns = <200000>;
225                 required-opps = <&cpr_opp2>;      225                 required-opps = <&cpr_opp2>;
226             };                                    226             };
227             opp-1593600000 {                      227             opp-1593600000 {
228                 opp-hz = /bits/ 64 <1593600000    228                 opp-hz = /bits/ 64 <1593600000>;
229                 opp-microvolt = <1140000 90500    229                 opp-microvolt = <1140000 905000 1140000>;
230                 opp-supported-hw = <0x1>;         230                 opp-supported-hw = <0x1>;
231                 clock-latency-ns = <200000>;      231                 clock-latency-ns = <200000>;
232                 required-opps = <&cpr_opp3>;      232                 required-opps = <&cpr_opp3>;
233             };                                    233             };
234         };                                        234         };
235                                                   235 
236         cluster1_opp: opp-table-1 {               236         cluster1_opp: opp-table-1 {
237             compatible = "operating-points-v2-    237             compatible = "operating-points-v2-kryo-cpu";
238             nvmem-cells = <&speedbin_efuse>;      238             nvmem-cells = <&speedbin_efuse>;
239             opp-shared;                           239             opp-shared;
240                                                   240 
241             opp-307200000 {                       241             opp-307200000 {
242                 opp-hz = /bits/ 64 <307200000>    242                 opp-hz = /bits/ 64 <307200000>;
243                 opp-microvolt = <905000 905000    243                 opp-microvolt = <905000 905000 1140000>;
244                 opp-supported-hw = <0x7>;         244                 opp-supported-hw = <0x7>;
245                 clock-latency-ns = <200000>;      245                 clock-latency-ns = <200000>;
246                 required-opps = <&cpr_opp1>;      246                 required-opps = <&cpr_opp1>;
247             };                                    247             };
248             opp-1804800000 {                      248             opp-1804800000 {
249                 opp-hz = /bits/ 64 <1804800000    249                 opp-hz = /bits/ 64 <1804800000>;
250                 opp-microvolt = <1140000 90500    250                 opp-microvolt = <1140000 905000 1140000>;
251                 opp-supported-hw = <0x6>;         251                 opp-supported-hw = <0x6>;
252                 clock-latency-ns = <200000>;      252                 clock-latency-ns = <200000>;
253                 required-opps = <&cpr_opp4>;      253                 required-opps = <&cpr_opp4>;
254             };                                    254             };
255             opp-1900800000 {                      255             opp-1900800000 {
256                 opp-hz = /bits/ 64 <1900800000    256                 opp-hz = /bits/ 64 <1900800000>;
257                 opp-microvolt = <1140000 90500    257                 opp-microvolt = <1140000 905000 1140000>;
258                 opp-supported-hw = <0x4>;         258                 opp-supported-hw = <0x4>;
259                 clock-latency-ns = <200000>;      259                 clock-latency-ns = <200000>;
260                 required-opps = <&cpr_opp5>;      260                 required-opps = <&cpr_opp5>;
261             };                                    261             };
262             opp-2150400000 {                      262             opp-2150400000 {
263                 opp-hz = /bits/ 64 <2150400000    263                 opp-hz = /bits/ 64 <2150400000>;
264                 opp-microvolt = <1140000 90500    264                 opp-microvolt = <1140000 905000 1140000>;
265                 opp-supported-hw = <0x1>;         265                 opp-supported-hw = <0x1>;
266                 clock-latency-ns = <200000>;      266                 clock-latency-ns = <200000>;
267                 required-opps = <&cpr_opp6>;      267                 required-opps = <&cpr_opp6>;
268             };                                    268             };
269         };                                        269         };
270                                                   270 
271         /* Dummy opp table to give example for    271         /* Dummy opp table to give example for named opp-microvolt */
272         opp-table-2 {                             272         opp-table-2 {
273             compatible = "operating-points-v2-    273             compatible = "operating-points-v2-krait-cpu";
274             nvmem-cells = <&speedbin_efuse>;      274             nvmem-cells = <&speedbin_efuse>;
275                                                   275 
276             opp-384000000 {                       276             opp-384000000 {
277                 opp-hz = /bits/ 64 <384000000>    277                 opp-hz = /bits/ 64 <384000000>;
278                 opp-microvolt-speed0-pvs0 = <1    278                 opp-microvolt-speed0-pvs0 = <1000000 950000 1050000>;
279                 opp-microvolt-speed0-pvs1 = <9    279                 opp-microvolt-speed0-pvs1 = <925000 878750 971250>;
280                 opp-microvolt-speed0-pvs2 = <8    280                 opp-microvolt-speed0-pvs2 = <875000 831250 918750>;
281                 opp-microvolt-speed0-pvs3 = <8    281                 opp-microvolt-speed0-pvs3 = <800000 760000 840000>;
282                 opp-supported-hw = <0x7>;         282                 opp-supported-hw = <0x7>;
283                 clock-latency-ns = <100000>;      283                 clock-latency-ns = <100000>;
284             };                                    284             };
285         };                                        285         };
286                                                   286 
287         smem {                                    287         smem {
288             compatible = "qcom,smem";             288             compatible = "qcom,smem";
289             memory-region = <&smem_mem>;          289             memory-region = <&smem_mem>;
290             hwlocks = <&tcsr_mutex 3>;            290             hwlocks = <&tcsr_mutex 3>;
291         };                                        291         };
292                                                   292 
293         soc {                                     293         soc {
294             #address-cells = <1>;                 294             #address-cells = <1>;
295             #size-cells = <1>;                    295             #size-cells = <1>;
296                                                   296 
297             qfprom: qfprom@74000 {                297             qfprom: qfprom@74000 {
298                 compatible = "qcom,msm8996-qfp    298                 compatible = "qcom,msm8996-qfprom", "qcom,qfprom";
299                 reg = <0x00074000 0x8ff>;         299                 reg = <0x00074000 0x8ff>;
300                 #address-cells = <1>;             300                 #address-cells = <1>;
301                 #size-cells = <1>;                301                 #size-cells = <1>;
302                                                   302 
303                 speedbin_efuse: speedbin@133 {    303                 speedbin_efuse: speedbin@133 {
304                     reg = <0x133 0x1>;            304                     reg = <0x133 0x1>;
305                     bits = <5 3>;                 305                     bits = <5 3>;
306                 };                                306                 };
307             };                                    307             };
308         };                                        308         };
309     };                                            309     };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php