Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: usb: ci-hdrc-usb2-imx: add restrictions for reg, interrupts, clock and clock-names properties

Add restrictions for reg, interrupts, clock and clock-names properties
for imx Socs.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>

Link: https://lore.kernel.org/r/20240321081439.541799-5-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xu Yang and committed by
Greg Kroah-Hartman
089fa715 af1969a1

+76
+76
Documentation/devicetree/bindings/usb/chipidea,usb2-imx.yaml
··· 49 49 - const: fsl,imx6ul-usb 50 50 - const: fsl,imx27-usb 51 51 52 + reg: 53 + maxItems: 1 54 + 55 + interrupts: 56 + maxItems: 1 57 + 52 58 clocks: 53 59 minItems: 1 54 60 maxItems: 3 ··· 149 143 items: 150 144 - const: idle 151 145 - const: active 146 + 147 + # imx27 Soc needs three clocks 148 + - if: 149 + properties: 150 + compatible: 151 + const: fsl,imx27-usb 152 + then: 153 + properties: 154 + clocks: 155 + minItems: 3 156 + clock-names: 157 + items: 158 + - const: ipg 159 + - const: ahb 160 + - const: per 161 + 162 + # imx25 and imx35 Soc need three clocks 163 + - if: 164 + properties: 165 + compatible: 166 + contains: 167 + enum: 168 + - fsl,imx25-usb 169 + - fsl,imx35-usb 170 + then: 171 + properties: 172 + clocks: 173 + minItems: 3 174 + clock-names: 175 + items: 176 + - const: ipg 177 + - const: ahb 178 + - const: per 179 + 180 + # imx7d Soc need one clock 181 + - if: 182 + properties: 183 + compatible: 184 + items: 185 + - const: fsl,imx7d-usb 186 + - const: fsl,imx27-usb 187 + then: 188 + properties: 189 + clocks: 190 + maxItems: 1 191 + clock-names: false 192 + 193 + # other Soc need one clock 194 + - if: 195 + properties: 196 + compatible: 197 + contains: 198 + enum: 199 + - fsl,imx23-usb 200 + - fsl,imx28-usb 201 + - fsl,imx50-usb 202 + - fsl,imx51-usb 203 + - fsl,imx53-usb 204 + - fsl,imx6q-usb 205 + - fsl,imx6sl-usb 206 + - fsl,imx6sx-usb 207 + - fsl,imx6ul-usb 208 + - fsl,imx8mm-usb 209 + - fsl,imx8mn-usb 210 + - fsl,vf610-usb 211 + then: 212 + properties: 213 + clocks: 214 + maxItems: 1 215 + clock-names: false 152 216 153 217 unevaluatedProperties: false 154 218