From patchwork Wed Oct 14 16:24:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11838069 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8A4901130 for ; Wed, 14 Oct 2020 16:24:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3EF5922200 for ; Wed, 14 Oct 2020 16:24:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="czPCwIFM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="z4uKG0Ta" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3EF5922200 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=f+BZZpVObFmki6dEx1KkD454Hcd+GeQutM7ix9V89Uw=; b=czPCwIFMu2hzRougTF9ECrSBs 6jcyOG0MMJNhPhquiwVzMURvrXl5htnLQ4icu/VMBYcXD2Fwuss6f/Y3sT1Yjl1Pzy/HyG5dVNV0o d182Gj9wDTixwNttmPff6aX5eBp9cJogo98vQjXIo97Bof8nHKAM7PyxaeiyjA55g3fKnsEqhZsHz wqNky7UBhYrHxzAFiGg0Z5AnBiPzJcOFSyXXMOkYuQhagEyMUuijBAhJve1c4YKM1ZQRFPeO/tmvF 0FeqE0XeyIAXFux9R/e0aOchmbYMP8+d98PuVXS2uvSirEpr5Pw7rGCm/DMu3PtKw3J1G8vvQAE2B UBnNyvQrg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSjZt-0007Us-Jl; Wed, 14 Oct 2020 16:24:37 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSjZk-0007SO-NQ for linux-arm-kernel@lists.infradead.org; Wed, 14 Oct 2020 16:24:30 +0000 Received: by mail-wm1-x342.google.com with SMTP id z22so111263wmi.0 for ; Wed, 14 Oct 2020 09:24:28 -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=BaFCO6gd2Q1mLQwHFnqU3U26NuiKVA9TtHwt6ApIueE=; b=z4uKG0TaAnEUK/LOW7FQKsbgAlqV3bAVForRdnQloJOHZPjG1nEzA/5v4H7w5vHGM7 vUN6Q5fMr+ZnHXhOI9GANlsYcH/LdlwtxI4NZjL1U6RixIjOmYo436hRk4FwmVLXaDu8 s+qfQJ5m9tXNH8KirkktpfDxWYa587OdSB1JGHzmLwYUG7I+AllUPQ+iGNfig7lSLj6O S0I/ziaRhEMGq/hQ4Pp6jTbev5zGlQ0hYOZmgOVmpkU/o0j8Wlaj+q71ETFCUTyD604F S8OcPWoHOXiiirWszhsWBi3P/EivygmiJi51n1EXgQM6IDCEFa8ihKz6JzLewBd4xZPE Z+xA== 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=BaFCO6gd2Q1mLQwHFnqU3U26NuiKVA9TtHwt6ApIueE=; b=nIrAFf17MIQyxdCjUCGZV3iZS/OQO3DKlxW/lHXMHh6MmpHuWIxqysJmDhJMMwTnYb 0MaVyS7e5s2TRLT1P1oxo5lF8lCrumnB3C2GCsWn7rEZt567ipnIZTLGhpgTINhKcwbe FacrL5ZFORw925Yx+VwViURibwitMHlsAzIqmfnxN4tGk0Lhq2J5vmGXilUwD9JC0Ck7 +q00zjTxqq5sIU2dPDtJPQQAIU20BbvIZD6mRxwG+CSeCp5R0FGfltyQEah/jdro/EPO bxGlflUrH3kPQej3mnj5R8gYd8aeA1MTTN/J0S3TFxVK25VTRECpPppxdNgS/R/1abyq oyBA== X-Gm-Message-State: AOAM533rj/XmLH6q+UnS0PRTsBDqSM/Kg1wi/9m21t9ROaN9sTf+abz+ wO9edGemZZSslkb+GTrcI8dEAQ== X-Google-Smtp-Source: ABdhPJwQ+LmzARi1BWPfpNnEKf7mU0uno7dJMOjw1+8Rr/HNszFYvXvwi3TJxZuz3zGrR/DcFxhT5A== X-Received: by 2002:a05:600c:2217:: with SMTP id z23mr209839wml.133.1602692667896; Wed, 14 Oct 2020 09:24:27 -0700 (PDT) Received: from localhost.localdomain (138.165.185.81.rev.sfr.net. [81.185.165.138]) by smtp.gmail.com with ESMTPSA id x21sm206227wmi.3.2020.10.14.09.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 09:24:26 -0700 (PDT) From: Fabien Parent To: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: mediatek: mt8516: add usb1 node Date: Wed, 14 Oct 2020 18:24:04 +0200 Message-Id: <20201014162404.1312544-2-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201014162404.1312544-1-fparent@baylibre.com> References: <20201014162404.1312544-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201014_122428_806590_8C022937 X-CRM114-Status: GOOD ( 13.13 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:342 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: matthias.bgg@gmail.com, Fabien Parent , robh+dt@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The MT8516 has 2 USB instances. Add support for the second USB instance. usb1 can only work in host mode. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi index 50049b6c1ba7..eca7969e15ab 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -455,6 +455,20 @@ usb0: usb@11100000 { status = "disabled"; }; + usb1: usb@11190000 { + compatible = "mediatek,mtk-musb"; + reg = <0 0x11190000 0 0x1000>; + interrupts = ; + interrupt-names = "mc"; + phys = <&usb1_port PHY_TYPE_USB2>; + clocks = <&topckgen CLK_TOP_USB>, + <&topckgen CLK_TOP_USBIF>, + <&topckgen CLK_TOP_USB_1P>; + clock-names = "main","mcu","univpll"; + dr_mode = "host"; + status = "disabled"; + }; + usb_phy: usb@11110000 { compatible = "mediatek,generic-tphy-v1"; reg = <0 0x11110000 0 0x800>; @@ -469,6 +483,13 @@ usb0_port: usb-phy@11110800 { clock-names = "ref"; #phy-cells = <1>; }; + + usb1_port: usb-phy@11110900 { + reg = <0 0x11110900 0 0x100>; + clocks = <&topckgen CLK_TOP_USB_PHY48M>; + clock-names = "ref"; + #phy-cells = <1>; + }; }; auxadc: adc@11003000 {