18c2ecf20Sopenharmony_ciDevice Tree Clock bindings for arch-moxart
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis binding uses the common clock binding[1].
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciMOXA ART SoCs allow to determine PLL output and APB frequencies
88c2ecf20Sopenharmony_ciby reading registers holding multiplier and divisor information.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciPLL:
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciRequired properties:
148c2ecf20Sopenharmony_ci- compatible : Must be "moxa,moxart-pll-clock"
158c2ecf20Sopenharmony_ci- #clock-cells : Should be 0
168c2ecf20Sopenharmony_ci- reg : Should contain registers location and length
178c2ecf20Sopenharmony_ci- clocks : Should contain phandle + clock-specifier for the parent clock
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciOptional properties:
208c2ecf20Sopenharmony_ci- clock-output-names : Should contain clock name
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciAPB:
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciRequired properties:
268c2ecf20Sopenharmony_ci- compatible : Must be "moxa,moxart-apb-clock"
278c2ecf20Sopenharmony_ci- #clock-cells : Should be 0
288c2ecf20Sopenharmony_ci- reg : Should contain registers location and length
298c2ecf20Sopenharmony_ci- clocks : Should contain phandle + clock-specifier for the parent clock
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciOptional properties:
328c2ecf20Sopenharmony_ci- clock-output-names : Should contain clock name
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciFor example:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci	clk_pll: clk_pll@98100000 {
388c2ecf20Sopenharmony_ci		compatible = "moxa,moxart-pll-clock";
398c2ecf20Sopenharmony_ci		#clock-cells = <0>;
408c2ecf20Sopenharmony_ci		reg = <0x98100000 0x34>;
418c2ecf20Sopenharmony_ci	};
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci	clk_apb: clk_apb@98100000 {
448c2ecf20Sopenharmony_ci		compatible = "moxa,moxart-apb-clock";
458c2ecf20Sopenharmony_ci		#clock-cells = <0>;
468c2ecf20Sopenharmony_ci		reg = <0x98100000 0x34>;
478c2ecf20Sopenharmony_ci		clocks = <&clk_pll>;
488c2ecf20Sopenharmony_ci	};
49