Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/milbeaut-clock.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Milbeaut SoCs Clock Controller Binding
0008 
0009 maintainers:
0010   - Taichi Sugaya <sugaya.taichi@socionext.com>
0011 
0012 description: |
0013   Milbeaut SoCs Clock controller is an integrated clock controller, which
0014   generates and supplies to all modules.
0015 
0016   This binding uses common clock bindings
0017   [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - socionext,milbeaut-m10v-ccu
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   clocks:
0028     maxItems: 1
0029     description: external clock
0030 
0031   '#clock-cells':
0032     const: 1
0033 
0034 required:
0035   - compatible
0036   - reg
0037   - clocks
0038   - '#clock-cells'
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   # Clock controller node:
0044   - |
0045     m10v-clk-ctrl@1d021000 {
0046         compatible = "socionext,milbeaut-m10v-ccu";
0047         reg = <0x1d021000 0x4000>;
0048         #clock-cells = <1>;
0049         clocks = <&clki40mhz>;
0050     };
0051 
0052   # Required an external clock for Clock controller node:
0053   - |
0054     clocks {
0055         clki40mhz: clki40mhz {
0056             compatible = "fixed-clock";
0057             #clock-cells = <0>;
0058             clock-frequency = <40000000>;
0059         };
0060         /* other clocks */
0061     };
0062 
0063   # The clock consumer shall specify the desired clock-output of the clock
0064   # controller as below by specifying output-id in its "clk" phandle cell.
0065   # 2: uart
0066   # 4: 32-bit timer
0067   # 7: UHS-I/II
0068   - |
0069     serial@1e700010 {
0070         compatible = "socionext,milbeaut-usio-uart";
0071         reg = <0x1e700010 0x10>;
0072         interrupts = <0 141 0x4>, <0 149 0x4>;
0073         interrupt-names = "rx", "tx";
0074         clocks = <&clk 2>;
0075     };
0076 
0077 ...