Re: [PATCH] dts: imx8mq-librem5: Don't wake up on volume key press

2024-06-10 Thread Martin Kepplinger
the > device. > > Signed-off-by: Guido Günther Reviewed-by: Martin Kepplinger thank you, martin > --- >  arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 -- >  1 file changed, 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx

Re: [PATCH] Revert "usb: dwc3: gadget: Prevent EP queuing while stopping transfers"

2021-04-02 Thread Martin Kepplinger
Am Donnerstag, dem 01.04.2021 um 11:09 -0700 schrieb Wesley Cheng: > > > On 4/1/2021 4:55 AM, Martin Kepplinger wrote: > > This reverts commit 9de47c3737e0c0207beb03615b320cabe495. > > > > Signed-off-by: Martin Kepplinger > > --- > > > &

[PATCH] Revert "usb: dwc3: gadget: Prevent EP queuing while stopping transfers"

2021-04-01 Thread Martin Kepplinger
This reverts commit 9de47c3737e0c0207beb03615b320cabe495. Signed-off-by: Martin Kepplinger --- I more or less blindly report: commit 9de47c ("usb: dwc3: gadget: Prevent EP queuing while stopping transfers") results in the below error every time I connect the type-c connector t

[PATCH v2] Revert "usb: dwc3: gadget: Prevent EP queuing while stopping transfers"

2021-04-01 Thread Martin Kepplinger
8/0xb0 [ 51.149388] irq_thread+0x170/0x294 [ 51.149397] kthread+0x164/0x16c [ 51.149407] ret_from_fork+0x10/0x34 [ 51.149419] ---[ end trace 62c6cc2ebfb18047 ]--- Linus' tree isn't affected. Revert the change. Signed-off-by: Martin Kepplinger --- drivers/usb/dwc3/gadget.c | 11

Re: [PATCH v3 1/4] scsi: add expecting_media_change flag to error path

2021-03-29 Thread Martin Kepplinger
Am Sonntag, dem 28.03.2021 um 09:53 -0700 schrieb Bart Van Assche: > On 3/28/21 3:25 AM, Martin Kepplinger wrote: > > diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c > > index 08c06c56331c..c62915d34ba4 100644 > > --- a/drivers/scsi/scsi_error.c &

Re: [PATCH v3 0/4] scsi: add runtime PM workaround for SD cardreaders

2021-03-28 Thread Martin Kepplinger
Am Sonntag, dem 28.03.2021 um 10:58 -0400 schrieb Alan Stern: > On Sun, Mar 28, 2021 at 12:25:27PM +0200, Martin Kepplinger wrote: > > hi, > > > > In short: there are SD cardreaders that send MEDIA_CHANGED on > > (runtime) resume. We cannot use runtime PM with thes

[PATCH v3 3/4] scsi: sd: use expecting_media_change for BLIST_MEDIA_CHANGE devices

2021-03-28 Thread Martin Kepplinger
solution. To enable runtime PM for an SD cardreader (device number 0:0:0:0), do: echo 0 > /sys/module/block/parameters/events_dfl_poll_msecs echo 1000 > /sys/bus/scsi/devices/0:0:0:0/power/autosuspend_delay_ms echo auto > /sys/bus/scsi/devices/0:0:0:0/power/control Signed-off-by: Martin

[PATCH v3 1/4] scsi: add expecting_media_change flag to error path

2021-03-28 Thread Martin Kepplinger
ag. If set by a driver the one following MEDIA CHANGE unit attention will be ignored. Signed-off-by: Martin Kepplinger --- drivers/scsi/scsi_error.c | 36 +++- include/scsi/scsi_device.h | 1 + 2 files changed, 32 insertions(+), 5 deletions(-) diff --git

[PATCH v3 2/4] scsi: devinfo: add new flag BLIST_MEDIA_CHANGE

2021-03-28 Thread Martin Kepplinger
add a new flag for devices that issue MEDIA CHANGE unit attentions when actually no medium changed. Drivers can for example set the expecting_media_change device flag in order to ignore the next following MEDIA CHANGE unit attention. Signed-off-by: Martin Kepplinger --- include/scsi

[PATCH v3 4/4] scsi: devinfo: add BLIST_MEDIA_CHANGE for Ultra HS-SD/MMC usb cardreaders

