1*c66ec88fSEmmanuel Vadot* HiSilicon Clock and Reset Generator(CRG) 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThe CRG module provides clock and reset signals to various 4*c66ec88fSEmmanuel Vadotmodules within the SoC. 5*c66ec88fSEmmanuel Vadot 6*c66ec88fSEmmanuel VadotThis binding uses the following bindings: 7*c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/clock/clock-bindings.txt 8*c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/reset/reset.txt 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel VadotRequired Properties: 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadot- compatible: should be one of the following. 13*c66ec88fSEmmanuel Vadot - "hisilicon,hi3516cv300-crg" 14*c66ec88fSEmmanuel Vadot - "hisilicon,hi3516cv300-sysctrl" 15*c66ec88fSEmmanuel Vadot - "hisilicon,hi3519-crg" 16*c66ec88fSEmmanuel Vadot - "hisilicon,hi3798cv200-crg" 17*c66ec88fSEmmanuel Vadot - "hisilicon,hi3798cv200-sysctrl" 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory mapped 20*c66ec88fSEmmanuel Vadot region. 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel Vadot- #clock-cells: should be 1. 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel VadotEach clock is assigned an identifier and client nodes use this identifier 25*c66ec88fSEmmanuel Vadotto specify the clock which they consume. 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel VadotAll these identifier could be found in <dt-bindings/clock/hi3519-clock.h>. 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot- #reset-cells: should be 2. 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel VadotA reset signal can be controlled by writing a bit register in the CRG module. 32*c66ec88fSEmmanuel VadotThe reset specifier consists of two cells. The first cell represents the 33*c66ec88fSEmmanuel Vadotregister offset relative to the base address. The second cell represents the 34*c66ec88fSEmmanuel Vadotbit index in the register. 35*c66ec88fSEmmanuel Vadot 36*c66ec88fSEmmanuel VadotExample: CRG nodes 37*c66ec88fSEmmanuel VadotCRG: clock-reset-controller@12010000 { 38*c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi3519-crg"; 39*c66ec88fSEmmanuel Vadot reg = <0x12010000 0x10000>; 40*c66ec88fSEmmanuel Vadot #clock-cells = <1>; 41*c66ec88fSEmmanuel Vadot #reset-cells = <2>; 42*c66ec88fSEmmanuel Vadot}; 43*c66ec88fSEmmanuel Vadot 44*c66ec88fSEmmanuel VadotExample: consumer nodes 45*c66ec88fSEmmanuel Vadoti2c0: i2c@12110000 { 46*c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi3519-i2c"; 47*c66ec88fSEmmanuel Vadot reg = <0x12110000 0x1000>; 48*c66ec88fSEmmanuel Vadot clocks = <&CRG HI3519_I2C0_RST>; 49*c66ec88fSEmmanuel Vadot resets = <&CRG 0xe4 0>; 50*c66ec88fSEmmanuel Vadot}; 51