Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Broadcom BCM2835 CPRMAN clocks |
| 2 | |
| 3 | This binding uses the common clock binding: |
| 4 | Documentation/devicetree/bindings/clock/clock-bindings.txt |
| 5 | |
| 6 | The CPRMAN clock controller generates clocks in the audio power domain |
| 7 | of the BCM2835. There is a level of PLLs deriving from an external |
| 8 | oscillator, a level of PLL dividers that produce channels off of the |
| 9 | few PLLs, and a level of mostly-generic clock generators sourcing from |
| 10 | the PLL channels. Most other hardware components source from the |
| 11 | clock generators, but a few (like the ARM or HDMI) will source from |
| 12 | the PLL dividers directly. |
| 13 | |
| 14 | Required properties: |
| 15 | - compatible: should be one of the following, |
| 16 | "brcm,bcm2711-cprman" |
| 17 | "brcm,bcm2835-cprman" |
| 18 | - #clock-cells: Should be <1>. The permitted clock-specifier values can be |
| 19 | found in include/dt-bindings/clock/bcm2835.h |
| 20 | - reg: Specifies base physical address and size of the registers |
| 21 | - clocks: phandles to the parent clocks used as input to the module, in |
| 22 | the following order: |
| 23 | |
| 24 | - External oscillator |
| 25 | - DSI0 byte clock |
| 26 | - DSI0 DDR2 clock |
| 27 | - DSI0 DDR clock |
| 28 | - DSI1 byte clock |
| 29 | - DSI1 DDR2 clock |
| 30 | - DSI1 DDR clock |
| 31 | |
| 32 | Only external oscillator is required. The DSI clocks may |
| 33 | not be present, in which case their children will be |
| 34 | unusable. |
| 35 | |
| 36 | Example: |
| 37 | |
| 38 | clk_osc: clock@3 { |
| 39 | compatible = "fixed-clock"; |
| 40 | reg = <3>; |
| 41 | #clock-cells = <0>; |
| 42 | clock-output-names = "osc"; |
| 43 | clock-frequency = <19200000>; |
| 44 | }; |
| 45 | |
| 46 | clocks: cprman@7e101000 { |
| 47 | compatible = "brcm,bcm2835-cprman"; |
| 48 | #clock-cells = <1>; |
| 49 | reg = <0x7e101000 0x2000>; |
| 50 | clocks = <&clk_osc>; |
| 51 | }; |
| 52 | |
| 53 | i2c0: i2c@7e205000 { |
| 54 | compatible = "brcm,bcm2835-i2c"; |
| 55 | reg = <0x7e205000 0x1000>; |
| 56 | interrupts = <2 21>; |
| 57 | clocks = <&clocks BCM2835_CLOCK_VPU>; |
| 58 | #address-cells = <1>; |
| 59 | #size-cells = <0>; |
| 60 | }; |