2021-03-28 Thread Martin Kepplinger
This cardreader device issues a MEDIA CHANGE unit attention not only when actually a medium changed but also simply when resuming from suspend. (probably because the device can't know what happens during suspend and want to say "medium could have changed"). Signed-off-by: Ma

[PATCH v3 0/4] scsi: add runtime PM workaround for SD cardreaders

2021-03-28 Thread Martin Kepplinger
linux-pm list v2: https://lore.kernel.org/linux-scsi/20210112093329.3639-1-martin.kepplin...@puri.sm/ * move module parameter to sd * add Documentation v1: https://lore.kernel.org/linux-scsi/2021052029.28426-1-martin.kepplin...@puri.sm/T/ Martin Kepplinger (4): scsi: add expecting_media_

Re: [PATCH v2 0/3] scsi: add runtime PM workaround for SD cardreaders

2021-03-27 Thread Martin Kepplinger
Am Dienstag, dem 12.01.2021 um 10:33 +0100 schrieb Martin Kepplinger: > revision history > > v2: >  * move module parameter to sd >  * add Documentation > > v1: > https://lore.kernel.org/linux-scsi/2021052029.28426-1-martin.kepplin...@puri.sm/T/#t >

Re: [RFC 00/19] Rework support for i.MX8MQ interconnect with devfreq

2021-03-24 Thread Martin Kepplinger
Am Dienstag, dem 09.03.2021 um 13:43 +0200 schrieb Abel Vesa: > On 21-02-25 13:13:17, Martin Kepplinger wrote: > > On 23.02.21 18:20, Abel Vesa wrote: > > > On 21-02-22 17:03:13, Martin Kepplinger wrote: > > > > On 19.02.21 16:59, Abel Vesa wrote: > > > >

[PATCH v2 3/3] arm64: defconfig: Enable the Hantro decoder

2021-03-15 Thread Martin Kepplinger
From: Fabio Estevam Enable the Hantro decoder driver so it can be enabled by default on i.MX8M and Rockchip platforms. Signed-off-by: Fabio Estevam Reviewed-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v2 2/3] arm64: dts: imx8mq-librem5-r3: Mark buck3 as always on

2021-03-15 Thread Martin Kepplinger
e Dogwood batch. To workaround the i2c0 shutdown issue on Dogwood, this commit marks buck3 as always-on again - but only for Dogwood (r3). Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts | 4 1 file changed, 4 inse

[PATCH v2 1/3] arm64: dts: imx8mq-librem5: Hog the correct gpio

2021-03-15 Thread Martin Kepplinger
From: Guido Günther There was an additional alias in the specifier it hogged line 27 instead of line 1. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH v2 0/3] Librem 5 phone dts fixes

2021-03-15 Thread Martin Kepplinger
Two fixes for the Librem 5 phone descriptions and one resend of https://lore.kernel.org/linux-arm-kernel/20200915141622.14736-1-feste...@gmail.com/ that enables the hantro vpu staging driver. Feel free to ignore that one if we want to wait for it to be out of staging. revision history

[PATCH 3/3] arm64: defconfig: Enable the Hantro decoder

2021-03-11 Thread Martin Kepplinger
From: Fabio Estevam Enable the Hantro decoder driver so it can be enabled by default on i.MX8M and Rockchip platforms. Signed-off-by: Fabio Estevam Reviewed-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 0/3] Librem 5 phone dts fixes

2021-03-11 Thread Martin Kepplinger
Two fixes for the Librem 5 phone descriptions and one resend of https://lore.kernel.org/linux-arm-kernel/20200915141622.14736-1-feste...@gmail.com/ that enables the hantro vpu staging driver. Feel free to ignore that one if we want to wait for it to be out of staging. Fabio Estevam (1): arm64: d

[PATCH 2/3] arm64: dts: imx8mq-librem5-r3: Mark buck3 as always on

2021-03-11 Thread Martin Kepplinger
wood batch. To workaround the i2c0 shutdown issue on Dogwood, this commit marks buck3 as always-on again - but only for Dogwood (r3). Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts | 4 1 file changed, 4 insertions(+

[PATCH 1/3] arm64: dts: imx8mq-librem5: Hog the correct gpio

2021-03-11 Thread Martin Kepplinger
From: Guido Günther There was an additional alias in the specifier it hogged line 27 instead of line 1. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH] arm64: dts: imx8mq: remove SoC ID compatible

