Compare commits

...
1 Commits
2 changed files with 123 additions and 1 deletions

No files matched your search

@@ -0,0 +1,120 @@
From 1ceedf09d201485d42281fde9040f483e80ef3e9 Mon Sep 17 00:00:00 2001
From: Leandro Friedrich <email@leandrofriedrich.de>
Date: Fri, 21 Apr 2023 23:05:00 +0200
Subject: [PATCH] leo: add wifi
---
...com-msm8974pro-sony-xperia-shinano-leo.dts | 76 +++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-leo.dts b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-leo.dts
index e18dbb217b0e..92d0dc297d71 100644
--- a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-leo.dts
+++ b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-leo.dts
@@ -58,6 +58,20 @@ key-volume-up {
wakeup-source;
};
};
+
+ vreg_wlan: wlan-regulator {
+ compatible = "regulator-fixed";
+
+ regulator-name = "wl-reg";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+
+ pinctrl-0 = <&wlan_regulator_pin>;
+ pinctrl-names = "default";
+ };
};
&blsp1_i2c6 {
@@ -121,6 +135,20 @@ gpio_keys_pin_a: gpio-keys-active-state {
bias-pull-up;
power-source = <PM8941_GPIO_S3>;
};
+
+ wlan_sleep_clk_pin: wl-sleep-clk {
+ pins = "gpio17";
+ function = "func2";
+ output-high;
+ power-source = <PM8941_GPIO_S3>;
+ };
+
+ wlan_regulator_pin: wl-reg-active {
+ pins = "gpio18";
+ function = "normal";
+ bias-disable;
+ power-source = <PM8941_GPIO_S3>;
+ };
};
&pm8941_lpg {
@@ -392,6 +420,28 @@ &sdhc_2 {
status = "okay";
};
+&sdhc_3 {
+ max-frequency = <100000000>;
+ vmmc-supply = <&vreg_wlan>;
+ non-removable;
+
+ pinctrl-0 = <&sdhc3_pin_a>;
+ pinctrl-names = "default";
+
+ status = "okay";
+
+ wifi@1 {
+ compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
+ reg = <1>;
+
+ brcm,drive-strength = <10>;
+
+ pinctrl-0 = <&wlan_sleep_clk_pin>;
+ pinctrl-names = "default";
+ };
+};
+
+
&smbb {
usb-charge-current-limit = <1500000>;
qcom,fast-charge-safe-current = <3000000>;
@@ -431,6 +481,32 @@ cmd-data-pins {
};
};
+ sdhc3_pin_a: sdhc3-pin-active {
+ clk {
+ pins = "gpio40";
+ function = "sdc3";
+
+ drive-strength = <10>;
+ bias-disable;
+ };
+
+ cmd {
+ pins = "gpio39";
+ function = "sdc3";
+
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ data {
+ pins = "gpio35", "gpio36", "gpio37", "gpio38";
+ function = "sdc3";
+
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+ };
+
ts_int_pin: ts-int-pin-state {
pins = "gpio86";
function = "gpio";
--
2.40.1
@@ -5,7 +5,7 @@ _config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=6.3.0
pkgrel=0
pkgrel=1
_tag="v$pkgver-msm8974"
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
arch="armv7"
@@ -31,6 +31,7 @@ makedepends="
source="
linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz
config-$_flavor.armv7
0001-leo-add-wifi.patch
"
builddir="$srcdir/linux-$pkgver-msm8974"
@@ -62,4 +63,5 @@ package() {
sha512sums="
825b7c247dcfcb1d24543e4801360e439e9fa33980d456c394a21110abee38f773d33b856a1528b1f65708f0a69862e74be850ec184c037702f9668527818823 linux-v6.3.0-msm8974.tar.gz
7fb5e74bb8e3beb31acedff1b9aea98d3370647833b93775aa7ba5edfeaeb3f49bd5db65741fcaf92cb2651f033b4bbeb3cdedff6ac6d7cca6493998f772d153 config-postmarketos-qcom-msm8974.armv7
98ea71a63f3d00bedbe445bdc56706165a09fcc1463427682252d0aef0dae90ef81b756445637282a9370c1658aed416208e360af794630291b11d85c08cc373 0001-leo-add-wifi.patch
"