14260ddfbSChristian Marangi# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
24260ddfbSChristian Marangi%YAML 1.2
34260ddfbSChristian Marangi---
44260ddfbSChristian Marangi$id: http://devicetree.org/schemas/clock/qcom,kpss-acc-v1.yaml#
54260ddfbSChristian Marangi$schema: http://devicetree.org/meta-schemas/core.yaml#
64260ddfbSChristian Marangi
74260ddfbSChristian Marangititle: Krait Processor Sub-system (KPSS) Application Clock Controller (ACC) v1
84260ddfbSChristian Marangi
94260ddfbSChristian Marangimaintainers:
104260ddfbSChristian Marangi  - Christian Marangi <ansuelsmth@gmail.com>
114260ddfbSChristian Marangi
124260ddfbSChristian Marangidescription:
134260ddfbSChristian Marangi  The KPSS ACC provides clock, power domain, and reset control to a Krait CPU.
144260ddfbSChristian Marangi  There is one ACC register region per CPU within the KPSS remapped region as
154260ddfbSChristian Marangi  well as an alias register region that remaps accesses to the ACC associated
164260ddfbSChristian Marangi  with the CPU accessing the region. ACC v1 is currently used as a
17*47aab533SBjorn Helgaas  clock-controller for enabling the cpu and handling the aux clocks.
184260ddfbSChristian Marangi
194260ddfbSChristian Marangiproperties:
204260ddfbSChristian Marangi  compatible:
214260ddfbSChristian Marangi    const: qcom,kpss-acc-v1
224260ddfbSChristian Marangi
234260ddfbSChristian Marangi  reg:
244260ddfbSChristian Marangi    items:
254260ddfbSChristian Marangi      - description: Base address and size of the register region
264260ddfbSChristian Marangi      - description: Optional base address and size of the alias register region
274260ddfbSChristian Marangi    minItems: 1
284260ddfbSChristian Marangi
294260ddfbSChristian Marangi  clocks:
304260ddfbSChristian Marangi    minItems: 2
314260ddfbSChristian Marangi    maxItems: 2
324260ddfbSChristian Marangi
334260ddfbSChristian Marangi  clock-names:
344260ddfbSChristian Marangi    items:
354260ddfbSChristian Marangi      - const: pll8_vote
364260ddfbSChristian Marangi      - const: pxo
374260ddfbSChristian Marangi
384260ddfbSChristian Marangi  clock-output-names:
394260ddfbSChristian Marangi    description: Name of the aux clock. Krait can have at most 4 cpu.
404260ddfbSChristian Marangi    enum:
414260ddfbSChristian Marangi      - acpu0_aux
424260ddfbSChristian Marangi      - acpu1_aux
434260ddfbSChristian Marangi      - acpu2_aux
444260ddfbSChristian Marangi      - acpu3_aux
454260ddfbSChristian Marangi
464260ddfbSChristian Marangi  '#clock-cells':
474260ddfbSChristian Marangi    const: 0
484260ddfbSChristian Marangi
494260ddfbSChristian Marangirequired:
504260ddfbSChristian Marangi  - compatible
514260ddfbSChristian Marangi  - reg
524260ddfbSChristian Marangi  - clocks
534260ddfbSChristian Marangi  - clock-names
544260ddfbSChristian Marangi  - clock-output-names
554260ddfbSChristian Marangi  - '#clock-cells'
564260ddfbSChristian Marangi
574260ddfbSChristian MarangiadditionalProperties: false
584260ddfbSChristian Marangi
594260ddfbSChristian Marangiexamples:
604260ddfbSChristian Marangi  - |
614260ddfbSChristian Marangi    #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
624260ddfbSChristian Marangi
634260ddfbSChristian Marangi    clock-controller@2088000 {
644260ddfbSChristian Marangi      compatible = "qcom,kpss-acc-v1";
654260ddfbSChristian Marangi      reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
664260ddfbSChristian Marangi      clocks = <&gcc PLL8_VOTE>, <&pxo_board>;
674260ddfbSChristian Marangi      clock-names = "pll8_vote", "pxo";
684260ddfbSChristian Marangi      clock-output-names = "acpu0_aux";
694260ddfbSChristian Marangi      #clock-cells = <0>;
704260ddfbSChristian Marangi    };
714260ddfbSChristian Marangi
724260ddfbSChristian Marangi...
73