2021-03-09 Thread Martin Kepplinger
this reverts commit ce58459d8c7f4174e7b8a8ea903dd949631334a3 for imx8mq. this is most likely not the real fix but works around the problem I have (with v5.12-rc2) I want to report: [0.766925] SoC revision 0x21 [0.770286] imx8_soc_info soc@0: SoC revision via nvmem read failed: -517 This

[PATCH] Documentation: dynamic-debug-howto: fix example

2021-03-03 Thread Martin Kepplinger
dynamic debug is "expecting pairs of match-spec " so the example for all files of which the paths include "usb" there is "file" missing. Signed-off-by: Martin Kepplinger --- Documentation/admin-guide/dynamic-debug-howto.rst | 2 +- 1 file changed, 1 insertion(+

Re: [RFC 00/19] Rework support for i.MX8MQ interconnect with devfreq

2021-02-25 Thread Martin Kepplinger
On 23.02.21 18:20, Abel Vesa wrote: On 21-02-22 17:03:13, Martin Kepplinger wrote: On 19.02.21 16:59, Abel Vesa wrote: This has been on my queue for quite some time now. It is more of a proof-of-concept. This rework is done with the compatibility of future i.MX platforms in mind. For example

Re: [RFC 00/19] Rework support for i.MX8MQ interconnect with devfreq

2021-02-22 Thread Martin Kepplinger
On 19.02.21 16:59, Abel Vesa wrote: This has been on my queue for quite some time now. It is more of a proof-of-concept. This rework is done with the compatibility of future i.MX platforms in mind. For example, the i.MX8MP platform has multiple NoCs. This patchsets prepares the imx interconnect

[PATCH v3 5/5] arm64: dts: imx8mq-librem5-r2: set nearlevel to 120

2021-02-19 Thread Martin Kepplinger
On Birch I can never reach 220 and hence the display would never turn off. Tests suggest 120 to be a good threshold value for all Birch devices. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v3 1/5] arm64: dts: imx8mq-librem5-devkit: Drop buck3 startup-ramp-delay

2021-02-19 Thread Martin Kepplinger
From: Guido Günther The PMIC driver now sets appropriate default delays. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5

[PATCH v3 2/5] arm64: dts: librem5: Drop assigned-clocks from SAI2

2021-02-19 Thread Martin Kepplinger
From: Guido Günther IMX8MQ_AUDIO_PLL1 and IMX8MQ_AUDIO_PLL2 are setup to the same rates right on the clock controller. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch

[PATCH v3 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-02-19 Thread Martin Kepplinger
From: Angus Ainslie These sections should be read only as they contain important data. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v3 3/5] arm64: defconfig: Enable devfreq support for i.MX8MQ

2021-02-19 Thread Martin Kepplinger
From: Guido Günther This is needed to make DRAM frequency scaling via devfreq as used on the Librem 5 and Librem 5 Devkit. With the interconnect support enabled we now need imx devfreq on top to make this work. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger Reviewed-by

[PATCH v3 0/5] arm64: dts: librem5 phone and devkit dts and config updates

2021-02-19 Thread Martin Kepplinger
of the nor-flash Guido Günther (3): arm64: dts: imx8mq-librem5-devkit: Drop buck3 startup-ramp-delay arm64: dts: librem5: Drop assigned-clocks from SAI2 arm64: defconfig: Enable devfreq support for i.MX8MQ Martin Kepplinger (1): arm64: dts: imx8mq-librem5-r2: set nearlevel to 120 .../dts

[PATCH v2 5/5] arm64: dts: imx8mq-librem5-r2: set nearlevel to 120

2021-02-17 Thread Martin Kepplinger
On Birch I can never reach 220 and hence the display would never turn off. Tests suggest 120 to be a good threshold value for all Birch devices. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 3/5] arm64: defconfig: Enable devfreq support for i.MX8MQ

2021-02-17 Thread Martin Kepplinger
From: Guido Günther This is needed to make DRAM frequency scaling via devfreq as used on the Librem 5 and Librem 5 Devkit. With the interconnect support enabled we now need imx devfreq on top to make this work. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger Reviewed-by

[PATCH v2 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-02-17 Thread Martin Kepplinger
From: Angus Ainslie These sections should be read only as they contain important data. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- .../arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v2 1/5] arm64: dts: imx8mq-librem5-devkit: Drop buck3 startup-ramp-delay

