18c2ecf20Sopenharmony_ci* Clock bindings for Axis ARTPEC-6 chip
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe bindings are based on the clock provider binding in
48c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/clock/clock-bindings.txt
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciExternal clocks:
78c2ecf20Sopenharmony_ci----------------
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciThere are two external inputs to the main clock controller which should be
108c2ecf20Sopenharmony_ciprovided using the common clock bindings.
118c2ecf20Sopenharmony_ci- "sys_refclk": External 50 Mhz oscillator (required)
128c2ecf20Sopenharmony_ci- "i2s_refclk": Alternate audio reference clock (optional).
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciMain clock controller
158c2ecf20Sopenharmony_ci---------------------
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciRequired properties:
188c2ecf20Sopenharmony_ci- #clock-cells: Should be <1>
198c2ecf20Sopenharmony_ci  See dt-bindings/clock/axis,artpec6-clkctrl.h for the list of valid identifiers.
208c2ecf20Sopenharmony_ci- compatible: Should be "axis,artpec6-clkctrl"
218c2ecf20Sopenharmony_ci- reg: Must contain the base address and length of the system controller
228c2ecf20Sopenharmony_ci- clocks:  Must contain a phandle entry for each clock in clock-names
238c2ecf20Sopenharmony_ci- clock-names: Must include the external oscillator ("sys_refclk"). Optional
248c2ecf20Sopenharmony_ci  ones are the audio reference clock ("i2s_refclk") and the audio fractional
258c2ecf20Sopenharmony_ci  dividers ("frac_clk0" and "frac_clk1").
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciExamples:
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciext_clk: ext_clk {
308c2ecf20Sopenharmony_ci	#clock-cells = <0>;
318c2ecf20Sopenharmony_ci	compatible = "fixed-clock";
328c2ecf20Sopenharmony_ci	clock-frequency = <50000000>;
338c2ecf20Sopenharmony_ci};
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciclkctrl: clkctrl@f8000000 {
368c2ecf20Sopenharmony_ci	#clock-cells = <1>;
378c2ecf20Sopenharmony_ci	compatible = "axis,artpec6-clkctrl";
388c2ecf20Sopenharmony_ci	reg = <0xf8000000 0x48>;
398c2ecf20Sopenharmony_ci	clocks = <&ext_clk>;
408c2ecf20Sopenharmony_ci	clock-names = "sys_refclk";
418c2ecf20Sopenharmony_ci};
42