162306a36Sopenharmony_ciDevice Tree Clock bindings for arch-moxart
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciThis binding uses the common clock binding[1].
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciMOXA ART SoCs allow to determine PLL output and APB frequencies
862306a36Sopenharmony_ciby reading registers holding multiplier and divisor information.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciPLL:
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciRequired properties:
1462306a36Sopenharmony_ci- compatible : Must be "moxa,moxart-pll-clock"
1562306a36Sopenharmony_ci- #clock-cells : Should be 0
1662306a36Sopenharmony_ci- reg : Should contain registers location and length
1762306a36Sopenharmony_ci- clocks : Should contain phandle + clock-specifier for the parent clock
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciOptional properties:
2062306a36Sopenharmony_ci- clock-output-names : Should contain clock name
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciAPB:
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciRequired properties:
2662306a36Sopenharmony_ci- compatible : Must be "moxa,moxart-apb-clock"
2762306a36Sopenharmony_ci- #clock-cells : Should be 0
2862306a36Sopenharmony_ci- reg : Should contain registers location and length
2962306a36Sopenharmony_ci- clocks : Should contain phandle + clock-specifier for the parent clock
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciOptional properties:
3262306a36Sopenharmony_ci- clock-output-names : Should contain clock name
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciFor example:
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci	clk_pll: clk_pll@98100000 {
3862306a36Sopenharmony_ci		compatible = "moxa,moxart-pll-clock";
3962306a36Sopenharmony_ci		#clock-cells = <0>;
4062306a36Sopenharmony_ci		reg = <0x98100000 0x34>;
4162306a36Sopenharmony_ci	};
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci	clk_apb: clk_apb@98100000 {
4462306a36Sopenharmony_ci		compatible = "moxa,moxart-apb-clock";
4562306a36Sopenharmony_ci		#clock-cells = <0>;
4662306a36Sopenharmony_ci		reg = <0x98100000 0x34>;
4762306a36Sopenharmony_ci		clocks = <&clk_pll>;
4862306a36Sopenharmony_ci	};
49