Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
* HiSilicon Clock and Reset Generator(CRG)
|
|
|
|
The CRG module provides clock and reset signals to various
|
|
modules within the SoC.
|
|
|
|
This binding uses the following bindings:
|
|
Documentation/devicetree/bindings/clock/clock-bindings.txt
|
|
Documentation/devicetree/bindings/reset/reset.txt
|
|
|
|
Required Properties:
|
|
|
|
- compatible: should be one of the following.
|
|
- "hisilicon,hi3516cv300-crg"
|
|
- "hisilicon,hi3516cv300-sysctrl"
|
|
- "hisilicon,hi3519-crg"
|
|
- "hisilicon,hi3798cv200-crg"
|
|
- "hisilicon,hi3798cv200-sysctrl"
|
|
|
|
- reg: physical base address of the controller and length of memory mapped
|
|
region.
|
|
|
|
- #clock-cells: should be 1.
|
|
|
|
Each clock is assigned an identifier and client nodes use this identifier
|
|
to specify the clock which they consume.
|
|
|
|
All these identifier could be found in <dt-bindings/clock/hi3519-clock.h>.
|
|
|
|
- #reset-cells: should be 2.
|
|
|
|
A reset signal can be controlled by writing a bit register in the CRG module.
|
|
The reset specifier consists of two cells. The first cell represents the
|
|
register offset relative to the base address. The second cell represents the
|
|
bit index in the register.
|
|
|
|
Example: CRG nodes
|
|
CRG: clock-reset-controller@12010000 {
|
|
compatible = "hisilicon,hi3519-crg";
|
|
reg = <0x12010000 0x10000>;
|
|
#clock-cells = <1>;
|
|
#reset-cells = <2>;
|
|
};
|
|
|
|
Example: consumer nodes
|
|
i2c0: i2c@12110000 {
|
|
compatible = "hisilicon,hi3519-i2c";
|
|
reg = <0x12110000 0x1000>;
|
|
clocks = <&CRG HI3519_I2C0_RST>;
|
|
resets = <&CRG 0xe4 0>;
|
|
};
|