2021-02-17 Thread Martin Kepplinger
From: Guido Günther The PMIC driver now sets appropriate default delays. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5

[PATCH v2 2/5] arm64: dts: librem5: Drop assigned-clocks from SAI2

2021-02-17 Thread Martin Kepplinger
From: Guido Günther IMX8MQ_AUDIO_PLL1 and IMX8MQ_AUDIO_PLL2 are setup to the same rates right on the clock controller. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch

[PATCH v2 0/5] arm64: dts: librem5 phone and devkit dts and config updates

2021-02-17 Thread Martin Kepplinger
(1): arm64: dts: librem5: protect some partitions of the nor-flash Guido Günther (3): arm64: dts: imx8mq-librem5-devkit: Drop buck3 startup-ramp-delay arm64: dts: librem5: Drop assigned-clocks from SAI2 arm64: defconfig: Enable devfreq support for i.MX8MQ Martin Kepplinger (1): arm64: dts

[PATCH 5/5] arm64: dts: imx8mq-librem5-r2: set nearlevel to 120

2021-02-08 Thread Martin Kepplinger
On Birch I can never reach 220 and hence the display would never turn off. Tests suggest 120 to be a good threshold value for all Birch devices. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-02-08 Thread Martin Kepplinger
From: Angus Ainslie These sections should be read only as they contain important data. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- .../arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH 2/5] arm64: dts: librem5: Drop assigned-clocks from SAI2

2021-02-08 Thread Martin Kepplinger
From: Guido Günther IMX8MQ_AUDIO_PLL1 and IMX8MQ_AUDIO_PLL2 are setup to the same rates right on the clock controller. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch

[PATCH 0/5] arm64: dts: librem5 phone and devkit dts and config updates

2021-02-08 Thread Martin Kepplinger
: defconfig: Enable devfreq support for i.MX8MQ Martin Kepplinger (1): arm64: dts: imx8mq-librem5-r2: set nearlevel to 120 .../dts/freescale/imx8mq-librem5-devkit.dts| 1 - .../boot/dts/freescale/imx8mq-librem5-r2.dts | 2 +- .../boot/dts/freescale/imx8mq-librem5.dtsi | 18

[PATCH 1/5] arm64: dts: imx8mq-librem5-devkit: Drop buck3 startup-ramp-delay

2021-02-08 Thread Martin Kepplinger
From: Guido Günther The PMIC driver now sets appropriate default delays. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5

[PATCH 3/5] arm64: defconfig: Enable devfreq support for i.MX8MQ

2021-02-08 Thread Martin Kepplinger
From: Guido Günther This is needed to make DRAM frequency scaling via devfreq as used on the Librem 5 and Librem 5 Devkit. With the interconnect support enabled we now need imx devfreq on top to make this work. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64

[PATCH] dt-bindings: mxsfb: Add interconnect bindings for LCDIF path

2021-01-27 Thread Martin Kepplinger
Add optional interconnect properties for the dram path requests. Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/display/fsl,lcdif.yaml | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/display/fsl,lcdif.yaml b/Documentation

Re: [PATCH] scsi_logging: print cdb into new line after opcode

2021-01-24 Thread Martin Kepplinger
On 23.01.21 04:09, Martin K. Petersen wrote: Ewan, sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 60 40 00 00 01 00 Print the cdb into a new line in any case, not only when cmd_len is greater than 16. The above example error will then read: sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 0

[PATCH] scsi_logging: print cdb into new line after opcode

2021-01-22 Thread Martin Kepplinger
example error will then read: sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 01 c0 09 00 00 00 08 00 Signed-off-by: Martin Kepplinger --- drivers/scsi/scsi_logging.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/scsi_logging.c b/drivers/scsi/scsi_logging.c

[PATCH] scsi: sd: print write through due to no caching mode page as warning

2021-01-22 Thread Martin Kepplinger
rive cache: write through Print these messages as warnings instead of errors. Signed-off-by: Martin Kepplinger --- drivers/scsi/sd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index e7c52d6df4dc..db0171c81c5b 100644 --- a/drivers

[PATCH v2 0/9] Config and devicetree updates for the Librem 5 phone

