From patchwork Fri Jan 12 09:46:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 187642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp65238dyc; Fri, 12 Jan 2024 01:50:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7kfuXtrxYjVXBICYZVShZS+X/unVwLbF1ubYLarfQgZSuy7sHD7yQANDOlkjOiq8WoOSY X-Received: by 2002:a05:620a:2986:b0:783:1cb5:a94a with SMTP id r6-20020a05620a298600b007831cb5a94amr1738007qkp.54.1705053007079; Fri, 12 Jan 2024 01:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705053007; cv=none; d=google.com; s=arc-20160816; b=F0z4Xc5hHWh0bwqFPFX1S8IlK3lUYnDZjpmPKahMlXpE0Oj3cfAa4o+hBpsH8hTjfE YiCxPLWhkQq+efVXIoc13lVMs1AJ8cHhSKi/jUy5SnNksPD1akn1vN56QJuspFzbEGdQ JhoZG5mPIkFYYUOkxomLcEfaLFb5Uzudp3F6WR1O07CZA8JT+RaH9bCr3Os2BKQQKo44 n/KaQIhkercrtrIT+A6qtDC2d9qYL8EmBkKoDvfxiMGVxSLrI/VE54XBcnsyGfeiWqER FH0bOK165acnnGyUDwbci1k+8vz2E+UXzEyhIxtca8jhg+Dd/TbrnxItYgetmulWRwN+ S8Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LuGD8K11CBQmIhdf5c6VYI6DkDR5nWH5KUeFpU0vuSA=; fh=jVP86127nqY6lQ2iFwv7XBo+ATUxJSI3LRZ9chA5Pqo=; b=TE5HqJnWuqCfiw4cVDsewaADCmiAyE78ksCp8bUkXIcKkD2RpSa8leSUK8HjpKkMX9 /ISkOAUhp6Nsj4ikt9xLHP0uKHYyI2GG6CYfcPKJ1xbLwtAVsSOcRbI9JUCHTPEKLn2+ OrBhXbmapVPhvQo1kUERyehkzOXUNcMRBaqbgZFApG5B8Ea3nH2nkP7LwB4aXB0wBeNM SHMgFJXnU+PIuMG3dIUcgWPdGGHvD3Lo2hXP8sMQTlShzkdxd8vbehIWjBRZLDLyxc5f 6vazTL6/CjKUjearO20t0ykEeZ0fsbBg0nQ6iKWanPHdG6mnb4RSGK5yvgelLk/LDZxD Wp7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=agvbrPbm; spf=pass (google.com: domain of linux-kernel+bounces-24511-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24511-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bj3-20020a05620a190300b007833cf5acbdsi2729773qkb.255.2024.01.12.01.50.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:50:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24511-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=agvbrPbm; spf=pass (google.com: domain of linux-kernel+bounces-24511-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24511-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7D4AE1C25008 for ; Fri, 12 Jan 2024 09:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B5336166C; Fri, 12 Jan 2024 09:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="agvbrPbm" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BA1E5FF09; Fri, 12 Jan 2024 09:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705052809; bh=g7FhaFbhntWGCCkCExT62675y5uul510eeZHjE0YvKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=agvbrPbm+dTH26Wq2f6dm860vARTYaN6RQxO5YqmnRqQVIINpjF4ag04/jXVzKjPG /DdQ60IIZmreQaezYQq4uLBpteVCLMLA5/KJ2f0DIPujUDluh+GNxVYU714Eh9cqWC AzKRqioua2HCef7AVtB28v5h1/RBYqY10s9l3GLUCfIw3YT3Y0mjyAcJqz0Up9gHTu ImJ7A6NgCh+hO/1/HEo9N280SMCFueKn/3swVGB9QfcyPymfGRHnVSMH5nrLG6ssy6 2lYQCTVfyJW0S4RvuEcpX//zgfky7tn7h6wWjpxR6TUc88LLowEt+zQbZswYWRfH/O jxI1MIBW1GWPA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id EFD153782031; Fri, 12 Jan 2024 09:46:48 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, nfraprado@collabora.com, macpaul.lin@mediatek.com, sean.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 11/15] arm64: dts: mediatek: radxa-nio-12l: Enable the USB XHCI controllers Date: Fri, 12 Jan 2024 10:46:28 +0100 Message-ID: <20240112094632.66310-12-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> References: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787877661988744641 X-GMAIL-MSGID: 1787877661988744641 Enable the three XHCI controllers found in the MT8395 SoC, used for both MT7921's Bluetooth (using USB 2.0) and external USB3 connectivity. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-radxa-nio-12l.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index dbde2c7b3c64..eafce9cb2598 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -651,3 +651,23 @@ &uart0 { pinctrl-names = "default"; status = "okay"; }; + +&xhci0 { + vusb33-supply = <&mt6359_vusb_ldo_reg>; + vbus-supply = <&otg_vbus_regulator>; + status = "okay"; +}; + +&xhci1 { + /* MT7921's USB Bluetooth has issues with USB2 LPM */ + usb2-lpm-disable; + vusb33-supply = <&mt6359_vusb_ldo_reg>; + vbus-supply = <&vsys>; + status = "okay"; +}; + +&xhci2 { + vusb33-supply = <&mt6359_vusb_ldo_reg>; + vbus-supply = <&vsys>; + status = "okay"; +};