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 234e441643SFrank Wunderlich - rockchip,rk3588-pcie3-phy-grf 244e441643SFrank Wunderlich - rockchip,rk3588-pcie3-pipe-grf 252ed2732eSJohan Jonker - rockchip,rv1108-usbgrf 262ed2732eSJohan Jonker - const: syscon 272ed2732eSJohan Jonker - items: 282ed2732eSJohan Jonker - enum: 292ed2732eSJohan Jonker - rockchip,px30-grf 302ed2732eSJohan Jonker - rockchip,px30-pmugrf 312ed2732eSJohan Jonker - rockchip,px30-usb2phy-grf 322ed2732eSJohan Jonker - rockchip,rk3036-grf 332ed2732eSJohan Jonker - rockchip,rk3066-grf 342ed2732eSJohan Jonker - rockchip,rk3188-grf 352ed2732eSJohan Jonker - rockchip,rk3228-grf 362ed2732eSJohan Jonker - rockchip,rk3288-grf 372ed2732eSJohan Jonker - rockchip,rk3308-core-grf 382ed2732eSJohan Jonker - rockchip,rk3308-detect-grf 392ed2732eSJohan Jonker - rockchip,rk3308-grf 40da76290fSTobias Schramm - rockchip,rk3308-usb2phy-grf 412ed2732eSJohan Jonker - rockchip,rk3328-grf 422ed2732eSJohan Jonker - rockchip,rk3328-usb2phy-grf 432ed2732eSJohan Jonker - rockchip,rk3368-grf 442ed2732eSJohan Jonker - rockchip,rk3368-pmugrf 452ed2732eSJohan Jonker - rockchip,rk3399-grf 462ed2732eSJohan Jonker - rockchip,rk3399-pmugrf 472ed2732eSJohan Jonker - rockchip,rk3568-grf 482ed2732eSJohan Jonker - rockchip,rk3568-pmugrf 492ed2732eSJohan Jonker - rockchip,rv1108-grf 50959e131fSJohan Jonker - rockchip,rv1108-pmugrf 51*26d8b279SJagan Teki - rockchip,rv1126-grf 522ed2732eSJohan Jonker - const: syscon 532ed2732eSJohan Jonker - const: simple-mfd 542ed2732eSJohan Jonker 552ed2732eSJohan Jonker reg: 562ed2732eSJohan Jonker maxItems: 1 572ed2732eSJohan Jonker 582ed2732eSJohan Jonker "#address-cells": 592ed2732eSJohan Jonker const: 1 602ed2732eSJohan Jonker 612ed2732eSJohan Jonker "#size-cells": 622ed2732eSJohan Jonker const: 1 632ed2732eSJohan Jonker 642ed2732eSJohan Jonkerrequired: 652ed2732eSJohan Jonker - compatible 662ed2732eSJohan Jonker - reg 672ed2732eSJohan Jonker 682ed2732eSJohan JonkeradditionalProperties: 692ed2732eSJohan Jonker type: object 702ed2732eSJohan Jonker 712ed2732eSJohan JonkerallOf: 722ed2732eSJohan Jonker - if: 732ed2732eSJohan Jonker properties: 742ed2732eSJohan Jonker compatible: 752ed2732eSJohan Jonker contains: 762ed2732eSJohan Jonker const: rockchip,px30-grf 772ed2732eSJohan Jonker 782ed2732eSJohan Jonker then: 792ed2732eSJohan Jonker properties: 802ed2732eSJohan Jonker lvds: 812ed2732eSJohan Jonker description: 822ed2732eSJohan Jonker Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt 832ed2732eSJohan Jonker 842ed2732eSJohan Jonker - if: 852ed2732eSJohan Jonker properties: 862ed2732eSJohan Jonker compatible: 872ed2732eSJohan Jonker contains: 882ed2732eSJohan Jonker const: rockchip,rk3288-grf 892ed2732eSJohan Jonker 902ed2732eSJohan Jonker then: 912ed2732eSJohan Jonker properties: 922ed2732eSJohan Jonker edp-phy: 932ed2732eSJohan Jonker description: 942ed2732eSJohan Jonker Documentation/devicetree/bindings/phy/rockchip-dp-phy.txt 952ed2732eSJohan Jonker 962ed2732eSJohan Jonker - if: 972ed2732eSJohan Jonker properties: 982ed2732eSJohan Jonker compatible: 992ed2732eSJohan Jonker contains: 1002ed2732eSJohan Jonker enum: 1012ed2732eSJohan Jonker - rockchip,rk3066-grf 1022ed2732eSJohan Jonker - rockchip,rk3188-grf 1032ed2732eSJohan Jonker - rockchip,rk3288-grf 1042ed2732eSJohan Jonker 1052ed2732eSJohan Jonker then: 1062ed2732eSJohan Jonker properties: 1072ed2732eSJohan Jonker usbphy: 1082ed2732eSJohan Jonker type: object 1092ed2732eSJohan Jonker 1102ed2732eSJohan Jonker $ref: "/schemas/phy/rockchip-usb-phy.yaml#" 1112ed2732eSJohan Jonker 1122ed2732eSJohan Jonker unevaluatedProperties: false 1132ed2732eSJohan Jonker 1142ed2732eSJohan Jonker - if: 1152ed2732eSJohan Jonker properties: 1162ed2732eSJohan Jonker compatible: 1172ed2732eSJohan Jonker contains: 1182ed2732eSJohan Jonker const: rockchip,rk3328-grf 1192ed2732eSJohan Jonker 1202ed2732eSJohan Jonker then: 1212ed2732eSJohan Jonker properties: 1222ed2732eSJohan Jonker gpio: 1232ed2732eSJohan Jonker type: object 1242ed2732eSJohan Jonker 1252ed2732eSJohan Jonker $ref: "/schemas/gpio/rockchip,rk3328-grf-gpio.yaml#" 1262ed2732eSJohan Jonker 1272ed2732eSJohan Jonker unevaluatedProperties: false 1282ed2732eSJohan Jonker 1292ed2732eSJohan Jonker power-controller: 1302ed2732eSJohan Jonker type: object 1312ed2732eSJohan Jonker 1322ed2732eSJohan Jonker $ref: "/schemas/power/rockchip,power-controller.yaml#" 1332ed2732eSJohan Jonker 1342ed2732eSJohan Jonker unevaluatedProperties: false 1352ed2732eSJohan Jonker 1362ed2732eSJohan Jonker - if: 1372ed2732eSJohan Jonker properties: 1382ed2732eSJohan Jonker compatible: 1392ed2732eSJohan Jonker contains: 1402ed2732eSJohan Jonker const: rockchip,rk3399-grf 1412ed2732eSJohan Jonker 1422ed2732eSJohan Jonker then: 1432ed2732eSJohan Jonker properties: 1442ed2732eSJohan Jonker mipi-dphy-rx0: 1452ed2732eSJohan Jonker type: object 1462ed2732eSJohan Jonker 1472ed2732eSJohan Jonker $ref: "/schemas/phy/rockchip-mipi-dphy-rx0.yaml#" 1482ed2732eSJohan Jonker 1492ed2732eSJohan Jonker unevaluatedProperties: false 1502ed2732eSJohan Jonker 1512ed2732eSJohan Jonker pcie-phy: 1522ed2732eSJohan Jonker description: 1532ed2732eSJohan Jonker Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt 1542ed2732eSJohan Jonker 1552ed2732eSJohan Jonker patternProperties: 1562ed2732eSJohan Jonker "phy@[0-9a-f]+$": 1572ed2732eSJohan Jonker description: 1582ed2732eSJohan Jonker Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt 1592ed2732eSJohan Jonker 1602ed2732eSJohan Jonker - if: 1612ed2732eSJohan Jonker properties: 1622ed2732eSJohan Jonker compatible: 1632ed2732eSJohan Jonker contains: 1642ed2732eSJohan Jonker enum: 1652ed2732eSJohan Jonker - rockchip,px30-pmugrf 1662ed2732eSJohan Jonker - rockchip,rk3036-grf 1672ed2732eSJohan Jonker - rockchip,rk3308-grf 1682ed2732eSJohan Jonker - rockchip,rk3368-pmugrf 1692ed2732eSJohan Jonker 1702ed2732eSJohan Jonker then: 1712ed2732eSJohan Jonker properties: 1722ed2732eSJohan Jonker reboot-mode: 1732ed2732eSJohan Jonker type: object 1742ed2732eSJohan Jonker 1752ed2732eSJohan Jonker $ref: "/schemas/power/reset/syscon-reboot-mode.yaml#" 1762ed2732eSJohan Jonker 1772ed2732eSJohan Jonker unevaluatedProperties: false 1782ed2732eSJohan Jonker 1792ed2732eSJohan Jonker - if: 1802ed2732eSJohan Jonker properties: 1812ed2732eSJohan Jonker compatible: 1822ed2732eSJohan Jonker contains: 1832ed2732eSJohan Jonker enum: 1842ed2732eSJohan Jonker - rockchip,px30-usb2phy-grf 1852ed2732eSJohan Jonker - rockchip,rk3228-grf 186da76290fSTobias Schramm - rockchip,rk3308-usb2phy-grf 1872ed2732eSJohan Jonker - rockchip,rk3328-usb2phy-grf 1882ed2732eSJohan Jonker - rockchip,rk3399-grf 1892ed2732eSJohan Jonker - rockchip,rv1108-grf 1902ed2732eSJohan Jonker 1912ed2732eSJohan Jonker then: 1922ed2732eSJohan Jonker required: 1932ed2732eSJohan Jonker - "#address-cells" 1942ed2732eSJohan Jonker - "#size-cells" 1952ed2732eSJohan Jonker 1962ed2732eSJohan Jonker patternProperties: 197e71ccdffSJohan Jonker "usb2phy@[0-9a-f]+$": 1982ed2732eSJohan Jonker type: object 1992ed2732eSJohan Jonker 2002ed2732eSJohan Jonker $ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#" 2012ed2732eSJohan Jonker 2022ed2732eSJohan Jonker unevaluatedProperties: false 2032ed2732eSJohan Jonker 2042ed2732eSJohan Jonker - if: 2052ed2732eSJohan Jonker properties: 2062ed2732eSJohan Jonker compatible: 2072ed2732eSJohan Jonker contains: 2082ed2732eSJohan Jonker enum: 2092ed2732eSJohan Jonker - rockchip,px30-grf 210959e131fSJohan Jonker - rockchip,px30-pmugrf 211959e131fSJohan Jonker - rockchip,rk3188-grf 2122ed2732eSJohan Jonker - rockchip,rk3228-grf 2132ed2732eSJohan Jonker - rockchip,rk3288-grf 2142ed2732eSJohan Jonker - rockchip,rk3328-grf 2152ed2732eSJohan Jonker - rockchip,rk3368-grf 216959e131fSJohan Jonker - rockchip,rk3368-pmugrf 2172ed2732eSJohan Jonker - rockchip,rk3399-grf 218959e131fSJohan Jonker - rockchip,rk3399-pmugrf 219fadbd4e7SMichael Riesch - rockchip,rk3568-pmugrf 220959e131fSJohan Jonker - rockchip,rv1108-grf 221959e131fSJohan Jonker - rockchip,rv1108-pmugrf 2222ed2732eSJohan Jonker 2232ed2732eSJohan Jonker then: 2242ed2732eSJohan Jonker properties: 2252ed2732eSJohan Jonker io-domains: 226959e131fSJohan Jonker type: object 227959e131fSJohan Jonker 228959e131fSJohan Jonker $ref: "/schemas/power/rockchip-io-domain.yaml#" 229959e131fSJohan Jonker 230959e131fSJohan Jonker unevaluatedProperties: false 2312ed2732eSJohan Jonker 2322ed2732eSJohan Jonkerexamples: 2332ed2732eSJohan Jonker - | 2342ed2732eSJohan Jonker #include <dt-bindings/clock/rk3399-cru.h> 2352ed2732eSJohan Jonker #include <dt-bindings/interrupt-controller/arm-gic.h> 2362ed2732eSJohan Jonker #include <dt-bindings/power/rk3399-power.h> 2372ed2732eSJohan Jonker grf: syscon@ff770000 { 2382ed2732eSJohan Jonker compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; 2392ed2732eSJohan Jonker reg = <0xff770000 0x10000>; 2402ed2732eSJohan Jonker #address-cells = <1>; 2412ed2732eSJohan Jonker #size-cells = <1>; 2422ed2732eSJohan Jonker 2432ed2732eSJohan Jonker mipi_dphy_rx0: mipi-dphy-rx0 { 2442ed2732eSJohan Jonker compatible = "rockchip,rk3399-mipi-dphy-rx0"; 2452ed2732eSJohan Jonker clocks = <&cru SCLK_MIPIDPHY_REF>, 2462ed2732eSJohan Jonker <&cru SCLK_DPHY_RX0_CFG>, 2472ed2732eSJohan Jonker <&cru PCLK_VIO_GRF>; 2482ed2732eSJohan Jonker clock-names = "dphy-ref", "dphy-cfg", "grf"; 2492ed2732eSJohan Jonker power-domains = <&power RK3399_PD_VIO>; 2502ed2732eSJohan Jonker #phy-cells = <0>; 2512ed2732eSJohan Jonker }; 2522ed2732eSJohan Jonker 253e71ccdffSJohan Jonker u2phy0: usb2phy@e450 { 2542ed2732eSJohan Jonker compatible = "rockchip,rk3399-usb2phy"; 2552ed2732eSJohan Jonker reg = <0xe450 0x10>; 2562ed2732eSJohan Jonker clocks = <&cru SCLK_USB2PHY0_REF>; 2572ed2732eSJohan Jonker clock-names = "phyclk"; 2582ed2732eSJohan Jonker #clock-cells = <0>; 2592ed2732eSJohan Jonker clock-output-names = "clk_usbphy0_480m"; 2602ed2732eSJohan Jonker 2612ed2732eSJohan Jonker u2phy0_host: host-port { 2622ed2732eSJohan Jonker #phy-cells = <0>; 2632ed2732eSJohan Jonker interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>; 2642ed2732eSJohan Jonker interrupt-names = "linestate"; 2652ed2732eSJohan Jonker }; 2662ed2732eSJohan Jonker 2672ed2732eSJohan Jonker u2phy0_otg: otg-port { 2682ed2732eSJohan Jonker #phy-cells = <0>; 2692ed2732eSJohan Jonker interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>, 2702ed2732eSJohan Jonker <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>, 2712ed2732eSJohan Jonker <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>; 2722ed2732eSJohan Jonker interrupt-names = "otg-bvalid", "otg-id", 2732ed2732eSJohan Jonker "linestate"; 2742ed2732eSJohan Jonker }; 2752ed2732eSJohan Jonker }; 2762ed2732eSJohan Jonker }; 277