From patchwork Fri Oct 16 15:40:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1383425 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=CT2x6uP9; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CCVj91WK3z9sSG for ; Sat, 17 Oct 2020 02:40:28 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9CC882437; Fri, 16 Oct 2020 17:40:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="CT2x6uP9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 19F9382469; Fri, 16 Oct 2020 17:40:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3257982437 for ; Fri, 16 Oct 2020 17:40:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=fparent@baylibre.com Received: by mail-wr1-x443.google.com with SMTP id s9so3402039wro.8 for ; Fri, 16 Oct 2020 08:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bOfEvPGGkRcNJTh1+bWuqLYZqWFZAMwSx1F3zBLDWuo=; b=CT2x6uP9GKDdNFokIGYRXVELcJjWs+WGG3cwQcmllNSjZvc+JP9fecsn65u6V/321y wQmu+HYujeSih+wNh+rVbjNRYw4kNgj53Pvt1kKy63epRmyaNMhz+mVBBWROTPDFLHpJ 7/c0uLMOvJ8HS76UX8/MwI3uXctmlnnxbOpxmOWzO5oKNl0vlM4Y0evdc3lLipmEilsI 7YQ5nmeZd2Vl3gOPZ5azAzuxqqLLQuhWuEdxj/PWeHwHetg8DpU9PG1ICbvH3Ktx6LcY ih7FIMWKp9W/U1kQjrSWa0UY6ZahHjfsk0k/rf+5XExRp1zz+1VQ0OtQQZNxpRRz6nEK PiQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bOfEvPGGkRcNJTh1+bWuqLYZqWFZAMwSx1F3zBLDWuo=; b=ehMPkkkK/unDQYOKpE3923FNgNTGiexHk6oHq1f8GZT3ezQ9w9EtTiaYrbyOdp1C7e 2HKyI6rqabhrdybdINCtbCCYbR2MWsxtAKTq/i6MapDOmFSq8wvqFTUKlvSWUk5u3FsK XnBOsFOL8if++nJ4TjPMmQNHjx3CvuBUDFE9eX7MLA1p4jm3Q4dgd9eQ8QPY3sDOiqUa v+QebXPLAzqSSz1Uqaj8A5xRA4T23B/Cn2r/Knh3WEaMZB53+XN0NDyHjUUPV5y0HWNH bKvhfoEtl1a8zlncp9PFDnlEDd+b12x8BMeiL2RKQcU9uHyr39z8u9nUN+VM8vIyA+un c8VQ== X-Gm-Message-State: AOAM531aukVmcEydOD7Gam1sMIitCIcdW8ocqLgJb8Q/FuZVg+rfGobs B7tEANoA5MlUFW8PGzTkN54YbeDfdyQcpw== X-Google-Smtp-Source: ABdhPJyTuQngBh0zUmTcR47lDayL+QJqQpnRqGmgt67HTL2mpUWQLAxSsBBkZVRdPdY4rrhQHZmZ2w== X-Received: by 2002:a5d:5743:: with SMTP id q3mr4520947wrw.167.1602862818532; Fri, 16 Oct 2020 08:40:18 -0700 (PDT) Received: from localhost.localdomain (211.163.185.81.rev.sfr.net. [81.185.163.211]) by smtp.gmail.com with ESMTPSA id n66sm3100020wmb.35.2020.10.16.08.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 08:40:17 -0700 (PDT) From: Fabien Parent To: u-boot@lists.denx.de, GSS_MTK_Uboot_upstream@mediatek.com Cc: weijie.gao@mediatek.com, ryder.lee@mediatek.com, Fabien Parent Subject: [PATCH 1/5] arm: dts: mt8516: add support for USB Date: Fri, 16 Oct 2020 17:40:05 +0200 Message-Id: <20201016154009.3097917-2-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201016154009.3097917-1-fparent@baylibre.com> References: <20201016154009.3097917-1-fparent@baylibre.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Add support for USB on mt8516 based SoC. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8516.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/mt8516.dtsi b/arch/arm/dts/mt8516.dtsi index 1c3358208614..c4577ceea386 100644 --- a/arch/arm/dts/mt8516.dtsi +++ b/arch/arm/dts/mt8516.dtsi @@ -123,6 +123,20 @@ status = "disabled"; }; + usb0: usb@11100000 { + compatible = "mediatek,mt8516-musb", + "mediatek,mt8518-musb"; + reg = <0x11100000 0x1000>; + interrupts = ; + interrupt-names = "mc"; + clocks = <&topckgen CLK_TOP_USB_PHY48M>, + <&topckgen_cg CLK_TOP_USBIF>, + <&topckgen_cg CLK_TOP_USB>, + <&topckgen_cg CLK_TOP_USB_1P>; + clock-names = "usbpll", "usbmcu", "usb", "icusb"; + status = "disabled"; + }; + uart0: serial@11005000 { compatible = "mediatek,hsuart"; reg = <0x11005000 0x1000>;