From patchwork Tue May 4 08:36:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12237613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32391C433ED for ; Tue, 4 May 2021 08:38:48 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 B5974611AD for ; Tue, 4 May 2021 08:38:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5974611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MwQ+uHHQ7orpjW48lrWG+QAS/fT/6Z5M0F8KIpV5v9A=; b=BLAXJgHzGwnNlqpHpQ7+bDaBD gAK1bNHlaxR4mNsEbC7fqf4PWSJsyT36/2ZFNYDU8ptvasB3YgEMUbx44f1FnhT78WMYJ1Sks3qps JiDtOLcF2+FRdm9baJ3JxkFN4G511DFFT1QQRxJehEtpfjZ7IHlPHEbvPl76TcTrCtnGOy5PigpnC qvinHKXtn+A6Dsmo6x+8AU5cck9txv7i12P2zE4/MXBkN2R4eKppxzexjIkXBOectt5L11BfN32a5 Wv5w853h2RqmYtzaTeLIL7aOuloB2y1IgoBB62lZeeRex7pC9mokxUVkWaXlw07ap6wt+jKwix/oO iw4sVkTrg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldqYA-00FksU-Hb; Tue, 04 May 2021 08:37:02 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXe-00Fklr-CO; Tue, 04 May 2021 08:36:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=+RRARDka6A+KGtukkewqSVnGjKi76VXqHlFd9I0pNV0=; b=AAJp5f5t5ETeiN1mZY2uCgJ9R0 v1bLDwxCellVHoIfEfqLX0IFOESWRAZMhDOIbdeIE+Ih8UGWiaLQCsATLKxydyuAiQo3dEHpfpIJh PqO0Dv0Bwchb9qAsV5KLArNV/WkrEYTwTSi6TxuhS6R6nixe/RhZzCO86WWQ0uttkJ5e/chSZTo2H RyabDXz1OuAtsEiznRx6HnNB6y7R4n2Xi1Zi0PnN2fb+ef+mf24/H/7f9AvLUXuJDWNpRFFb/q9q/ kRTjTKKJAaSwtNlr0UdS+PLeZ7VRmsffE79+5stSV2nhR7edOhcZynC26tWtpx5RfZnggNFvPKlGQ n4jfKIPA==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXa-003osg-1q; Tue, 04 May 2021 08:36:29 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67AD7613C4; Tue, 4 May 2021 08:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620117385; bh=FTUYwzBsfmH9HtTIoXaIZ7BmgshUPslDQNyHscw0au8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wj85VQOMIqoP6o1odMBeCc74EpJjcuxewMDwf2J8Nt/K+Ko5H659agmD0TAPXvhRQ WWkmUs7JwENIPVTB9RB5kGsvd6EhA41C99XOekyd9q2ZS1i7y3dXBFxtUFixZdC89G 9f1sfTCq6KoOiyR7CgzCVD1qTOHPb0DUbzXrZ2JVZuggXBYkl+R9qtlMCRRYq2RwgT r2M6DDcfTlAG8H03u08su9GW2sdBJ/1PbNPCS/bXch3uYjYKb/9e4kfpq1yaCI4B8U TT8hDv/8rjwm5+F6faMivN5oeZLpINXimzR/pC1jaMwXUIPd5zt69qNoCCHukPQdlI nqEkUr16HifcA== Received: by wens.tw (Postfix, from userid 1000) id 380F55FB8B; Tue, 4 May 2021 16:36:23 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Heiko Stuebner Cc: Cameron Nemo , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai Subject: [PATCH 1/4] arm64: dts: rockchip: rk3328: Enable USB3 for Rock64 Date: Tue, 4 May 2021 16:36:13 +0800 Message-Id: <20210504083616.9654-2-wens@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210504083616.9654-1-wens@kernel.org> References: <20210504083616.9654-1-wens@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_013626_202244_D5186E2E X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Cameron Nemo Enable USB3 nodes for the rk3328-based PINE Rock64 board. The separate power regulator is not added as it is controlled by the same GPIO line as the existing VBUS regulators, so it is already enabled. Also there is no port representation to tie the regulator to. Signed-off-by: Heiko Stuebner Signed-off-by: Cameron Nemo [wens@csie.org: Rewrote commit message] [wens@csie.org: Rebased onto v5.12] Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts index 3bef1f39bc6e..1b0f7e4551ea 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts @@ -381,6 +381,11 @@ &usb20_otg { status = "okay"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; }; From patchwork Tue May 4 08:36:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12237611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F0EEC433B4 for ; Tue, 4 May 2021 08:38:23 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 2057D61004 for ; Tue, 4 May 2021 08:38:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2057D61004 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZH9GA/OvK6rowiTPiiq8Gxc7rVYQFzOLIkQhIiEDl44=; b=qp8DE+oF9msrokGtCSDiIWevC 3+ETlxlX8hJTdI9ggwMH0bG/E3R/NJM0swb3OTIN3xPC+d1AwXJuH11A4PKF+dxLrxQZKDU3xulKy db9XrB5Bc4fPxqi3Z8RI+6FI6XUWu6HKzsr+A0ZMoM/RqYtg9ZODhAEKICdfadziGSrFlENsWu4Vv DJG2VqQlD4qf8QuJJI8SBZ54dTjNGhzoznKxpg9gEnFRDJHlNRmxFYlM+AaRReAN+0iFECf7+Dnvb iukWCUT71zWPLe5vxV6SOvQ6qXFrU113WG/AnlqaricO3aIhe5t1KPpsmcABa6/ux5k0Thkzr71T2 rC6HCCWNw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXw-00FkoB-Qn; Tue, 04 May 2021 08:36:49 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXe-00Fklp-89; Tue, 04 May 2021 08:36:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=vG3g9zHu6gHT/olz1QQ25fCpq/NaprdvMGcTVdCvPig=; b=F5nhQCFJTZcPt0E6CSHiBGO6Ky fMQg2VlQ3rJzfs5wjNOb2JzsWwUMUtIIrTrbybYY1fBvKVau8rLE63rIP7v80ihV+SdSC9hZ0klIo Wx5xhtDwMeblnaYm4Io6mkhfKiypdEkaiE9jlEKzs0S7DWHnAHtXcsJYe3Kqdf1iqKcSvfFKACCjn tw6/RTNZNQAJdnpc64DH3WeH9NGUQ/vf5tHas+sqlwwh8tzxawGZj21XI2NxutrU8jSITX6HaVw4q rFib1x3pw/jLtMUndro0iUiHygb+WnUl+917A4rc1dqZW61BIy2gwkGixH8O0Ow+9lFfsKytdXE8x zm4wvqtw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXa-003ose-1q; Tue, 04 May 2021 08:36:29 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4FE7E611AE; Tue, 4 May 2021 08:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620117385; bh=NZ1P6Y4yYep6ONx/AY6RH6/uPPDWwuWoLAXJG6Alasc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l3nR9wStIGk83O8g6VvXTVQS3MiTtcFt6g7UEIQtt0EoYa2gzhQQdv00mS4mVeOWc qnVAO+f2MtARtbO+Pm3MKiWTxmKoFSxlQki8Fc6gARBu0YXLf6YNciLvlGC6BHAI6D E7aetaeKOMH3aEhH1IjfkzMVEF9HuPfaFqtGAbNaVDbfHPl8nSv2H2fiEqpwuhUlrN 3Pvgb0l+p1qp3V39pNAXKRTRAffA1NnWbJjgX3/PNiXcGyiwIVf+bk7ZmjXPB+5Ugn 9AblgommFCWx6/CyCJ5TAsBbG4oc862eFog6/bDpU1ZUDHBs/YNhSvtoDo77NnP40a kxPAsGXMv3xLQ== Received: by wens.tw (Postfix, from userid 1000) id 397795FC12; Tue, 4 May 2021 16:36:23 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Heiko Stuebner Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] arm64: dts: rockchip: rk3328: Enable USB3 for ROC-RK3328-CC Date: Tue, 4 May 2021 16:36:14 +0800 Message-Id: <20210504083616.9654-3-wens@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210504083616.9654-1-wens@kernel.org> References: <20210504083616.9654-1-wens@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_013626_149523_06E66A08 X-CRM114-Status: GOOD ( 11.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai Enable USB3 nodes for the ROC-RK3328-CC board. The separate power regulator is not added as it is controlled by the same GPIO line as the existing VBUS regulators, so it is already enabled. Also there is no port representation to tie the regulator to. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts index a05732b59f38..bdf0ca07eae9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -363,6 +363,11 @@ &usb20_otg { status = "okay"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; }; From patchwork Tue May 4 08:36:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12237609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4E87C433ED for ; Tue, 4 May 2021 08:38:14 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 640FB61004 for ; Tue, 4 May 2021 08:38:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 640FB61004 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ATaMgsomQGQENTihAKzixOnd8HhdUQwaJFwUvTfCqJw=; b=VpbxWVn+zIkrTL7B/gGPRlaHT cT66APNgvTA2nk620EoenK/dousYKioaIFb5R3LEQ7vKmu84rP4ztd4uQ38G3FIykLE6H09Rp4XhC 0MCDjChRXgYajgkIh1UmVzcd6Zys27Hk4rsWrwmFyUBb7gYD4SnU9no5bzAetwtGie26uoVag0K4/ I8RiFaeqBrMb2qNUEy3Oz4cLItrSX3pRp9QRImu68Qf4/2GIMsYrNsyQ/TgdgFnP13zj9Skondrx+ ltdqnrgRsIWsaWAe288SOFGGuUUR6TAxi9JsuWCUsKjJmEgynhCZQHo5Nv1fFrKTpH3e8VNiLtciX m9s7YC5JQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXg-00Fkme-RL; Tue, 04 May 2021 08:36:33 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXe-00Fklo-7B; Tue, 04 May 2021 08:36:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=rLObH082y1vZyUCljbbYbK6aDH5oDP7oWQ3lMyenbvs=; b=RYJsqNQrP5NxA1VPY+V1lxWkjh wrwu9ELktZFPMB6IbCmOgvMZdNxGSciehshKTcN36PFjZv0esm+cD6cnto8mH7FdUwYzj+Q54zbya xQfCDS/UVdlWW0PWCVeR4PvDYxcvmwGrgtj3WaXPA0Tucbk3jJ4YASmTGKfpXRtDqXPcPak+oACVB KdQrpAqunlMdDIJENKNu2lT8w149WWLdjPLDExdq/VeKlcVlXcczYZ7le5SYM95gP9+4/K5dYHN9I l9+hHXtpQp+vPcEkR2tRdcGqtqSPVbGx5jiZ4hj4evISVaswVQq1rAMaG9Y5oeY7JTJMvF6Hk3eGZ ViccyaYg==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXa-003osf-1p; Tue, 04 May 2021 08:36:29 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5FE2C613C3; Tue, 4 May 2021 08:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620117385; bh=siPwZ678h5F4YQrRY5Ht9/0Lprn948BNV0by6FKBrlc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gssOHQy7tLUQn2dH5Q6aV+jFxmzNdJ9k8GH8bshXqjhfjluJgEVktZhqx/owX/NsB fdwlXayAXCTE+PoWySrazHOjEGVD1XfnP0nWpMWnW8T9oWppf+HTSrG+6i4Ulhd4ZL KENv/b04jCdIeRf05SFtP+R+Ol14GsJ6EkC/qQ+yyTdCB2v8ws0r2d1p7sDrSSmAuC KG7AiyIf27Fhzks2LCebS5RattapFvHHFa0+zxf8YMzt2DTCnGdEBu/Wm5Vhf0PfCb x90U/l7aC7rrhX7oF3AUlZlNtqQwMT1/2/F54OCbJ+G+acOR1o9VXOGcoPw1Yhaduq 9Whe9T9iWmjNQ== Received: by wens.tw (Postfix, from userid 1000) id 415E95FC30; Tue, 4 May 2021 16:36:23 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Heiko Stuebner Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: rockchip: rk3328: Enable USB3 for Rock Pi E Date: Tue, 4 May 2021 16:36:15 +0800 Message-Id: <20210504083616.9654-4-wens@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210504083616.9654-1-wens@kernel.org> References: <20210504083616.9654-1-wens@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_013626_159944_3A2A2395 X-CRM114-Status: GOOD ( 10.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai Enable USB3 nodes for the Rock Pi E board. The VBUS regulator device node was added when the board was first introduced. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts index c02059c0a954..018a3a5075c7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts @@ -380,6 +380,11 @@ &uart2 { status = "okay"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; }; From patchwork Tue May 4 08:36:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12237617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24644C433B4 for ; Tue, 4 May 2021 08:39:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8193F611AD for ; Tue, 4 May 2021 08:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8193F611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WFdokBpve1IL5VBWyV81ClhDs5sSGQcjHhi9ASeXWAk=; b=eRjTc8uMdCEIHk+YTej/epEei sY1aCF7Z0uU8YB01iC6BPwPMCAtrH+aY6ueazZ/tNnAjlxHaVG67nAguKCSrDbPSY7H3AexvSS654 Gn0geGQpSDARioodJpx4CP5RWwd12BtRO4DCr97bACA5NLMFbDPjg8mMGmTPswALnIP5sC7dUGnHv eYJfYOkpx84fluZVlOWTdavos5BqrcCnytLky+lIwxNSKnXwYr+BsSDOGttA3T4N50ttqNR5RUkQx cSr/a4EMl1sa+3xTxWmX114ZZvmnaQdh5drPw+y6rPIHE/SDdQRU2XY987NyR+xGz+fnPM2Ppd9BX xyMqD6U7A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldqYZ-00Fl0M-T5; Tue, 04 May 2021 08:37:28 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXd-00Fkla-Ah; Tue, 04 May 2021 08:36:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=KGWVdKmlX+0r+cNEfH9lTGVIKxdZd5LTf884wXvylm0=; b=XVN8LMBbiq9RXzTDlnL/8yVfb7 pBHvlWFPW/b7uypNfRMvyRm/bh4tfCh66Nko9ttS3TrjNzk88vf6OeHby2VShG047qudZG/GUB8Uz p2R8krYxNtyYjYJJ2yUfvhQsdOYWx3hwkzOIo3zzcNVLW1OtA1yrFEVAj4kKsbFHSzYdGhbnuj1b3 TL7E6o0SWBAtDIXv8iE1L43Lf81c1Lkg/RmMDbuHpKp06mBD0auanjOF/aNw0zBISf2He7118nz9y Zv0IbjQm0E1Xfri/S1a/IqGrc+xw+lQ0sgotJyUmwsP9c9gw8J0NdHRPCyCKZBykwlsTzLlltb471 nFnKH+aQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqXa-003osd-1n; Tue, 04 May 2021 08:36:27 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 57CA8613C0; Tue, 4 May 2021 08:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620117385; bh=wDdTO8tC8Zdg5fvkSijmtyx/2c1fdbnwL+BFdPq35v8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nz6peFjPqrrphuzcV4JUJPy0nDAOSH1h3PtxT10nllAGyQ/XDU+x6uDBRxaYK3daM jHiVkXyUNrnvkwC22dF7nXXenRvLH8bwupoGiyYmcqCKGVyWKh5vqKZwmrFUinnUEG zN3AWY6dxB5s4jKJ4/0AWE44nrh2eKoC9GYwu+RxOrWo5Kn4TqeH+PuRyASNo/BsEr DFIynW+U7qCKNLoKssZaHuwn47aj6SkHmJNIrvRYLxYIS7htKnZYGTHAmhRlOyyR/F mSq0HZHgANpaeqrFpPdPBXfnPckj1NLr4J56P/QsUUXd2akbcBUNu8A7WyGYXmoq0G AI8qnvjl6knNg== Received: by wens.tw (Postfix, from userid 1000) id 473345FCC8; Tue, 4 May 2021 16:36:23 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Heiko Stuebner Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: rockchip: rk3328: Enable USB3 Ethernet on NanoPi R2S Date: Tue, 4 May 2021 16:36:16 +0800 Message-Id: <20210504083616.9654-5-wens@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210504083616.9654-1-wens@kernel.org> References: <20210504083616.9654-1-wens@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_013626_150711_C821A4B3 X-CRM114-Status: GOOD ( 14.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai The NanoPi R2S has a Realtek RTL8153B USB 3.0 Ethernet chip connected to the USB 3.0 pins of the RK3328 SoC. Power to the chip is controlled by a GPIO line toggled transistor switch, which is not a full-blown voltage regulator. At least in Linux, the USB 3.0 XHCI controller has two ports: the first port is for legacy USB 2.0 and slower, while the second port is for USB 3.0. Since the Ethernet chip supports USB 3.0, it should be described as connected to the second port. Add the device nodes for the power switch and Ethernet chip, and enable the USB 3.0 controller. The USB device node follows the standard USB device binding. Signed-off-by: Chen-Yu Tsai --- .../boot/dts/rockchip/rk3328-nanopi-r2s.dts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts index f807bc066ccb..64cf07ee3d10 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts @@ -14,6 +14,7 @@ / { compatible = "friendlyarm,nanopi-r2s", "rockchip,rk3328"; aliases { + ethernet1 = &rtl8153; mmc0 = &sdmmc; }; @@ -101,6 +102,18 @@ vdd_5v: vdd-5v { regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; + + vdd_5v_lan: vdd-5v-lan { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&lan_vdd_pin>; + pinctrl-names = "default"; + regulator-name = "vdd_5v_lan"; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vdd_5v>; + }; }; &cpu0 { @@ -309,6 +322,12 @@ wan_led_pin: wan-led-pin { }; }; + lan { + lan_vdd_pin: lan-vdd-pin { + rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>; @@ -368,6 +387,19 @@ &usb20_otg { dr_mode = "host"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + /* Second port is for USB 3.0 */ + rtl8153: device@2 { + compatible = "usbbda,8153"; + reg = <2>; + }; +}; + &usb_host0_ehci { status = "okay"; };