1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/soc/rockchi 4 $id: http://devicetree.org/schemas/soc/rockchip/grf.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Rockchip General Register Files (GRF) 7 title: Rockchip General Register Files (GRF) 8 8 9 maintainers: 9 maintainers: 10 - Heiko Stuebner <heiko@sntech.de> 10 - Heiko Stuebner <heiko@sntech.de> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 oneOf: 14 oneOf: 15 - items: 15 - items: 16 - enum: 16 - enum: 17 - rockchip,rk3288-sgrf 17 - rockchip,rk3288-sgrf 18 - rockchip,rk3566-pipe-grf 18 - rockchip,rk3566-pipe-grf 19 - rockchip,rk3568-pcie3-phy-grf 19 - rockchip,rk3568-pcie3-phy-grf 20 - rockchip,rk3568-pipe-grf 20 - rockchip,rk3568-pipe-grf 21 - rockchip,rk3568-pipe-phy-grf 21 - rockchip,rk3568-pipe-phy-grf 22 - rockchip,rk3568-usb2phy-grf 22 - rockchip,rk3568-usb2phy-grf 23 - rockchip,rk3576-bigcore-grf 23 - rockchip,rk3576-bigcore-grf 24 - rockchip,rk3576-cci-grf 24 - rockchip,rk3576-cci-grf 25 - rockchip,rk3576-gpu-grf 25 - rockchip,rk3576-gpu-grf 26 - rockchip,rk3576-litcore-grf 26 - rockchip,rk3576-litcore-grf 27 - rockchip,rk3576-npu-grf 27 - rockchip,rk3576-npu-grf 28 - rockchip,rk3576-php-grf 28 - rockchip,rk3576-php-grf 29 - rockchip,rk3576-pipe-phy-grf 29 - rockchip,rk3576-pipe-phy-grf 30 - rockchip,rk3576-pmu1-grf 30 - rockchip,rk3576-pmu1-grf 31 - rockchip,rk3576-sdgmac-grf 31 - rockchip,rk3576-sdgmac-grf 32 - rockchip,rk3576-sys-grf 32 - rockchip,rk3576-sys-grf 33 - rockchip,rk3576-usb-grf 33 - rockchip,rk3576-usb-grf 34 - rockchip,rk3576-usbdpphy-grf 34 - rockchip,rk3576-usbdpphy-grf 35 - rockchip,rk3576-vo0-grf 35 - rockchip,rk3576-vo0-grf 36 - rockchip,rk3576-vop-grf 36 - rockchip,rk3576-vop-grf 37 - rockchip,rk3588-bigcore0-grf 37 - rockchip,rk3588-bigcore0-grf 38 - rockchip,rk3588-bigcore1-grf 38 - rockchip,rk3588-bigcore1-grf 39 - rockchip,rk3588-hdptxphy-grf 39 - rockchip,rk3588-hdptxphy-grf 40 - rockchip,rk3588-ioc 40 - rockchip,rk3588-ioc 41 - rockchip,rk3588-php-grf 41 - rockchip,rk3588-php-grf 42 - rockchip,rk3588-pipe-phy-grf 42 - rockchip,rk3588-pipe-phy-grf 43 - rockchip,rk3588-sys-grf 43 - rockchip,rk3588-sys-grf 44 - rockchip,rk3588-pcie3-phy-grf 44 - rockchip,rk3588-pcie3-phy-grf 45 - rockchip,rk3588-pcie3-pipe-grf 45 - rockchip,rk3588-pcie3-pipe-grf 46 - rockchip,rk3588-usb-grf 46 - rockchip,rk3588-usb-grf 47 - rockchip,rk3588-usbdpphy-grf 47 - rockchip,rk3588-usbdpphy-grf 48 - rockchip,rk3588-vo0-grf 48 - rockchip,rk3588-vo0-grf 49 - rockchip,rk3588-vo1-grf 49 - rockchip,rk3588-vo1-grf 50 - rockchip,rk3588-vop-grf 50 - rockchip,rk3588-vop-grf 51 - rockchip,rv1108-usbgrf 51 - rockchip,rv1108-usbgrf 52 - const: syscon 52 - const: syscon 53 - items: 53 - items: 54 - const: rockchip,rk3588-vo-grf 54 - const: rockchip,rk3588-vo-grf 55 - const: syscon 55 - const: syscon 56 deprecated: true 56 deprecated: true 57 description: Use rockchip,rk3588-vo{0, 57 description: Use rockchip,rk3588-vo{0,1}-grf instead. 58 - items: 58 - items: 59 - enum: 59 - enum: 60 - rockchip,px30-grf 60 - rockchip,px30-grf 61 - rockchip,px30-pmugrf 61 - rockchip,px30-pmugrf 62 - rockchip,px30-usb2phy-grf 62 - rockchip,px30-usb2phy-grf 63 - rockchip,rk3036-grf 63 - rockchip,rk3036-grf 64 - rockchip,rk3066-grf 64 - rockchip,rk3066-grf 65 - rockchip,rk3128-grf 65 - rockchip,rk3128-grf 66 - rockchip,rk3188-grf 66 - rockchip,rk3188-grf 67 - rockchip,rk3228-grf 67 - rockchip,rk3228-grf 68 - rockchip,rk3288-grf 68 - rockchip,rk3288-grf 69 - rockchip,rk3308-core-grf 69 - rockchip,rk3308-core-grf 70 - rockchip,rk3308-detect-grf 70 - rockchip,rk3308-detect-grf 71 - rockchip,rk3308-grf 71 - rockchip,rk3308-grf 72 - rockchip,rk3308-usb2phy-grf 72 - rockchip,rk3308-usb2phy-grf 73 - rockchip,rk3328-grf 73 - rockchip,rk3328-grf 74 - rockchip,rk3328-usb2phy-grf 74 - rockchip,rk3328-usb2phy-grf 75 - rockchip,rk3368-grf 75 - rockchip,rk3368-grf 76 - rockchip,rk3368-pmugrf 76 - rockchip,rk3368-pmugrf 77 - rockchip,rk3399-grf 77 - rockchip,rk3399-grf 78 - rockchip,rk3399-pmugrf 78 - rockchip,rk3399-pmugrf 79 - rockchip,rk3568-grf 79 - rockchip,rk3568-grf 80 - rockchip,rk3568-pmugrf 80 - rockchip,rk3568-pmugrf 81 - rockchip,rk3576-ioc-grf 81 - rockchip,rk3576-ioc-grf 82 - rockchip,rk3576-pmu0-grf 82 - rockchip,rk3576-pmu0-grf 83 - rockchip,rk3588-usb2phy-grf 83 - rockchip,rk3588-usb2phy-grf 84 - rockchip,rv1108-grf 84 - rockchip,rv1108-grf 85 - rockchip,rv1108-pmugrf 85 - rockchip,rv1108-pmugrf 86 - rockchip,rv1126-grf 86 - rockchip,rv1126-grf 87 - rockchip,rv1126-pmugrf 87 - rockchip,rv1126-pmugrf 88 - const: syscon 88 - const: syscon 89 - const: simple-mfd 89 - const: simple-mfd 90 90 91 reg: 91 reg: 92 maxItems: 1 92 maxItems: 1 93 93 94 clocks: 94 clocks: 95 maxItems: 1 95 maxItems: 1 96 96 97 "#address-cells": 97 "#address-cells": 98 const: 1 98 const: 1 99 99 100 "#size-cells": 100 "#size-cells": 101 const: 1 101 const: 1 102 102 103 required: 103 required: 104 - compatible 104 - compatible 105 - reg 105 - reg 106 106 107 additionalProperties: 107 additionalProperties: 108 type: object 108 type: object 109 109 110 allOf: 110 allOf: 111 - if: 111 - if: 112 properties: 112 properties: 113 compatible: 113 compatible: 114 contains: 114 contains: 115 enum: 115 enum: 116 - rockchip,px30-grf 116 - rockchip,px30-grf 117 117 118 then: 118 then: 119 properties: 119 properties: 120 lvds: 120 lvds: 121 type: object 121 type: object 122 122 123 $ref: /schemas/display/rockchip/rock 123 $ref: /schemas/display/rockchip/rockchip,lvds.yaml# 124 124 125 unevaluatedProperties: false 125 unevaluatedProperties: false 126 126 127 - if: 127 - if: 128 properties: 128 properties: 129 compatible: 129 compatible: 130 contains: 130 contains: 131 const: rockchip,rk3288-grf 131 const: rockchip,rk3288-grf 132 132 133 then: 133 then: 134 properties: 134 properties: 135 edp-phy: 135 edp-phy: 136 type: object 136 type: object 137 $ref: /schemas/phy/rockchip,rk3288-d 137 $ref: /schemas/phy/rockchip,rk3288-dp-phy.yaml# 138 unevaluatedProperties: false 138 unevaluatedProperties: false 139 139 140 - if: 140 - if: 141 properties: 141 properties: 142 compatible: 142 compatible: 143 contains: 143 contains: 144 enum: 144 enum: 145 - rockchip,rk3066-grf 145 - rockchip,rk3066-grf 146 - rockchip,rk3188-grf 146 - rockchip,rk3188-grf 147 - rockchip,rk3288-grf 147 - rockchip,rk3288-grf 148 148 149 then: 149 then: 150 properties: 150 properties: 151 usbphy: 151 usbphy: 152 type: object 152 type: object 153 153 154 $ref: /schemas/phy/rockchip-usb-phy. 154 $ref: /schemas/phy/rockchip-usb-phy.yaml# 155 155 156 unevaluatedProperties: false 156 unevaluatedProperties: false 157 157 158 - if: 158 - if: 159 properties: 159 properties: 160 compatible: 160 compatible: 161 contains: 161 contains: 162 const: rockchip,rk3328-grf 162 const: rockchip,rk3328-grf 163 163 164 then: 164 then: 165 properties: 165 properties: 166 gpio: 166 gpio: 167 type: object 167 type: object 168 168 169 $ref: /schemas/gpio/rockchip,rk3328- 169 $ref: /schemas/gpio/rockchip,rk3328-grf-gpio.yaml# 170 170 171 unevaluatedProperties: false 171 unevaluatedProperties: false 172 172 173 power-controller: 173 power-controller: 174 type: object 174 type: object 175 175 176 $ref: /schemas/power/rockchip,power- 176 $ref: /schemas/power/rockchip,power-controller.yaml# 177 177 178 unevaluatedProperties: false 178 unevaluatedProperties: false 179 179 180 - if: 180 - if: 181 properties: 181 properties: 182 compatible: 182 compatible: 183 contains: 183 contains: 184 const: rockchip,rk3399-grf 184 const: rockchip,rk3399-grf 185 185 186 then: 186 then: 187 properties: 187 properties: 188 mipi-dphy-rx0: 188 mipi-dphy-rx0: 189 type: object 189 type: object 190 190 191 $ref: /schemas/phy/rockchip-mipi-dph 191 $ref: /schemas/phy/rockchip-mipi-dphy-rx0.yaml# 192 192 193 unevaluatedProperties: false 193 unevaluatedProperties: false 194 194 195 pcie-phy: 195 pcie-phy: 196 type: object 196 type: object 197 description: 197 description: 198 Documentation/devicetree/bindings/ 198 Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt 199 199 200 patternProperties: 200 patternProperties: 201 "^phy@[0-9a-f]+$": 201 "^phy@[0-9a-f]+$": 202 type: object 202 type: object 203 $ref: /schemas/phy/rockchip,rk3399-e 203 $ref: /schemas/phy/rockchip,rk3399-emmc-phy.yaml# 204 unevaluatedProperties: false 204 unevaluatedProperties: false 205 205 206 - if: 206 - if: 207 properties: 207 properties: 208 compatible: 208 compatible: 209 contains: 209 contains: 210 enum: 210 enum: 211 - rockchip,px30-pmugrf 211 - rockchip,px30-pmugrf 212 - rockchip,rk3036-grf 212 - rockchip,rk3036-grf 213 - rockchip,rk3308-grf 213 - rockchip,rk3308-grf 214 - rockchip,rk3368-pmugrf 214 - rockchip,rk3368-pmugrf 215 215 216 then: 216 then: 217 properties: 217 properties: 218 reboot-mode: 218 reboot-mode: 219 type: object 219 type: object 220 220 221 $ref: /schemas/power/reset/syscon-re 221 $ref: /schemas/power/reset/syscon-reboot-mode.yaml# 222 222 223 unevaluatedProperties: false 223 unevaluatedProperties: false 224 224 225 - if: 225 - if: 226 properties: 226 properties: 227 compatible: 227 compatible: 228 contains: 228 contains: 229 enum: 229 enum: 230 - rockchip,px30-usb2phy-grf 230 - rockchip,px30-usb2phy-grf 231 - rockchip,rk3128-grf 231 - rockchip,rk3128-grf 232 - rockchip,rk3228-grf 232 - rockchip,rk3228-grf 233 - rockchip,rk3308-usb2phy-grf 233 - rockchip,rk3308-usb2phy-grf 234 - rockchip,rk3328-usb2phy-grf 234 - rockchip,rk3328-usb2phy-grf 235 - rockchip,rk3399-grf 235 - rockchip,rk3399-grf 236 - rockchip,rk3588-usb2phy-grf 236 - rockchip,rk3588-usb2phy-grf 237 - rockchip,rv1108-grf 237 - rockchip,rv1108-grf 238 238 239 then: 239 then: 240 required: 240 required: 241 - "#address-cells" 241 - "#address-cells" 242 - "#size-cells" 242 - "#size-cells" 243 243 244 patternProperties: 244 patternProperties: 245 "usb2phy@[0-9a-f]+$": 245 "usb2phy@[0-9a-f]+$": 246 type: object 246 type: object 247 247 248 $ref: /schemas/phy/rockchip,inno-usb 248 $ref: /schemas/phy/rockchip,inno-usb2phy.yaml# 249 249 250 unevaluatedProperties: false 250 unevaluatedProperties: false 251 251 252 - if: 252 - if: 253 properties: 253 properties: 254 compatible: 254 compatible: 255 contains: 255 contains: 256 enum: 256 enum: 257 - rockchip,px30-grf 257 - rockchip,px30-grf 258 - rockchip,px30-pmugrf 258 - rockchip,px30-pmugrf 259 - rockchip,rk3188-grf 259 - rockchip,rk3188-grf 260 - rockchip,rk3228-grf 260 - rockchip,rk3228-grf 261 - rockchip,rk3288-grf 261 - rockchip,rk3288-grf 262 - rockchip,rk3328-grf 262 - rockchip,rk3328-grf 263 - rockchip,rk3368-grf 263 - rockchip,rk3368-grf 264 - rockchip,rk3368-pmugrf 264 - rockchip,rk3368-pmugrf 265 - rockchip,rk3399-grf 265 - rockchip,rk3399-grf 266 - rockchip,rk3399-pmugrf 266 - rockchip,rk3399-pmugrf 267 - rockchip,rk3568-pmugrf 267 - rockchip,rk3568-pmugrf 268 - rockchip,rk3588-pmugrf 268 - rockchip,rk3588-pmugrf 269 - rockchip,rv1108-grf 269 - rockchip,rv1108-grf 270 - rockchip,rv1108-pmugrf 270 - rockchip,rv1108-pmugrf 271 271 272 then: 272 then: 273 properties: 273 properties: 274 io-domains: 274 io-domains: 275 type: object 275 type: object 276 276 277 $ref: /schemas/power/rockchip-io-dom 277 $ref: /schemas/power/rockchip-io-domain.yaml# 278 278 279 unevaluatedProperties: false 279 unevaluatedProperties: false 280 280 281 - if: 281 - if: 282 properties: 282 properties: 283 compatible: 283 compatible: 284 contains: 284 contains: 285 enum: 285 enum: 286 - rockchip,rk3588-vo-grf 286 - rockchip,rk3588-vo-grf 287 - rockchip,rk3588-vo0-grf 287 - rockchip,rk3588-vo0-grf 288 - rockchip,rk3588-vo1-grf 288 - rockchip,rk3588-vo1-grf 289 289 290 then: 290 then: 291 required: 291 required: 292 - clocks 292 - clocks 293 293 294 else: 294 else: 295 properties: 295 properties: 296 clocks: false 296 clocks: false 297 297 298 298 299 examples: 299 examples: 300 - | 300 - | 301 #include <dt-bindings/clock/rk3399-cru.h> 301 #include <dt-bindings/clock/rk3399-cru.h> 302 #include <dt-bindings/interrupt-controller 302 #include <dt-bindings/interrupt-controller/arm-gic.h> 303 #include <dt-bindings/power/rk3399-power.h 303 #include <dt-bindings/power/rk3399-power.h> 304 grf: syscon@ff770000 { 304 grf: syscon@ff770000 { 305 compatible = "rockchip,rk3399-grf", "sys 305 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; 306 reg = <0xff770000 0x10000>; 306 reg = <0xff770000 0x10000>; 307 #address-cells = <1>; 307 #address-cells = <1>; 308 #size-cells = <1>; 308 #size-cells = <1>; 309 309 310 mipi_dphy_rx0: mipi-dphy-rx0 { 310 mipi_dphy_rx0: mipi-dphy-rx0 { 311 compatible = "rockchip,rk3399-mipi-dph 311 compatible = "rockchip,rk3399-mipi-dphy-rx0"; 312 clocks = <&cru SCLK_MIPIDPHY_REF>, 312 clocks = <&cru SCLK_MIPIDPHY_REF>, 313 <&cru SCLK_DPHY_RX0_CFG>, 313 <&cru SCLK_DPHY_RX0_CFG>, 314 <&cru PCLK_VIO_GRF>; 314 <&cru PCLK_VIO_GRF>; 315 clock-names = "dphy-ref", "dphy-cfg", 315 clock-names = "dphy-ref", "dphy-cfg", "grf"; 316 power-domains = <&power RK3399_PD_VIO> 316 power-domains = <&power RK3399_PD_VIO>; 317 #phy-cells = <0>; 317 #phy-cells = <0>; 318 }; 318 }; 319 319 320 phy@f780 { 320 phy@f780 { 321 compatible = "rockchip,rk3399-emmc-phy 321 compatible = "rockchip,rk3399-emmc-phy"; 322 reg = <0xf780 0x20>; 322 reg = <0xf780 0x20>; 323 clocks = <&sdhci>; 323 clocks = <&sdhci>; 324 clock-names = "emmcclk"; 324 clock-names = "emmcclk"; 325 drive-impedance-ohm = <50>; 325 drive-impedance-ohm = <50>; 326 #phy-cells = <0>; 326 #phy-cells = <0>; 327 }; 327 }; 328 328 329 u2phy0: usb2phy@e450 { 329 u2phy0: usb2phy@e450 { 330 compatible = "rockchip,rk3399-usb2phy" 330 compatible = "rockchip,rk3399-usb2phy"; 331 reg = <0xe450 0x10>; 331 reg = <0xe450 0x10>; 332 clocks = <&cru SCLK_USB2PHY0_REF>; 332 clocks = <&cru SCLK_USB2PHY0_REF>; 333 clock-names = "phyclk"; 333 clock-names = "phyclk"; 334 #clock-cells = <0>; 334 #clock-cells = <0>; 335 clock-output-names = "clk_usbphy0_480m 335 clock-output-names = "clk_usbphy0_480m"; 336 336 337 u2phy0_host: host-port { 337 u2phy0_host: host-port { 338 #phy-cells = <0>; 338 #phy-cells = <0>; 339 interrupts = <GIC_SPI 27 IRQ_TYPE_LE 339 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>; 340 interrupt-names = "linestate"; 340 interrupt-names = "linestate"; 341 }; 341 }; 342 342 343 u2phy0_otg: otg-port { 343 u2phy0_otg: otg-port { 344 #phy-cells = <0>; 344 #phy-cells = <0>; 345 interrupts = <GIC_SPI 103 IRQ_TYPE_L 345 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>, 346 <GIC_SPI 104 IRQ_TYPE_L 346 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>, 347 <GIC_SPI 106 IRQ_TYPE_L 347 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>; 348 interrupt-names = "otg-bvalid", "otg 348 interrupt-names = "otg-bvalid", "otg-id", 349 "linestate"; 349 "linestate"; 350 }; 350 }; 351 }; 351 }; 352 }; 352 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.