1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*ae5de77eSEmmanuel Vadot%YAML 1.2 3*ae5de77eSEmmanuel Vadot--- 4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/sophgo,sg2044-clk.yaml# 5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*ae5de77eSEmmanuel Vadot 7*ae5de77eSEmmanuel Vadottitle: Sophgo SG2044 Clock Controller 8*ae5de77eSEmmanuel Vadot 9*ae5de77eSEmmanuel Vadotmaintainers: 10*ae5de77eSEmmanuel Vadot - Inochi Amaoto <inochiama@gmail.com> 11*ae5de77eSEmmanuel Vadot 12*ae5de77eSEmmanuel Vadotdescription: | 13*ae5de77eSEmmanuel Vadot The Sophgo SG2044 clock controller requires an external oscillator 14*ae5de77eSEmmanuel Vadot as input clock. 15*ae5de77eSEmmanuel Vadot 16*ae5de77eSEmmanuel Vadot All available clocks are defined as preprocessor macros in 17*ae5de77eSEmmanuel Vadot include/dt-bindings/clock/sophgo,sg2044-clk.h 18*ae5de77eSEmmanuel Vadot 19*ae5de77eSEmmanuel Vadotproperties: 20*ae5de77eSEmmanuel Vadot compatible: 21*ae5de77eSEmmanuel Vadot const: sophgo,sg2044-clk 22*ae5de77eSEmmanuel Vadot 23*ae5de77eSEmmanuel Vadot reg: 24*ae5de77eSEmmanuel Vadot maxItems: 1 25*ae5de77eSEmmanuel Vadot 26*ae5de77eSEmmanuel Vadot clocks: 27*ae5de77eSEmmanuel Vadot items: 28*ae5de77eSEmmanuel Vadot - description: fpll0 29*ae5de77eSEmmanuel Vadot - description: fpll1 30*ae5de77eSEmmanuel Vadot - description: fpll2 31*ae5de77eSEmmanuel Vadot - description: dpll0 32*ae5de77eSEmmanuel Vadot - description: dpll1 33*ae5de77eSEmmanuel Vadot - description: dpll2 34*ae5de77eSEmmanuel Vadot - description: dpll3 35*ae5de77eSEmmanuel Vadot - description: dpll4 36*ae5de77eSEmmanuel Vadot - description: dpll5 37*ae5de77eSEmmanuel Vadot - description: dpll6 38*ae5de77eSEmmanuel Vadot - description: dpll7 39*ae5de77eSEmmanuel Vadot - description: mpll0 40*ae5de77eSEmmanuel Vadot - description: mpll1 41*ae5de77eSEmmanuel Vadot - description: mpll2 42*ae5de77eSEmmanuel Vadot - description: mpll3 43*ae5de77eSEmmanuel Vadot - description: mpll4 44*ae5de77eSEmmanuel Vadot - description: mpll5 45*ae5de77eSEmmanuel Vadot 46*ae5de77eSEmmanuel Vadot clock-names: 47*ae5de77eSEmmanuel Vadot items: 48*ae5de77eSEmmanuel Vadot - const: fpll0 49*ae5de77eSEmmanuel Vadot - const: fpll1 50*ae5de77eSEmmanuel Vadot - const: fpll2 51*ae5de77eSEmmanuel Vadot - const: dpll0 52*ae5de77eSEmmanuel Vadot - const: dpll1 53*ae5de77eSEmmanuel Vadot - const: dpll2 54*ae5de77eSEmmanuel Vadot - const: dpll3 55*ae5de77eSEmmanuel Vadot - const: dpll4 56*ae5de77eSEmmanuel Vadot - const: dpll5 57*ae5de77eSEmmanuel Vadot - const: dpll6 58*ae5de77eSEmmanuel Vadot - const: dpll7 59*ae5de77eSEmmanuel Vadot - const: mpll0 60*ae5de77eSEmmanuel Vadot - const: mpll1 61*ae5de77eSEmmanuel Vadot - const: mpll2 62*ae5de77eSEmmanuel Vadot - const: mpll3 63*ae5de77eSEmmanuel Vadot - const: mpll4 64*ae5de77eSEmmanuel Vadot - const: mpll5 65*ae5de77eSEmmanuel Vadot 66*ae5de77eSEmmanuel Vadot '#clock-cells': 67*ae5de77eSEmmanuel Vadot const: 1 68*ae5de77eSEmmanuel Vadot 69*ae5de77eSEmmanuel Vadotrequired: 70*ae5de77eSEmmanuel Vadot - compatible 71*ae5de77eSEmmanuel Vadot - reg 72*ae5de77eSEmmanuel Vadot - clocks 73*ae5de77eSEmmanuel Vadot - '#clock-cells' 74*ae5de77eSEmmanuel Vadot 75*ae5de77eSEmmanuel VadotadditionalProperties: false 76*ae5de77eSEmmanuel Vadot 77*ae5de77eSEmmanuel Vadotexamples: 78*ae5de77eSEmmanuel Vadot - | 79*ae5de77eSEmmanuel Vadot #include <dt-bindings/clock/sophgo,sg2044-pll.h> 80*ae5de77eSEmmanuel Vadot 81*ae5de77eSEmmanuel Vadot clock-controller@50002000 { 82*ae5de77eSEmmanuel Vadot compatible = "sophgo,sg2044-clk"; 83*ae5de77eSEmmanuel Vadot reg = <0x50002000 0x1000>; 84*ae5de77eSEmmanuel Vadot #clock-cells = <1>; 85*ae5de77eSEmmanuel Vadot clocks = <&syscon CLK_FPLL0>, <&syscon CLK_FPLL1>, 86*ae5de77eSEmmanuel Vadot <&syscon CLK_FPLL2>, <&syscon CLK_DPLL0>, 87*ae5de77eSEmmanuel Vadot <&syscon CLK_DPLL1>, <&syscon CLK_DPLL2>, 88*ae5de77eSEmmanuel Vadot <&syscon CLK_DPLL3>, <&syscon CLK_DPLL4>, 89*ae5de77eSEmmanuel Vadot <&syscon CLK_DPLL5>, <&syscon CLK_DPLL6>, 90*ae5de77eSEmmanuel Vadot <&syscon CLK_DPLL7>, <&syscon CLK_MPLL0>, 91*ae5de77eSEmmanuel Vadot <&syscon CLK_MPLL1>, <&syscon CLK_MPLL2>, 92*ae5de77eSEmmanuel Vadot <&syscon CLK_MPLL3>, <&syscon CLK_MPLL4>, 93*ae5de77eSEmmanuel Vadot <&syscon CLK_MPLL5>; 94*ae5de77eSEmmanuel Vadot clock-names = "fpll0", "fpll1", "fpll2", "dpll0", 95*ae5de77eSEmmanuel Vadot "dpll1", "dpll2", "dpll3", "dpll4", 96*ae5de77eSEmmanuel Vadot "dpll5", "dpll6", "dpll7", "mpll0", 97*ae5de77eSEmmanuel Vadot "mpll1", "mpll2", "mpll3", "mpll4", 98*ae5de77eSEmmanuel Vadot "mpll5"; 99*ae5de77eSEmmanuel Vadot }; 100