Rockchip General Register Files (GRF)
Schema identifier ($id): "http://devicetree.org/schemas/soc/rockchip/grf.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3288-sgrf","rockchip,rk3528-ioc-grf","rockchip,rk3528-pipe-phy-grf","rockchip,rk3528-vo-grf","rockchip,rk3528-vpu-grf","rockchip,rk3562-ioc-grf","rockchip,rk3562-peri-grf","rockchip,rk3562-pipephy-grf","rockchip,rk3562-pmu-grf","rockchip,rk3562-sys-grf","rockchip,rk3562-usbphy-grf","rockchip,rk3566-pipe-grf","rockchip,rk3568-pcie3-phy-grf","rockchip,rk3568-pipe-grf","rockchip,rk3568-pipe-phy-grf","rockchip,rk3568-usb2phy-grf","rockchip,rk3576-bigcore-grf","rockchip,rk3576-cci-grf","rockchip,rk3576-dcphy-grf","rockchip,rk3576-gpu-grf","rockchip,rk3576-hdptxphy-grf","rockchip,rk3576-litcore-grf","rockchip,rk3576-npu-grf","rockchip,rk3576-php-grf","rockchip,rk3576-pipe-phy-grf","rockchip,rk3576-pmu1-grf","rockchip,rk3576-sdgmac-grf","rockchip,rk3576-sys-grf","rockchip,rk3576-usb-grf","rockchip,rk3576-usbdpphy-grf","rockchip,rk3576-vo0-grf","rockchip,rk3576-vo1-grf","rockchip,rk3576-vop-grf","rockchip,rk3588-bigcore0-grf","rockchip,rk3588-bigcore1-grf","rockchip,rk3588-csidphy-grf","rockchip,rk3588-dcphy-grf","rockchip,rk3588-hdptxphy-grf","rockchip,rk3588-ioc","rockchip,rk3588-php-grf","rockchip,rk3588-pipe-phy-grf","rockchip,rk3588-sys-grf","rockchip,rk3588-pcie3-phy-grf","rockchip,rk3588-pcie3-pipe-grf","rockchip,rk3588-usb-grf","rockchip,rk3588-usbdpphy-grf","rockchip,rk3588-vo0-grf","rockchip,rk3588-vo1-grf","rockchip,rk3588-vop-grf","rockchip,rv1108-usbgrf"Item 2
Exact value (
const):"syscon"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3588-vo-grf"Item 2
Exact value (
const):"syscon"Deprecated (
deprecated):trueUse rockchip,rk3588-vo{0,1}-grf instead.
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-grf","rockchip,px30-pmugrf","rockchip,px30-usb2phy-grf","rockchip,rk3036-grf","rockchip,rk3066-grf","rockchip,rk3128-grf","rockchip,rk3188-grf","rockchip,rk3228-grf","rockchip,rk3288-grf","rockchip,rk3308-core-grf","rockchip,rk3308-detect-grf","rockchip,rk3308-grf","rockchip,rk3308-usb2phy-grf","rockchip,rk3328-grf","rockchip,rk3328-usb2phy-grf","rockchip,rk3368-grf","rockchip,rk3368-pmugrf","rockchip,rk3399-grf","rockchip,rk3399-pmugrf","rockchip,rk3562-pmu-grf","rockchip,rk3568-grf","rockchip,rk3568-pmugrf","rockchip,rk3576-ioc-grf","rockchip,rk3576-pmu0-grf","rockchip,rk3576-usb2phy-grf","rockchip,rk3588-usb2phy-grf","rockchip,rv1108-grf","rockchip,rv1108-pmugrf","rockchip,rv1126-grf","rockchip,rv1126-pmugrf"Item 2
Exact value (
const):"syscon"Item 3
Exact value (
const):"simple-mfd"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
lvds— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/display/rockchip/rockchip,lvds.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3288-grf"When the condition matches (
then) #Properties and child nodes (
properties)
edp-phy— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/phy/rockchip,rk3288-dp-phy.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3066-grf","rockchip,rk3188-grf","rockchip,rk3288-grf"When the condition matches (
then) #Properties and child nodes (
properties)
usbphy— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/phy/rockchip-usb-phy.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3328-grf"When the condition matches (
then) #Properties and child nodes (
properties)
gpio— not listed as required hereValue type (
type):"object"Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3328-grf-gpio"Properties not matched by properties or patternProperties in this schema (
additionalProperties)
trueAllowed by this rule.
power-controller— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/power/rockchip,power-controller.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3399-grf"When the condition matches (
then) #Properties and child nodes (
properties)
mipi-dphy-rx0— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/phy/rockchip-mipi-dphy-rx0.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
pcie-phy— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/phy/rockchip,rk3399-pcie-phy.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Properties matching a name pattern (
patternProperties)
^phy@[0-9a-f]+$— name matches this regular expressionValue type (
type):"object"Shared schema rule (
$ref):/schemas/phy/rockchip,rk3399-emmc-phy.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,px30-pmugrf","rockchip,rk3036-grf","rockchip,rk3308-grf","rockchip,rk3368-pmugrf"When the condition matches (
then) #Properties and child nodes (
properties)
reboot-mode— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/power/reset/syscon-reboot-mode.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,px30-usb2phy-grf","rockchip,rk3128-grf","rockchip,rk3228-grf","rockchip,rk3308-usb2phy-grf","rockchip,rk3328-usb2phy-grf","rockchip,rk3399-grf","rockchip,rk3576-usb2phy-grf","rockchip,rk3588-usb2phy-grf","rockchip,rv1108-grf"When the condition matches (
then) #Required in this object (
required):"#address-cells","#size-cells"Properties matching a name pattern (
patternProperties)
usb2phy@[0-9a-f]+$— name matches this regular expressionValue type (
type):"object"Shared schema rule (
$ref):/schemas/phy/rockchip,inno-usb2phy.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,px30-grf","rockchip,px30-pmugrf","rockchip,rk3188-grf","rockchip,rk3228-grf","rockchip,rk3288-grf","rockchip,rk3328-grf","rockchip,rk3368-grf","rockchip,rk3368-pmugrf","rockchip,rk3399-grf","rockchip,rk3399-pmugrf","rockchip,rk3568-pmugrf","rockchip,rk3588-pmugrf","rockchip,rv1108-grf","rockchip,rv1108-pmugrf"When the condition matches (
then) #Properties and child nodes (
properties)
io-domains— not listed as required hereValue type (
type):"object"Shared schema rule (
$ref):/schemas/power/rockchip-io-domain.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3576-dcphy-grf","rockchip,rk3576-vo1-grf","rockchip,rk3588-vo-grf","rockchip,rk3588-vo0-grf","rockchip,rk3588-vo1-grf"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3399-power.h>
grf: syscon@ff770000 {
compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
reg = <0xff770000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
mipi_dphy_rx0: mipi-dphy-rx0 {
compatible = "rockchip,rk3399-mipi-dphy-rx0";
clocks = <&cru SCLK_MIPIDPHY_REF>,
<&cru SCLK_DPHY_RX0_CFG>,
<&cru PCLK_VIO_GRF>;
clock-names = "dphy-ref", "dphy-cfg", "grf";
power-domains = <&power RK3399_PD_VIO>;
#phy-cells = <0>;
};
pcie-phy {
compatible = "rockchip,rk3399-pcie-phy";
#phy-cells = <1>;
clocks = <&cru SCLK_PCIEPHY_REF>;
clock-names = "refclk";
resets = <&cru SRST_PCIEPHY>;
reset-names = "phy";
};
phy@f780 {
compatible = "rockchip,rk3399-emmc-phy";
reg = <0xf780 0x20>;
clocks = <&sdhci>;
clock-names = "emmcclk";
drive-impedance-ohm = <50>;
#phy-cells = <0>;
};
u2phy0: usb2phy@e450 {
compatible = "rockchip,rk3399-usb2phy";
reg = <0xe450 0x10>;
clocks = <&cru SCLK_USB2PHY0_REF>;
clock-names = "phyclk";
#clock-cells = <0>;
clock-output-names = "clk_usbphy0_480m";
u2phy0_host: host-port {
#phy-cells = <0>;
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "linestate";
};
u2phy0_otg: otg-port {
#phy-cells = <0>;
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "otg-bvalid", "otg-id",
"linestate";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0