Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3673191pxb; Mon, 30 Aug 2021 08:01:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsk7rd6CrxkDc1+7yNtgubfXn3T8vnu1JU0CEq9+HB68y3xBHrgkbyFubOSMVVza9Rpmyp X-Received: by 2002:a05:6e02:1be2:: with SMTP id y2mr15460630ilv.293.1630335699830; Mon, 30 Aug 2021 08:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630335699; cv=none; d=google.com; s=arc-20160816; b=CY0YD7u/xQFuSDrY1QIxGt1XUKVWnlCdvzd0Zsh+uoqQzSW9xeCLPBHlWu1VGRUn2v aAXiRIn+G3oKzD3Jt6/YS4cDK8EIcnPrQNvRGNhH2k+ltwd5SikksbJnu5smbOgpplMh Yeh+tuPtbagRVRcC1s0Kx6IBinekfX4PmZIc+vwmL80pB+JjgM/DA4LxHo69fzrXSe6v TUmD05EX2aQ7WIGp7Uop458C9XdC4SvCDW54Jmxg3Uj9YvIwK765kzpzZZMRqnCSz4fc nP3vF+GsWczQL8BOewWz62d093c9Qa28L88By+ENcNft6id4oFY7KklNxyguCdN/tt/e 4lqA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FB34z+C8sGX7ZZ7kAsjc/5fqFHG4raJPZ6x3LyD7ocE=; b=k2cdo74M6o05dNoOCST0f5HrrMyaEnoTmi0jxDOUcI80PBfrQRP+XHoMGsMnZE6V3E NnecgeZ0L2Eikf8De88y+9RgRMk/VSVqirdEo6hGNQdb0SeXrW1dCka5L4VRaXx5I1Wp s8RnzTihcK66BBd8CgqsO6fqtbo7JKLACBVK3vlU7iAd2jncFJYP7r4ceErILcTetNZ2 Voj/2xPYPwJG1TkuAYo2sKAcrjl3xPR/bkW5/laYwVFRs4MDdC5/tmtiHHF3hCszf1bg TZSLuVO24dMWSOGeAnojWiZUg6QQxItff65XFi9FpplyemNvyd8s799hM/uZnXNbn4wR MM7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=hBakEaTB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c39si10660151jaf.12.2021.08.30.08.01.19; Mon, 30 Aug 2021 08:01:39 -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=@mailerdienst.de header.s=20200217 header.b=hBakEaTB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237402AbhH3PBM (ORCPT + 99 others); Mon, 30 Aug 2021 11:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237499AbhH3PBC (ORCPT ); Mon, 30 Aug 2021 11:01:02 -0400 X-Greylist: delayed 2744 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 30 Aug 2021 08:00:08 PDT Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 748DBC0613D9; Mon, 30 Aug 2021 08:00:08 -0700 (PDT) Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout3.routing.net (Postfix) with ESMTP id 5AFF5604DD; Mon, 30 Aug 2021 15:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1630335606; 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; bh=FB34z+C8sGX7ZZ7kAsjc/5fqFHG4raJPZ6x3LyD7ocE=; b=hBakEaTBn9R0yk9TKrAV8B3L1JVUjd5HdThgCAOP1u7JJ2FoUwWJnR5ACemZrltDFDT4K1 WejpT517SruouMylAXEgg+91cgFnN2aI/sA/wKxMkLQ7D+ol6cvfkg3in5L/VA3YZJomJr fpmNV55jQISDc0xI1ZHgsQWsh8X9Ew8= Received: from localhost.localdomain (fttx-pool-157.180.227.230.bambit.de [157.180.227.230]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id ADCE28008C; Mon, 30 Aug 2021 15:00:05 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Matthias Brugger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm: dts: mt7623: add otg nodes for bpi-r2 Date: Mon, 30 Aug 2021 16:59:58 +0200 Message-Id: <20210830145958.108605-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: a7d5b3dd-a653-44e9-8e1d-254951e06a6d Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich Add OTG-Nodes for BananaPi-R2 Signed-off-by: Frank Wunderlich --- patch is based on "arm: dts: mt7623: add musb device nodes" https://patchwork.kernel.org/project/linux-mediatek/patch/20210822041333.5264-2-mans0n@gorani.run/ --- v2: rebase on plain 5.14, v1 was based on some not upstreamed work --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index e96aa0ed1ebd..027c1b0c6a98 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -366,6 +366,14 @@ &pcie1_phy { status = "okay"; }; +&pio { + musb_pins: musb { + pins-musb { + pinmux = ; + }; + }; +}; + &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm_pins_a>; @@ -396,6 +404,19 @@ &uart2 { status = "okay"; }; +&usb0 { + pinctrl-names = "default"; + pinctrl-0 = <&musb_pins>; + status = "okay"; + usb-role-switch; + + connector { + compatible = "gpio-usb-b-connector", "usb-b-connector"; + type = "micro"; + id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>; + }; +}; + &usb1 { vusb33-supply = <®_3p3v>; vbus-supply = <®_5v>; @@ -408,6 +429,10 @@ &usb2 { status = "okay"; }; +&u2phy1 { + status = "okay"; +}; + &u3phy1 { status = "okay"; }; -- 2.25.1