Sean Anderson | f9c7d4f | 2020-06-24 06:41:11 -0400 | [diff] [blame] | 1 | Kendryte K210 Sysctl |
| 2 | |
| 3 | This binding describes the K210 sysctl device, which contains many miscellaneous |
| 4 | registers controlling system functionality. This node is a register map and can |
| 5 | be reference by other bindings which need a phandle to the K210 sysctl regmap. |
| 6 | |
| 7 | Required properties: |
| 8 | - compatible: should be |
Damien Le Moal | fd426b3 | 2022-03-01 10:35:39 +0000 | [diff] [blame] | 9 | "canaan,k210-sysctl", "syscon", "simple-mfd" |
Sean Anderson | f9c7d4f | 2020-06-24 06:41:11 -0400 | [diff] [blame] | 10 | - reg: address and length of the sysctl registers |
| 11 | - reg-io-width: must be <4> |
| 12 | |
| 13 | Clock sub-node |
| 14 | |
| 15 | This node is a binding for the clock tree driver |
| 16 | |
| 17 | Required properties: |
Damien Le Moal | fd426b3 | 2022-03-01 10:35:39 +0000 | [diff] [blame] | 18 | - compatible: should be "canaan,k210-clk" |
Sean Anderson | f9c7d4f | 2020-06-24 06:41:11 -0400 | [diff] [blame] | 19 | - clocks: phandle to the "in0" external oscillator |
| 20 | - #clock-cells: must be <1> |
| 21 | |
| 22 | Example: |
| 23 | sysctl: syscon@50440000 { |
Damien Le Moal | fd426b3 | 2022-03-01 10:35:39 +0000 | [diff] [blame] | 24 | compatible = "canaan,k210-sysctl", "syscon", "simple-mfd"; |
Sean Anderson | f9c7d4f | 2020-06-24 06:41:11 -0400 | [diff] [blame] | 25 | reg = <0x50440000 0x100>; |
| 26 | reg-io-width = <4>; |
| 27 | |
| 28 | sysclk: clock-controller { |
Damien Le Moal | fd426b3 | 2022-03-01 10:35:39 +0000 | [diff] [blame] | 29 | compatible = "canaan,k210-clk"; |
Sean Anderson | f9c7d4f | 2020-06-24 06:41:11 -0400 | [diff] [blame] | 30 | clocks = <&in0>; |
| 31 | #clock-cells = <1>; |
| 32 | }; |
| 33 | }; |