111 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/reset/socionext,uniphier-glue-reset.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Socionext UniPhier peripheral core reset in glue layer8 9description: |10 Some peripheral core reset belongs to its own glue layer. Before using11 this core reset, it is necessary to control the clocks and resets to12 enable this layer. These clocks and resets should be described in each13 property.14 15maintainers:16 - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>17 18properties:19 compatible:20 enum:21 - socionext,uniphier-pro4-usb3-reset22 - socionext,uniphier-pro5-usb3-reset23 - socionext,uniphier-pxs2-usb3-reset24 - socionext,uniphier-ld20-usb3-reset25 - socionext,uniphier-pxs3-usb3-reset26 - socionext,uniphier-nx1-usb3-reset27 - socionext,uniphier-pro4-ahci-reset28 - socionext,uniphier-pxs2-ahci-reset29 - socionext,uniphier-pxs3-ahci-reset30 31 reg:32 maxItems: 133 34 "#reset-cells":35 const: 136 37 clocks:38 minItems: 139 maxItems: 240 41 clock-names:42 minItems: 143 maxItems: 244 45 resets:46 minItems: 147 maxItems: 248 49 reset-names:50 minItems: 151 maxItems: 252 53allOf:54 - if:55 properties:56 compatible:57 contains:58 enum:59 - socionext,uniphier-pro4-usb3-reset60 - socionext,uniphier-pro5-usb3-reset61 - socionext,uniphier-pro4-ahci-reset62 then:63 properties:64 clocks:65 minItems: 266 maxItems: 267 clock-names:68 items:69 - const: gio70 - const: link71 resets:72 minItems: 273 maxItems: 274 reset-names:75 items:76 - const: gio77 - const: link78 else:79 properties:80 clocks:81 maxItems: 182 clock-names:83 const: link84 resets:85 maxItems: 186 reset-names:87 const: link88 89additionalProperties: false90 91required:92 - compatible93 - reg94 - "#reset-cells"95 - clocks96 - clock-names97 - resets98 - reset-names99 100examples:101 - |102 usb_rst: reset-controller@0 {103 compatible = "socionext,uniphier-ld20-usb3-reset";104 reg = <0x0 0x4>;105 #reset-cells = <1>;106 clock-names = "link";107 clocks = <&sys_clk 14>;108 reset-names = "link";109 resets = <&sys_rst 14>;110 };111