1*3de0c910SEmil Renner Berthing# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*3de0c910SEmil Renner Berthing%YAML 1.2 3*3de0c910SEmil Renner Berthing--- 4*3de0c910SEmil Renner Berthing$id: http://devicetree.org/schemas/clock/starfive,jh7110-aoncrg.yaml# 5*3de0c910SEmil Renner Berthing$schema: http://devicetree.org/meta-schemas/core.yaml# 6*3de0c910SEmil Renner Berthing 7*3de0c910SEmil Renner Berthingtitle: StarFive JH7110 Always-On Clock and Reset Generator 8*3de0c910SEmil Renner Berthing 9*3de0c910SEmil Renner Berthingmaintainers: 10*3de0c910SEmil Renner Berthing - Emil Renner Berthing <kernel@esmil.dk> 11*3de0c910SEmil Renner Berthing 12*3de0c910SEmil Renner Berthingproperties: 13*3de0c910SEmil Renner Berthing compatible: 14*3de0c910SEmil Renner Berthing const: starfive,jh7110-aoncrg 15*3de0c910SEmil Renner Berthing 16*3de0c910SEmil Renner Berthing reg: 17*3de0c910SEmil Renner Berthing maxItems: 1 18*3de0c910SEmil Renner Berthing 19*3de0c910SEmil Renner Berthing clocks: 20*3de0c910SEmil Renner Berthing oneOf: 21*3de0c910SEmil Renner Berthing - items: 22*3de0c910SEmil Renner Berthing - description: Main Oscillator (24 MHz) 23*3de0c910SEmil Renner Berthing - description: GMAC0 RMII reference or GMAC0 RGMII RX 24*3de0c910SEmil Renner Berthing - description: STG AXI/AHB 25*3de0c910SEmil Renner Berthing - description: APB Bus 26*3de0c910SEmil Renner Berthing - description: GMAC0 GTX 27*3de0c910SEmil Renner Berthing 28*3de0c910SEmil Renner Berthing - items: 29*3de0c910SEmil Renner Berthing - description: Main Oscillator (24 MHz) 30*3de0c910SEmil Renner Berthing - description: GMAC0 RMII reference or GMAC0 RGMII RX 31*3de0c910SEmil Renner Berthing - description: STG AXI/AHB or GMAC0 RGMII RX 32*3de0c910SEmil Renner Berthing - description: APB Bus or STG AXI/AHB 33*3de0c910SEmil Renner Berthing - description: GMAC0 GTX or APB Bus 34*3de0c910SEmil Renner Berthing - description: RTC Oscillator (32.768 kHz) or GMAC0 GTX 35*3de0c910SEmil Renner Berthing 36*3de0c910SEmil Renner Berthing - items: 37*3de0c910SEmil Renner Berthing - description: Main Oscillator (24 MHz) 38*3de0c910SEmil Renner Berthing - description: GMAC0 RMII reference 39*3de0c910SEmil Renner Berthing - description: GMAC0 RGMII RX 40*3de0c910SEmil Renner Berthing - description: STG AXI/AHB 41*3de0c910SEmil Renner Berthing - description: APB Bus 42*3de0c910SEmil Renner Berthing - description: GMAC0 GTX 43*3de0c910SEmil Renner Berthing - description: RTC Oscillator (32.768 kHz) 44*3de0c910SEmil Renner Berthing 45*3de0c910SEmil Renner Berthing clock-names: 46*3de0c910SEmil Renner Berthing oneOf: 47*3de0c910SEmil Renner Berthing - minItems: 5 48*3de0c910SEmil Renner Berthing items: 49*3de0c910SEmil Renner Berthing - const: osc 50*3de0c910SEmil Renner Berthing - enum: 51*3de0c910SEmil Renner Berthing - gmac0_rmii_refin 52*3de0c910SEmil Renner Berthing - gmac0_rgmii_rxin 53*3de0c910SEmil Renner Berthing - const: stg_axiahb 54*3de0c910SEmil Renner Berthing - const: apb_bus 55*3de0c910SEmil Renner Berthing - const: gmac0_gtxclk 56*3de0c910SEmil Renner Berthing - const: rtc_osc 57*3de0c910SEmil Renner Berthing 58*3de0c910SEmil Renner Berthing - minItems: 6 59*3de0c910SEmil Renner Berthing items: 60*3de0c910SEmil Renner Berthing - const: osc 61*3de0c910SEmil Renner Berthing - const: gmac0_rmii_refin 62*3de0c910SEmil Renner Berthing - const: gmac0_rgmii_rxin 63*3de0c910SEmil Renner Berthing - const: stg_axiahb 64*3de0c910SEmil Renner Berthing - const: apb_bus 65*3de0c910SEmil Renner Berthing - const: gmac0_gtxclk 66*3de0c910SEmil Renner Berthing - const: rtc_osc 67*3de0c910SEmil Renner Berthing 68*3de0c910SEmil Renner Berthing '#clock-cells': 69*3de0c910SEmil Renner Berthing const: 1 70*3de0c910SEmil Renner Berthing description: 71*3de0c910SEmil Renner Berthing See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. 72*3de0c910SEmil Renner Berthing 73*3de0c910SEmil Renner Berthing '#reset-cells': 74*3de0c910SEmil Renner Berthing const: 1 75*3de0c910SEmil Renner Berthing description: 76*3de0c910SEmil Renner Berthing See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices. 77*3de0c910SEmil Renner Berthing 78*3de0c910SEmil Renner Berthingrequired: 79*3de0c910SEmil Renner Berthing - compatible 80*3de0c910SEmil Renner Berthing - reg 81*3de0c910SEmil Renner Berthing - clocks 82*3de0c910SEmil Renner Berthing - clock-names 83*3de0c910SEmil Renner Berthing - '#clock-cells' 84*3de0c910SEmil Renner Berthing - '#reset-cells' 85*3de0c910SEmil Renner Berthing 86*3de0c910SEmil Renner BerthingadditionalProperties: false 87*3de0c910SEmil Renner Berthing 88*3de0c910SEmil Renner Berthingexamples: 89*3de0c910SEmil Renner Berthing - | 90*3de0c910SEmil Renner Berthing #include <dt-bindings/clock/starfive,jh7110-crg.h> 91*3de0c910SEmil Renner Berthing 92*3de0c910SEmil Renner Berthing clock-controller@17000000 { 93*3de0c910SEmil Renner Berthing compatible = "starfive,jh7110-aoncrg"; 94*3de0c910SEmil Renner Berthing reg = <0x17000000 0x10000>; 95*3de0c910SEmil Renner Berthing clocks = <&osc>, <&gmac0_rmii_refin>, 96*3de0c910SEmil Renner Berthing <&gmac0_rgmii_rxin>, 97*3de0c910SEmil Renner Berthing <&syscrg JH7110_SYSCLK_STG_AXIAHB>, 98*3de0c910SEmil Renner Berthing <&syscrg JH7110_SYSCLK_APB_BUS>, 99*3de0c910SEmil Renner Berthing <&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>, 100*3de0c910SEmil Renner Berthing <&rtc_osc>; 101*3de0c910SEmil Renner Berthing clock-names = "osc", "gmac0_rmii_refin", 102*3de0c910SEmil Renner Berthing "gmac0_rgmii_rxin", "stg_axiahb", 103*3de0c910SEmil Renner Berthing "apb_bus", "gmac0_gtxclk", 104*3de0c910SEmil Renner Berthing "rtc_osc"; 105*3de0c910SEmil Renner Berthing #clock-cells = <1>; 106*3de0c910SEmil Renner Berthing #reset-cells = <1>; 107*3de0c910SEmil Renner Berthing }; 108