Skip to content

Commit 589681b

Browse files
Russell KingShawn Guo
authored andcommitted
ARM: dts: hummingboard/cubox-i: move usb otg configuration to platform level
The configuration of the USB OTG is a platform configuration decision, not a microsom decision. Move this configuration out to the platform level files. Signed-off-by: Russell King <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent eea53bb commit 589681b

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

arch/arm/boot/dts/imx6dl-hummingboard.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@
143143
fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>;
144144
};
145145

146+
pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id {
147+
/*
148+
* Similar to pinctrl_usbotg_2, but we want it
149+
* pulled down for a fixed host connection.
150+
*/
151+
fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
152+
};
153+
146154
pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus {
147155
fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>;
148156
};
@@ -178,6 +186,8 @@
178186
};
179187

180188
&usbotg {
189+
pinctrl-names = "default";
190+
pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>;
181191
vbus-supply = <&reg_usbotg_vbus>;
182192
status = "okay";
183193
};

arch/arm/boot/dts/imx6qdl-cubox-i.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@
134134
fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>;
135135
};
136136

137+
pinctrl_cubox_i_usbotg_id: cubox-i-usbotg-id {
138+
/*
139+
* The Cubox-i pulls this low, but as it's pointless
140+
* leaving it as a pull-up, even if it is just 10uA.
141+
*/
142+
fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
143+
};
144+
137145
pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus {
138146
fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>;
139147
};
@@ -170,6 +178,8 @@
170178
};
171179

172180
&usbotg {
181+
pinctrl-names = "default";
182+
pinctrl-0 = <&pinctrl_cubox_i_usbotg_id>;
173183
vbus-supply = <&reg_usbotg_vbus>;
174184
status = "okay";
175185
};

arch/arm/boot/dts/imx6qdl-microsom.dtsi

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
1111
>;
1212
};
13-
14-
pinctrl_microsom_usbotg: microsom-usbotg {
15-
/*
16-
* Similar to pinctrl_usbotg_2, but we want it
17-
* pulled down for a fixed host connection.
18-
*/
19-
fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
20-
};
2113
};
2214
};
2315

@@ -26,8 +18,3 @@
2618
pinctrl-0 = <&pinctrl_microsom_uart1>;
2719
status = "okay";
2820
};
29-
30-
&usbotg {
31-
pinctrl-names = "default";
32-
pinctrl-0 = <&pinctrl_microsom_usbotg>;
33-
};

0 commit comments

Comments
 (0)