2021-01-18 Thread Martin Kepplinger
d usb-c chip as supplier for the charger arm64: dts: imx8mq-librem5: Add LCD_1V8 regulator Martin Kepplinger (4): arm64: dts: imx8mq-librem5: enable the LCD panel arm64: dts: imx8mq-librem5: set regulators boot-on dt-bindings: arm: fsl: Add the librem 5 Evergreen revision arm64: dts: Add Li

[PATCH v2 3/9] arm64: dts: imx8mq-librem5: Don't mark buck3 as always on

2021-01-18 Thread Martin Kepplinger
From: Guido Günther With the pmic driver fixed we can now shut off the regulator in the gpc. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH v2 4/9] arm64: dts: imx8mq-librem5: Add usb-c chip as supplier for the charger

2021-01-18 Thread Martin Kepplinger
From: Guido Günther The tps65982 feeds the bq25895 charge controller on the Librem 5. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq

[PATCH v2 7/9] arm64: dts: imx8mq-librem5: set regulators boot-on

2021-01-18 Thread Martin Kepplinger
Expect all those regulators to be turned on initially. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale

[PATCH v2 5/9] arm64: dts: imx8mq-librem5: Add LCD_1V8 regulator

2021-01-18 Thread Martin Kepplinger
From: Guido Günther It's a supply for to touch and LCD. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5

[PATCH v2 6/9] arm64: dts: imx8mq-librem5: enable the LCD panel

2021-01-18 Thread Martin Kepplinger
This enables the Librem5's ft8006p based LCD panel driven by the imx8mq's Northwest Logic DSI IP core and mxsfb display controller. Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi| 53 ++- 1 file changed, 51 insertions(+), 2 deletion

[PATCH v2 8/9] dt-bindings: arm: fsl: Add the librem 5 Evergreen revision

2021-01-18 Thread Martin Kepplinger
Add an entry for the Librem 5 phone, Evergreen revision which is supported by "r4". Schematics and more information can be found at https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger Reviewed-by: Krzysztof Kozlowski Acked-by: R

[PATCH v2 9/9] arm64: dts: Add Librem5 Evergreen

2021-01-18 Thread Martin Kepplinger
Add librem5-r4 with specifics to that revision like the near-level, battery and charger properties. For schematics and more information, see https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot

[PATCH v2 1/9] arm64: defconfig: Enable vibra-pwm

2021-01-18 Thread Martin Kepplinger
From: Guido Günther The haptic motor for the Librem 5 uses this. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger Reviewed-by: Krzysztof Kozlowski --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64

[PATCH v2 2/9] arm64: dts: imx8mq-librem5: Mark charger IRQ as High-Z

2021-01-18 Thread Martin Kepplinger
From: Guido Günther This is consistent with other IRQs and makes keeps currents low. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH v4 4/5] arm64: dts: imx8mq: Add interconnect for lcdif

2021-01-15 Thread Martin Kepplinger
On 15.01.21 10:47, Shawn Guo wrote: On Thu, Jan 07, 2021 at 01:17:53PM +0100, Martin Kepplinger wrote: Add interconnect ports for lcdif to set bus capabilities. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 7/9] arm64: dts: imx8mq-librem5: set regulators boot-on

2021-01-12 Thread Martin Kepplinger
Expect all those regulators to be turned on initially. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale

[PATCH 8/9] arm64: dts: Add Librem5 Evergreen

2021-01-12 Thread Martin Kepplinger
Add librem5-r4 with specifics to that revision like the near-level, battery and charger properties. For schematics and more information, see https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/Makefile

[PATCH 9/9] dt-bindings: arm: fsl: Add the librem 5 Evergreen revision

2021-01-12 Thread Martin Kepplinger
Add an entry for the Librem 5 phone, Evergreen revision which is supported by "r4". Schematics and more information can be found at https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/arm/fsl.yam

[PATCH 6/9] arm64: dts: imx8mq-librem5: enable the LCD panel

2021-01-12 Thread Martin Kepplinger
This enables the Librem5's ft8006p based LCD panel driven by the imx8mq's Northwest Logic DSI IP core and mxsfb display controller. Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi| 51 ++- 1 file changed, 49 insertions(+), 2 deletion

[PATCH 1/9] arm64: defconfig: Enable vibra-pwm

2021-01-12 Thread Martin Kepplinger
From: Guido Günther The haptic motor for the Librem 5 uses this. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 838301650a79

[PATCH 5/9] arm64: dts: imx8mq-librem5: Add LCD_1V8 regulator

