From nobody Wed Oct 8 08:17:22 2025 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 DA75328C854; Mon, 30 Jun 2025 15:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751297824; cv=pass; b=KStVylcVDzpngFHj5oitC+YsTd+SkEL71Zo4A8sZIeLvezI6TD2fG7hIrzN4E8D1MHE3xFL3IE1FQRcpqUtzKlK+X+fZ/zVN8fOMJgczUXouVV/fjVnLu97tw3Tb+qEVodeHt3+C6QWCjIMFLXI0kKp0dyYVmDxkLa9yxdwOYkE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751297824; c=relaxed/simple; bh=itLltfQ5+J07v3tyVQMUtG4Cminx94qx+PhNlxaF+DY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UAoPxy919eDLuC0gaiR5BoLCnwbzffhV5uXvGysveIvh/CnAi8jYdZp0jrOhb7eNgMo7ggH1lcJ4aHtctBCX3aIPvt9FSgbTR7f1cQ1IopDeYFYPQ3X4fAnm57FhBPGseHnGwR42rLjzOzmThHYv4DmpCR/UDlHVjlsckgzRTgE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=C0qIcSgX; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="C0qIcSgX" ARC-Seal: i=1; a=rsa-sha256; t=1751297805; cv=none; d=zohomail.com; s=zohoarc; b=c30bn2kRQe+kHF0a5fjiGbGefd+J5bnPgFebggqvohGyd2hPWNvEK5943AQfllOP7lbJY2j378bASokshDacGIjcCH6Njydwjm/vvV7Wv1gAGFEnL+67ELHG3obfaMYS10+bQqWiga2JaPVDB93UjsV+exjYtPfQUathMC7Tf8c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751297805; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=j9GQKLguf1mAV7iA4o9HzpFt+9CePr8v5rNhiPiX5m0=; b=leNmZK2qTURJXbjcHDg5uZwU2RMI/kbyXSg4yJoLgaGUPlPJDZKZkDRfFgFK4xriV2CLfzEWOGWA7VxQ40rOLx2dFmjQkdDfvQNE8ZwSsyBXucHOFvmV39mH5avxocI96BZ+9drnckdExCg3gEguDurFYU5Vj0cCI5wNqGA+mp0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1751297805; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=j9GQKLguf1mAV7iA4o9HzpFt+9CePr8v5rNhiPiX5m0=; b=C0qIcSgXOpIGsZkN89Sp8Rg75Ms36o45KysoBaWXz8Xuo5RjJgGyG0FMkxvvlCQ9 k0eSrsHa3L2TWPy/nGPWFEtDENvLl1Vw468XBctqE3hwSyVHPR1auw6OKCH9KPkmqc/ AFb1pIqJZKP4WtbqipgmTHkfXk6nI5ZPnbHopS+0= Received: by mx.zohomail.com with SMTPS id 1751297804325888.6960560432937; Mon, 30 Jun 2025 08:36:44 -0700 (PDT) From: Nicolas Frattaroli Date: Mon, 30 Jun 2025 17:36:33 +0200 Subject: [PATCH 1/3] arm64: dts: rockchip: adjust dcin regulator on ROCK 4D Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250630-rock4d-reg-usb-wifi-v1-1-1057f412d98c@collabora.com> References: <20250630-rock4d-reg-usb-wifi-v1-0-1057f412d98c@collabora.com> In-Reply-To: <20250630-rock4d-reg-usb-wifi-v1-0-1057f412d98c@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Nicolas Frattaroli X-Mailer: b4 0.14.2 The ROCK 4D's actual DC input is 5V, and the schematic names it as being 5V as well. Rename the regulator, and change the voltage it claims to be at. Furthermore, fix vcc_1v1_nldo_s3's vin-supply as coming from vcc_5v0_sys, and not the DCIN, as per the schematic. This makes no functional change; both regulators are always on, and one feeds into the other. Signed-off-by: Nicolas Frattaroli --- arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts b/arch/arm64/b= oot/dts/rockchip/rk3576-rock-4d.dts index 6756403111e704cad42f6674d5ab55eb0306f1e3..352e3df165688219bfedc19734d= 9eb32c547ec44 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts +++ b/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts @@ -57,13 +57,13 @@ user-led { }; }; =20 - vcc_12v0_dcin: regulator-vcc-12v0-dcin { + vcc_5v0_dcin: regulator-vcc-5v0-dcin { compatible =3D "regulator-fixed"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt =3D <12000000>; - regulator-max-microvolt =3D <12000000>; - regulator-name =3D "vcc_12v0_dcin"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-name =3D "vcc_5v0_dcin"; }; =20 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { @@ -166,7 +166,7 @@ vcc_5v0_device: regulator-vcc-5v0-device { regulator-min-microvolt =3D <5000000>; regulator-max-microvolt =3D <5000000>; regulator-name =3D "vcc_5v0_device"; - vin-supply =3D <&vcc_12v0_dcin>; + vin-supply =3D <&vcc_5v0_sys>; }; =20 vcc_5v0_host: regulator-vcc-5v0-host { @@ -190,7 +190,7 @@ vcc_5v0_sys: regulator-vcc-5v0-sys { regulator-min-microvolt =3D <5000000>; regulator-max-microvolt =3D <5000000>; regulator-name =3D "vcc_5v0_sys"; - vin-supply =3D <&vcc_12v0_dcin>; + vin-supply =3D <&vcc_5v0_dcin>; }; }; =20 --=20 2.50.0 From nobody Wed Oct 8 08:17:22 2025 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 65CB528FFFB; Mon, 30 Jun 2025 15:37:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751297829; cv=pass; b=KvFLxSskyS6W2kWnY+JK54Tea8lAO9E3955zQKHO2Ewe0l/PHUZWtkv68Fpd1DfJRf2erVEafSR0sMfLVbmsi2hQ2BMnhoZwqsEw59Fm+2uyiVnJGZZ2+bo/MwS45SGPZhfSSYRmGhQa3KBXCEdrMKAGJ+wVpXusw/HA8j8IrNw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751297829; c=relaxed/simple; bh=YU/Z+9agLAWqFJU3lpZ2vtyfL8pPcqzPSLXgf5oizrY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iqqNQzkuOcRhdx2NlNNhwpHxGvWmOQSuVRtZqWG34xmYgcxz5ftyuCZ4grZBtLJSeyBR+9hXkHZLT9flsOFmD8ZHw2rS5eL50UxpXc/ZVbIZaX00E2x0qO0DL+/zNzMaAW+qhnqjABV4yS7Km+GHdOxIW6pi/rFJ0S4fMkHjLac= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=KqJ9LBf3; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="KqJ9LBf3" ARC-Seal: i=1; a=rsa-sha256; t=1751297809; cv=none; d=zohomail.com; s=zohoarc; b=fcmnJxw89CijL3dQAiVqrbC3o+mSiPlb1gYaPODOuAZahrqXh9Q7MJljPbl44c3H/s3kbDYiCDMzkZkdxKrwN7xZPRlE1Yecxe5+RwhFTezM7jcr+9O1u4syuMyDRpjT4aP71sTEJLMyU/uWbpi++7xMfctgSDv6bkYH46z826s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751297809; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=c1YGdk2ZohmIABV7Pc0xmFdEGzRW5c9+R0A8R/9CkYc=; b=BPP1iDvvCXrrHNJkMnE4/qjD5+IbRSfoot+73k/vBhYIHSffcEY6FukWmLMDlXtoOWnLzYiJa59ya9G10YL5Yt0uGfDPV1tzgX0jr9Sgxzr/8VzzcmXr46kNLj0iWXyT91JmTCBPueM829ZjIaJJc4nStXYDDjsUHQ9gtCTucxE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1751297809; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=c1YGdk2ZohmIABV7Pc0xmFdEGzRW5c9+R0A8R/9CkYc=; b=KqJ9LBf36QU99xqK9haLS0d6mQ8XIfJD3kVIrNtDq+I3TaZvYX6jgdjABgiRdLAh 5tBfT9rky1ou9xADQ86BCgcetbK+TAAv4c6ND92/45/m26CfeLGb7VckzJFa/HVh/Nd +7cIqMrNdv8MA2GH7ez/oa/PvfkVavXz4vPQ+SQw= Received: by mx.zohomail.com with SMTPS id 1751297807261784.8387235480643; Mon, 30 Jun 2025 08:36:47 -0700 (PDT) From: Nicolas Frattaroli Date: Mon, 30 Jun 2025 17:36:34 +0200 Subject: [PATCH 2/3] arm64: dts: rockchip: complete USB nodes on ROCK 4D Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250630-rock4d-reg-usb-wifi-v1-2-1057f412d98c@collabora.com> References: <20250630-rock4d-reg-usb-wifi-v1-0-1057f412d98c@collabora.com> In-Reply-To: <20250630-rock4d-reg-usb-wifi-v1-0-1057f412d98c@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Nicolas Frattaroli X-Mailer: b4 0.14.2 The ROCK 4D uses both USB controllers, and both of which in host mode. However, it still names one of the supplies for them "OTG" in the schematic. Fix the "host" supply's input, and add the "otg" supply. Enable the remaining USB PHY nodes, and the first controller node as well. Signed-off-by: Nicolas Frattaroli --- arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts | 41 +++++++++++++++++++++= ++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts b/arch/arm64/b= oot/dts/rockchip/rk3576-rock-4d.dts index 352e3df165688219bfedc19734d9eb32c547ec44..ed8b018539acb77328627c24b88= a5a220fe085d2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts +++ b/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts @@ -180,7 +180,21 @@ vcc_5v0_host: regulator-vcc-5v0-host { regulator-min-microvolt =3D <5000000>; regulator-max-microvolt =3D <5000000>; regulator-name =3D "vcc5v0_host"; - vin-supply =3D <&vcc_5v0_device>; + vin-supply =3D <&vcc_5v0_sys>; + }; + + vcc_5v0_otg: regulator-vcc-5v0-otg { + compatible =3D "regulator-fixed"; + enable-active-high; + gpios =3D <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usb_otg_pwren>; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-name =3D "vcc5v0_otg"; + vin-supply =3D <&vcc_5v0_sys>; }; =20 vcc_5v0_sys: regulator-vcc-5v0-sys { @@ -682,7 +696,11 @@ pcie_pwren: pcie-pwren { =20 usb { usb_host_pwren: usb-host-pwren { - rockchip,pins =3D <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; + rockchip,pins =3D <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>; + }; + usb_otg_pwren: usb-otg-pwren { + rockchip,pins =3D <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>; + }; }; }; @@ -721,15 +739,34 @@ &u2phy0 { status =3D "okay"; }; =20 +&u2phy0_otg { + phy-supply =3D <&vcc_5v0_otg>; + status =3D "okay"; +}; + &u2phy1 { status =3D "okay"; }; =20 +&u2phy1_otg { + phy-supply =3D <&vcc_5v0_host>; + status =3D "okay"; +}; + &uart0 { pinctrl-0 =3D <&uart0m0_xfer>; status =3D "okay"; }; =20 +&usbdp_phy { + status =3D "okay"; +}; + +&usb_drd0_dwc3 { + dr_mode =3D "host"; + status =3D "okay"; +}; + &usb_drd1_dwc3 { dr_mode =3D "host"; status =3D "okay"; --=20 2.50.0 From nobody Wed Oct 8 08:17:22 2025 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 57F7E28ECF5; Mon, 30 Jun 2025 15:37:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751297830; cv=pass; b=d8ZNAQwr02KCRc5NeoiwuhL5K/UWIMbQJg5/SkjEIssg2WeNZmag/hSvzyaLlx08Vvv4e5CnMT4txMUQPJG3XSjrAoWybnoy0aje5nVthbCIb+dLC4RWD/wnJbRRwh3yN0KO9MrjwMxx1eAzHRCwxhxHuZVrpEZjOUBI45NrZKs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751297830; c=relaxed/simple; bh=JKmV6Ad2IrDsWdsxwIjzgxPx/Lk5IHZEX1zBLgerrlM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RNShuyUCWXkVCEXeO+f8IfxAlPxAecApP64QhAVUawYf7Xn898EuU2suSYkiqep/oaKguW/3gjWrOHXzwn4SleaJJ/MHSXjRfOHAxT8DtXYijyYth5m9oK24IJeMVJWU7AQ+IHtfQ/p9gNQFDj8pnvvm5Bo/7qB5ALaiuLyD798= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=lHu1l7Kw; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="lHu1l7Kw" ARC-Seal: i=1; a=rsa-sha256; t=1751297811; cv=none; d=zohomail.com; s=zohoarc; b=dFpvo546i+o+0y0ZvSbc31+hjS8gKxW1/ScGQz8pMXWQaUP6keGdnEXNn1vDQtnWxB2f6MezYHuD7ZmrNRYeHM72bxNK4YO+379tAwBUmk1YOZ+l/Meh9Z/QkCMIx48JMTBtEY80T8E9Jtwo5P3X1GN9JHGCBHNrEeGbzqYDew8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751297811; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=FOdigrsQQpd9WEDOm3Dn2iOG8VrxDhh0NLeJNZe4Nnc=; b=oJMTHy6RS+SNua2Oey07DPgnVQqj4kf5CLeMUyC4+aK+CRTFv7Zhb1iFKCj0+Phi+w3Qs2MjtLiFNboxCm6WTD/4VLpMdXH4fFaX/be4QAY008W5XXpzvvTuGAHSCpoNgt4CismBq+pERyf4vznU1CD5tVtObuu8VXM0Uw+3o8k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1751297811; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=FOdigrsQQpd9WEDOm3Dn2iOG8VrxDhh0NLeJNZe4Nnc=; b=lHu1l7KwuXmeDwZ2n6b+4WYUWxphCYFKunVzmOTwVc+4A3K6fky4lln7962lzB57 n9W8aY+0D2BwckIBtvr+sgDQ4brFosfJR6DARiRvAck6vTACN32VP/eQFXi82CBbhkQ QbiWHBkj8ReGiaTTE+WvuAkS3+gN+M0Xa1wFLTLI= Received: by mx.zohomail.com with SMTPS id 1751297810110842.1922689401597; Mon, 30 Jun 2025 08:36:50 -0700 (PDT) From: Nicolas Frattaroli Date: Mon, 30 Jun 2025 17:36:35 +0200 Subject: [PATCH 3/3] arm64: dts: rockchip: theoretically enable Wi-Fi on ROCK 4D Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250630-rock4d-reg-usb-wifi-v1-3-1057f412d98c@collabora.com> References: <20250630-rock4d-reg-usb-wifi-v1-0-1057f412d98c@collabora.com> In-Reply-To: <20250630-rock4d-reg-usb-wifi-v1-0-1057f412d98c@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Nicolas Frattaroli X-Mailer: b4 0.14.2 The production version of the ROCK 4D appears to sport a AICSEMI AIC8800D80 USB Wi-Fi + BT chipset. This chip does not yet have a mainline driver. Add the necessary rfkill node and wifi regulator node to at least make it show up in lsusb output. The regulator is set as always-on, as like 2 hours deep into debugging why onboard_usb_dev.c wouldn't try enabling the regulator the device needs to actually show up and thus bind to onboard_usb_dev.c, I decided that it's not worth the effort. Signed-off-by: Nicolas Frattaroli --- arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts | 30 +++++++++++++++++++++= ++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts b/arch/arm64/b= oot/dts/rockchip/rk3576-rock-4d.dts index ed8b018539acb77328627c24b88a5a220fe085d2..291b6e4ffdac86280280de49c30= de7ddde80462b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts +++ b/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts @@ -37,6 +37,14 @@ hdmi_con_in: endpoint { }; }; =20 + rfkill { + compatible =3D "rfkill-gpio"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_en_h>; + radio-type =3D "wlan"; + shutdown-gpios =3D <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>; + }; + leds: leds { compatible =3D "gpio-leds"; pinctrl-names =3D "default"; @@ -159,6 +167,19 @@ vcc_3v3_ufs_s0: regulator-vcc-ufs-s0 { vin-supply =3D <&vcc_5v0_sys>; }; =20 + vcc_3v3_wifi: regulator-vcc-3v3-wifi { + compatible =3D "regulator-fixed"; + enable-active-high; + gpios =3D <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usb_wifi_pwr>; + regulator-always-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-name =3D "vcc_3v3_wifi"; + vin-supply =3D <&vcc_3v3_s3>; + }; + vcc_5v0_device: regulator-vcc-5v0-device { compatible =3D "regulator-fixed"; regulator-always-on; @@ -703,6 +724,15 @@ usb_otg_pwren: usb-otg-pwren { =20 }; }; + + wifi { + usb_wifi_pwr: usb-wifi-pwr { + rockchip,pins =3D <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_down>; + }; + wifi_en_h: wifi-en-h { + rockchip,pins =3D <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; }; =20 &sdmmc { --=20 2.50.0