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: connector: usb: align example indentation to four-space

One DTS example was using 8-space indentation, while others 2-space.
For complex DTS with multiple levels, 2-space is not that readable and
in DTS examples 4-space is preferred.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220624162141.25890-1-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Rob Herring
f25b0d9d fbd2251d

+76 -76
+76 -76
Documentation/devicetree/bindings/connector/usb-connector.yaml
··· 263 263 # Micro-USB connector with HS lines routed via controller (MUIC). 264 264 - | 265 265 muic-max77843 { 266 - usb_con1: connector { 267 - compatible = "usb-b-connector"; 268 - label = "micro-USB"; 269 - type = "micro"; 270 - }; 266 + usb_con1: connector { 267 + compatible = "usb-b-connector"; 268 + label = "micro-USB"; 269 + type = "micro"; 270 + }; 271 271 }; 272 272 273 273 # USB-C connector attached to CC controller (s2mm005), HS lines routed ··· 275 275 # DisplayPort video lines are routed to the connector via SS mux in USB3 PHY. 276 276 - | 277 277 ccic: s2mm005 { 278 - usb_con2: connector { 279 - compatible = "usb-c-connector"; 280 - label = "USB-C"; 278 + usb_con2: connector { 279 + compatible = "usb-c-connector"; 280 + label = "USB-C"; 281 281 282 - ports { 283 - #address-cells = <1>; 284 - #size-cells = <0>; 282 + ports { 283 + #address-cells = <1>; 284 + #size-cells = <0>; 285 285 286 - port@0 { 287 - reg = <0>; 288 - usb_con_hs: endpoint { 289 - remote-endpoint = <&max77865_usbc_hs>; 286 + port@0 { 287 + reg = <0>; 288 + usb_con_hs: endpoint { 289 + remote-endpoint = <&max77865_usbc_hs>; 290 + }; 291 + }; 292 + port@1 { 293 + reg = <1>; 294 + usb_con_ss: endpoint { 295 + remote-endpoint = <&usbdrd_phy_ss>; 296 + }; 297 + }; 298 + port@2 { 299 + reg = <2>; 300 + usb_con_sbu: endpoint { 301 + remote-endpoint = <&dp_aux>; 302 + }; 303 + }; 290 304 }; 291 - }; 292 - port@1 { 293 - reg = <1>; 294 - usb_con_ss: endpoint { 295 - remote-endpoint = <&usbdrd_phy_ss>; 296 - }; 297 - }; 298 - port@2 { 299 - reg = <2>; 300 - usb_con_sbu: endpoint { 301 - remote-endpoint = <&dp_aux>; 302 - }; 303 - }; 304 305 }; 305 - }; 306 306 }; 307 307 308 308 # USB-C connector attached to a typec port controller(ptn5110), which has ··· 310 310 - | 311 311 #include <dt-bindings/usb/pd.h> 312 312 typec: ptn5110 { 313 - usb_con3: connector { 314 - compatible = "usb-c-connector"; 315 - label = "USB-C"; 316 - power-role = "dual"; 317 - try-power-role = "sink"; 318 - source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; 319 - sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) 320 - PDO_VAR(5000, 12000, 2000)>; 321 - op-sink-microwatt = <10000000>; 322 - }; 313 + usb_con3: connector { 314 + compatible = "usb-c-connector"; 315 + label = "USB-C"; 316 + power-role = "dual"; 317 + try-power-role = "sink"; 318 + source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; 319 + sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) 320 + PDO_VAR(5000, 12000, 2000)>; 321 + op-sink-microwatt = <10000000>; 322 + }; 323 323 }; 324 324 325 325 # USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220) ··· 332 332 data-role = "dual"; 333 333 334 334 ports { 335 - #address-cells = <1>; 336 - #size-cells = <0>; 337 - port@0 { 338 - reg = <0>; 339 - hs_ep: endpoint { 340 - remote-endpoint = <&usb3_hs_ep>; 341 - }; 335 + #address-cells = <1>; 336 + #size-cells = <0>; 337 + port@0 { 338 + reg = <0>; 339 + hs_ep: endpoint { 340 + remote-endpoint = <&usb3_hs_ep>; 342 341 }; 343 - port@1 { 344 - reg = <1>; 345 - ss_ep: endpoint { 346 - remote-endpoint = <&hd3ss3220_in_ep>; 347 - }; 342 + }; 343 + port@1 { 344 + reg = <1>; 345 + ss_ep: endpoint { 346 + remote-endpoint = <&hd3ss3220_in_ep>; 348 347 }; 348 + }; 349 349 }; 350 350 }; 351 351 ··· 354 354 #include <dt-bindings/gpio/gpio.h> 355 355 356 356 usb { 357 - connector { 358 - compatible = "gpio-usb-b-connector", "usb-b-connector"; 359 - type = "micro"; 360 - id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>; 361 - vbus-supply = <&usb_p0_vbus>; 362 - }; 357 + connector { 358 + compatible = "gpio-usb-b-connector", "usb-b-connector"; 359 + type = "micro"; 360 + id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>; 361 + vbus-supply = <&usb_p0_vbus>; 362 + }; 363 363 }; 364 364 365 365 # Micro-USB connector with HS lines routed via controller (MUIC) and MHL ··· 367 367 # mobile phone 368 368 - | 369 369 muic-max77843 { 370 - usb_con4: connector { 371 - compatible = "samsung,usb-connector-11pin", "usb-b-connector"; 372 - label = "micro-USB"; 373 - type = "micro"; 370 + usb_con4: connector { 371 + compatible = "samsung,usb-connector-11pin", "usb-b-connector"; 372 + label = "micro-USB"; 373 + type = "micro"; 374 374 375 - ports { 376 - #address-cells = <1>; 377 - #size-cells = <0>; 375 + ports { 376 + #address-cells = <1>; 377 + #size-cells = <0>; 378 378 379 - port@0 { 380 - reg = <0>; 381 - muic_to_usb: endpoint { 382 - remote-endpoint = <&usb_to_muic>; 379 + port@0 { 380 + reg = <0>; 381 + muic_to_usb: endpoint { 382 + remote-endpoint = <&usb_to_muic>; 383 + }; 384 + }; 385 + port@3 { 386 + reg = <3>; 387 + usb_con_mhl: endpoint { 388 + remote-endpoint = <&sii8620_mhl>; 389 + }; 390 + }; 383 391 }; 384 - }; 385 - port@3 { 386 - reg = <3>; 387 - usb_con_mhl: endpoint { 388 - remote-endpoint = <&sii8620_mhl>; 389 - }; 390 - }; 391 392 }; 392 - }; 393 393 };