2021-01-12 Thread Martin Kepplinger
From: Guido Günther It's a supply for to touch and LCD. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5

[PATCH 3/9] arm64: dts: imx8mq-librem5: Don't mark buck3 as always on

2021-01-12 Thread Martin Kepplinger
From: Guido Günther With the pmic driver fixed we can now shut off the regulator in the gpc. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH 0/9] Config and devicetree updates for the Librem 5 phone

2021-01-12 Thread Martin Kepplinger
usb-c chip as supplier for the charger arm64: dts: imx8mq-librem5: Add LCD_1V8 regulator Martin Kepplinger (4): arm64: dts: imx8mq-librem5: enable the LCD panel arm64: dts: imx8mq-librem5: set regulators boot-on arm64: dts: Add Librem5 Evergreen dt-bindings: arm: fsl: Add the librem 5 Ever

[PATCH 4/9] arm64: dts: imx8mq-librem5: Add usb-c chip as supplier for the charger

2021-01-12 Thread Martin Kepplinger
From: Guido Günther The tps65982 feeds the bq25895 charge controller on the Librem 5. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq

[PATCH 2/9] arm64: dts: imx8mq-librem5: Mark charger IRQ as High-Z

2021-01-12 Thread Martin Kepplinger
From: Guido Günther This is consistent with other IRQs and makes keeps currents low. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts

[PATCH v2 3/3] scsi: sd: Documentation: describe ignore_resume_medium_changed

2021-01-12 Thread Martin Kepplinger
Add notes about the new sd sysfs knob that works around problems with runtime PM for certain types of SD cardreaders. Signed-off-by: Martin Kepplinger --- Documentation/scsi/sd-parameters.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/scsi/sd

[PATCH v2 0/3] scsi: add runtime PM workaround for SD cardreaders

2021-01-12 Thread Martin Kepplinger
uggest adding a userspace knob. This way there's at least a chance to use runtime PM for sd cardreaders that send MEDIA_CHANGED. I'd appreciate any feedback. Martin Kepplinger (3): scsi: add expecting_media_change flag to error path scsi: sd: add ignore_resume_medium_changed disk setting

[PATCH v2 2/3] scsi: sd: add ignore_resume_medium_changed disk setting

2021-01-12 Thread Martin Kepplinger
Error -5 detected when updating journal superblock for sda1-8. Signed-off-by: Martin Kepplinger --- drivers/scsi/sd.c | 50 ++- drivers/scsi/sd.h | 1 + 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/s

[PATCH v2 1/3] scsi: add expecting_media_change flag to error path

2021-01-12 Thread Martin Kepplinger
ng. To enable runtime PM for an SD cardreader (here, device number 0:0:0:0), do the following: echo 0 > /sys/module/block/parameters/events_dfl_poll_msecs echo 1000 > /sys/bus/scsi/devices/0:0:0:0/power/autosuspend_delay_ms echo auto > /sys/bus/scsi/devices/0:0:0:0/power/control

Re: [PATCH 3/3] scsi: sd: add support for expect_media_change_suspend flag

2021-01-11 Thread Martin Kepplinger
On 11.01.21 16:20, Martin Kepplinger wrote: Make the sd driver act appropriately when the user has set expect_media_change_suspend for a device. Signed-off-by: Martin Kepplinger --- drivers/scsi/sd.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a

[PATCH 2/3] scsi: add expect_media_change_suspend sysfs device setting

2021-01-11 Thread Martin Kepplinger
Add a user-facing flag that sets expecting_media_change on runtime resume. That works around devices that send MEDIA_CHANGED when it actually is just resumed from suspend and the media can be expected not to have changed. Signed-off-by: Martin Kepplinger --- drivers/scsi/scsi_sysfs.c | 38

[PATCH 3/3] scsi: sd: add support for expect_media_change_suspend flag

2021-01-11 Thread Martin Kepplinger
Make the sd driver act appropriately when the user has set expect_media_change_suspend for a device. Signed-off-by: Martin Kepplinger --- drivers/scsi/sd.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index

[PATCH 1/3] scsi: add expecting_media_change flag to error path

