Commit f25b0d9d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220624162141.25890-1-krzysztof.kozlowski@linaro.org
parent fbd2251d
...@@ -263,11 +263,11 @@ examples: ...@@ -263,11 +263,11 @@ examples:
# Micro-USB connector with HS lines routed via controller (MUIC). # Micro-USB connector with HS lines routed via controller (MUIC).
- | - |
muic-max77843 { muic-max77843 {
usb_con1: connector { usb_con1: connector {
compatible = "usb-b-connector"; compatible = "usb-b-connector";
label = "micro-USB"; label = "micro-USB";
type = "micro"; type = "micro";
}; };
}; };
# USB-C connector attached to CC controller (s2mm005), HS lines routed # USB-C connector attached to CC controller (s2mm005), HS lines routed
...@@ -275,34 +275,34 @@ examples: ...@@ -275,34 +275,34 @@ examples:
# DisplayPort video lines are routed to the connector via SS mux in USB3 PHY. # DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.
- | - |
ccic: s2mm005 { ccic: s2mm005 {
usb_con2: connector { usb_con2: connector {
compatible = "usb-c-connector"; compatible = "usb-c-connector";
label = "USB-C"; label = "USB-C";
ports { ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
usb_con_hs: endpoint { usb_con_hs: endpoint {
remote-endpoint = <&max77865_usbc_hs>; remote-endpoint = <&max77865_usbc_hs>;
}; };
}; };
port@1 { port@1 {
reg = <1>; reg = <1>;
usb_con_ss: endpoint { usb_con_ss: endpoint {
remote-endpoint = <&usbdrd_phy_ss>; remote-endpoint = <&usbdrd_phy_ss>;
}; };
}; };
port@2 { port@2 {
reg = <2>; reg = <2>;
usb_con_sbu: endpoint { usb_con_sbu: endpoint {
remote-endpoint = <&dp_aux>; remote-endpoint = <&dp_aux>;
};
};
}; };
};
}; };
};
}; };
# USB-C connector attached to a typec port controller(ptn5110), which has # USB-C connector attached to a typec port controller(ptn5110), which has
...@@ -310,16 +310,16 @@ examples: ...@@ -310,16 +310,16 @@ examples:
- | - |
#include <dt-bindings/usb/pd.h> #include <dt-bindings/usb/pd.h>
typec: ptn5110 { typec: ptn5110 {
usb_con3: connector { usb_con3: connector {
compatible = "usb-c-connector"; compatible = "usb-c-connector";
label = "USB-C"; label = "USB-C";
power-role = "dual"; power-role = "dual";
try-power-role = "sink"; try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
PDO_VAR(5000, 12000, 2000)>; PDO_VAR(5000, 12000, 2000)>;
op-sink-microwatt = <10000000>; op-sink-microwatt = <10000000>;
}; };
}; };
# USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220) # USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)
...@@ -332,20 +332,20 @@ examples: ...@@ -332,20 +332,20 @@ examples:
data-role = "dual"; data-role = "dual";
ports { ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
hs_ep: endpoint { hs_ep: endpoint {
remote-endpoint = <&usb3_hs_ep>; remote-endpoint = <&usb3_hs_ep>;
};
}; };
port@1 { };
reg = <1>; port@1 {
ss_ep: endpoint { reg = <1>;
remote-endpoint = <&hd3ss3220_in_ep>; ss_ep: endpoint {
}; remote-endpoint = <&hd3ss3220_in_ep>;
}; };
};
}; };
}; };
...@@ -354,12 +354,12 @@ examples: ...@@ -354,12 +354,12 @@ examples:
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
usb { usb {
connector { connector {
compatible = "gpio-usb-b-connector", "usb-b-connector"; compatible = "gpio-usb-b-connector", "usb-b-connector";
type = "micro"; type = "micro";
id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>; id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
vbus-supply = <&usb_p0_vbus>; vbus-supply = <&usb_p0_vbus>;
}; };
}; };
# Micro-USB connector with HS lines routed via controller (MUIC) and MHL # Micro-USB connector with HS lines routed via controller (MUIC) and MHL
...@@ -367,27 +367,27 @@ examples: ...@@ -367,27 +367,27 @@ examples:
# mobile phone # mobile phone
- | - |
muic-max77843 { muic-max77843 {
usb_con4: connector { usb_con4: connector {
compatible = "samsung,usb-connector-11pin", "usb-b-connector"; compatible = "samsung,usb-connector-11pin", "usb-b-connector";
label = "micro-USB"; label = "micro-USB";
type = "micro"; type = "micro";
ports { ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
muic_to_usb: endpoint { muic_to_usb: endpoint {
remote-endpoint = <&usb_to_muic>; remote-endpoint = <&usb_to_muic>;
}; };
}; };
port@3 { port@3 {
reg = <3>; reg = <3>;
usb_con_mhl: endpoint { usb_con_mhl: endpoint {
remote-endpoint = <&sii8620_mhl>; remote-endpoint = <&sii8620_mhl>;
};
};
}; };
};
}; };
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment