Commit 3f6fc30a authored by Alexander Stein's avatar Alexander Stein Committed by Shawn Guo

arm64: dts: imx8mn: tqma8mqnl-mba8mx: Add USB DR overlay

imx8mn has only one USB interface. The platform supports using as USB host
(default), or switch to USB DR using this overlay.
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent ccf03109
...@@ -134,7 +134,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb ...@@ -134,7 +134,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mn-venice-gw7902.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-venice-gw7902.dtb
imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33-dtbs += imx8mn-tqma8mqnl-mba8mx.dtb imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtbo imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33-dtbs += imx8mn-tqma8mqnl-mba8mx.dtb imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtbo
imx8mn-tqma8mqnl-mba8mx-usbotg-dtbs += imx8mn-tqma8mqnl-mba8mx.dtb imx8mn-tqma8mqnl-mba8mx-usbotg.dtbo
dtb-$(CONFIG_ARCH_MXC) += imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mn-tqma8mqnl-mba8mx-usbotg.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-beacon-kit.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-beacon-kit.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-data-modul-edm-sbc.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-data-modul-edm-sbc.dtb
......
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2022-2024 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Alexander Stein
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include "imx8mn-pinfunc.h"
&{/} {
connector {
compatible = "gpio-usb-b-connector", "usb-b-connector";
type = "micro";
label = "X19";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb1_connector>;
id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
port {
usb_dr_connector: endpoint {
remote-endpoint = <&usb1_drd_sw>;
};
};
};
};
&rst_usb_hub_hog {
output-low;
};
&sel_usb_hub_hog {
output-low;
};
&usbotg1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg>;
dr_mode = "otg";
srp-disable;
hnp-disable;
adp-disable;
power-active-high;
/delete-property/ disable-over-current;
over-current-active-low;
usb-role-switch;
status = "okay";
port {
usb1_drd_sw: endpoint {
remote-endpoint = <&usb_dr_connector>;
};
};
};
&iomuxc {
pinctrl_usb1_connector: usb1-connectorgrp {
fsl,pins = <MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x1c0>;
};
};
...@@ -41,7 +41,7 @@ &gpio2 { ...@@ -41,7 +41,7 @@ &gpio2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb0hub_sel>; pinctrl-0 = <&pinctrl_usb0hub_sel>;
sel-usb-hub-hog { sel_usb_hub_hog: sel-usb-hub-hog {
gpio-hog; gpio-hog;
gpios = <1 GPIO_ACTIVE_HIGH>; gpios = <1 GPIO_ACTIVE_HIGH>;
output-high; output-high;
...@@ -198,8 +198,7 @@ pinctrl_usb0hub_sel: usb0hub-selgrp { ...@@ -198,8 +198,7 @@ pinctrl_usb0hub_sel: usb0hub-selgrp {
pinctrl_usbotg: usbotggrp { pinctrl_usbotg: usbotggrp {
fsl,pins = <MX8MN_IOMUXC_GPIO1_IO12_USB1_OTG_PWR 0x84>, fsl,pins = <MX8MN_IOMUXC_GPIO1_IO12_USB1_OTG_PWR 0x84>,
<MX8MN_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x84>, <MX8MN_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x84>;
<MX8MN_IOMUXC_GPIO1_IO10_USB1_OTG_ID 0x1C4>;
}; };
pinctrl_usdhc2: usdhc2grp { pinctrl_usdhc2: usdhc2grp {
......
...@@ -219,7 +219,7 @@ boot-cfg-oe-hog { ...@@ -219,7 +219,7 @@ boot-cfg-oe-hog {
line-name = "BOOT_CFG_OE#"; line-name = "BOOT_CFG_OE#";
}; };
rst-usb-hub-hog { rst_usb_hub_hog: rst-usb-hub-hog {
gpio-hog; gpio-hog;
gpios = <13 0>; gpios = <13 0>;
output-high; output-high;
......
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