From patchwork Thu Oct 17 20:00:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 836156 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c9:0:b0:37d:45d0:187 with SMTP id f9csp503238wrt; Thu, 17 Oct 2024 13:01:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW7B3ocNFY7jD6ipXDw9BdpasgHg4r9jZZ+7zrl9lDQotT9uPMEW1/JWa+Sk3c7JfUMyAc/qA==@linaro.org X-Google-Smtp-Source: AGHT+IHhu5Rz19CriJ+slpADlFqqpZwZig/gfuSeLIEDM573hYWOEsv/zEdnSkNr2uiJ9bi0f86W X-Received: by 2002:a5e:dc47:0:b0:835:39a8:e201 with SMTP id ca18e2360f4ac-83aadcc6af7mr303431939f.0.1729195299598; Thu, 17 Oct 2024 13:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729195299; cv=none; d=google.com; s=arc-20240605; b=jy/GO69K9ACMHqfmnH1RevJ5bXAlPZzwYuhosHR+DDOd2Dtszu/BJm4P35KiPupTpI Duoqex7++IfmkQBocfaV4ErYtgL5dqkFRMQs8ZVxOW9xdeCb1+crK/O4W2Zo6di5wXbk ILRzZtCPO6rkqIBXh1g2njS8UxA23Lm3frcuDNb7APCKU4d0isTOIUAtTDHIH679mFLK q4gyxGi22sxFnR0Zihp4hB8BaIW5yWIJKzAZJRIQXe6Oy+EJDjCSGZCMMA7GKmy9BNCw wCV/Ej8nM8Sodeorvq5R6n0ooqB9d+hBZzd7T6nGVp+z4yV4EJH2njWgJ2O+GAUo0y5Q Ddzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NyZnlvVt1wPgtI+nPHMBVNC9S2WILG58vMjSRZpr+Hg=; fh=HIg4dYSQDj+PWlm5eDH87PNdarxIn5KutKC2ibKLJ08=; b=QpJTgVcJ24/0DFGkpJOnU/5qKYvJPji7V9itF/nu5TSxYzMgA9w3htHW6/z28d6o2b WHBfDF1qlbr+SRPm2+bvmQvVQxwumgx0zNXfHCrDw7sLKNTn+RSfmyYX1CXZN/nv8qfy 4k7FV+jYF3PYi2Uida5c+GgN0gU0EEBtiqJ+WGBEK5Q7uJREsQiWmbB0K82FhE6oMr4Q INQ1hGXl4eZIVu/uOBuWA78NyxLwORSbqZTnuKoVhg1AAHMdwwaiuV9mzTwINOiDB33V fElH8dUZehTsiy8rrXyUMZmYbICOadeK21j4iETx6slkvI0zLr2BRJmIVIlJuHk0ODfh 1M1w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=vChtcqEL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 8926c6da1cb9f-4dc10c6d728si49052173.193.2024.10.17.13.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 13:01:39 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=vChtcqEL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2E31890CE; Thu, 17 Oct 2024 22:01:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=kwiboo.se header.i=@kwiboo.se header.b="vChtcqEL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1EC2F890BE; Thu, 17 Oct 2024 22:01:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp.forwardemail.net (smtp.forwardemail.net [207.246.76.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9082789099 for ; Thu, 17 Oct 2024 22:01:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=SRS0=a54c=RO=kwiboo.se=jonas@fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1729195258; bh=NyZnlvVt1wPgtI+nPHMBVNC9S2WILG58vMjSRZpr+Hg=; b=vChtcqELH7G4aI4pIuGytrr0Xx6cFG78RAtaSTv1NXC65Mm8Ygfy4qESDz0uSiRr2lUnCILCB GPPxQbSN2Ky4S6vJXsZZsILZOKlyonQbd3RDEb1sZvnG8svG9W0J/k2ZCRYjDX7qqn6ETZO2t8c UPWKQsuYIWjO1qaLU10NRm52eZs5Y5ZpnT+w8DhrJCzE+M/3H+N505pp2gsaFMzVskaM3gkFvKS KfyC+NUQk2pqg8nOe1mKpbts5No/2w0kXlXCyeEBYr/poMh1TF2p9vBvEj4ir3/qF6hxT82+FS/ PF50bNfXrC2gY1r5J5MOusKpg2F3OoMogJV5Bq55sqRA== From: Jonas Karlman To: Kever Yang , Simon Glass , Philipp Tomsich , John Clark , Tom Rini , Sumit Garg Cc: Marcin Juszkiewicz , u-boot@lists.denx.de, Jonas Karlman , Heiko Stuebner Subject: [PATCH 3/8] arm64: dts: rockchip: add NanoPC-T6 LTS Date: Thu, 17 Oct 2024 20:00:22 +0000 Message-ID: <20241017200039.1235524-4-jonas@kwiboo.se> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241017200039.1235524-1-jonas@kwiboo.se> References: <20241017200039.1235524-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 67116cf86385e073f5ab13c9 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Marcin Juszkiewicz In the LTS (2310) version the miniPCIe slot got removed and USB 2.0 setup has changed. There are two external accessible ports and two ports on the internal header. There is an on-board USB hub which provides: - one external connector (bottom one) - two internal ports on pin header - one port for m.2 E connector The top USB 2.0 connector comes directly from the SoC. Signed-off-by: Marcin Juszkiewicz Link: https://lore.kernel.org/r/20240829-friendlyelec-nanopc-t6-lts-v6-4-edff247e8c02@linaro.org Signed-off-by: Heiko Stuebner [ upstream commit: db1dcbe5f752d423421f77d54d246398b196f670 ] (cherry picked from commit f4a834fbc8cdb40fddd63d083e8d1c6189ba62dc) Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- .../arm64/rockchip/rk3588-nanopc-t6-lts.dts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6-lts.dts diff --git a/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6-lts.dts b/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6-lts.dts new file mode 100644 index 000000000000..2d92bbb4027d --- /dev/null +++ b/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6-lts.dts @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2021 Rockchip Electronics Co., Ltd. + * Copyright (c) 2023 Thomas McKahan + * Copyright (c) 2024 Linaro Ltd. + * + */ + +/dts-v1/; + +#include "rk3588-nanopc-t6.dtsi" + +/ { + model = "FriendlyElec NanoPC-T6 LTS"; + compatible = "friendlyarm,nanopc-t6-lts", "rockchip,rk3588"; + + /* provide power for on-board USB 2.0 hub */ + vcc5v0_usb20_host: vcc5v0-usb20-host-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&usb20_host_pwren>; + pinctrl-names = "default"; + regulator-always-on; + regulator-boot-on; + regulator-max-microvolt = <5000000>; + regulator-min-microvolt = <5000000>; + regulator-name = "vcc5v0_usb20_host"; + vin-supply = <&vcc5v0_sys>; + }; +}; + +&pinctrl { + usb { + usb20_host_pwren: usb20-host-pwren { + rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&u2phy1 { + status = "okay"; +}; + +&u2phy1_otg { + status = "okay"; +}; + +&u2phy2_host { + phy-supply = <&vcc5v0_usb20_host>; +}; + +&usbdp_phy1 { + status = "okay"; +}; + +&usb_host1_xhci { + dr_mode = "host"; + status = "okay"; +};