1 * Nuvoton NPCM7XX Clock Controller 2 3 Nuvoton Poleg BMC NPCM7XX contains an integrat 4 generates and supplies clocks to all modules w 5 6 External clocks: 7 8 There are six fixed clocks that are generated 9 a known fixed value that cannot be changed. cl 10 clk_sysbypck are inputs to the clock controlle 11 clk_rg1refck, clk_rg2refck and clk_xin are ext 12 network. They are set on the device tree, but 13 network devices use them directly. 14 Example can be found below. 15 16 All available clocks are defined as preprocess 17 dt-bindings/clock/nuvoton,npcm7xx-clock.h 18 and can be reused as DT sources. 19 20 Required Properties of clock controller: 21 22 - compatible: "nuvoton,npcm750-clk" : 23 Poleg BMC NPCM750 24 25 - reg: physical base address of the cl 26 memory mapped region. 27 28 - #clock-cells: should be 1. 29 30 Example: Clock controller node: 31 32 clk: clock-controller@f0801000 { 33 compatible = "nuvoton,npcm750- 34 #clock-cells = <1>; 35 reg = <0xf0801000 0x1000>; 36 clock-names = "refclk", "sysby 37 clocks = <&clk_refclk>, <&clk_ 38 }; 39 40 Example: Required external clocks for network: 41 42 /* external reference clock */ 43 clk_refclk: clk-refclk { 44 compatible = "fixed-clock"; 45 #clock-cells = <0>; 46 clock-frequency = <25000000>; 47 clock-output-names = "refclk"; 48 }; 49 50 /* external reference clock for cpu. f 51 clk_sysbypck: clk-sysbypck { 52 compatible = "fixed-clock"; 53 #clock-cells = <0>; 54 clock-frequency = <800000000>; 55 clock-output-names = "sysbypck 56 }; 57 58 /* external reference clock for MC. fl 59 clk_mcbypck: clk-mcbypck { 60 compatible = "fixed-clock"; 61 #clock-cells = <0>; 62 clock-frequency = <800000000>; 63 clock-output-names = "mcbypck" 64 }; 65 66 /* external clock signal rg1refck, su 67 clk_rg1refck: clk-rg1refck { 68 compatible = "fixed-clock"; 69 #clock-cells = <0>; 70 clock-frequency = <125000000>; 71 clock-output-names = "clk_rg1r 72 }; 73 74 /* external clock signal rg2refck, su 75 clk_rg2refck: clk-rg2refck { 76 compatible = "fixed-clock"; 77 #clock-cells = <0>; 78 clock-frequency = <125000000>; 79 clock-output-names = "clk_rg2r 80 }; 81 82 clk_xin: clk-xin { 83 compatible = "fixed-clock"; 84 #clock-cells = <0>; 85 clock-frequency = <50000000>; 86 clock-output-names = "clk_xin" 87 }; 88 89 90 Example: GMAC controller node that consumes tw 91 clock controller and a fixed clock from DT (cl 92 93 ethernet0: ethernet@f0802000 { 94 compatible = "snps,dwmac"; 95 reg = <0xf0802000 0x2000>; 96 interrupts = <0 14 4>; 97 interrupt-names = "macirq"; 98 clocks = <&clk_rg1refck>, <&c 99 clock-names = "stmmaceth", "cl 100 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.