blob: e48b164fc098aebc59e7bbb58d147a10839c1ad4 [file] [log] [blame]
Sean Andersonf9c7d4f2020-06-24 06:41:11 -04001Kendryte K210 Sysctl
2
3This binding describes the K210 sysctl device, which contains many miscellaneous
4registers controlling system functionality. This node is a register map and can
5be reference by other bindings which need a phandle to the K210 sysctl regmap.
6
7Required properties:
8- compatible: should be
Damien Le Moalfd426b32022-03-01 10:35:39 +00009 "canaan,k210-sysctl", "syscon", "simple-mfd"
Sean Andersonf9c7d4f2020-06-24 06:41:11 -040010- reg: address and length of the sysctl registers
11- reg-io-width: must be <4>
12
13Clock sub-node
14
15This node is a binding for the clock tree driver
16
17Required properties:
Damien Le Moalfd426b32022-03-01 10:35:39 +000018- compatible: should be "canaan,k210-clk"
Sean Andersonf9c7d4f2020-06-24 06:41:11 -040019- clocks: phandle to the "in0" external oscillator
20- #clock-cells: must be <1>
21
22Example:
23sysctl: syscon@50440000 {
Damien Le Moalfd426b32022-03-01 10:35:39 +000024 compatible = "canaan,k210-sysctl", "syscon", "simple-mfd";
Sean Andersonf9c7d4f2020-06-24 06:41:11 -040025 reg = <0x50440000 0x100>;
26 reg-io-width = <4>;
27
28 sysclk: clock-controller {
Damien Le Moalfd426b32022-03-01 10:35:39 +000029 compatible = "canaan,k210-clk";
Sean Andersonf9c7d4f2020-06-24 06:41:11 -040030 clocks = <&in0>;
31 #clock-cells = <1>;
32 };
33};