From 35d29a8f55bec00bd59ed1e35fb900198c27bdb1 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Wed, 2 Dec 2020 12:35:32 +0200 Subject: x86: edison: Add CPU to compatible string Like in the rest of x86 boards append CPU to the board compatible string. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/dts/edison.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/x86/dts/edison.dts') diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts index bc84bc892e..97cc6ec386 100644 --- a/arch/x86/dts/edison.dts +++ b/arch/x86/dts/edison.dts @@ -16,7 +16,7 @@ / { model = "Intel Edison"; - compatible = "intel,edison"; + compatible = "intel,edison", "intel,tangier"; aliases { serial0 = &serial0; -- cgit v1.2.3 From 23cdbba8b199f2f35c28e40dbb59a5e935dbbae9 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Thu, 3 Dec 2020 19:45:01 +0200 Subject: x86: edison: Use dwc3-generic driver for Intel Edison Use generic Synopsys DesignWare 3 driver on Intel Edison. For now it's just a stub which allows future refactoring. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/dts/edison.dts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/x86/dts/edison.dts') diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts index 97cc6ec386..600d6d2562 100644 --- a/arch/x86/dts/edison.dts +++ b/arch/x86/dts/edison.dts @@ -105,6 +105,10 @@ reg = <0xff009000 0x1000>; }; + usb: usb@f9100000 { + compatible = "intel,tangier-dwc3"; + }; + watchdog: wdt@0 { compatible = "intel,tangier-wdt"; }; -- cgit v1.2.3 From f89e8acbc81ee6d9e57f0156c3ee6de44528c8b7 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Thu, 3 Dec 2020 19:45:02 +0200 Subject: x86: edison: Switch to DM_USB_GADGET DM is the modern default approach for the drivers in U-Boot. It also allows to configure code via Device Tree. Move Intel Edison to use DM_USB_GADGET and drop hard coded values. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/dts/edison.dts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/x86/dts/edison.dts') diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts index 600d6d2562..8d245bffc2 100644 --- a/arch/x86/dts/edison.dts +++ b/arch/x86/dts/edison.dts @@ -107,6 +107,14 @@ usb: usb@f9100000 { compatible = "intel,tangier-dwc3"; + #address-cells = <1>; + #size-cells = <1>; + + dwc3: dwc3 { + reg = <0xf9100000 0x100000>; + maximum-speed = "high-speed"; + dr_mode = "peripheral"; + }; }; watchdog: wdt@0 { -- cgit v1.2.3