Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2022-2024 TQ-Systems GmbH <linux@ew.tq-group.com>, |
| 4 | * D-82229 Seefeld, Germany. |
| 5 | * Author: Alexander Stein |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | /plugin/; |
| 10 | |
| 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | |
| 13 | #include "imx8mn-pinfunc.h" |
| 14 | |
| 15 | &{/} { |
| 16 | connector { |
| 17 | compatible = "gpio-usb-b-connector", "usb-b-connector"; |
| 18 | type = "micro"; |
| 19 | label = "X19"; |
| 20 | pinctrl-names = "default"; |
| 21 | pinctrl-0 = <&pinctrl_usb1_connector>; |
| 22 | id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
| 23 | |
| 24 | port { |
| 25 | usb_dr_connector: endpoint { |
| 26 | remote-endpoint = <&usb1_drd_sw>; |
| 27 | }; |
| 28 | }; |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | &rst_usb_hub_hog { |
| 33 | output-low; |
| 34 | }; |
| 35 | |
| 36 | &sel_usb_hub_hog { |
| 37 | output-low; |
| 38 | }; |
| 39 | |
| 40 | &usbotg1 { |
| 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&pinctrl_usbotg>; |
| 43 | dr_mode = "otg"; |
| 44 | srp-disable; |
| 45 | hnp-disable; |
| 46 | adp-disable; |
| 47 | power-active-high; |
| 48 | /delete-property/ disable-over-current; |
| 49 | over-current-active-low; |
| 50 | usb-role-switch; |
| 51 | status = "okay"; |
| 52 | |
| 53 | port { |
| 54 | usb1_drd_sw: endpoint { |
| 55 | remote-endpoint = <&usb_dr_connector>; |
| 56 | }; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | &iomuxc { |
| 61 | pinctrl_usb1_connector: usb1-connectorgrp { |
| 62 | fsl,pins = <MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x1c0>; |
| 63 | }; |
| 64 | }; |