Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp854961pxb; Sat, 21 Aug 2021 21:41:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEHRM3G1BvPgAqFvF/KAPCGEHWa4n4sEcZqOqvFQ4p8+wPt7CwqSxfToNMtM+Nu1BJIaCM X-Received: by 2002:a92:c64c:: with SMTP id 12mr16199071ill.235.1629607283511; Sat, 21 Aug 2021 21:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629607283; cv=none; d=google.com; s=arc-20160816; b=H4z2n2YfrSN9Q60bFu3h9Gxtc/Dj4BkDeYVJPC9SQ8pVufQb4Yj4tSMh/cvo/1Zwox CW7QcOynoOtWp0/+OaIv/OGpjnDmY072LO9yXaYYzQ6qWknnzXYlYqDZQ2rr5MLjlW53 H7nCWhoe0iKTAX+K+sJ1cbkDMn90eqforIq0rIa/njoLDVNNNOwgbnmyLee7bVcX3zbR yIHtF9/9Ks6+YYIX6w+g7Ca33U1voDUQZJraO5lHLnBYijqEOvyBoMQRyr8HOSwtPPyT O/mAgsyuXvVG4uCGOR9PpOjeZqOsiuiIEtUAPmH6dKBVSbm6VRy1zAEfle8SQqtao1aC ROGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+31EPRPMGVEy2Xpxt+EjtmwliDHXxQYcaVfkvS007Qw=; b=rsrO4hsXfOj69OK77/lsJq/utk6coD10UxWop+6h50V6CW+VrlYqBKIFiK5GFcQi44 MprSSiE3X0wNnrjmDrDg9SsqSMHx2Cq8rGnXph97ZaWp2PI55cL3sn3lhQaWGoHlYNce owzsan1NGFVIAlAXFm9ez8dIqwD7cCjws7Bjzg8zLIix7z5O/L5k+k7SWOhQvCfPn08z oM4+8rJ4Er4/f+hNiqLmAAeCoPUO7URpZNvzV2QTMhiXCj+l/8lmyg/vvGWwf+7gWU9n 1eZJlqu8Go6WBWNEYGzLBD56byzNUSy0q68ZChsZq/qh499zjfh/YnZugGnfteyDxYRV UZdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=DxVAmhKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gorani.run Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 20si10526686ioz.25.2021.08.21.21.41.12; Sat, 21 Aug 2021 21:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=DxVAmhKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gorani.run Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbhHVEPK (ORCPT + 99 others); Sun, 22 Aug 2021 00:15:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbhHVEPJ (ORCPT ); Sun, 22 Aug 2021 00:15:09 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050::465:102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07229C061575; Sat, 21 Aug 2021 21:14:29 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4GshpV61kKzQjym; Sun, 22 Aug 2021 06:14:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1629605661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+31EPRPMGVEy2Xpxt+EjtmwliDHXxQYcaVfkvS007Qw=; b=DxVAmhKTlqpkCYhwvRNC1T6FD3PfK/WNroEzQ8y17kyNsyLQGvW0kRBU2JuqDJCGO9Ym1l CTVyFArt3SkbDYkqpT6kh1TL+ucYNezRyURc9Zjaukrc3mn6kT2LgcvFOk2kaE2iMm50tb LsoJuIQmWKWcnWAESytJ8sWwFpP49eOMTyW3/EQ42NBIlrN7SGgnkgd7MvwxHI0XEOkY67 4rEK1OgKDDXRjtf13wCFHMknU0OBGSBbpidX6+2dWocaarKsKDjxXFboCmUlseM/FeybbR hV/4bfnFlsmehk0qRFhjmnjYe01a+gxbDxziiSCeI6CfEBgLv0ksKEuH8Ojrew== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id bGQP5vXKQSRq; Sun, 22 Aug 2021 06:14:19 +0200 (CEST) From: Sungbo Eo To: linux-mediatek@lists.infradead.org Cc: Chunfeng Yun , Greg Kroah-Hartman , Rob Herring , Matthias Brugger , Min Guo , Frank Wunderlich , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sungbo Eo Subject: [PATCH v3 1/1] arm: dts: mt7623: add musb device nodes Date: Sun, 22 Aug 2021 13:13:33 +0900 Message-Id: <20210822041333.5264-2-mans0n@gorani.run> In-Reply-To: <20210822041333.5264-1-mans0n@gorani.run> References: <20210808123840.176738-1-mans0n@gorani.run> <20210822041333.5264-1-mans0n@gorani.run> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E13A81887 X-Rspamd-UID: 89d88d Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MT7623 has an musb controller that is compatible with the one from MT2701. Signed-off-by: Sungbo Eo --- v3: * remove unnecessary status=okay from u2port2 v2: * rename usb3 label to usb0 * move usb0 & u2phy1 nodes to the right sorted place * disable u2phy1 by default * correct u2port2 node name to match its reg address --- arch/arm/boot/dts/mt7623.dtsi | 33 +++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt7623a.dtsi | 4 ++++ 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 3c11f7cfcc40..21c8a291b74e 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -585,6 +585,39 @@ spi2: spi@11017000 { status = "disabled"; }; + usb0: usb@11200000 { + compatible = "mediatek,mt7623-musb", + "mediatek,mtk-musb"; + reg = <0 0x11200000 0 0x1000>; + interrupts = ; + interrupt-names = "mc"; + phys = <&u2port2 PHY_TYPE_USB2>; + dr_mode = "otg"; + clocks = <&pericfg CLK_PERI_USB0>, + <&pericfg CLK_PERI_USB0_MCU>, + <&pericfg CLK_PERI_USB_SLV>; + clock-names = "main","mcu","univpll"; + power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; + status = "disabled"; + }; + + u2phy1: t-phy@11210000 { + compatible = "mediatek,mt7623-tphy", + "mediatek,generic-tphy-v1"; + reg = <0 0x11210000 0 0x0800>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + u2port2: usb-phy@11210800 { + reg = <0 0x11210800 0 0x0100>; + clocks = <&topckgen CLK_TOP_USB_PHY48M>; + clock-names = "ref"; + #phy-cells = <1>; + }; + }; + audsys: clock-controller@11220000 { compatible = "mediatek,mt7623-audsys", "mediatek,mt2701-audsys", diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index 0735a1fb8ad9..d304b62d24b5 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -35,6 +35,10 @@ &scpsys { clock-names = "ethif"; }; +&usb0 { + power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; +}; + &usb1 { power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; }; -- 2.33.0