brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · a065805 Raw
103 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright 2019 Unisoc Inc.3%YAML 1.24---5$id: http://devicetree.org/schemas/clock/sprd,sc9863a-clk.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: SC9863A Clock Control Unit9 10maintainers:11  - Orson Zhai <orsonzhai@gmail.com>12  - Baolin Wang <baolin.wang7@gmail.com>13  - Chunyan Zhang <zhang.lyra@gmail.com>14 15properties:16  "#clock-cells":17    const: 118 19  compatible:20    enum:21      - sprd,sc9863a-ap-clk22      - sprd,sc9863a-aon-clk23      - sprd,sc9863a-apahb-gate24      - sprd,sc9863a-pmu-gate25      - sprd,sc9863a-aonapb-gate26      - sprd,sc9863a-pll27      - sprd,sc9863a-mpll28      - sprd,sc9863a-rpll29      - sprd,sc9863a-dpll30      - sprd,sc9863a-mm-gate31      - sprd,sc9863a-mm-clk32      - sprd,sc9863a-apapb-gate33 34  clocks:35    minItems: 136    maxItems: 437    description: |38      The input parent clock(s) phandle for this clock, only list fixed39      clocks which are declared in devicetree.40 41  clock-names:42    minItems: 143    items:44      - const: ext-26m45      - const: ext-32k46      - const: ext-4m47      - const: rco-100m48 49  reg:50    maxItems: 151 52required:53  - compatible54  - '#clock-cells'55 56if:57  properties:58    compatible:59      enum:60        - sprd,sc9863a-ap-clk61        - sprd,sc9863a-aon-clk62then:63  required:64    - reg65 66else:67  description: |68    Other SC9863a clock nodes should be the child of a syscon node in69    which compatible string should be:70            "sprd,sc9863a-glbregs", "syscon", "simple-mfd"71 72    The 'reg' property for the clock node is also required if there is a sub73    range of registers for the clocks.74 75additionalProperties: false76 77examples:78  - |79    ap_clk: clock-controller@21500000 {80      compatible = "sprd,sc9863a-ap-clk";81      reg = <0x21500000 0x1000>;82      clocks = <&ext_26m>, <&ext_32k>;83      clock-names = "ext-26m", "ext-32k";84      #clock-cells = <1>;85    };86 87  - |88    syscon@20e00000 {89      compatible = "sprd,sc9863a-glbregs", "syscon", "simple-mfd";90      reg = <0x20e00000 0x4000>;91      #address-cells = <1>;92      #size-cells = <1>;93      ranges = <0 0x20e00000 0x4000>;94 95      apahb_gate: apahb-gate@0 {96        compatible = "sprd,sc9863a-apahb-gate";97        reg = <0x0 0x1020>;98        #clock-cells = <1>;99      };100    };101 102...103