hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/mt2701-evb.dts
....@@ -6,6 +6,7 @@
66 */
77
88 /dts-v1/;
9
+#include <dt-bindings/gpio/gpio.h>
910 #include "mt2701.dtsi"
1011
1112 / {
....@@ -13,6 +14,7 @@
1314 compatible = "mediatek,mt2701-evb", "mediatek,mt2701";
1415
1516 memory {
17
+ device_type = "memory";
1618 reg = <0 0x80000000 0 0x40000000>;
1719 };
1820
....@@ -59,6 +61,15 @@
5961 255
6062 >;
6163 default-brightness-level = <9>;
64
+ };
65
+
66
+ usb_vbus: regulator@0 {
67
+ compatible = "regulator-fixed";
68
+ regulator-name = "usb_vbus";
69
+ regulator-min-microvolt = <5000000>;
70
+ regulator-max-microvolt = <5000000>;
71
+ gpio = <&pio 45 GPIO_ACTIVE_HIGH>;
72
+ enable-active-high;
6273 };
6374 };
6475
....@@ -229,3 +240,14 @@
229240 &uart0 {
230241 status = "okay";
231242 };
243
+
244
+&usb2 {
245
+ status = "okay";
246
+ usb-role-switch;
247
+ connector{
248
+ compatible = "gpio-usb-b-connector", "usb-b-connector";
249
+ type = "micro";
250
+ id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
251
+ vbus-supply = <&usb_vbus>;
252
+ };
253
+};