arm: dts: meson-gxl: Add USB Gadget nodes for U-Boot
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 30 Mar 2020 09:27:26 +0000 (11:27 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 20 Apr 2020 12:19:10 +0000 (14:19 +0200)
Add the USB DWC2 node to u-boot specific dtsi files since Gadget
support is not (yet) available in upstream Linux yet.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/dts/meson-gxl-s905x-khadas-vim-u-boot.dtsi
arch/arm/dts/meson-gxl-s905x-libretech-cc-u-boot.dtsi
arch/arm/dts/meson-gxl-s905x-p212-u-boot.dtsi
arch/arm/dts/meson-gxl-u-boot.dtsi [new file with mode: 0644]

index c35158d..39270ea 100644 (file)
@@ -4,4 +4,4 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include "meson-gx-u-boot.dtsi"
+#include "meson-gxl-u-boot.dtsi"
index c35158d..474a3e1 100644 (file)
@@ -4,4 +4,8 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include "meson-gx-u-boot.dtsi"
+#include "meson-gxl-u-boot.dtsi"
+
+&dwc2 {
+       status = "okay";
+};
index c35158d..39270ea 100644 (file)
@@ -4,4 +4,4 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include "meson-gx-u-boot.dtsi"
+#include "meson-gxl-u-boot.dtsi"
diff --git a/arch/arm/dts/meson-gxl-u-boot.dtsi b/arch/arm/dts/meson-gxl-u-boot.dtsi
new file mode 100644 (file)
index 0000000..9e88afd
--- /dev/null
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2019 BayLibre, SAS.
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+#include "meson-gx-u-boot.dtsi"
+
+&usb0 {
+       dwc2: usb@c9100000 {
+               compatible = "snps,dwc2";
+               reg = <0x0 0xc9100000 0x0 0x40000>;
+               interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
+               clock-names = "ddr";
+               phys = <&usb3_phy>, <&usb2_phy1>;
+               dr_mode = "peripheral";
+               g-rx-fifo-size = <192>;
+               g-np-tx-fifo-size = <128>;
+               g-tx-fifo-size = <128 128 16 16 16>;
+               status = "disabled";
+       };
+};