arm64: dts: imx8mq-librem5: description updates
Subsystems (2)
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
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
@@ -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
PATCH 2/4 arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level
In reply to Martin KepplingerFrom: 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
@@ -23,5 +23,5 @@ &lcd_panel { }; &proximity { - proximity-near-level = <5>; + proximity-near-level = <7>; };
Signature · 1 line
2.30.2
PATCH 3/4 arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source
In reply to Martin KepplingerFrom: 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
@@ -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
PATCH 4/4 arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms
In reply to Martin KepplingerFrom: 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
@@ -1394,7 +1394,7 @@ &usdhc2 { bus-width = <4>; vmmc-supply = <®_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
Shawn Guo
AppliedQuoted 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-onSebastian 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 to20ms
Applied all, thanks!