Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | * Hisilicon Hi3660 Clock Controller |
| 2 | |
| 3 | The Hi3660 clock controller generates and supplies clock to various |
| 4 | controllers within the Hi3660 SoC. |
| 5 | |
| 6 | Required Properties: |
| 7 | |
| 8 | - compatible: the compatible should be one of the following strings to |
| 9 | indicate the clock controller functionality. |
| 10 | |
| 11 | - "hisilicon,hi3660-crgctrl" |
| 12 | - "hisilicon,hi3660-pctrl" |
| 13 | - "hisilicon,hi3660-pmuctrl" |
| 14 | - "hisilicon,hi3660-sctrl" |
| 15 | - "hisilicon,hi3660-iomcu" |
| 16 | - "hisilicon,hi3660-stub-clk" |
| 17 | |
| 18 | - reg: physical base address of the controller and length of memory mapped |
| 19 | region. |
| 20 | |
| 21 | - #clock-cells: should be 1. |
| 22 | |
| 23 | Optional Properties: |
| 24 | |
| 25 | - mboxes: Phandle to the mailbox for sending message to MCU. |
| 26 | (See: ../mailbox/hisilicon,hi3660-mailbox.txt for more info) |
| 27 | |
| 28 | Each clock is assigned an identifier and client nodes use this identifier |
| 29 | to specify the clock which they consume. |
| 30 | |
| 31 | All these identifier could be found in <dt-bindings/clock/hi3660-clock.h>. |
| 32 | |
| 33 | Examples: |
| 34 | crg_ctrl: clock-controller@fff35000 { |
| 35 | compatible = "hisilicon,hi3660-crgctrl", "syscon"; |
| 36 | reg = <0x0 0xfff35000 0x0 0x1000>; |
| 37 | #clock-cells = <1>; |
| 38 | }; |
| 39 | |
| 40 | uart0: serial@fdf02000 { |
| 41 | compatible = "arm,pl011", "arm,primecell"; |
| 42 | reg = <0x0 0xfdf02000 0x0 0x1000>; |
| 43 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
| 44 | clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>, |
| 45 | <&crg_ctrl HI3660_PCLK>; |
| 46 | clock-names = "uartclk", "apb_pclk"; |
| 47 | }; |