18c2ecf20Sopenharmony_ci* Hisilicon Hi6220 Clock Controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciClock control registers reside in different Hi6220 system controllers, 48c2ecf20Sopenharmony_ciplease refer the following document to know more about the binding rules 58c2ecf20Sopenharmony_cifor these system controllers: 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/arm/hisilicon/hisilicon.yaml 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciRequired Properties: 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci- compatible: the compatible should be one of the following strings to 128c2ecf20Sopenharmony_ci indicate the clock controller functionality. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci - "hisilicon,hi6220-acpu-sctrl" 158c2ecf20Sopenharmony_ci - "hisilicon,hi6220-aoctrl" 168c2ecf20Sopenharmony_ci - "hisilicon,hi6220-sysctrl" 178c2ecf20Sopenharmony_ci - "hisilicon,hi6220-mediactrl" 188c2ecf20Sopenharmony_ci - "hisilicon,hi6220-pmctrl" 198c2ecf20Sopenharmony_ci - "hisilicon,hi6220-stub-clk" 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci- reg: physical base address of the controller and length of memory mapped 228c2ecf20Sopenharmony_ci region. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci- #clock-cells: should be 1. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciOptional Properties: 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci- hisilicon,hi6220-clk-sram: phandle to the syscon managing the SoC internal sram; 298c2ecf20Sopenharmony_ci the driver need use the sram to pass parameters for frequency change. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci- mboxes: use the label reference for the mailbox as the first parameter, the 328c2ecf20Sopenharmony_ci second parameter is the channel number. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciExample 1: 358c2ecf20Sopenharmony_ci sys_ctrl: sys_ctrl@f7030000 { 368c2ecf20Sopenharmony_ci compatible = "hisilicon,hi6220-sysctrl", "syscon"; 378c2ecf20Sopenharmony_ci reg = <0x0 0xf7030000 0x0 0x2000>; 388c2ecf20Sopenharmony_ci #clock-cells = <1>; 398c2ecf20Sopenharmony_ci }; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciExample 2: 428c2ecf20Sopenharmony_ci stub_clock: stub_clock { 438c2ecf20Sopenharmony_ci compatible = "hisilicon,hi6220-stub-clk"; 448c2ecf20Sopenharmony_ci hisilicon,hi6220-clk-sram = <&sram>; 458c2ecf20Sopenharmony_ci #clock-cells = <1>; 468c2ecf20Sopenharmony_ci mboxes = <&mailbox 1>; 478c2ecf20Sopenharmony_ci }; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciEach clock is assigned an identifier and client nodes use this identifier 508c2ecf20Sopenharmony_cito specify the clock which they consume. 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciAll these identifier could be found in <dt-bindings/clock/hi6220-clock.h>. 53