From patchwork Mon Apr 5 07:44:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 415445 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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 1A25DC433B4 for ; Mon, 5 Apr 2021 07:45:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D18E361278 for ; Mon, 5 Apr 2021 07:45:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232402AbhDEHpO (ORCPT ); Mon, 5 Apr 2021 03:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbhDEHpO (ORCPT ); Mon, 5 Apr 2021 03:45:14 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2623C061756; Mon, 5 Apr 2021 00:45:08 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id r17so1753455ilt.0; Mon, 05 Apr 2021 00:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=of0etr/M++Ql4TAEyEfHWlaTB4IzHPopxzN/wLtkswc=; b=C3SNREK/DkSyGjALgjOrLej4NAxb6RFe5Iupbzkxy4PLbZDXsclhP4SYHYyi9MdOcr u2wwBE/hcJRjDmPdcvRjzLPteARWGfWE6BOLjTa0CGQvenhI9TyP4fh2Axe+y1rUrc0P hByqlH3KpwZFDuzrGTMGM7z3C1lVBESWQIoa5V71PjDDh10x+dNxcR1DxkDWpf6BN/9I LXbR68UWEcobHJD2Sji61/lo8wFqizm1Bx7sfNniATakMNB+EiWCc4conuviqpGDW7/L oRWBYT2zPXFo1VeODylQTWvU09+pMtNMpf981HX0gcPRDzrH3xMdEwrqgIvaFJHGCE49 DVdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=of0etr/M++Ql4TAEyEfHWlaTB4IzHPopxzN/wLtkswc=; b=PAAPBKDsBKe5J4qPeTXPpHLH3pB0tC7Yfyl4tXzCpBOwSj7CJwZYXpv6+ShdhG7V7E jNwTdnCyse+FZgc0+YSMNGSL2m/9V5ow6/msUS9tDYlja3HVET7GgeBMknBnUfaWdVTP lZNNDA0rwjnv+3NC0NHqQ3qs9shZ4KIUVehiEhUxjUgESjUphj5tAE+ah2rbnDRr1lGc oIbiee0Mwz0lspmhk2V+wUuId3LClSVnPg4eDMUEAv4u95m32Om8IjdMUNwYA1KJYECU spBmcPf03LBLEHYuHl5VPfyOCDqfHBURmzZDP6RXNAUnMcKwNVrrnn/VZgSn2BGzrm/I /oNg== X-Gm-Message-State: AOAM531iEQVm+o2snfxAA53F5HuNYff+idQZFQQO1CLtA/SeQ96cwO0i 16fgSV+/Sznb3qC9y4CnCd0= X-Google-Smtp-Source: ABdhPJyGQ6UbGo7hPJmlb4jNG5lkMgpLnAcFgMz/JAmL6C/GatdZgiDn5/+W9rJVIQnSvqYIk0dKew== X-Received: by 2002:a05:6e02:80d:: with SMTP id u13mr19051712ilm.159.1617608708324; Mon, 05 Apr 2021 00:45:08 -0700 (PDT) Received: from localhost.localdomain (tunnel525895-pt.tunnel.tserv15.lax1.ipv6.he.net. [2001:470:c:1200::2]) by smtp.googlemail.com with ESMTPSA id x18sm11857686ior.10.2021.04.05.00.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 00:45:07 -0700 (PDT) From: Tianling Shen To: Rob Herring , Heiko Stuebner , Johan Jonker , David Bauer , Robin Murphy Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Tianling Shen Subject: [PATCH] rockchip: enabled LAN port on NanoPi R2S Date: Mon, 5 Apr 2021 15:44:59 +0800 Message-Id: <20210405074459.4217-1-cnsztl@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: David Bauer Enable the USB3 port on the FriendlyARM NanoPi R2S. This is required for the USB3 attached LAN port to work. Signed-off-by: David Bauer Signed-off-by: Tianling Shen --- .../boot/dts/rockchip/rk3328-nanopi-r2s.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts index faf496d789cf..6ba9799a95c5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts @@ -37,6 +37,18 @@ }; }; + vcc_rtl8153: vcc-rtl8153-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&rtl8153_en_drv>; + regulator-always-on; + regulator-name = "vcc_rtl8153"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + }; + leds { compatible = "gpio-leds"; pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>; @@ -265,6 +277,12 @@ }; }; }; + + usb { + rtl8153_en_drv: rtl8153-en-drv { + rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &io_domains { @@ -364,6 +382,11 @@ dr_mode = "host"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; };