From patchwork Wed Oct 14 16:24:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11838067 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 D014D1592 for ; Wed, 14 Oct 2020 16:24:42 +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 870C220B1F for ; Wed, 14 Oct 2020 16:24:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vrfT2s8F"; 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="uDnGJdlH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 870C220B1F 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: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:In-Reply-To:References:List-Owner; bh=XX6RPKVm3MJNTQz8eWlVHfAZI3+vZqdeawPCI71cjiQ=; b=vrfT2s8Fo6GS4MO8E6rwxuVEOA KmI8goPPxUqqTlwxNPKjnxfWSuAWpOFD9feg8bj6HFnzcKzijLMI0SP+3Xasb89OFw4Wd/jG1KIKd xm3Qyhkxh7B0fe1tFcVOshal7+7Za9CIAsX+KC+yovmOx7VrJR2byhpe9HyVG9Rw8EcWM1z6K9tlJ TKKexBrKr/3sGWS5FtjJNs+1QaOKt4saosU3O7JQj4DiyXfVCzMyGPYaZdSaheszDCYcaoX26Kqdj 9R+j/1XPTEoOr5ah+Lvi4BtBvKlPigIkfALcTVEM56K9t1EB04h9PinT+ePYCtYWOExx9yhZ07pcU ZGuTO9HA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSjZm-0007T6-3t; Wed, 14 Oct 2020 16:24:30 +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 1kSjZi-0007R0-0L for linux-arm-kernel@lists.infradead.org; Wed, 14 Oct 2020 16:24:27 +0000 Received: by mail-wm1-x342.google.com with SMTP id a72so134602wme.5 for ; Wed, 14 Oct 2020 09:24:25 -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:mime-version :content-transfer-encoding; bh=Xc8G40tYgwiAv2ESHx43A45xg26ysJOM3AkOz4ZNqWQ=; b=uDnGJdlHYhAtlRZpVONEODX3++/Ye9xPj0H33vq+HUBiS0ct0tDokrtZHJBow4ddKS V8VQW405k64jZXK44pwP2zQdwHaOi2X9GRZok3aCHox6TuVL0z8BSE8ax0uR3TvNbEew DTzrWJ6CBPbtoYlyQJKn94j6lWdIFqlbwTlrR9WBGPgdZU34+r+O1u93lBi5g1eDmpLp 0rfOVUO86wtKQfuGPV5PeDNBuE43MwBdVtFEf2294FDBZrEmc4zP2VnA+IOCCzAFp8XO YtxmDNm5Id5MsaZnzWT4NUoPe8DuPPsM+gAKYqFQb3EhU/EAI7UC2JLPrbyfUvu4Ilm/ xJ0Q== 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:mime-version :content-transfer-encoding; bh=Xc8G40tYgwiAv2ESHx43A45xg26ysJOM3AkOz4ZNqWQ=; b=fix7doFqFKUazCLKmSWHNQAvG69ZXDeoGi5TW9edeC4VJvmhRSuQv4IJu/GDZ9oVsJ orvt629BlJd4AsQQ1Y3g1MbMTGIB3fcSj7RsSdUgmHCU0soXN0uXT+FjGCXOaR/moqqw yFjUjuTfznUlkG+Mx24WRof2LUCcscvesOabM6CgQOFtybU1mFXUzpsdHZq7d6ZEnkq/ DihaG9p/MYqzeL6FoeB9PjHJD5Rq3eMRKdwY2Ul49dDy6d1kPSRZ7MgPUDOcgGSjjblb 1DrOpsZO7pWhzRYxrUlmkcl5mY918uwh3W1qOWlET/2PPKHfFGCfnYnjcg+q/ZgVwjCZ XIXQ== X-Gm-Message-State: AOAM531RpkSovZwo24e3c1vdycIXaat0bNzxz0DgMHLKi/HzBEE/Mbzs 8h+PXXYYg0uvKhhsvv+B2J3Few== X-Google-Smtp-Source: ABdhPJw7WdycnwRe7GUnyPOwfkfjcJNVjTEjNUQ7ks7X5h2H2zkzq/jAlBVaMGWa8NIFu9oDLiwFRA== X-Received: by 2002:a1c:ed15:: with SMTP id l21mr272353wmh.26.1602692664144; Wed, 14 Oct 2020 09:24:24 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 09:24:23 -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 1/2] arm64: dts: mediatek: mt8516: rename usb phy Date: Wed, 14 Oct 2020 18:24:03 +0200 Message-Id: <20201014162404.1312544-1-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201014_122426_204082_F1309E16 X-CRM114-Status: GOOD ( 14.50 ) 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 USB phy node is named usb0_phy but there is only one phy with 2 ports on MT8516. Rename the phy to make it more obvious it can also support the usb1 node. The usb1 node will be added in a follow-up commit. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 2 +- arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi index 943c426e9aaf..50049b6c1ba7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -455,7 +455,7 @@ usb0: usb@11100000 { status = "disabled"; }; - usb0_phy: usb@11110000 { + usb_phy: usb@11110000 { compatible = "mediatek,generic-tphy-v1"; reg = <0 0x11110000 0 0x800>; #address-cells = <2>; diff --git a/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi b/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi index dfceffe6950a..8bad8faf35d2 100644 --- a/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi +++ b/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi @@ -195,7 +195,7 @@ usb_con: connector { }; }; -&usb0_phy { +&usb_phy { status = "okay"; }; 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 {