xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,qca8k-nsscc.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,qca8k-nsscc.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: Qualcomm NSS Clock & Reset Controller on QCA8386/QCA8084
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Bjorn Andersson <andersson@kernel.org>
11*0e8011faSEmmanuel Vadot  - Luo Jie <quic_luoj@quicinc.com>
12*0e8011faSEmmanuel Vadot
13*0e8011faSEmmanuel Vadotdescription: |
14*0e8011faSEmmanuel Vadot  Qualcomm NSS clock control module provides the clocks and resets
15*0e8011faSEmmanuel Vadot  on QCA8386(switch mode)/QCA8084(PHY mode)
16*0e8011faSEmmanuel Vadot
17*0e8011faSEmmanuel Vadot  See also::
18*0e8011faSEmmanuel Vadot    include/dt-bindings/clock/qcom,qca8k-nsscc.h
19*0e8011faSEmmanuel Vadot    include/dt-bindings/reset/qcom,qca8k-nsscc.h
20*0e8011faSEmmanuel Vadot
21*0e8011faSEmmanuel Vadotproperties:
22*0e8011faSEmmanuel Vadot  compatible:
23*0e8011faSEmmanuel Vadot    oneOf:
24*0e8011faSEmmanuel Vadot      - const: qcom,qca8084-nsscc
25*0e8011faSEmmanuel Vadot      - items:
26*0e8011faSEmmanuel Vadot          - enum:
27*0e8011faSEmmanuel Vadot              - qcom,qca8082-nsscc
28*0e8011faSEmmanuel Vadot              - qcom,qca8085-nsscc
29*0e8011faSEmmanuel Vadot              - qcom,qca8384-nsscc
30*0e8011faSEmmanuel Vadot              - qcom,qca8385-nsscc
31*0e8011faSEmmanuel Vadot              - qcom,qca8386-nsscc
32*0e8011faSEmmanuel Vadot          - const: qcom,qca8084-nsscc
33*0e8011faSEmmanuel Vadot
34*0e8011faSEmmanuel Vadot  clocks:
35*0e8011faSEmmanuel Vadot    items:
36*0e8011faSEmmanuel Vadot      - description: Chip reference clock source
37*0e8011faSEmmanuel Vadot      - description: UNIPHY0 RX 312P5M/125M clock source
38*0e8011faSEmmanuel Vadot      - description: UNIPHY0 TX 312P5M/125M clock source
39*0e8011faSEmmanuel Vadot      - description: UNIPHY1 RX 312P5M/125M clock source
40*0e8011faSEmmanuel Vadot      - description: UNIPHY1 TX 312P5M/125M clock source
41*0e8011faSEmmanuel Vadot      - description: UNIPHY1 RX 312P5M clock source
42*0e8011faSEmmanuel Vadot      - description: UNIPHY1 TX 312P5M clock source
43*0e8011faSEmmanuel Vadot
44*0e8011faSEmmanuel Vadot  reg:
45*0e8011faSEmmanuel Vadot    items:
46*0e8011faSEmmanuel Vadot      - description: MDIO bus address for Clock & Reset Controller register
47*0e8011faSEmmanuel Vadot
48*0e8011faSEmmanuel Vadot  reset-gpios:
49*0e8011faSEmmanuel Vadot    description: GPIO connected to the chip
50*0e8011faSEmmanuel Vadot    maxItems: 1
51*0e8011faSEmmanuel Vadot
52*0e8011faSEmmanuel Vadotrequired:
53*0e8011faSEmmanuel Vadot  - compatible
54*0e8011faSEmmanuel Vadot  - clocks
55*0e8011faSEmmanuel Vadot  - reg
56*0e8011faSEmmanuel Vadot  - reset-gpios
57*0e8011faSEmmanuel Vadot
58*0e8011faSEmmanuel VadotallOf:
59*0e8011faSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
60*0e8011faSEmmanuel Vadot
61*0e8011faSEmmanuel VadotunevaluatedProperties: false
62*0e8011faSEmmanuel Vadot
63*0e8011faSEmmanuel Vadotexamples:
64*0e8011faSEmmanuel Vadot  - |
65*0e8011faSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
66*0e8011faSEmmanuel Vadot    mdio {
67*0e8011faSEmmanuel Vadot      #address-cells = <1>;
68*0e8011faSEmmanuel Vadot      #size-cells = <0>;
69*0e8011faSEmmanuel Vadot
70*0e8011faSEmmanuel Vadot      clock-controller@18 {
71*0e8011faSEmmanuel Vadot        compatible = "qcom,qca8084-nsscc";
72*0e8011faSEmmanuel Vadot        reg = <0x18>;
73*0e8011faSEmmanuel Vadot        reset-gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
74*0e8011faSEmmanuel Vadot        clocks = <&pcs0_pll>,
75*0e8011faSEmmanuel Vadot                 <&qca8k_uniphy0_rx>,
76*0e8011faSEmmanuel Vadot                 <&qca8k_uniphy0_tx>,
77*0e8011faSEmmanuel Vadot                 <&qca8k_uniphy1_rx>,
78*0e8011faSEmmanuel Vadot                 <&qca8k_uniphy1_tx>,
79*0e8011faSEmmanuel Vadot                 <&qca8k_uniphy1_rx312p5m>,
80*0e8011faSEmmanuel Vadot                 <&qca8k_uniphy1_tx312p5m>;
81*0e8011faSEmmanuel Vadot        #clock-cells = <1>;
82*0e8011faSEmmanuel Vadot        #reset-cells = <1>;
83*0e8011faSEmmanuel Vadot        #power-domain-cells = <1>;
84*0e8011faSEmmanuel Vadot      };
85*0e8011faSEmmanuel Vadot    };
86*0e8011faSEmmanuel Vadot...
87