Commit e862185ed29ea46b39ed4a47ea8ef3649fd7fc26
1 parent
c2ecd1afb0
Exists in
smarc_8mm-imx_v2019.04_4.19.35_1.1.0
and in
1 other branch
MLK-22405 DTS: imx8mn: Add USB gadget nodes and alias
Since the DM USB gadget is enabled at default, have to add USB gadget nodes and alias to DTS, otherwise u-boot will fails to find gadget devices. Signed-off-by: Ye Li <ye.li@nxp.com>
Showing 1 changed file with 16 additions and 0 deletions Side-by-side Diff
arch/arm/dts/fsl-imx8mn.dtsi
... | ... | @@ -46,6 +46,8 @@ |
46 | 46 | spi0 = &flexspi0; |
47 | 47 | usb0 = &usbotg1; |
48 | 48 | usb1 = &usbotg2; |
49 | + usbgadget0 = &usbg1; | |
50 | + usbgadget1 = &usbg2; | |
49 | 51 | }; |
50 | 52 | |
51 | 53 | cpus { |
... | ... | @@ -438,6 +440,20 @@ |
438 | 440 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
439 | 441 | clocks = <&clk IMX8MN_CLK_I2C4_ROOT>; |
440 | 442 | status = "disabled"; |
443 | + }; | |
444 | + | |
445 | + usbg1: usbg1 { | |
446 | + compatible = "fsl,imx27-usb-gadget"; | |
447 | + dr_mode = "peripheral"; | |
448 | + chipidea,usb = <&usbotg1>; | |
449 | + status = "okay"; | |
450 | + }; | |
451 | + | |
452 | + usbg2: usbg2 { | |
453 | + compatible = "fsl,imx27-usb-gadget"; | |
454 | + dr_mode = "peripheral"; | |
455 | + chipidea,usb = <&usbotg2>; | |
456 | + status = "okay"; | |
441 | 457 | }; |
442 | 458 | |
443 | 459 | usbotg1: usb@32e40000 { |