summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/gemini-dlink-dns-313.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-01-23 10:39:16 +0300
committerLinus Walleij <linus.walleij@linaro.org>2023-01-25 10:49:32 +0300
commit776e8ee7a3cb8a6a15067ca4b287ac4a3640ea87 (patch)
tree1665ce3645f9e9fb5c9d497480cac851ca6b641e /arch/arm/boot/dts/gemini-dlink-dns-313.dts
parentb041c9d038f7defe20cfbdfeeb1b80f855394bfc (diff)
downloadlinux-776e8ee7a3cb8a6a15067ca4b287ac4a3640ea87.tar.xz
ARM: dts: gemini: Enable DNS313 FOTG210 as periph
Add the GPIO-based VBUS phy, and enable the FOTG210 USB1 block for use as peripheral. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230123073916.2350839-2-linus.walleij@linaro.org
Diffstat (limited to 'arch/arm/boot/dts/gemini-dlink-dns-313.dts')
-rw-r--r--arch/arm/boot/dts/gemini-dlink-dns-313.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/gemini-dlink-dns-313.dts b/arch/arm/boot/dts/gemini-dlink-dns-313.dts
index fbbea139defc..138c47e1ac1b 100644
--- a/arch/arm/boot/dts/gemini-dlink-dns-313.dts
+++ b/arch/arm/boot/dts/gemini-dlink-dns-313.dts
@@ -80,6 +80,15 @@
#cooling-cells = <2>;
};
+ /*
+ * This is the type B USB connector on the device,
+ * a GPIO-controlled USB VBUS detect
+ */
+ usb1_phy: phy {
+ compatible = "gpio-usb-b-connector", "usb-b-connector";
+ #phy-cells = <0>;
+ vbus-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ };
/* Global Mixed-Mode Technology G751 mounted on GPIO I2C */
i2c {
@@ -302,5 +311,13 @@
ide@63000000 {
status = "okay";
};
+
+ usb@69000000 {
+ status = "okay";
+ dr_mode = "peripheral";
+ usb-phy = <&usb1_phy>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_default_pins>;
+ };
};
};