From patchwork Sat Nov 25 14:40:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13468578 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADCA1C4167B for ; Sat, 25 Nov 2023 14:41:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=/LvQTw4w8LA0n+UNOKiJm+Mi8CylH+U9+J7TIo5vIoI=; b=xptuy8chAwbL0M Sa5JJHtpPztp3LLtM/DoVNJoomPYIAl/Osr0zNOEmYIjwveesSo6NtMsN94rMVNNJhpdEKGst3Pz3 12vuYDrPzppi437poWR668G6843kchFvMQRQttZY9Lb0JC60MIwANRxvtg4Qzym0VDGc4YwM06lM4 vNY1U2asHyUnsGt2fcOFfhRrEtJUsL7s15xgS4rqOCFLoLrUbhrNzZkYR+5NisE5bOetvMWCLS1YN G4A3r3T2cUPGrERfMdEaTd00ePmRmq6cAt41VHvopn1ORgTAgzwMCqQLOb4yCTdVTJp9DpbpAQPPZ VOW+Exx/bTfmPmMRuriw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6tqW-009My5-1o; Sat, 25 Nov 2023 14:41:24 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6tq3-009Mc7-1V for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 14:40:56 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6c33ab26dddso2167583b3a.0 for ; Sat, 25 Nov 2023 06:40:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1700923253; x=1701528053; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M4ENEteNl+//2u346EvCiephALRIREObeECdE1r8+5c=; b=N2o6G7E7uDNhJyiX08bX17MEcc0haBrhsdGdio2Ys7gVIN+h64c4xm7pUzK6ic13Lt HSy1krjXaimYDjvao7wbw/VczzS7hw+HV/m8mqbPHYzLEeUzW7h2JtnXgqDkykpT1Nji sOy49ZSt9/Gok+phLRAjsileCGuzLz7A/W1xP1SzCX4MWHdJ4MpPmK8ZeZE4xq+Eh4Ki p4Vgrz3uMzgSoFOAcmxZ1yftkvlJqwCjDyQpcai5vcTeDz/7xjQ2rs70l2d8HnrbRcmv rtY/T3hSlMdZlPP/xEKzwn21N1CdbNiWK85Ni7Q1ETuqctdp94Lpwc9IGme2AKdz0o/2 mElA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700923253; x=1701528053; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M4ENEteNl+//2u346EvCiephALRIREObeECdE1r8+5c=; b=DNRKj4gNZNthY8SNFsqraBzXZpBW46RHfST6Im52/CucKdDU4dtZ484/uC2+XtmwdS qe2DWWTO2W41lwDohhvDpAC+zKOmcLQ32ufjVe5cqhsaS2jYfTOiy1AE+zON+6H0Iua4 iJvpKjaOPuKBR7JFze40CvXSoUFZcTqAeEKu2lQB3ChLpWvcjFcFUqdsLn5ELKAD39J7 hCPkN4fCGXD3ERymULwc272ySSLDCcF/OHQV/RAexASRRXUECe6/dWDeDk572JoPm6jm JhwaK7TT3vXKAg64nqf/VZoayUNhH6xAS+dcKCKIBj9A3o3QKD4gCleWS9Dh5KAVJLt5 WG+w== X-Gm-Message-State: AOJu0Yy8M7unZIlQ17i4j+4vXjzrNFcPSoGXrOv+Ma77fRH20ayotyDI H7iKvZty5ZUSO+Vqr70xiVbujg== X-Google-Smtp-Source: AGHT+IFftCuVyAW6J+Dwe4q2ltPuhl8xH27IdHvjzuJL/Qtuf5qo6hgwDMf4KO7KWUUT9q0Y4llbWQ== X-Received: by 2002:a05:6a21:3714:b0:18b:8147:91fb with SMTP id yl20-20020a056a21371400b0018b814791fbmr5185762pzb.19.1700923253487; Sat, 25 Nov 2023 06:40:53 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a208:d471:6d33:4b36:d85]) by smtp.gmail.com with ESMTPSA id h15-20020a17090aea8f00b002802d264240sm4817998pjz.29.2023.11.25.06.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:40:53 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Jagan Teki Subject: [PATCH 09/10] arm64: dts: rockchip: Add Edgeble NCM6A-IO USB2 Date: Sat, 25 Nov 2023 20:10:11 +0530 Message-Id: <20231125144012.58668-10-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231125144012.58668-1-jagan@edgeble.ai> References: <20231125144012.58668-1-jagan@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231125_064055_509620_8FA6CBE2 X-CRM114-Status: GOOD ( 12.92 ) 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 Edgeble NCM6A-IO board has 2 port USB2.0 Host and USB2.0 on E-Key. Add support for it. Signed-off-by: Jagan Teki --- .../dts/rockchip/rk3588-edgeble-neu6a-io.dtsi | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi index 77fafcdc6fdf..58ab6dcf691c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi @@ -48,6 +48,20 @@ vcc3v3_pcie3x4: vcc3v3-pcie30 { startup-delay-us = <5000>; vin-supply = <&vcc5v0_sys>; }; + + vcc5v0_host: vcc5v0-host-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_host_en>; + regulator-name = "vcc5v0_host"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <&vcc5v0_sys>; + }; }; &combphy0_ps { @@ -135,6 +149,12 @@ hym8563_int: hym8563-int { rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + usb { + vcc5v0_host_en: vcc5v0-host-en { + rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; /* FAN */ @@ -179,3 +199,38 @@ &uart7 { pinctrl-names = "default"; status = "okay"; }; + +&u2phy2 { + status = "okay"; +}; + +&u2phy2_host { + /* connected to USB hub, which is powered by vcc5v0_sys */ + phy-supply = <&vcc5v0_sys>; + status = "okay"; +}; + +&u2phy3 { + status = "okay"; +}; + +&u2phy3_host { + phy-supply = <&vcc5v0_host>; + status = "okay"; +}; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host0_ohci { + status = "okay"; +}; + +&usb_host1_ehci { + status = "okay"; +}; + +&usb_host1_ohci { + status = "okay"; +};