Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1914011pxt; Sun, 8 Aug 2021 05:43:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLq5xS3AS3AyDzGMWccfDITyPb4m71XdEGFreZuuHcltsqDPNdUz4YcfKPWif+rBbqrCmc X-Received: by 2002:a5e:d918:: with SMTP id n24mr228657iop.173.1628426598983; Sun, 08 Aug 2021 05:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628426598; cv=none; d=google.com; s=arc-20160816; b=zTtA08DPoZNzZOYiwcwkgz1xq9Qmv0eZLwP24CxfbC7158c62kGTdJQg2mnG9sOUPn /jaqE+8tgyCMt752ES4xraUFs3v80Cwnb97nmNLOzTb2V1Fi1gOef2JLxm8prQ21dDvK B8Dm2CfkFUUz0ZHYmaSU/3o9sncPDhspxhBkZLR9x/3P9lndRwsHg94SNNUbMEKRvCqN Tv7nHjarL3DKyBW4O8rWq0IX8ERVJW/8GzL8w9Vk9DLooD7hsz8PBTNM9zuFBqVzqTeW V9KOXhUOTOKA+315wwmtTfVWGFWP1PWKBmgZRFzW3eadNed2/KhdDUFHABDpejP0ejmF lJQA== 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=wTDEWTY6DFnkW7Rjxxj/CcZyJlPojb5t/pJtInOE9bs=; b=hdd2lLG+9W2CJ4GvPJ2mkiG2Ew+cTdkDvg3tFJPL5eO7TTTL2e2Fc950bVhv9J52Uk X8CXRrS+xoMuIzPLKIfO+udYfKI6PkI65jJk6jURCJLF/jiMauNje+NPbbVgAAd+6sfm GUw+qMWyXHxzohWlYNUtGEY2lwoAR+tyNFL/geMDI2AMyP/J4B6GCFWlpz1cnpvKAE4A VloZX//eBb5QKgyYQiUdrTiIZ0m/CCvIMcnE4sMg0KGl0w/gVN1yTtMDtmamDEs/wTI6 rFc0d8jXurI0pEXqxcxEutNC3QbNp1P3dDYN/ZERQAqwzik9qIQ0A9hrd16zUFjdjIDq tkPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=njzXrk+p; 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 s22si14110346iow.33.2021.08.08.05.43.07; Sun, 08 Aug 2021 05:43:18 -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=njzXrk+p; 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 S231406AbhHHMkM (ORCPT + 99 others); Sun, 8 Aug 2021 08:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231414AbhHHMkM (ORCPT ); Sun, 8 Aug 2021 08:40:12 -0400 Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050::465:103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 078EEC0613CF; Sun, 8 Aug 2021 05:39:52 -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-103.mailbox.org (Postfix) with ESMTPS id 4GjJh65nz2zQk9y; Sun, 8 Aug 2021 14:39:50 +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=1628426389; 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=wTDEWTY6DFnkW7Rjxxj/CcZyJlPojb5t/pJtInOE9bs=; b=njzXrk+pIxdCL4wWJkaLLZ7UkjSIqw58a948hlA7vJXsx1fXdyYfPuYfqA3A5fOwUMsudv 2/SXoW2Ao3FLxzoMnzk1+pHyO9NaGObsnmKMQ8r4RPK9LC75FLqu37MBBvem9cMeFQqq6c P7P3miV9eFghBfBmQ/DefIfX7fHd0hNimdAogouTxbcrI4OYPXG865iOYhbQ1SCUaWGO/l hbZA+LalU5vkTtPaLi8D7+QTQ7fp5zEcfZna0g3ABEEw3Hr8ZKWDWyrCelP/dl3+ZlM1sc A+CJtlQlA73sYSJ8JZ/rtIQYoVgpNglmygYDmW2yDid5JFxivu7HLN4ncqahdw== Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id uGsJQJGVLIxf; Sun, 8 Aug 2021 14:39:47 +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 v2 2/2] arm: dts: mt7623: add musb device nodes Date: Sun, 8 Aug 2021 21:38:40 +0900 Message-Id: <20210808123840.176738-3-mans0n@gorani.run> In-Reply-To: <20210808123840.176738-1-mans0n@gorani.run> References: <20210803151320.71531-1-mans0n@gorani.run> <20210808123840.176738-1-mans0n@gorani.run> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: ECECD189C X-Rspamd-UID: 492da4 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 --- 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 | 34 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt7623a.dtsi | 4 ++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 3c11f7cfcc40..790d74439cc6 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -585,6 +585,40 @@ 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>; + status = "okay"; + }; + }; + 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.32.0