Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3390334pxf; Mon, 5 Apr 2021 10:45:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0vIiyESIhLqjK2LpFZsFaHZ8l3jEoWGn0uSScfhBqv3rgluxNi/V4zs2fGkElnzXNU1Di X-Received: by 2002:a05:6e02:1306:: with SMTP id g6mr3816125ilr.97.1617644717168; Mon, 05 Apr 2021 10:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617644717; cv=none; d=google.com; s=arc-20160816; b=0Oai2eDxKijh+aekZoRWfdwxxLJcf9Omkx77id++bEPcYdEAbxhM7LXartw7CKrDxc vu/GREBs+aY+fz0Croe8O0obMbesetvYWd9lvAcfehyOtn3BMV7PaoZNH/wLLZ8wrRiz tOGZ+/Agld81f1SZE9g8Zgb6d809Kz1WJ+7Rx+O1ZsXIIzAcEQdp7SfT9KOWoqFu7xvR PszjQENeegG6hI4EBZCysWlWLMqv2a4U8bt6v+YbAqOtsJvvpodgkyUYUj4uBnAWXOUJ 0v0fAFYKgnyMsBLHjMadAJy56NSbwBnKd2F2iSnr3Po72RWCHCO5t5e3kcT05hKUv9n+ mRCg== 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=pI6wpbyKAKJr8u5bwRwqEtouNzQI7RRIJklwhnvlD+8=; b=NdjBXHeiC8x+Xu2nXsMgK+1v23NAxr1me1VRyU3lmOmT/heU83I31RKexovJFCoys8 /gWPavtxqibhU+iUBmz/LVZ+0kzx1/M9w2uZCVtS9YMMdUpieEfmwTG3CaHAGcXJ7wFV F8Pp3hBjirZyyfhCGLSX98CEgI0NKPGKIUH7FhQCyrLdmJHL37BjRLCG/L6jlK5z4jfR x62x7r0aAe974Ww1VvAlnWG+S25LObvVGhVKBz7uoh0Kh3yCaaZjComTRxcHOFaR9Www j/2C3WY/VX2WXoK29Kzurk2Ym7/B0WXViyIzcvQ5+79DiPKv9IpgracvHfzgYRky92IM iqMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qYhBPrIY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si15026884jak.86.2021.04.05.10.45.04; Mon, 05 Apr 2021 10:45:17 -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=@gmail.com header.s=20161025 header.b=qYhBPrIY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234609AbhDEJfy (ORCPT + 99 others); Mon, 5 Apr 2021 05:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232443AbhDEJfy (ORCPT ); Mon, 5 Apr 2021 05:35:54 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53712C061756; Mon, 5 Apr 2021 02:35:48 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id x16so11452810iob.1; Mon, 05 Apr 2021 02:35:48 -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=pI6wpbyKAKJr8u5bwRwqEtouNzQI7RRIJklwhnvlD+8=; b=qYhBPrIYDODOgyjH/fwTrHzmBbfhghAoDTSO07D8sO4DPgCJMqO+4FIQel/6Acj7ga w8rKjw0Weby3rw7lsReQ2ku34RCaNYQ0bjN9Q9fBQx8sh4vN+jB4sDDxDVaksh5lqtH5 7yphh8s4GT1sj4mHh5LnectyNus/NLFjTpSZOVq+QxADbXuauGmGrocv0dQ55PVbQSQf 8D7Sq8CBgx6mDDLuSc1kgM3mVT0HgFSVG1KfX20I7igiIjWtNC0R2b5txkO+Fo8lx726 dpSk8RqCPcbgxyK198DqVjnEfbEmH8YKjkpSLwaPFA08iu77PAm19nepstrEM6RMMt0a MyxA== 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=pI6wpbyKAKJr8u5bwRwqEtouNzQI7RRIJklwhnvlD+8=; b=ATfanEnlSkzCb0X5LFuAeCLZkV9sEThYgEf/Z7dZTMM9kYBWer9PFm/DHFOCG4pgZR elr9tOkUZcUggXQwEzSeG210jrm+yMp36Oj8XMGx2RqZmvtBizZ+g3pzaEZLm+zoWRUJ SnzD8NtVgdvZNTKKKFX7uNDCU4BeLqqwqSO/MqPGGe9VO/cXgr6KLB0p7kB2riFN4928 JNFBoBAwWqs+ZTCS8xlRL4QbpBEC7e+s0qtKDQDNPq4HDM6ID5XI+7OzuG1/YKJVwIyq q9t2Iir80P4Xq4MbKLjnBgsc9QVIXrRo+f9nGgrBnnzpJ7CQEGE8kFmriNwdVpzbKULR n2/g== X-Gm-Message-State: AOAM533G++bVeLxNhH+hluZlNmSiUWC2fri9y9yy0ieRQoNimJtkMdBl JlKREZt44eO6TwUGAAAllWpOiMB529vV4g== X-Received: by 2002:a05:6602:17cd:: with SMTP id z13mr19537547iox.109.1617615347695; Mon, 05 Apr 2021 02:35:47 -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 b9sm12027614ioz.49.2021.04.05.02.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 02:35:47 -0700 (PDT) From: Tianling Shen To: Rob Herring , Heiko Stuebner , Johan Jonker , David Bauer , Robin Murphy , Chen-Yu Tsai 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 v2] rockchip: enabled LAN port on NanoPi R2S Date: Mon, 5 Apr 2021 17:34:23 +0800 Message-Id: <20210405093423.16149-1-cnsztl@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 [added device node for USB Ethernet controller] Signed-off-by: Tianling Shen --- .../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 faf496d789cf..18936b393d9d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts @@ -13,6 +13,10 @@ model = "FriendlyElec NanoPi R2S"; compatible = "friendlyarm,nanopi-r2s", "rockchip,rk3328"; + aliases { + ethernet1 = &r8153; + }; + chosen { stdout-path = "serial2:1500000n8"; }; @@ -37,6 +41,16 @@ }; }; + 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"; + enable-active-high; + }; + leds { compatible = "gpio-leds"; pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>; @@ -265,6 +279,12 @@ }; }; }; + + usb { + rtl8153_en_drv: rtl8153-en-drv { + rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &io_domains { @@ -364,6 +384,18 @@ dr_mode = "host"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; + + r8153: usb-eth@2 { + compatible = "realtek,rtl8153"; + reg = <2>; + + local-mac-address = [ 00 00 00 00 00 00 ]; /* Filled in by U-Boot */ + }; +}; + &usb_host0_ehci { status = "okay"; }; -- 2.17.1