2021-01-11 Thread Martin Kepplinger
ng. To enable runtime PM for an SD cardreader (here, device number 0:0:0:0), do the following: echo 0 > /sys/module/block/parameters/events_dfl_poll_msecs echo 1000 > /sys/bus/scsi/devices/0:0:0:0/power/autosuspend_delay_ms echo auto > /sys/bus/scsi/devices/0:0:0:0/power/control

[PATCH 0/3] scsi: add runtime PM workaround for SD cardreaders

2021-01-11 Thread Martin Kepplinger
I'd appreciate any feedback. Martin Kepplinger (3): scsi: add expecting_media_change flag to error path scsi: add expect_media_change_suspend sysfs device setting scsi: sd: add support for expect_media_change_suspend flag drivers/scsi/scsi_error.c | 36 +

Re: [PATCH v2 2/4] arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description

2021-01-11 Thread Martin Kepplinger
On 11.01.21 01:29, Shawn Guo wrote: On Tue, Dec 22, 2020 at 04:13:45PM +0100, Martin Kepplinger wrote: In order for the touchscreen interrupt line to work, describe it properly. Otherwise it can work if defaults are ok, but we cannot be sure. Fixes: 8f0216b006e5 ("arm64: dts: Add a device

[PATCH v4 3/5] dt-bindings: mxsfb: Add interconnect bindings for LCDIF path

2021-01-11 Thread Martin Kepplinger
Add optional interconnect properties for the dram path requests. Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/display/mxsfb.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mxsfb.txt b/Documentation/devicetree

[PATCH v4 2/5] arm64: dts: imx8mq: Add interconnect provider property

2021-01-11 Thread Martin Kepplinger
Add #interconnect-cells on main &noc so that it will probe the interconnect provider. Signed-off-by: Martin Kepplinger Acked-by: Georgi Djakov --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/

Re: [PATCH v4 0/5] imx8mq: updates for the interconnect fabric

2021-01-10 Thread Martin Kepplinger
On 11.01.21 05:51, Shawn Guo wrote: On Thu, Jan 07, 2021 at 01:17:49PM +0100, Martin Kepplinger wrote: revision history: v4: (thanks Shawn, Georgi and Greg) * reorder to have dt-bindings doc before code addition * add newline between dt nodes * removed "interconnect: imx8mq

Re: [PATCH] Revert "clk: imx: fix composite peripheral flags"

2021-01-07 Thread Martin Kepplinger
On 04.01.21 13:05, Abel Vesa wrote: On 20-12-31 17:33:40, Fabio Estevam wrote: Hi Martin, On Thu, Dec 31, 2020 at 11:22 AM Martin Kepplinger wrote: This reverts commit 936c383673b9e3007432f17140ac62de53d87db9. It breaks clock reparenting via devfreq on the imx8mq used in the Librem 5 phone

[PATCH v4 5/5] arm64: defconfig: Enable interconnect for imx8mq

2021-01-07 Thread Martin Kepplinger
Enable INTERCONNECT_IMX8MQ in order to make interconnect more widely available. Signed-off-by: Martin Kepplinger Acked-by: Georgi Djakov --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH v4 4/5] arm64: dts: imx8mq: Add interconnect for lcdif

2021-01-07 Thread Martin Kepplinger
Add interconnect ports for lcdif to set bus capabilities. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index

[PATCH v4 0/5] imx8mq: updates for the interconnect fabric

2021-01-07 Thread Martin Kepplinger
n...@puri.sm/T/#t thanks, martin Leonard Crestez (1): arm64: dts: imx8mq: Add NOC node Martin Kepplinger (4): arm64: dts: imx8mq: Add interconnect provider property dt-bindings: mxsfb: Add interconnect bindings for LCDIF path arm64: dts: imx8mq: Add interconnect for lcdif arm64: defco

[PATCH v4 3/5] dt-bindings: mxsfb: Add interconnect bindings for LCDIF path

2021-01-07 Thread Martin Kepplinger
Add optional interconnect properties for the dram path requests. Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/display/mxsfb.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mxsfb.txt b/Documentation/devicetree

[PATCH v4 2/5] arm64: dts: imx8mq: Add interconnect provider property

2021-01-07 Thread Martin Kepplinger
Add #interconnect-cells on main &noc so that it will probe the interconnect provider. Signed-off-by: Martin Kepplinger Acked-by: Georgi Djakov --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/

[PATCH v4 1/5] arm64: dts: imx8mq: Add NOC node

