linux-postmarketos-grate: fix WiFi on microsoft-surface-rt

Ref: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3786
This commit is contained in:
Arnav Singh 2025-10-12 14:15:22 -07:00
parent 87edfd6bb0
commit d2778cc698
No known key found for this signature in database
GPG key ID: 89A451A9C0E3AF0B
2 changed files with 69 additions and 2 deletions

View file

@ -0,0 +1,65 @@
From 14834398be0fcfb2f01bc714cc327b0257fcd35f Mon Sep 17 00:00:00 2001
From: Arnav Singh <me@arnavion.dev>
Date: Sun, 12 Oct 2025 13:54:17 -0700
Subject: [PATCH] ARM: tegra: fix wifi on Microsoft Surface RT
Restore properties from 6.6 version of this DT that are needed for
WiFi to work.
---
.../nvidia/tegra30-microsoft-surface-rt.dts | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/nvidia/tegra30-microsoft-surface-rt.dts b/arch/arm/boot/dts/nvidia/tegra30-microsoft-surface-rt.dts
index bb0d5b22d999..80860bdc0109 100644
--- a/arch/arm/boot/dts/nvidia/tegra30-microsoft-surface-rt.dts
+++ b/arch/arm/boot/dts/nvidia/tegra30-microsoft-surface-rt.dts
@@ -446,7 +446,7 @@ sdmmc1: mmc@78000000 {
vqmmc-supply = <&vddio_usd>;
};
- /* mrvl_wifi_pwrseq: pwrseq-wifi {
+ mrvl_wifi_pwrseq: pwrseq-wifi {
compatible = "mmc-pwrseq-simple";
clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
@@ -454,7 +454,7 @@ sdmmc1: mmc@78000000 {
post-power-on-delay-ms = <300>;
power-off-delay-us = <300>;
- }; */
+ };
sdmmc3: mmc@78000400 {
status = "okay";
@@ -472,9 +472,9 @@ sdmmc3: mmc@78000400 {
bus-width = <4>;
non-removable;
- // mmc-pwrseq = <&mrvl_wifi_pwrseq>; TODO
+ mmc-pwrseq = <&mrvl_wifi_pwrseq>;
// vmmc-supply TODO
- // vqmmc-supply TODO
+ vqmmc-supply = <&vqmmc_wifi_reg>;
/* Marvell 88W8797 WiFi */
wifi@1 {
@@ -799,6 +799,16 @@ vdd_usd: regulator-usd {
vin-supply = <&vdd_5v0_bat>;
};
+ vqmmc_wifi_reg: vddio-wifi {
+ compatible = "regulator-fixed";
+ regulator-name = "vqmmc_wifi";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-boot-on;
+ regulator-always-on;
+ vin-supply = <&vdd_5v0_sys>;
+ };
+
sound {
compatible = "microsoft,tegra-audio-wm8962-surface-rt",
"nvidia,tegra-audio-wm8962";
--
2.51.0

View file

@ -5,7 +5,7 @@
pkgname=linux-postmarketos-grate
pkgver=6.16.0
pkgrel=2
pkgrel=3
pkgdesc="Linux kernel with experimental patches for Tegra"
arch="armv7"
url="https://gitlab.com/grate-driver/linux"
@ -30,7 +30,8 @@ _tag="v${pkgver//_/-}-stable"
_carch="arm"
_config="config-$_flavor.$arch"
source="$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2
$_config"
$_config
0001-ARM-tegra-fix-wifi-on-Microsoft-Surface-RT.patch"
builddir="$srcdir/linux-$_tag"
prepare() {
@ -61,4 +62,5 @@ package() {
sha512sums="
f82b6736a1a4832bf12939a6d39ef11a4c1248491b77d031acd7712cd3e43016218a1e0b1944357e0c530db61d77b6d3404ca54da1a594b5fbddbf12cca2f449 linux-postmarketos-grate-v6.16.0-stable.tar.bz2
70d0752d5960756025e7df9367b9e1106132ef3f63c5b6dba96e853987158a9b882ddd0bc7ba304235b4d37afd9dc3824e607b9e87325e0002ab754cd2cb592c config-postmarketos-grate.armv7
0d12323fa469f87c3b801fb2088bb36ce1fbbbff22ffef010f1ae5f8a976af286d0fd7ad8e1ce2e5f677f873f0b7206700cf096ff4f0fb7523d7901e81b049a4 0001-ARM-tegra-fix-wifi-on-Microsoft-Surface-RT.patch
"