brintos

brintos / linux-shallow public Read only

0
0
Text · 2.8 KiB · 923680a Raw
108 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/clock/starfive,jh7110-aoncrg.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: StarFive JH7110 Always-On Clock and Reset Generator8 9maintainers:10  - Emil Renner Berthing <kernel@esmil.dk>11 12properties:13  compatible:14    const: starfive,jh7110-aoncrg15 16  reg:17    maxItems: 118 19  clocks:20    oneOf:21      - items:22          - description: Main Oscillator (24 MHz)23          - description: GMAC0 RMII reference or GMAC0 RGMII RX24          - description: STG AXI/AHB25          - description: APB Bus26          - description: GMAC0 GTX27 28      - items:29          - description: Main Oscillator (24 MHz)30          - description: GMAC0 RMII reference or GMAC0 RGMII RX31          - description: STG AXI/AHB or GMAC0 RGMII RX32          - description: APB Bus or STG AXI/AHB33          - description: GMAC0 GTX or APB Bus34          - description: RTC Oscillator (32.768 kHz) or GMAC0 GTX35 36      - items:37          - description: Main Oscillator (24 MHz)38          - description: GMAC0 RMII reference39          - description: GMAC0 RGMII RX40          - description: STG AXI/AHB41          - description: APB Bus42          - description: GMAC0 GTX43          - description: RTC Oscillator (32.768 kHz)44 45  clock-names:46    oneOf:47      - minItems: 548        items:49          - const: osc50          - enum:51              - gmac0_rmii_refin52              - gmac0_rgmii_rxin53          - const: stg_axiahb54          - const: apb_bus55          - const: gmac0_gtxclk56          - const: rtc_osc57 58      - minItems: 659        items:60          - const: osc61          - const: gmac0_rmii_refin62          - const: gmac0_rgmii_rxin63          - const: stg_axiahb64          - const: apb_bus65          - const: gmac0_gtxclk66          - const: rtc_osc67 68  '#clock-cells':69    const: 170    description:71      See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices.72 73  '#reset-cells':74    const: 175    description:76      See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices.77 78required:79  - compatible80  - reg81  - clocks82  - clock-names83  - '#clock-cells'84  - '#reset-cells'85 86additionalProperties: false87 88examples:89  - |90    #include <dt-bindings/clock/starfive,jh7110-crg.h>91 92    clock-controller@17000000 {93        compatible = "starfive,jh7110-aoncrg";94        reg = <0x17000000 0x10000>;95        clocks = <&osc>, <&gmac0_rmii_refin>,96                 <&gmac0_rgmii_rxin>,97                 <&syscrg JH7110_SYSCLK_STG_AXIAHB>,98                 <&syscrg JH7110_SYSCLK_APB_BUS>,99                 <&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>,100                 <&rtc_osc>;101        clock-names = "osc", "gmac0_rmii_refin",102                      "gmac0_rgmii_rxin", "stg_axiahb",103                      "apb_bus", "gmac0_gtxclk",104                      "rtc_osc";105        #clock-cells = <1>;106        #reset-cells = <1>;107    };108