brintos

brintos / linux-shallow public Read only

0
0
Text · 3.7 KiB · 502cd72 Raw
160 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/clock/sprd,sc9860-clk.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Spreadtrum SC9860 clock8 9maintainers:10  - Orson Zhai <orsonzhai@gmail.com>11  - Baolin Wang <baolin.wang7@gmail.com>12  - Chunyan Zhang <zhang.lyra@gmail.com>13 14properties:15  compatible:16    enum:17      - sprd,sc9860-agcp-gate18      - sprd,sc9860-aonsecure-clk19      - sprd,sc9860-aon-gate20      - sprd,sc9860-aon-prediv21      - sprd,sc9860-apahb-gate22      - sprd,sc9860-apapb-gate23      - sprd,sc9860-ap-clk24      - sprd,sc9860-cam-clk25      - sprd,sc9860-cam-gate26      - sprd,sc9860-disp-clk27      - sprd,sc9860-disp-gate28      - sprd,sc9860-gpu-clk29      - sprd,sc9860-pll30      - sprd,sc9860-pmu-gate31      - sprd,sc9860-vsp-clk32      - sprd,sc9860-vsp-gate33 34  reg:35    maxItems: 136 37  clocks:38    minItems: 139    maxItems: 340 41  '#clock-cells':42    const: 143 44  sprd,syscon:45    $ref: /schemas/types.yaml#/definitions/phandle46    description:47      phandle to the syscon which is in the same address area with the48      clock, and so we can get regmap for the clocks from the syscon device49 50required:51  - compatible52  - clocks53  - '#clock-cells'54 55allOf:56  - if:57      properties:58        compatible:59          contains:60            enum:61              - sprd,sc9860-agcp-gate62              - sprd,sc9860-aon-gate63              - sprd,sc9860-apahb-gate64              - sprd,sc9860-apapb-gate65              - sprd,sc9860-cam-gate66              - sprd,sc9860-disp-gate67              - sprd,sc9860-gpu-clk68              - sprd,sc9860-pll69              - sprd,sc9860-pmu-gate70              - sprd,sc9860-vsp-gate71    then:72      properties:73        clocks:74          maxItems: 175  - if:76      properties:77        compatible:78          contains:79            enum:80              - sprd,sc9860-aonsecure-clk81              - sprd,sc9860-cam-clk82              - sprd,sc9860-disp-clk83              - sprd,sc9860-vsp-clk84    then:85      properties:86        clocks:87          minItems: 288          maxItems: 289  - if:90      properties:91        compatible:92          contains:93            enum:94              - sprd,sc9860-aon-prediv95              - sprd,sc9860-ap-clk96    then:97      properties:98        clocks:99          minItems: 3100  - if:101      properties:102        compatible:103          contains:104            enum:105              - sprd,sc9860-aonsecure-clk106              - sprd,sc9860-aon-prediv107              - sprd,sc9860-ap-clk108              - sprd,sc9860-cam-clk109              - sprd,sc9860-disp-clk110              - sprd,sc9860-gpu-clk111              - sprd,sc9860-vsp-clk112    then:113      required:114        - reg115      properties:116        sprd,syscon: false117  - if:118      properties:119        compatible:120          contains:121            enum:122              - sprd,sc9860-agcp-gate123              - sprd,sc9860-aon-gate124              - sprd,sc9860-apahb-gate125              - sprd,sc9860-apapb-gate126              - sprd,sc9860-cam-gate127              - sprd,sc9860-disp-gate128              - sprd,sc9860-pll129              - sprd,sc9860-pmu-gate130              - sprd,sc9860-vsp-gate131    then:132      required:133        - sprd,syscon134      properties:135        reg: false136 137additionalProperties: false138 139examples:140  - |141    soc {142      #address-cells = <2>;143      #size-cells = <2>;144 145      pmu-gate {146        compatible = "sprd,sc9860-pmu-gate";147        clocks = <&ext_26m>;148        #clock-cells = <1>;149        sprd,syscon = <&pmu_regs>;150      };151 152      clock-controller@20000000 {153        compatible = "sprd,sc9860-ap-clk";154        reg = <0 0x20000000 0 0x400>;155        clocks = <&ext_26m>, <&pll 0>, <&pmu_gate 0>;156        #clock-cells = <1>;157      };158    };159...160