1c7bb4fc1SJonas JensenDevice Tree Clock bindings for arch-moxart 2c7bb4fc1SJonas Jensen 3c7bb4fc1SJonas JensenThis binding uses the common clock binding[1]. 4c7bb4fc1SJonas Jensen 5c7bb4fc1SJonas Jensen[1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6c7bb4fc1SJonas Jensen 7c7bb4fc1SJonas JensenMOXA ART SoCs allow to determine PLL output and APB frequencies 8c7bb4fc1SJonas Jensenby reading registers holding multiplier and divisor information. 9c7bb4fc1SJonas Jensen 10c7bb4fc1SJonas Jensen 11c7bb4fc1SJonas JensenPLL: 12c7bb4fc1SJonas Jensen 13c7bb4fc1SJonas JensenRequired properties: 14c7bb4fc1SJonas Jensen- compatible : Must be "moxa,moxart-pll-clock" 15c7bb4fc1SJonas Jensen- #clock-cells : Should be 0 16c7bb4fc1SJonas Jensen- reg : Should contain registers location and length 17c7bb4fc1SJonas Jensen- clocks : Should contain phandle + clock-specifier for the parent clock 18c7bb4fc1SJonas Jensen 19c7bb4fc1SJonas JensenOptional properties: 20c7bb4fc1SJonas Jensen- clock-output-names : Should contain clock name 21c7bb4fc1SJonas Jensen 22c7bb4fc1SJonas Jensen 23c7bb4fc1SJonas JensenAPB: 24c7bb4fc1SJonas Jensen 25c7bb4fc1SJonas JensenRequired properties: 26c7bb4fc1SJonas Jensen- compatible : Must be "moxa,moxart-apb-clock" 27c7bb4fc1SJonas Jensen- #clock-cells : Should be 0 28c7bb4fc1SJonas Jensen- reg : Should contain registers location and length 29c7bb4fc1SJonas Jensen- clocks : Should contain phandle + clock-specifier for the parent clock 30c7bb4fc1SJonas Jensen 31c7bb4fc1SJonas JensenOptional properties: 32c7bb4fc1SJonas Jensen- clock-output-names : Should contain clock name 33c7bb4fc1SJonas Jensen 34c7bb4fc1SJonas Jensen 35c7bb4fc1SJonas JensenFor example: 36c7bb4fc1SJonas Jensen 37c7bb4fc1SJonas Jensen clk_pll: clk_pll@98100000 { 38c7bb4fc1SJonas Jensen compatible = "moxa,moxart-pll-clock"; 39c7bb4fc1SJonas Jensen #clock-cells = <0>; 40c7bb4fc1SJonas Jensen reg = <0x98100000 0x34>; 41c7bb4fc1SJonas Jensen }; 42c7bb4fc1SJonas Jensen 43c7bb4fc1SJonas Jensen clk_apb: clk_apb@98100000 { 44c7bb4fc1SJonas Jensen compatible = "moxa,moxart-apb-clock"; 45c7bb4fc1SJonas Jensen #clock-cells = <0>; 46c7bb4fc1SJonas Jensen reg = <0x98100000 0x34>; 47c7bb4fc1SJonas Jensen clocks = <&clk_pll>; 48c7bb4fc1SJonas Jensen }; 49