1707d33cbSJiancheng Xue* HiSilicon Clock and Reset Generator(CRG) 2707d33cbSJiancheng Xue 3707d33cbSJiancheng XueThe CRG module provides clock and reset signals to various 4707d33cbSJiancheng Xuemodules within the SoC. 5707d33cbSJiancheng Xue 6707d33cbSJiancheng XueThis binding uses the following bindings: 7707d33cbSJiancheng Xue Documentation/devicetree/bindings/clock/clock-bindings.txt 8707d33cbSJiancheng Xue Documentation/devicetree/bindings/reset/reset.txt 9707d33cbSJiancheng Xue 10707d33cbSJiancheng XueRequired Properties: 11707d33cbSJiancheng Xue 12707d33cbSJiancheng Xue- compatible: should be one of the following. 13707d33cbSJiancheng Xue - "hisilicon,hi3516cv300-crg" 14707d33cbSJiancheng Xue - "hisilicon,hi3516cv300-sysctrl" 15707d33cbSJiancheng Xue - "hisilicon,hi3519-crg" 16707d33cbSJiancheng Xue - "hisilicon,hi3798cv200-crg" 17707d33cbSJiancheng Xue - "hisilicon,hi3798cv200-sysctrl" 18707d33cbSJiancheng Xue 19707d33cbSJiancheng Xue- reg: physical base address of the controller and length of memory mapped 20707d33cbSJiancheng Xue region. 21707d33cbSJiancheng Xue 22707d33cbSJiancheng Xue- #clock-cells: should be 1. 23707d33cbSJiancheng Xue 24707d33cbSJiancheng XueEach clock is assigned an identifier and client nodes use this identifier 25707d33cbSJiancheng Xueto specify the clock which they consume. 26707d33cbSJiancheng Xue 27707d33cbSJiancheng XueAll these identifier could be found in <dt-bindings/clock/hi3519-clock.h>. 28707d33cbSJiancheng Xue 29707d33cbSJiancheng Xue- #reset-cells: should be 2. 30707d33cbSJiancheng Xue 31707d33cbSJiancheng XueA reset signal can be controlled by writing a bit register in the CRG module. 32707d33cbSJiancheng XueThe reset specifier consists of two cells. The first cell represents the 33707d33cbSJiancheng Xueregister offset relative to the base address. The second cell represents the 34707d33cbSJiancheng Xuebit index in the register. 35707d33cbSJiancheng Xue 36707d33cbSJiancheng XueExample: CRG nodes 37707d33cbSJiancheng XueCRG: clock-reset-controller@12010000 { 38707d33cbSJiancheng Xue compatible = "hisilicon,hi3519-crg"; 39707d33cbSJiancheng Xue reg = <0x12010000 0x10000>; 40707d33cbSJiancheng Xue #clock-cells = <1>; 41707d33cbSJiancheng Xue #reset-cells = <2>; 42707d33cbSJiancheng Xue}; 43707d33cbSJiancheng Xue 44707d33cbSJiancheng XueExample: consumer nodes 45707d33cbSJiancheng Xuei2c0: i2c@12110000 { 46707d33cbSJiancheng Xue compatible = "hisilicon,hi3519-i2c"; 47707d33cbSJiancheng Xue reg = <0x12110000 0x1000>; 48707d33cbSJiancheng Xue clocks = <&CRG HI3519_I2C0_RST>; 49707d33cbSJiancheng Xue resets = <&CRG 0xe4 0>; 50707d33cbSJiancheng Xue}; 51