| .. | .. |
|---|
| 6 | 6 | */ |
|---|
| 7 | 7 | |
|---|
| 8 | 8 | /dts-v1/; |
|---|
| 9 | +#include <dt-bindings/gpio/gpio.h> |
|---|
| 9 | 10 | #include "mt2701.dtsi" |
|---|
| 10 | 11 | |
|---|
| 11 | 12 | / { |
|---|
| .. | .. |
|---|
| 13 | 14 | compatible = "mediatek,mt2701-evb", "mediatek,mt2701"; |
|---|
| 14 | 15 | |
|---|
| 15 | 16 | memory { |
|---|
| 17 | + device_type = "memory"; |
|---|
| 16 | 18 | reg = <0 0x80000000 0 0x40000000>; |
|---|
| 17 | 19 | }; |
|---|
| 18 | 20 | |
|---|
| .. | .. |
|---|
| 59 | 61 | 255 |
|---|
| 60 | 62 | >; |
|---|
| 61 | 63 | 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; |
|---|
| 62 | 73 | }; |
|---|
| 63 | 74 | }; |
|---|
| 64 | 75 | |
|---|
| .. | .. |
|---|
| 229 | 240 | &uart0 { |
|---|
| 230 | 241 | status = "okay"; |
|---|
| 231 | 242 | }; |
|---|
| 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 | +}; |
|---|