Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3643462pxb; Mon, 30 Aug 2021 07:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxklEMW6SPuO0QmqPqa8LZUyOaieTqU5qbMSb6HrRZPgso/QdL6o5d5aAJ93YB34zChLGAv X-Received: by 2002:a05:6402:1768:: with SMTP id da8mr12413012edb.80.1630333136450; Mon, 30 Aug 2021 07:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630333136; cv=none; d=google.com; s=arc-20160816; b=oMykLGUfGMZfvXEKJWb6QNxQRr4lErujXc1r5kH4wC6LhCE16v5xwCMg2KI6rKPmm/ 1bQRr49WRH1OC9nLMoP9+ZcDRXG6xho0p77GupfWka57rSnRNqJ0QhN0VWwfwJwG+OLp tekHLiT3n4VAQt3SSDyQ02rBAqrqEfquyD1cpGKVfXoan2EJH/YGv29aY2jIO8zf2jKE FfJHKWbP6pKnBTRU59A79MTVRFEkjTyQMe/ZVzUseA6ZecP+RT9wB5rQl/9ctScuYrWM 0dikqDyICHyt3tOCsTuL8gDzU8o0zJCqs5fSmySXn+ytlczNZd6huRpkx4mS5/l+q/mC FWpA== 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=HqkVrWRC7EKt3KrlDJ9BJiUPJ234vCZbFseBVJRV4fM=; b=igHgERCrUVqbRyMmqjEoFsK8I3qp7vzvhn9e51JF3VAH0jj/78zyKxILld7+tHEioQ GbSTNJqubgZTpFjsC4WJwWUWzLVa3MOkTW7coLJgbq0EB44N/hZOcF1b+jYi9jem420E Ayw1rknlEODsoidmlk8SjJCj0bYk7ZUejvbBAiccD2JncrEFPt0Y1AfX5VUaGG0se6o8 LUvqYmpxiTe4soyofFEiWpOXNfRhA79mpTRU9xIx88nxEKqK66LFpy0nNEJMGwVfB0kl rMdTPLTM54sgqJWp1vc+EjEpZaytahZj85CxLMiVfSSXNBnZKhZhQrXC3ka6sP0ge/Sc 8XQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=fdxDAbJh; 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 qa32si15713588ejc.563.2021.08.30.07.18.26; Mon, 30 Aug 2021 07:18:56 -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=fdxDAbJh; 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 S237027AbhH3OPS (ORCPT + 99 others); Mon, 30 Aug 2021 10:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236934AbhH3OPR (ORCPT ); Mon, 30 Aug 2021 10:15:17 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D463C061575 for ; Mon, 30 Aug 2021 07:14:24 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 7923F5FF41; Mon, 30 Aug 2021 14:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1630332861; 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=HqkVrWRC7EKt3KrlDJ9BJiUPJ234vCZbFseBVJRV4fM=; b=fdxDAbJhGI9SoJ1fk0YpSQfdxuCBKGd4SAmo+gTHWxuI/TAgHXQbrBdeKvo/kQ7Yg1zw2R 9wPCg+6DlLNLrlV0lzy0zG5XIAWqftV41+5pmQX/bnCuoxgomtQYO8dx2DEO3KN0q88WWI Hlg0lgyCkWwbyNdb17zRdLK2x4efIzY= Received: from localhost.localdomain (fttx-pool-157.180.227.230.bambit.de [157.180.227.230]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 9EB44100822; Mon, 30 Aug 2021 14:14:20 +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] arm: dts: mt7623: add otg nodes for bpi-r2 Date: Mon, 30 Aug 2021 16:14:15 +0200 Message-Id: <20210830141415.106136-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: db1bf837-c379-4f08-aad1-a948eac37616 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/ --- 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 8d22aeec91e1..729bc055ffcd 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -374,7 +374,14 @@ adie { bias-disable; }; }; + + musb_pins: musb { + pins-musb { + pinmux = ; + }; + }; }; + &consys { mediatek,pwrap-regmap = <&pwrap>; pinctrl-names = "default"; @@ -462,3 +469,21 @@ &u3phy1 { &u3phy2 { 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>; + }; +}; + +&u2phy1 { + status = "okay"; +}; + -- 2.25.1