12ed2732eSJohan Jonker# SPDX-License-Identifier: GPL-2.0 22ed2732eSJohan Jonker%YAML 1.2 32ed2732eSJohan Jonker--- 42ed2732eSJohan Jonker$id: http://devicetree.org/schemas/soc/rockchip/grf.yaml# 52ed2732eSJohan Jonker$schema: http://devicetree.org/meta-schemas/core.yaml# 62ed2732eSJohan Jonker 72ed2732eSJohan Jonkertitle: Rockchip General Register Files (GRF) 82ed2732eSJohan Jonker 92ed2732eSJohan Jonkermaintainers: 102ed2732eSJohan Jonker - Heiko Stuebner <heiko@sntech.de> 112ed2732eSJohan Jonker 122ed2732eSJohan Jonkerproperties: 132ed2732eSJohan Jonker compatible: 142ed2732eSJohan Jonker oneOf: 152ed2732eSJohan Jonker - items: 162ed2732eSJohan Jonker - enum: 172ed2732eSJohan Jonker - rockchip,rk3288-sgrf 182a872dd8SPeter Geis - rockchip,rk3566-pipe-grf 194e441643SFrank Wunderlich - rockchip,rk3568-pcie3-phy-grf 208a1b63b1SJohan Jonker - rockchip,rk3568-pipe-grf 218a1b63b1SJohan Jonker - rockchip,rk3568-pipe-phy-grf 227dbb47d6SPeter Geis - rockchip,rk3568-usb2phy-grf 23306f74d2SSebastian Reichel - rockchip,rk3588-bigcore0-grf 24306f74d2SSebastian Reichel - rockchip,rk3588-bigcore1-grf 25306f74d2SSebastian Reichel - rockchip,rk3588-ioc 26306f74d2SSebastian Reichel - rockchip,rk3588-php-grf 27306f74d2SSebastian Reichel - rockchip,rk3588-sys-grf 284e441643SFrank Wunderlich - rockchip,rk3588-pcie3-phy-grf 294e441643SFrank Wunderlich - rockchip,rk3588-pcie3-pipe-grf 302ed2732eSJohan Jonker - rockchip,rv1108-usbgrf 312ed2732eSJohan Jonker - const: syscon 322ed2732eSJohan Jonker - items: 332ed2732eSJohan Jonker - enum: 342ed2732eSJohan Jonker - rockchip,px30-grf 352ed2732eSJohan Jonker - rockchip,px30-pmugrf 362ed2732eSJohan Jonker - rockchip,px30-usb2phy-grf 372ed2732eSJohan Jonker - rockchip,rk3036-grf 382ed2732eSJohan Jonker - rockchip,rk3066-grf 39adc4f190SJohan Jonker - rockchip,rk3128-grf 402ed2732eSJohan Jonker - rockchip,rk3188-grf 412ed2732eSJohan Jonker - rockchip,rk3228-grf 422ed2732eSJohan Jonker - rockchip,rk3288-grf 432ed2732eSJohan Jonker - rockchip,rk3308-core-grf 442ed2732eSJohan Jonker - rockchip,rk3308-detect-grf 452ed2732eSJohan Jonker - rockchip,rk3308-grf 46da76290fSTobias Schramm - rockchip,rk3308-usb2phy-grf 472ed2732eSJohan Jonker - rockchip,rk3328-grf 482ed2732eSJohan Jonker - rockchip,rk3328-usb2phy-grf 492ed2732eSJohan Jonker - rockchip,rk3368-grf 502ed2732eSJohan Jonker - rockchip,rk3368-pmugrf 512ed2732eSJohan Jonker - rockchip,rk3399-grf 522ed2732eSJohan Jonker - rockchip,rk3399-pmugrf 532ed2732eSJohan Jonker - rockchip,rk3568-grf 542ed2732eSJohan Jonker - rockchip,rk3568-pmugrf 55*7224aefbSSebastian Reichel - rockchip,rk3588-usb2phy-grf 562ed2732eSJohan Jonker - rockchip,rv1108-grf 57959e131fSJohan Jonker - rockchip,rv1108-pmugrf 5826d8b279SJagan Teki - rockchip,rv1126-grf 59614ce48bSJagan Teki - rockchip,rv1126-pmugrf 602ed2732eSJohan Jonker - const: syscon 612ed2732eSJohan Jonker - const: simple-mfd 622ed2732eSJohan Jonker 632ed2732eSJohan Jonker reg: 642ed2732eSJohan Jonker maxItems: 1 652ed2732eSJohan Jonker 662ed2732eSJohan Jonker "#address-cells": 672ed2732eSJohan Jonker const: 1 682ed2732eSJohan Jonker 692ed2732eSJohan Jonker "#size-cells": 702ed2732eSJohan Jonker const: 1 712ed2732eSJohan Jonker 722ed2732eSJohan Jonkerrequired: 732ed2732eSJohan Jonker - compatible 742ed2732eSJohan Jonker - reg 752ed2732eSJohan Jonker 762ed2732eSJohan JonkeradditionalProperties: 772ed2732eSJohan Jonker type: object 782ed2732eSJohan Jonker 792ed2732eSJohan JonkerallOf: 802ed2732eSJohan Jonker - if: 812ed2732eSJohan Jonker properties: 822ed2732eSJohan Jonker compatible: 832ed2732eSJohan Jonker contains: 84cbfc73a3SJohan Jonker enum: 85cbfc73a3SJohan Jonker - rockchip,px30-grf 862ed2732eSJohan Jonker 872ed2732eSJohan Jonker then: 882ed2732eSJohan Jonker properties: 892ed2732eSJohan Jonker lvds: 90cbfc73a3SJohan Jonker type: object 91cbfc73a3SJohan Jonker 92cbfc73a3SJohan Jonker $ref: /schemas/display/rockchip/rockchip,lvds.yaml# 93cbfc73a3SJohan Jonker 94cbfc73a3SJohan Jonker unevaluatedProperties: false 952ed2732eSJohan Jonker 962ed2732eSJohan Jonker - if: 972ed2732eSJohan Jonker properties: 982ed2732eSJohan Jonker compatible: 992ed2732eSJohan Jonker contains: 1002ed2732eSJohan Jonker const: rockchip,rk3288-grf 1012ed2732eSJohan Jonker 1022ed2732eSJohan Jonker then: 1032ed2732eSJohan Jonker properties: 1042ed2732eSJohan Jonker edp-phy: 10551b20892SJohan Jonker type: object 10651b20892SJohan Jonker $ref: /schemas/phy/rockchip,rk3288-dp-phy.yaml# 10751b20892SJohan Jonker unevaluatedProperties: false 1082ed2732eSJohan Jonker 1092ed2732eSJohan Jonker - if: 1102ed2732eSJohan Jonker properties: 1112ed2732eSJohan Jonker compatible: 1122ed2732eSJohan Jonker contains: 1132ed2732eSJohan Jonker enum: 1142ed2732eSJohan Jonker - rockchip,rk3066-grf 1152ed2732eSJohan Jonker - rockchip,rk3188-grf 1162ed2732eSJohan Jonker - rockchip,rk3288-grf 1172ed2732eSJohan Jonker 1182ed2732eSJohan Jonker then: 1192ed2732eSJohan Jonker properties: 1202ed2732eSJohan Jonker usbphy: 1212ed2732eSJohan Jonker type: object 1222ed2732eSJohan Jonker 1232ed2732eSJohan Jonker $ref: "/schemas/phy/rockchip-usb-phy.yaml#" 1242ed2732eSJohan Jonker 1252ed2732eSJohan Jonker unevaluatedProperties: false 1262ed2732eSJohan Jonker 1272ed2732eSJohan Jonker - if: 1282ed2732eSJohan Jonker properties: 1292ed2732eSJohan Jonker compatible: 1302ed2732eSJohan Jonker contains: 1312ed2732eSJohan Jonker const: rockchip,rk3328-grf 1322ed2732eSJohan Jonker 1332ed2732eSJohan Jonker then: 1342ed2732eSJohan Jonker properties: 1352ed2732eSJohan Jonker gpio: 1362ed2732eSJohan Jonker type: object 1372ed2732eSJohan Jonker 1382ed2732eSJohan Jonker $ref: "/schemas/gpio/rockchip,rk3328-grf-gpio.yaml#" 1392ed2732eSJohan Jonker 1402ed2732eSJohan Jonker unevaluatedProperties: false 1412ed2732eSJohan Jonker 1422ed2732eSJohan Jonker power-controller: 1432ed2732eSJohan Jonker type: object 1442ed2732eSJohan Jonker 1452ed2732eSJohan Jonker $ref: "/schemas/power/rockchip,power-controller.yaml#" 1462ed2732eSJohan Jonker 1472ed2732eSJohan Jonker unevaluatedProperties: false 1482ed2732eSJohan Jonker 1492ed2732eSJohan Jonker - if: 1502ed2732eSJohan Jonker properties: 1512ed2732eSJohan Jonker compatible: 1522ed2732eSJohan Jonker contains: 1532ed2732eSJohan Jonker const: rockchip,rk3399-grf 1542ed2732eSJohan Jonker 1552ed2732eSJohan Jonker then: 1562ed2732eSJohan Jonker properties: 1572ed2732eSJohan Jonker mipi-dphy-rx0: 1582ed2732eSJohan Jonker type: object 1592ed2732eSJohan Jonker 1602ed2732eSJohan Jonker $ref: "/schemas/phy/rockchip-mipi-dphy-rx0.yaml#" 1612ed2732eSJohan Jonker 1622ed2732eSJohan Jonker unevaluatedProperties: false 1632ed2732eSJohan Jonker 1642ed2732eSJohan Jonker pcie-phy: 1652ed2732eSJohan Jonker description: 1662ed2732eSJohan Jonker Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt 1672ed2732eSJohan Jonker 1682ed2732eSJohan Jonker patternProperties: 1692ed2732eSJohan Jonker "phy@[0-9a-f]+$": 1702ed2732eSJohan Jonker description: 1712ed2732eSJohan Jonker Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt 1722ed2732eSJohan Jonker 1732ed2732eSJohan Jonker - if: 1742ed2732eSJohan Jonker properties: 1752ed2732eSJohan Jonker compatible: 1762ed2732eSJohan Jonker contains: 1772ed2732eSJohan Jonker enum: 1782ed2732eSJohan Jonker - rockchip,px30-pmugrf 1792ed2732eSJohan Jonker - rockchip,rk3036-grf 1802ed2732eSJohan Jonker - rockchip,rk3308-grf 1812ed2732eSJohan Jonker - rockchip,rk3368-pmugrf 1822ed2732eSJohan Jonker 1832ed2732eSJohan Jonker then: 1842ed2732eSJohan Jonker properties: 1852ed2732eSJohan Jonker reboot-mode: 1862ed2732eSJohan Jonker type: object 1872ed2732eSJohan Jonker 1882ed2732eSJohan Jonker $ref: "/schemas/power/reset/syscon-reboot-mode.yaml#" 1892ed2732eSJohan Jonker 1902ed2732eSJohan Jonker unevaluatedProperties: false 1912ed2732eSJohan Jonker 1922ed2732eSJohan Jonker - if: 1932ed2732eSJohan Jonker properties: 1942ed2732eSJohan Jonker compatible: 1952ed2732eSJohan Jonker contains: 1962ed2732eSJohan Jonker enum: 1972ed2732eSJohan Jonker - rockchip,px30-usb2phy-grf 198adc4f190SJohan Jonker - rockchip,rk3128-grf 1992ed2732eSJohan Jonker - rockchip,rk3228-grf 200da76290fSTobias Schramm - rockchip,rk3308-usb2phy-grf 2012ed2732eSJohan Jonker - rockchip,rk3328-usb2phy-grf 2022ed2732eSJohan Jonker - rockchip,rk3399-grf 203*7224aefbSSebastian Reichel - rockchip,rk3588-usb2phy-grf 2042ed2732eSJohan Jonker - rockchip,rv1108-grf 2052ed2732eSJohan Jonker 2062ed2732eSJohan Jonker then: 2072ed2732eSJohan Jonker required: 2082ed2732eSJohan Jonker - "#address-cells" 2092ed2732eSJohan Jonker - "#size-cells" 2102ed2732eSJohan Jonker 2112ed2732eSJohan Jonker patternProperties: 212e71ccdffSJohan Jonker "usb2phy@[0-9a-f]+$": 2132ed2732eSJohan Jonker type: object 2142ed2732eSJohan Jonker 2150f48b0edSJohan Jonker $ref: /schemas/phy/rockchip,inno-usb2phy.yaml# 2162ed2732eSJohan Jonker 2172ed2732eSJohan Jonker unevaluatedProperties: false 2182ed2732eSJohan Jonker 2192ed2732eSJohan Jonker - if: 2202ed2732eSJohan Jonker properties: 2212ed2732eSJohan Jonker compatible: 2222ed2732eSJohan Jonker contains: 2232ed2732eSJohan Jonker enum: 2242ed2732eSJohan Jonker - rockchip,px30-grf 225959e131fSJohan Jonker - rockchip,px30-pmugrf 226959e131fSJohan Jonker - rockchip,rk3188-grf 2272ed2732eSJohan Jonker - rockchip,rk3228-grf 2282ed2732eSJohan Jonker - rockchip,rk3288-grf 2292ed2732eSJohan Jonker - rockchip,rk3328-grf 2302ed2732eSJohan Jonker - rockchip,rk3368-grf 231959e131fSJohan Jonker - rockchip,rk3368-pmugrf 2322ed2732eSJohan Jonker - rockchip,rk3399-grf 233959e131fSJohan Jonker - rockchip,rk3399-pmugrf 234fadbd4e7SMichael Riesch - rockchip,rk3568-pmugrf 235959e131fSJohan Jonker - rockchip,rv1108-grf 236959e131fSJohan Jonker - rockchip,rv1108-pmugrf 2372ed2732eSJohan Jonker 2382ed2732eSJohan Jonker then: 2392ed2732eSJohan Jonker properties: 2402ed2732eSJohan Jonker io-domains: 241959e131fSJohan Jonker type: object 242959e131fSJohan Jonker 243959e131fSJohan Jonker $ref: "/schemas/power/rockchip-io-domain.yaml#" 244959e131fSJohan Jonker 245959e131fSJohan Jonker unevaluatedProperties: false 2462ed2732eSJohan Jonker 2472ed2732eSJohan Jonkerexamples: 2482ed2732eSJohan Jonker - | 2492ed2732eSJohan Jonker #include <dt-bindings/clock/rk3399-cru.h> 2502ed2732eSJohan Jonker #include <dt-bindings/interrupt-controller/arm-gic.h> 2512ed2732eSJohan Jonker #include <dt-bindings/power/rk3399-power.h> 2522ed2732eSJohan Jonker grf: syscon@ff770000 { 2532ed2732eSJohan Jonker compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; 2542ed2732eSJohan Jonker reg = <0xff770000 0x10000>; 2552ed2732eSJohan Jonker #address-cells = <1>; 2562ed2732eSJohan Jonker #size-cells = <1>; 2572ed2732eSJohan Jonker 2582ed2732eSJohan Jonker mipi_dphy_rx0: mipi-dphy-rx0 { 2592ed2732eSJohan Jonker compatible = "rockchip,rk3399-mipi-dphy-rx0"; 2602ed2732eSJohan Jonker clocks = <&cru SCLK_MIPIDPHY_REF>, 2612ed2732eSJohan Jonker <&cru SCLK_DPHY_RX0_CFG>, 2622ed2732eSJohan Jonker <&cru PCLK_VIO_GRF>; 2632ed2732eSJohan Jonker clock-names = "dphy-ref", "dphy-cfg", "grf"; 2642ed2732eSJohan Jonker power-domains = <&power RK3399_PD_VIO>; 2652ed2732eSJohan Jonker #phy-cells = <0>; 2662ed2732eSJohan Jonker }; 2672ed2732eSJohan Jonker 268e71ccdffSJohan Jonker u2phy0: usb2phy@e450 { 2692ed2732eSJohan Jonker compatible = "rockchip,rk3399-usb2phy"; 2702ed2732eSJohan Jonker reg = <0xe450 0x10>; 2712ed2732eSJohan Jonker clocks = <&cru SCLK_USB2PHY0_REF>; 2722ed2732eSJohan Jonker clock-names = "phyclk"; 2732ed2732eSJohan Jonker #clock-cells = <0>; 2742ed2732eSJohan Jonker clock-output-names = "clk_usbphy0_480m"; 2752ed2732eSJohan Jonker 2762ed2732eSJohan Jonker u2phy0_host: host-port { 2772ed2732eSJohan Jonker #phy-cells = <0>; 2782ed2732eSJohan Jonker interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>; 2792ed2732eSJohan Jonker interrupt-names = "linestate"; 2802ed2732eSJohan Jonker }; 2812ed2732eSJohan Jonker 2822ed2732eSJohan Jonker u2phy0_otg: otg-port { 2832ed2732eSJohan Jonker #phy-cells = <0>; 2842ed2732eSJohan Jonker interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>, 2852ed2732eSJohan Jonker <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>, 2862ed2732eSJohan Jonker <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>; 2872ed2732eSJohan Jonker interrupt-names = "otg-bvalid", "otg-id", 2882ed2732eSJohan Jonker "linestate"; 2892ed2732eSJohan Jonker }; 2902ed2732eSJohan Jonker }; 2912ed2732eSJohan Jonker }; 292