StarFive JH7110 Always-On Clock and Reset Generator

Schema identifier ($id): "http://devicetree.org/schemas/clock/starfive,jh7110-aoncrg.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Emil Renner Berthing <kernel@esmil.dk>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "starfive,jh7110-aoncrg"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Main Oscillator (24 MHz)

Item 2

GMAC0 RMII reference or GMAC0 RGMII RX

Item 3

STG AXI/AHB

Item 4

APB Bus

Item 5

GMAC0 GTX

Rule 2

Array item rules (items)

Item 1

Main Oscillator (24 MHz)

Item 2

GMAC0 RMII reference or GMAC0 RGMII RX

Item 3

STG AXI/AHB or GMAC0 RGMII RX

Item 4

APB Bus or STG AXI/AHB

Item 5

GMAC0 GTX or APB Bus

Item 6

RTC Oscillator (32.768 kHz) or GMAC0 GTX

Rule 3

Array item rules (items)

Item 1

Main Oscillator (24 MHz)

Item 2

GMAC0 RMII reference

Item 3

GMAC0 RGMII RX

Item 4

STG AXI/AHB

Item 5

APB Bus

Item 6

GMAC0 GTX

Item 7

RTC Oscillator (32.768 kHz)

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

Exact value (const): "osc"

Item 2

Allowed values (enum): "gmac0_rmii_refin", "gmac0_rgmii_rxin"

Item 3

Exact value (const): "stg_axiahb"

Item 4

Exact value (const): "apb_bus"

Item 5

Exact value (const): "gmac0_gtxclk"

Item 6

Exact value (const): "rtc_osc"

Rule 2

Minimum number of items (minItems): 6

Array item rules (items)

Item 1

Exact value (const): "osc"

Item 2

Exact value (const): "gmac0_rmii_refin"

Item 3

Exact value (const): "gmac0_rgmii_rxin"

Item 4

Exact value (const): "stg_axiahb"

Item 5

Exact value (const): "apb_bus"

Item 6

Exact value (const): "gmac0_gtxclk"

Item 7

Exact value (const): "rtc_osc"

#clock-cells — required here #

Exact value (const): 1

See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices.

#reset-cells — required here #

Exact value (const): 1

See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#clock-cells", "#reset-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/starfive,jh7110-crg.h>

clock-controller@17000000 {
    compatible = "starfive,jh7110-aoncrg";
    reg = <0x17000000 0x10000>;
    clocks = <&osc>, <&gmac0_rmii_refin>,
             <&gmac0_rgmii_rxin>,
             <&syscrg JH7110_SYSCLK_STG_AXIAHB>,
             <&syscrg JH7110_SYSCLK_APB_BUS>,
             <&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>,
             <&rtc_osc>;
    clock-names = "osc", "gmac0_rmii_refin",
                  "gmac0_rgmii_rxin", "stg_axiahb",
                  "apb_bus", "gmac0_gtxclk",
                  "rtc_osc";
    #clock-cells = <1>;
    #reset-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page