Skip to content

Commit

Permalink
ARM: dts: gemini: Enable DNS313 FOTG210 as periph
Browse files Browse the repository at this point in the history
Add the GPIO-based VBUS phy, and enable the FOTG210
USB1 block for use as peripheral.

Signed-off-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
linusw committed Jan 25, 2023
1 parent b041c9d commit 776e8ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm/boot/dts/gemini-dlink-dns-313.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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>;
};
};
};
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/gemini.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@
*/
pinctrl-names = "default";
pinctrl-0 = <&usb_default_pins>;
/* Default to host mode */
dr_mode = "host";
syscon = <&syscon>;
status = "disabled";
};
Expand Down

0 comments on commit 776e8ee

Please sign in to comment.