Documentation / devicetree / bindings / clock / qcom,qca8k-nsscc.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/qcom,qca8k-nsscc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm NSS Clock & Reset Controller on QCA8386/QCA8084

maintainers:
  - Bjorn Andersson <andersson@kernel.org>
  - Luo Jie <quic_luoj@quicinc.com>

description: |
  Qualcomm NSS clock control module provides the clocks and resets
  on QCA8386(switch mode)/QCA8084(PHY mode)
 
  See also::
    include/dt-bindings/clock/qcom,qca8k-nsscc.h
    include/dt-bindings/reset/qcom,qca8k-nsscc.h

properties:
  compatible:
    oneOf:
      - const: qcom,qca8084-nsscc
      - items:
          - enum:
              - qcom,qca8082-nsscc
              - qcom,qca8085-nsscc
              - qcom,qca8384-nsscc
              - qcom,qca8385-nsscc
              - qcom,qca8386-nsscc
          - const: qcom,qca8084-nsscc

  clocks:
    items:
      - description: Chip reference clock source
      - description: UNIPHY0 RX 312P5M/125M clock source
      - description: UNIPHY0 TX 312P5M/125M clock source
      - description: UNIPHY1 RX 312P5M/125M clock source
      - description: UNIPHY1 TX 312P5M/125M clock source
      - description: UNIPHY1 RX 312P5M clock source
      - description: UNIPHY1 TX 312P5M clock source

  reg:
    items:
      - description: MDIO bus address for Clock & Reset Controller register

  reset-gpios:
    description: GPIO connected to the chip
    maxItems: 1

required:
  - compatible
  - clocks
  - reg
  - reset-gpios

allOf:
  - $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    mdio {
      #address-cells = <1>;
      #size-cells = <0>;
 
      clock-controller@18 {
        compatible = "qcom,qca8084-nsscc";
        reg = <0x18>;
        reset-gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
        clocks = <&pcs0_pll>,
                 <&qca8k_uniphy0_rx>,
                 <&qca8k_uniphy0_tx>,
                 <&qca8k_uniphy1_rx>,
                 <&qca8k_uniphy1_tx>,
                 <&qca8k_uniphy1_rx312p5m>,
                 <&qca8k_uniphy1_tx312p5m>;
        #clock-cells = <1>;
        #reset-cells = <1>;
        #power-domain-cells = <1>;
      };
    };
...