* [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates
@ 2023-07-17 10:00 Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 1/4] arm64: dts: imx8mq-librem5: set audio-1v8 always-on Martin Kepplinger
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Martin Kepplinger @ 2023-07-17 10:00 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, festevam
Cc: kernel, linux-imx, kernel, devicetree, linux-arm-kernel,
linux-kernel, phone-devel, Martin Kepplinger
From: Martin Kepplinger <martin.kepplinger@puri.sm>
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(-)
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/4] arm64: dts: imx8mq-librem5: set audio-1v8 always-on
2023-07-17 10:00 [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Martin Kepplinger
@ 2023-07-17 10:00 ` Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 2/4] arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level Martin Kepplinger
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Martin Kepplinger @ 2023-07-17 10:00 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, festevam
Cc: kernel, linux-imx, kernel, devicetree, linux-arm-kernel,
linux-kernel, phone-devel, Martin Kepplinger
From: Martin Kepplinger <martin.kepplinger@puri.sm>
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.
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
---
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
index 38732579d13e9..ab47bdc35cebd 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
@@ -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 {
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 2/4] arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level
2023-07-17 10:00 [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 1/4] arm64: dts: imx8mq-librem5: set audio-1v8 always-on Martin Kepplinger
@ 2023-07-17 10:00 ` Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 3/4] arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source Martin Kepplinger
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Martin Kepplinger @ 2023-07-17 10:00 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, festevam
Cc: kernel, linux-imx, kernel, devicetree, linux-arm-kernel,
linux-kernel, phone-devel, Sebastian Krzyszkowiak,
Martin Kepplinger
From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
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
Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
---
arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts
index 97577c0a77158..33f398b48119b 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts
@@ -23,5 +23,5 @@ &lcd_panel {
};
&proximity {
- proximity-near-level = <5>;
+ proximity-near-level = <7>;
};
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 3/4] arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source
2023-07-17 10:00 [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 1/4] arm64: dts: imx8mq-librem5: set audio-1v8 always-on Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 2/4] arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level Martin Kepplinger
@ 2023-07-17 10:00 ` Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 4/4] arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms Martin Kepplinger
2023-07-30 5:58 ` [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Shawn Guo
4 siblings, 0 replies; 6+ messages in thread
From: Martin Kepplinger @ 2023-07-17 10:00 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, festevam
Cc: kernel, linux-imx, kernel, devicetree, linux-arm-kernel,
linux-kernel, phone-devel, Sebastian Krzyszkowiak,
Martin Kepplinger
From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
This allows to wake up from system suspend on USB-C plug/unplug.
Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
---
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
index ab47bdc35cebd..3f251910b3949 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
@@ -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";
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 4/4] arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms
2023-07-17 10:00 [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Martin Kepplinger
` (2 preceding siblings ...)
2023-07-17 10:00 ` [PATCH v1 3/4] arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source Martin Kepplinger
@ 2023-07-17 10:00 ` Martin Kepplinger
2023-07-30 5:58 ` [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Shawn Guo
4 siblings, 0 replies; 6+ messages in thread
From: Martin Kepplinger @ 2023-07-17 10:00 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, festevam
Cc: kernel, linux-imx, kernel, devicetree, linux-arm-kernel,
linux-kernel, phone-devel, Sebastian Krzyszkowiak,
Martin Kepplinger
From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
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.
Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
---
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
index 3f251910b3949..e329c29f3f1c6 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
@@ -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;
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates
2023-07-17 10:00 [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Martin Kepplinger
` (3 preceding siblings ...)
2023-07-17 10:00 ` [PATCH v1 4/4] arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms Martin Kepplinger
@ 2023-07-30 5:58 ` Shawn Guo
4 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2023-07-30 5:58 UTC (permalink / raw)
To: Martin Kepplinger
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, festevam, kernel,
linux-imx, kernel, devicetree, linux-arm-kernel, linux-kernel,
phone-devel, Martin Kepplinger
On Mon, Jul 17, 2023 at 10:00:52AM +0000, Martin Kepplinger wrote:
> From: Martin Kepplinger <martin.kepplinger@puri.sm>
>
> 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
Applied all, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-07-30 5:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-17 10:00 [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 1/4] arm64: dts: imx8mq-librem5: set audio-1v8 always-on Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 2/4] arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 3/4] arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source Martin Kepplinger
2023-07-17 10:00 ` [PATCH v1 4/4] arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms Martin Kepplinger
2023-07-30 5:58 ` [PATCH v1 0/4] arm64: dts: imx8mq-librem5: description updates Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).