2021-01-07 Thread Martin Kepplinger
top. Signed-off-by: Leonard Crestez Signed-off-by: Martin Kepplinger Acked-by: Georgi Djakov --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 24 +++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale

[PATCH] Revert "clk: imx: fix composite peripheral flags"

2020-12-31 Thread Martin Kepplinger
from PM QoS (-16) Note that on the Librem 5 devkit that uses a different revision of the imx8mq SoC, the added flag does *not* break said clock reparenting so there might be subtle differences here. Signed-off-by: Martin Kepplinger --- drivers/clk/imx/clk-composite-8m.c | 1 - 1 file changed, 1

[PATCH v2 1/4] arm64: dts: imx8mq-librem5: add vin-supply to VDD_1V8

2020-12-22 Thread Martin Kepplinger
buck7 is the supply here. Also, fix alphabetical ordering. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64

[PATCH v2 4/4] arm64: dts: imx8mq-librem5-r3: workaround i2c1 issue with 1GHz cpu voltage

2020-12-22 Thread Martin Kepplinger
This is a workaround for a hardware bug in the r3 revision that basically would stop the system due to traffic on the i2c1 bus. A cpu voltage change would trigger such traffic and that's what is avoided in order to work around it. Signed-off-by: Martin Kepplinger --- arch/arm64/boo

[PATCH v2 3/4] arm64: dts: imx8mq-librem5: Move usdhc clocks assignment to board DT

2020-12-22 Thread Martin Kepplinger
According to commit e045f044e84e ("arm64: dts: imx8mq: Move usdhc clocks assignment to board DT") add the clocks assignment to imx8mq-librem5.dtsi too. Fixes: e045f044e84e ("arm64: dts: imx8mq: Move usdhc clocks assignment to board DT") Signed-off-by: Martin Kepplinger ---

[PATCH v2 0/4] small Librem 5 phone dts updates

2020-12-22 Thread Martin Kepplinger
revision history v2: (thanks Krzysztof) add Fixes tags and improve commit messages v1: https://lore.kernel.org/linux-arm-kernel/20201218103131.22013-1-martin.kepplin...@puri.sm/ Martin Kepplinger (4): arm64: dts: imx8mq-librem5: add vin-supply to VDD_1V8 arm64: dts: imx8mq

[PATCH v2 2/4] arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description

2020-12-22 Thread Martin Kepplinger
In order for the touchscreen interrupt line to work, describe it properly. Otherwise it can work if defaults are ok, but we cannot be sure. Fixes: 8f0216b006e5 ("arm64: dts: Add a device tree for the Librem 5 phone") Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freesc

[PATCH 3/4] arm64: dts: imx8mq-librem5: Move usdhc clocks assignment to board DT

2020-12-18 Thread Martin Kepplinger
According to commit e045f044e84e ("arm64: dts: imx8mq: Move usdhc clocks assignment to board DT") add the clocks assignment to imx8mq-librem5.dtsi too. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 1 file changed, 4 insertions(+) di

[PATCH 0/4] small Librem 5 phone dts updates

2020-12-18 Thread Martin Kepplinger
Some minor updates for the current hardware descriptions: Martin Kepplinger (4): arm64: dts: imx8mq-librem5: add vin-supply to VDD_1V8 arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description arm64: dts: imx8mq-librem5: Move usdhc clocks assignment to board DT arm64

[PATCH 4/4] arm64: dts: imx8mq-librem5-r3: workaround i2c1 issue with 1GHz cpu voltage

2020-12-18 Thread Martin Kepplinger
This is a workaround for a hardware bug in the r3 revision that basically would stop the system due to traffic on the i2c1 bus. A cpu voltage change would trigger such traffic and that's what is avoided in order to work around it. Signed-off-by: Martin Kepplinger --- arch/arm64/boo

[PATCH 2/4] arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description

2020-12-18 Thread Martin Kepplinger
Add the pinctrl description for the interrupt. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5

[PATCH 1/4] arm64: dts: imx8mq-librem5: add vin-supply to VDD_1V8

2020-12-18 Thread Martin Kepplinger
buck7 is the supply here. Also, fix alphabetical ordering. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64

[PATCH v3 3/6] arm64: dts: imx8mq: Add interconnect for lcdif

2020-12-10 Thread Martin Kepplinger
Add interconnect ports for lcdif to set bus capabilities. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index

  1   2   3   4   5   6   7   8   >