···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/clock/qcom,ipq9574-cmn-pll.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Qualcomm CMN PLL Clock Controller on IPQ SoC88+99+maintainers:1010+ - Bjorn Andersson <andersson@kernel.org>1111+ - Luo Jie <quic_luoj@quicinc.com>1212+1313+description:1414+ The CMN (or common) PLL clock controller expects a reference1515+ input clock. This reference clock is from the on-board Wi-Fi.1616+ The CMN PLL supplies a number of fixed rate output clocks to1717+ the devices providing networking functions and to GCC. These1818+ networking hardware include PPE (packet process engine), PCS1919+ and the externally connected switch or PHY devices. The CMN2020+ PLL block also outputs fixed rate clocks to GCC. The PLL's2121+ primary function is to enable fixed rate output clocks for2222+ networking hardware functions used with the IPQ SoC.2323+2424+properties:2525+ compatible:2626+ enum:2727+ - qcom,ipq9574-cmn-pll2828+2929+ reg:3030+ maxItems: 13131+3232+ clocks:3333+ items:3434+ - description: The reference clock. The supported clock rates include3535+ 25000000, 31250000, 40000000, 48000000, 50000000 and 96000000 HZ.3636+ - description: The AHB clock3737+ - description: The SYS clock3838+ description:3939+ The reference clock is the source clock of CMN PLL, which is from the4040+ Wi-Fi. The AHB and SYS clocks must be enabled to access CMN PLL4141+ clock registers.4242+4343+ clock-names:4444+ items:4545+ - const: ref4646+ - const: ahb4747+ - const: sys4848+4949+ "#clock-cells":5050+ const: 15151+5252+required:5353+ - compatible5454+ - reg5555+ - clocks5656+ - clock-names5757+ - "#clock-cells"5858+5959+additionalProperties: false6060+6161+examples:6262+ - |6363+ #include <dt-bindings/clock/qcom,ipq-cmn-pll.h>6464+ #include <dt-bindings/clock/qcom,ipq9574-gcc.h>6565+6666+ cmn_pll: clock-controller@9b000 {6767+ compatible = "qcom,ipq9574-cmn-pll";6868+ reg = <0x0009b000 0x800>;6969+ clocks = <&cmn_pll_ref_clk>,7070+ <&gcc GCC_CMN_12GPLL_AHB_CLK>,7171+ <&gcc GCC_CMN_12GPLL_SYS_CLK>;7272+ clock-names = "ref", "ahb", "sys";7373+ #clock-cells = <1>;7474+ assigned-clocks = <&cmn_pll CMN_PLL_CLK>;7575+ assigned-clock-rates-u64 = /bits/ 64 <12000000000>;7676+ };7777+...
+22
include/dt-bindings/clock/qcom,ipq-cmn-pll.h
···11+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */22+/*33+ * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.44+ */55+66+#ifndef _DT_BINDINGS_CLK_QCOM_IPQ_CMN_PLL_H77+#define _DT_BINDINGS_CLK_QCOM_IPQ_CMN_PLL_H88+99+/* CMN PLL core clock. */1010+#define CMN_PLL_CLK 01111+1212+/* The output clocks from CMN PLL of IPQ9574. */1313+#define XO_24MHZ_CLK 11414+#define SLEEP_32KHZ_CLK 21515+#define PCS_31P25MHZ_CLK 31616+#define NSS_1200MHZ_CLK 41717+#define PPE_353MHZ_CLK 51818+#define ETH0_50MHZ_CLK 61919+#define ETH1_50MHZ_CLK 72020+#define ETH2_50MHZ_CLK 82121+#define ETH_25MHZ_CLK 92222+#endif