Skip to contentSkip to conversation

arm64: dts: imx8mq-librem5: description updates

PATCH Applied Martin Kepplinger 2 participants 6 messages Jul 17, 2023 – Jul 30, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: imx8mq-librem5: description updates

From: Martin Kepplinger <[email protected]>

hi Shaw and all interested,

This is another small but important round of hardware description updates for the Librem 5 phone. The first allows to use the display stack in the first place. The other 3 patches improve diplay-blanking when talking, enable fast charging when system-suspended, and faster system-resume.

thanks,

martin

Martin Kepplinger (1):
arm64: dts: imx8mq-librem5: set audio-1v8 always-on

Sebastian Krzyszkowiak (3):
arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level
arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source
arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to

    20ms
 arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 2 +-
 arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi   | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/4 arm64: dts: imx8mq-librem5: set audio-1v8 always-on

From: Martin Kepplinger <[email protected]>

Unfortunately the codec can't be switched off on it's own. It would ground the whole bus it's connected to (because of it's built-in diodes to VDD on i2c pins), making all the other devices on the same bus inaccessible:

[    0.237154] lm3692x 2-0036: Cannot read/clear faults: -11
[    0.242628] lm3692x 2-0036: Fail writing initialization values
[    0.286462] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@30800000/mipi-dsi@30a00000 to encoder None-34: -517

Work around this hardware limitation by keeping audio-1v8 enabled.

---
 arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +1 -0
index 38732579d13e9..ab47bdc35cebd 100644
@@ -91,6 +91,7 @@ reg_aud_1v8: regulator-audio-1v8 {
 		regulator-max-microvolt = <1800000>;
 		gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
+		regulator-always-on;
 	};
 
 	reg_mic_2v4: regulator-mic-2v4 {
Signature · 1 line
2.30.2
#2 lore raw

PATCH 2/4 arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level

In reply to Martin Kepplinger

From: Sebastian Krzyszkowiak <[email protected]>

There is at least one Evergreen phone out there that reports levels of 5-6 at rest: https://gitlab.gnome.org/GNOME/calls/-/issues/560

---
 arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts +1 -1
index 97577c0a77158..33f398b48119b 100644
@@ -23,5 +23,5 @@ &lcd_panel {
 };
 
 &proximity {
-	proximity-near-level = <5>;
+	proximity-near-level = <7>;
 };
Signature · 1 line
2.30.2
#3 lore raw

PATCH 3/4 arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source

In reply to Martin Kepplinger

From: Sebastian Krzyszkowiak <[email protected]>

This allows to wake up from system suspend on USB-C plug/unplug.

---
 arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +2 -0
index ab47bdc35cebd..3f251910b3949 100644
@@ -796,6 +796,8 @@ typec_pd: usb-pd@3f {
 		interrupt-parent = <&gpio1>;
 		interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
 		interrupt-names = "irq";
+		extcon = <&usb3_phy0>;
+		wakeup-source;
 
 		connector {
 			compatible = "usb-c-connector";
Signature · 7 lines
2.30.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw

PATCH 4/4 arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms

In reply to Martin Kepplinger

From: Sebastian Krzyszkowiak <[email protected]>

This appears to be enough for both Redpine and SparkLAN cards. Waiting for too long makes us waste time in resume from system suspend, so let's keep it as short as possible.

---
 arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +1 -1
index 3f251910b3949..e329c29f3f1c6 100644
@@ -1394,7 +1394,7 @@ &usdhc2 {
 	bus-width = <4>;
 	vmmc-supply = <&reg_wifi_3v3>;
 	mmc-pwrseq = <&usdhc2_pwrseq>;
-	post-power-on-delay-ms = <1000>;
+	post-power-on-delay-ms = <20>;
 	cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
 	max-frequency = <100000000>;
 	disable-wp;
Signature · 7 lines
2.30.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Applied
#5 lore raw
In reply to Martin Kepplinger
Quoted 13 lines · Martin Kepplinger

From: Martin Kepplinger <[email protected]>

hi Shaw and all interested,

This is another small but important round of hardware description updates for the Librem 5 phone. The first allows to use the display stack in the first place. The other 3 patches improve diplay-blanking when talking, enable fast charging when system-suspended, and faster system-resume.

thanks,

martin

Quoted 8 lines

Martin Kepplinger (1):
arm64: dts: imx8mq-librem5: set audio-1v8 always-on

Sebastian Krzyszkowiak (3):
arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level
arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source
arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to

    20ms

Applied all, thanks!