Re: spmi: pmic-arb: Always allocate ppid_to_apid table

2017-07-09 Thread Luca Weiss
} > - > - pa->ppid_to_apid = devm_kcalloc(>dev, > - PMIC_ARB_MAX_PPID, > - sizeof(*pa->ppid_to_apid), > - GFP_KERNEL); >

Re: [v2] mmc: sdhci-msm: Optionally wait for signal level changes

2017-11-21 Thread Luca Weiss
"mmc: sdhci-msm: Add sdhci msm register write APIs > which wait for pwr irq") Signed-off-by: Bjorn Andersson > <bjorn.anders...@linaro.org> Tested-by: Luca Weiss <l...@z3ntu.xyz> > --- > > The offending patch is part of your v4.15 pull request, so please p

Re: spmi: pmic-arb: Always allocate ppid_to_apid table

2017-07-09 Thread Luca Weiss
PMIC_ARB_MAX_PPID, > - sizeof(*pa->ppid_to_apid), > - GFP_KERNEL); > - if (!pa->ppid_to_apid) { > - err = -ENOMEM; > - goto err_put_ctrl; > - } > } > > dev_info(>dev, "PMIC arbiter version %s (0x%x)\n", Tested-by: Luca Weiss

Re: [v2] mmc: sdhci-msm: Optionally wait for signal level changes

2017-11-21 Thread Luca Weiss
> which wait for pwr irq") Signed-off-by: Bjorn Andersson > Tested-by: Luca Weiss > --- > > The offending patch is part of your v4.15 pull request, so please pick > this up for the -rcs. > > Changes since v1: > - Fixed spelling of swichable... > > drive

Re: [PATCH 3/4] ARM: dts: qcom: msm8974-klte: add support for display

2021-01-24 Thread Luca Weiss
Hi Konrad, On Sonntag, 24. Jänner 2021 16:04:13 CET Konrad Dybcio wrote: > > + mdss@fd90 { > > + status = "ok"; > > + > > + mdp@fd90 { > > + status = "ok"; > > + }; > > + > > + dsi@fd922800 { > > + status =

Re: [PATCH v4 2/4] leds: Add driver for Qualcomm LPG

2020-10-07 Thread Luca Weiss
Hi Bjorn, On Mon Sep 28, 2020 at 8:15 PM, Bjorn Andersson wrote: > The Light Pulse Generator (LPG) is a PWM-block found in a wide range of > PMICs from Qualcomm. It can operate on fixed parameters or based on a > lookup-table, altering the duty cycle over time - which provides the > means for

[PATCH] drm/msm/adreno: fix probe without iommu

2020-09-11 Thread Luca Weiss
The function iommu_domain_alloc returns NULL on platforms without IOMMU such as msm8974. This resulted in PTR_ERR(-ENODEV) being assigned to gpu->aspace so the correct code path wasn't taken. Fixes: ccac7ce373c1 ("drm/msm: Refactor address space initialization") Signed-off-b

Re: [PATCH v6 2/4] leds: Add driver for Qualcomm LPG

2020-10-22 Thread Luca Weiss
ers/leds/Makefile|1 + > drivers/leds/leds-qcom-lpg.c | 1190 ++ > 3 files changed, 1200 insertions(+) > create mode 100644 drivers/leds/leds-qcom-lpg.c Tested on msm8974 (pm8941) on the Fairphone 2, works great there! Tested-by: Luca Weiss Regards Luca

Re: [PATCH] interconnect: qcom: msm8974: Don't boost the NoC rate during boot

2020-11-17 Thread Luca Weiss
of > any of the NoCs to fix the regression. > > Reported-by: Luca Weiss > Fixes: b1d681d8d324 ("interconnect: Add sync state support") > Signed-off-by: Georgi Djakov Tested-by: Luca Weiss > --- > drivers/interconnect/qcom/msm8974.c | 9 + > 1 file changed

Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-05-31 Thread Luca Weiss
On Freitag, 24. Mai 2019 11:20:01 CEST Maxime Ripard wrote: > > It would be great to drop the -keys from the compatible, and to > document the bindings > > Looks good otherwise > > Maxime Hi again, So I should just document the "allwinner,sun50i-a64-lradc" string in

Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels

2021-01-31 Thread Luca Weiss
Suggested-by: Rob Clark > Fixes: 2d99ced787e3d ("drm/msm: async commit support") > --- I've tested this now on fairphone-fp2 and lge-nexus5-hammerhead, works great! Tested-by: Luca Weiss Regards Luca

[PATCH] soc: qcom: ocmem: don't return NULL in of_get_ocmem

2021-01-30 Thread Luca Weiss
OCMEM driver") Signed-off-by: Luca Weiss --- drivers/soc/qcom/ocmem.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/ocmem.c b/drivers/soc/qcom/ocmem.c index 7f9e9944d1ea..f1875dc31ae2 100644 --- a/drivers/soc/qcom/ocmem.c +++ b/drivers/soc/qc

Re: [PATCH] ARM: dts: msm8974-FP2: add reboot-mode node

2019-07-13 Thread Luca Weiss
Hi Brian, how about something like that (formatting is surely broken because I'm not sending this with git-send-email^^)? I'd says this should be work fine with all devices as all modes are defined in the device-specific dts but the reg and offset values are in the board dts. Should I also add

[PATCH v2] ARM: dts: msm8974-FP2: add reboot-mode node

2019-07-13 Thread Luca Weiss
This enables userspace to signal the bootloader to go into the bootloader or recovery mode. The magic values can be found in both the downstream kernel and the LK kernel (bootloader). Reviewed-by: Brian Masney Signed-off-by: Luca Weiss --- Changes v1 -> v2: - Move the majority of the n

Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-05-24 Thread Luca Weiss
On May 20, 2019 1:07:42 PM GMT+02:00, Maxime Ripard > > > > > > wrote: > > >> >On Sat, May 18, 2019 at 07:09:30PM +0200, Luca Weiss wrote: > > >> >> Add a node describing the KEYADC on the A64. > > >> >> > > >> >

[PATCH 2/2] ARM: dts: msm8974-FP2: Increase load on l20 for sdhci

2019-09-26 Thread Luca Weiss
execution failed: -5 [ 137.569832] mmcblk0: error -110 requesting status [ 137.593558] mmcblk0: recovery failed! With this patch, there are no more sdhci errors and booting works fine. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 2 ++ 1 file changed, 2

[PATCH 1/2] ARM: dts: msm8974-FP2: Drop unused card-detect pin

2019-09-26 Thread Luca Weiss
The gpio is not used for SD card detection on the FP2. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974

Re: [PATCH] arm64: dts: sun50i-pinephone: add led flash

2020-07-29 Thread Luca Weiss
Hi Maxime, On Mittwoch, 29. Juli 2020 14:34:44 CEST Maxime Ripard wrote: > Hi! > > On Sat, Jul 25, 2020 at 01:08:12PM +0200, Luca Weiss wrote: > > All revisions of the PinePhone have an SGM3140 LED flash. The gpios were > > swapped on v1.0 of the board but this was fix

[PATCH] arm64: dts: sun50i-pinephone: add led flash

2020-07-25 Thread Luca Weiss
All revisions of the PinePhone have an SGM3140 LED flash. The gpios were swapped on v1.0 of the board but this was fixed in later revisions. Signed-off-by: Luca Weiss --- .../boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts | 5 + .../boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts | 5

[PATCH] ARM: dts: msm8974-FP2: add reboot-mode node

2019-06-20 Thread Luca Weiss
This enables userspace to signal the bootloader to go into the bootloader or recovery mode. The magic values can be found in both the downstream kernel and the LK kernel (bootloader). Signed-off-by: Luca Weiss --- Sidenote: Why are there no userspace tools to be found that support this? Anyways

[PATCH] media: ov5640: Add support for flash and lens devices

2019-06-21 Thread Luca Weiss
Parse async sub-devices related to the sensor by switching the async sub-device registration function. Signed-off-by: Luca Weiss --- drivers/media/i2c/ov5640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index

Re: [PATCH] ARM: dts: msm8974-FP2: add reboot-mode node

2019-06-21 Thread Luca Weiss
On Freitag, 21. Juni 2019 02:01:22 CEST you wrote: > I think that it makes sense to put this snippet in qcom-msm8974.dtsi > with a status of disabled, and then enable it in > qcom-msm8974-fairphone-fp2.dts like so: > > imem@fe805000 { > status = "ok"; > }; Do you want me to put the whole

[PATCH] ASoC: sunxi: sun50i-codec-analog: Add earpiece

2019-07-02 Thread Luca Weiss
This adds the necessary registers and audio routes to play audio using the Earpiece, that's supported on the A64. Signed-off-by: Luca Weiss --- So, first of all: This is my first audio patch and I hope I didn't make too many mistakes :) , especially with the routes at the bottom of the patch

Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-06-03 Thread Luca Weiss
On Montag, 3. Juni 2019 09:42:47 CEST Maxime Ripard wrote: > Hi, > > On Fri, May 31, 2019 at 12:27:55PM +0200, Luca Weiss wrote: > > On Freitag, 24. Mai 2019 11:20:01 CEST Maxime Ripard wrote: > > > It would be great to drop the -keys from the compatible, and to >

[PATCH] iio: light: stk3310: Add support for stk3335

2019-06-03 Thread Luca Weiss
From: Martijn Braam The stk3335 light/proximity sensor is similar to the stk3310 and stk3311 sensors and works with the stk3310 driver. Signed-off-by: Martijn Braam Signed-off-by: Luca Weiss --- drivers/iio/light/stk3310.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-06-04 Thread Luca Weiss
Add a node describing the KEYADC on the A64. Signed-off-by: Luca Weiss --- .../devicetree/bindings/input/sun4i-lradc-keys.txt| 1 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings

Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-06-04 Thread Luca Weiss
devicetree patch was squashed into the driver patch by the maintainer while merging. I'll fix this up asap. Luca On Dienstag, 4. Juni 2019 16:59:07 CEST Maxime Ripard wrote: > Hi Luca, > > On Tue, Jun 04, 2019 at 04:42:53PM +0200, Luca Weiss wrote: > > Add a node describing the KE

[PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node

2019-06-04 Thread Luca Weiss
Add a node describing the KEYADC on the A64. Signed-off-by: Luca Weiss --- Changes since v1: - Use a a64 compatible with a fallback to the a83t one (the A64 also uses a 3/4 voltage divider, as is the case with the A83T) - Correct the reg property (size 0x100 => 0x400) arch/arm64/boot/

[PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add A64 compatible

2019-06-04 Thread Luca Weiss
Add the A64 compatible with a fallback to the A83T compatible. Signed-off-by: Luca Weiss --- Changes from v1: - New patch. Document new compatible string. Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree

[PATCH 2/3] dt-bindings: iio: light: add stk33xx

2019-07-03 Thread Luca Weiss
Add binding documentation for the stk33xx family of ambient light sensors. Signed-off-by: Luca Weiss --- .../bindings/iio/light/stk33xx.yaml | 49 +++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/stk33xx.yaml diff

[PATCH 1/3] dt-bindings: Add vendor prefix for sensortek

2019-07-03 Thread Luca Weiss
Sensortek Technology Corp. produces Proximity Sensors with ALS and Accelerometers. Signed-off-by: Luca Weiss --- This patch series depends on "iio: light: stk3310: Add support for stk3335", that's curerntly in linux-next. Documentation/devicetree/bindings/vendor-prefixes.yaml | 2

[PATCH 3/3] iio: light: stk3310: Add device tree support

2019-07-03 Thread Luca Weiss
Add device tree support for the stk33xx family of ambient light sensors. Tested-by: Martijn Braam Signed-off-by: Luca Weiss --- drivers/iio/light/stk3310.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index b955183edfe8

[PATCH v2] ASoC: sunxi: sun50i-codec-analog: Add earpiece

2019-07-03 Thread Luca Weiss
This adds the necessary registers and audio routes to play audio using the Earpiece, that's supported on the A64. Signed-off-by: Luca Weiss --- Changes v1 -> v2: * Make the earpiece enable register a DAPM widget * Adjust the audio routes to include the new Earpiece Amp widget * Left/Right Ana

Re: [PATCH 12/15] arm64: dts: msm8974: thermal: Add interrupt support

2019-07-29 Thread Luca Weiss
On Freitag, 26. Juli 2019 00:18:47 CEST Amit Kucheria wrote: > Register upper-lower interrupt for the tsens controller. > > Signed-off-by: Amit Kucheria > --- > Cc: masn...@onstation.org > > arch/arm/boot/dts/qcom-msm8974.dtsi | 36 +++-- > 1 file changed, 19

Re: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support

2019-07-29 Thread Luca Weiss
On Montag, 29. Juli 2019 11:07:35 CEST Brian Masney wrote: > On Sat, Jul 27, 2019 at 12:58:54PM +0530, Amit Kucheria wrote: > > On Fri, Jul 26, 2019 at 4:59 PM Brian Masney wrote: > > > On Fri, Jul 26, 2019 at 04:40:16PM +0530, Amit Kucheria wrote: > > > > How well does cpufreq work on 8974? I

Re: [PATCH v3 2/3] Input: add a driver for GPIO controllable vibrators

2019-04-16 Thread Luca Weiss
On Freitag, 12. April 2019 19:43:52 CEST Stephen Boyd wrote: > Quoting Luca Weiss (2019-04-12 08:06:24) > > > diff --git a/drivers/input/misc/gpio-vibra.c > > b/drivers/input/misc/gpio-vibra.c new file mode 100644 > > index ..3fd2dfd4f670 > > --- /dev/nul

Re: [PATCH v3 1/3] dt-bindings: input: add GPIO controllable vibrator

2019-04-17 Thread Luca Weiss
On Freitag, 12. April 2019 17:06:23 CEST Luca Weiss wrote: > Provide a simple driver for GPIO controllable vibrators. > It will be used by the Fairphone 2. > > Signed-off-by: Luca Weiss > --- > .../bindings/input/gpio-vibrator.txt | 20 +++ >

[PATCH v5 1/3] dt-bindings: input: add GPIO controllable vibrator

2019-04-26 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss Reviewed-by: Rob Herring --- Changes for v5: - Simply compatible property definition - Remove reference to regulator schema .../bindings/input/gpio-vibrator.yaml | 37

[PATCH v5 3/3] ARM: dts: msm8974-FP2: Add vibration motor

2019-04-26 Thread Luca Weiss
Add a node describing the vibration motor on the Fairphone 2. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2

[PATCH v5 2/3] Input: add a driver for GPIO controllable vibrators

2019-04-26 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/gpio-vibra.c | 209 3 files changed

[PATCH v4 1/3] dt-bindings: input: add GPIO controllable vibrator

2019-04-20 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- Changes from v3: - Convert .txt based doc to the new yaml based format .../bindings/input/gpio-vibrator.yaml | 39 +++ 1 file changed, 39

[PATCH v4 3/3] ARM: dts: msm8974-FP2: Add vibration motor

2019-04-20 Thread Luca Weiss
Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 643c57f84818..bf402ae39226 100644 --- a/arch/arm

[PATCH v4 2/3] Input: add a driver for GPIO controllable vibrators

2019-04-20 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- Changes from v3: - Apply suggestions from Stephen Boyd drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/gpio-vibra.c

[PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-05-18 Thread Luca Weiss
Add a node describing the KEYADC on the A64. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 7734f70e1057

Re: [PATCH v2 2/3] Input: add a driver for GPIO controllable vibrators

2019-04-09 Thread Luca Weiss
200, Luca Weiss wrote: > > Provide a simple driver for GPIO controllable vibrators. > > It will be used by the Fairphone 2. > > > > Signed-off-by: Luca Weiss > > --- > > > > drivers/input/misc/Kconfig | 12 ++ > > drivers/input/misc/Makefi

[PATCH v2 3/3] ARM: dts: msm8974-FP2: Add vibration motor

2019-04-07 Thread Luca Weiss
Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 643c57f84818..bf402ae39226 100644 --- a/arch/arm

[PATCH v2 1/3] dt-bindings: input: add GPIO controllable vibrator

2019-04-07 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- Changes from v1: - Mark vcc-supply as optional .../bindings/input/gpio-vibrator.txt | 20 +++ 1 file changed, 20 insertions(+) create mode 100644

[PATCH v2 2/3] Input: add a driver for GPIO controllable vibrators

2019-04-07 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/gpio-vibra.c | 214 3 files changed

[PATCH v3 3/3] ARM: dts: msm8974-FP2: Add vibration motor

2019-04-12 Thread Luca Weiss
Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 643c57f84818..bf402ae39226 100644 --- a/arch/arm

[PATCH v3 2/3] Input: add a driver for GPIO controllable vibrators

2019-04-12 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/gpio-vibra.c | 209 3 files changed

[PATCH v3 1/3] dt-bindings: input: add GPIO controllable vibrator

2019-04-12 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- .../bindings/input/gpio-vibrator.txt | 20 +++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/gpio

[PATCH] drm/msm: Fix NULL pointer dereference

2019-03-02 Thread Luca Weiss
) [4.294933] ---[ end trace 18729cc2bca2b4b3 ]--- Signed-off-by: Luca Weiss --- drivers/gpu/drm/msm/msm_gem_vma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gem_vma.c b/drivers/gpu/drm/msm/msm_gem_vma.c index 49c04829cf34..fcf7a83f0e6f 100644

[PATCH 1/2] dt-bindings: input: add GPIO controllable vibrator

2019-03-02 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- .../devicetree/bindings/input/gpio-vibrator.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/gpio

[PATCH 2/2] Input: add a driver for GPIO controllable vibrators

2019-03-02 Thread Luca Weiss
Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/gpio-vibra.c | 214 3 files changed

[PATCH] ARM: dts: qcom: msm8974-hammerhead: add mount matrix for IMU

2021-04-03 Thread Luca Weiss
Configure the mount matrix to account for the sensor placement on the board. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot

Re: [PATCH 04/11] arm64: dts: qcom: pm7250b: make SID configurable

2023-09-11 Thread Luca Weiss
On Tue Sep 5, 2023 at 10:30 AM CEST, Luca Weiss wrote: > On Thu Aug 31, 2023 at 2:27 PM CEST, Dmitry Baryshkov wrote: > > On Thu, 31 Aug 2023 at 14:54, Krzysztof Kozlowski > > wrote: > > > > > > On 31/08/2023 13:33, Dmitry Baryshkov wrote: > > >

Re: [PATCH 04/11] arm64: dts: qcom: pm7250b: make SID configurable

2023-09-11 Thread Luca Weiss
On Mon Sep 11, 2023 at 11:44 AM CEST, Krzysztof Kozlowski wrote: > On 11/09/2023 10:34, Luca Weiss wrote: > > On Tue Sep 5, 2023 at 10:30 AM CEST, Luca Weiss wrote: > >> On Thu Aug 31, 2023 at 2:27 PM CEST, Dmitry Baryshkov wrote: > >>> On Thu, 31 Aug 2023

[PATCH 0/3] Add watchdog nodes to msm8226 & msm8974

2023-10-11 Thread Luca Weiss
amount of time. This behavior has been observed on both msm8974 and msm8226 smartphones. Signed-off-by: Luca Weiss --- Matti Lehtimäki (3): dt-bindings: watchdog: qcom-wdt: Add MSM8226 and MSM8974 compatibles ARM: dts: qcom: msm8226: Add watchdog node ARM: dts: qcom: msm8974: Add

[PATCH 3/3] ARM: dts: qcom: msm8974: Add watchdog node

2023-10-11 Thread Luca Weiss
From: Matti Lehtimäki Add watchdog for MSM8974 platform. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom/qcom

[PATCH 1/3] dt-bindings: watchdog: qcom-wdt: Add MSM8226 and MSM8974 compatibles

2023-10-11 Thread Luca Weiss
From: Matti Lehtimäki Add compatibles for the MSM8226 and MSM8974 platforms to the Qualcomm watchdog binding. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 2/3] ARM: dts: qcom: msm8226: Add watchdog node

2023-10-11 Thread Luca Weiss
From: Matti Lehtimäki Add watchdog for MSM8226 platform. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom

[PATCH] iommu/qcom: restore IOMMU state if needed

2023-10-11 Thread Luca Weiss
*dev) --- base-commit: 2933a1156742d8c47550493a77af8e2d81cf3c84 change-id: 20231011-msm8953-iommu-restore-fabc2e31fee7 Best regards, -- Luca Weiss

[PATCH 1/3] dt-bindings: vendor-prefixes: document HTC Corporation

2023-10-11 Thread Luca Weiss
Add the vendor prefix for HTC (https://www.htc.com/). Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[PATCH 3/3] ARM: dts: qcom: Add support for HTC One Mini 2

2023-10-11 Thread Luca Weiss
Add support for this smartphone based on the MSM8926 SoC, codenamed "memul". Supported functionality: * Power & volume buttons * ADSP * Magnetometer * Accelerometer * Touchscreen * Vibrator * Internal storage * SD card * Charger * USB Signed-off-by: Luca Weiss --- arch/arm

[PATCH 0/3] Add support for HTC One Mini 2 smartphone

2023-10-11 Thread Luca Weiss
, sorry) Signed-off-by: Luca Weiss --- Luca Weiss (3): dt-bindings: vendor-prefixes: document HTC Corporation dt-bindings: arm: qcom: Add HTC One Mini 2 ARM: dts: qcom: Add support for HTC One Mini 2 Documentation/devicetree/bindings/arm/qcom.yaml| 1 + .../devicetree/bindings/

[PATCH 2/3] dt-bindings: arm: qcom: Add HTC One Mini 2

2023-10-11 Thread Luca Weiss
Document the compatible for the MSM8926-based HTC One Mini 2 smartphone. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm

[PATCH 2/3] usb: typec: fsa4480: Add support to swap SBU orientation

2023-10-13 Thread Luca Weiss
parameter in the endpoint node to swap this in the driver. The parse_data_lanes_mapping function is mostly taken from nb7vpq904m.c. Signed-off-by: Luca Weiss --- drivers/usb/typec/mux/fsa4480.c | 81 + 1 file changed, 81 insertions(+) diff --git a/drivers/usb

[PATCH 1/3] dt-bindings: usb: fsa4480: Add data-lanes property to endpoint

2023-10-13 Thread Luca Weiss
Allow specifying data-lanes to reverse the SBU muxing orientation where necessary by the hardware design. Signed-off-by: Luca Weiss --- .../devicetree/bindings/usb/fcs,fsa4480.yaml | 29 +- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH 3/3] dt-bindings: usb: fsa4480: Add compatible for OCP96011

2023-10-13 Thread Luca Weiss
The Orient-Chip OCP96011 is generally compatible with the FSA4480, add a compatible for it with the fallback on fsa4480. However the AUX/SBU connections are expected to be swapped compared to FSA4480, so document this in the data-lanes description. Signed-off-by: Luca Weiss --- Documentation

[PATCH 0/3] Handle reversed SBU orientation for FSA4480

2023-10-13 Thread Luca Weiss
no reversing would be needed, as explained above. However I think the current solution with data-lanes in the endpoint is the best fit and is also already used for a similar purpose in another USB mux driver. Signed-off-by: Luca Weiss --- Luca Weiss (3): dt-bindings: usb: fsa4480: Add data-lanes

Re: [PATCH 1/4] iio: adc: Add PM7325 PMIC7 ADC bindings

2023-10-13 Thread Luca Weiss
On Fri Oct 13, 2023 at 10:38 AM CEST, Krzysztof Kozlowski wrote: > On 13/10/2023 10:09, Luca Weiss wrote: > > Add the defines for the ADC channels found on the PM7325. The list is > > taken from downstream msm-5.4 and adjusted for mainline. > > Please use subject prefixes m

[PATCH v2] soc: qcom: pmic_glink_altmode: Print return value on error

2023-10-17 Thread Luca Weiss
It can be useful to know with which return value for example the typec_retimer_set call failed, so include this info in the dev_err prints. Signed-off-by: Luca Weiss --- Changes in v2: - Add ret to print in more prints, not just typec_retimer_set (Bjorn) - Link to v1: https://lore.kernel.org/r

Re: [PATCH 2/3] usb: typec: fsa4480: Add support to swap SBU orientation

2023-10-17 Thread Luca Weiss
On Tue Oct 17, 2023 at 11:01 AM CEST, Heikki Krogerus wrote: > Hi Luca, > > On Fri, Oct 13, 2023 at 01:38:06PM +0200, Luca Weiss wrote: > > On some hardware designs the AUX+/- lanes are connected reversed to > > SBU1/2 compared to the expected design by FSA4480. > >

[PATCH] wifi: ath11k: Defer on rproc_get failure

2023-10-27 Thread Luca Weiss
e the wpss remoteproc is available. Signed-off-by: Luca Weiss --- drivers/net/wireless/ath/ath11k/ahb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c index 235336ef2a7a..f8f5e653cd03 100644 ---

Re: [PATCH] wifi: ath11k: Defer on rproc_get failure

2023-10-27 Thread Luca Weiss
On Fri Oct 27, 2023 at 10:25 AM CEST, Kalle Valo wrote: > Luca Weiss writes: > > > If we already have gotten the rproc_handle (meaning the "qcom,rproc" > > property is defined in the devicetree), it's a valid state that the > > remoteproc module hasn't pro

[PATCH 5/9] arm64: dts: qcom: sc7280: Use WPSS PAS instead of PIL

2023-10-27 Thread Luca Weiss
The wpss-pil driver wants to manage too many resources that cannot be touched with standard Qualcomm firmware. Use the compatible from the PAS driver and move the ChromeOS-specific bits to sc7280-chrome-common.dtsi. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280-chrome

[PATCH 6/9] arm64: dts: qcom: sc7280: Add ADSP node

2023-10-27 Thread Luca Weiss
Add the node for the ADSP found on the SC7280 SoC, using standard Qualcomm firmware. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 69 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64

[PATCH 8/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable various remoteprocs

2023-10-27 Thread Luca Weiss
Enable the ADSP, CDSP, MPSS and WPSS that are found on the SoC. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts

[PATCH 0/9] Remoteprocs (ADSP, CDSP, WPSS) for SC7280

2023-10-27 Thread Luca Weiss
andard firmware. Also it seems on ChromeOS devices gpr+q6apm+q6prm is used. On my device it appears to be instead apr+q6afe+q6asm+q6adm but I don't add either in this series to keep it a bit simpler, and I couldn't test much of that yet. Signed-off-by: Luca Weiss --- Luca Weiss (9): dt-bindings

[PATCH 1/9] dt-bindings: remoteproc: qcom: sc7180-pas: Fix SC7280 MPSS PD-names

2023-10-27 Thread Luca Weiss
The power domains for MPSS on SC7280 are actually named CX and MSS, and not CX and MX. Adjust the name which also aligns the bindings with the dts and fixes validation. Fixes: 8bb92d6fd0b3 ("dt-bindings: remoteproc: qcom,sc7180-pas: split into separate file") Signed-off-by:

[PATCH 4/9] remoteproc: qcom_q6v5_pas: Add SC7280 ADSP, CDSP & WPSS

2023-10-27 Thread Luca Weiss
Add support for the ADSP, CDSP and WPSS remoteprocs found on the SC7280 SoC using the q6v5-pas driver. This driver can be used on regular LA ("Linux Android") based releases, however the SC7280 ChromeOS devices need different driver support due to firmware differences. Signed-off-by:

[PATCH 3/9] dt-bindings: remoteproc: qcom: sc7180-pas: Add SC7280 compatibles

2023-10-27 Thread Luca Weiss
Add the compatibles and constraints for the ADSP, CDSP and WPSS found on the SC7280 SoC. Signed-off-by: Luca Weiss --- .../bindings/remoteproc/qcom,sc7180-pas.yaml| 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom

[PATCH 9/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi

2023-10-27 Thread Luca Weiss
Now that the WPSS remoteproc is enabled, enable wifi so we can use it. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490

[PATCH 7/9] arm64: dts: qcom: sc7280: Add CDSP node

2023-10-27 Thread Luca Weiss
Add the node for the ADSP found on the SC7280 SoC, using standard Qualcomm firmware. The memory region for sc7280-chrome-common.dtsi is taken from msm-5.4 yupik.dtsi since the other areas also seem to match that file there, though I cannot be sure there. Signed-off-by: Luca Weiss --- arch

[PATCH 2/9] arm64: dts: qcom: sc7280: Remove unused second MPSS reg

2023-10-27 Thread Luca Weiss
The bindings for sc7280-mpss-pas neither expects a second reg nor a reg-names property, which is only required by the sc7280-mss-pil bindings. Move it to sc7280-herobrine-lte-sku.dtsi, the only place where that other compatible is used. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom

Re: [PATCH 7/9] arm64: dts: qcom: sc7280: Add CDSP node

2023-10-31 Thread Luca Weiss
On Tue Oct 31, 2023 at 7:44 AM CET, Mukesh Ojha wrote: > > > On 10/30/2023 8:33 PM, Doug Anderson wrote: > > Hi, > > > > On Mon, Oct 30, 2023 at 7:43 AM Luca Weiss wrote: > >> > >> On Mon Oct 30, 2023 at 3:11 PM CET, Doug Anderson wrote: > >>

Re: [PATCH 7/9] arm64: dts: qcom: sc7280: Add CDSP node

2023-10-30 Thread Luca Weiss
On Mon Oct 30, 2023 at 10:04 AM CET, Mukesh Ojha wrote: > > > On 10/27/2023 7:50 PM, Luca Weiss wrote: > > Add the node for the ADSP found on the SC7280 SoC, using standard > > Qualcomm firmware. > > > > The memory region for sc7280-chrome-common.dtsi is taken

Re: [PATCH 9/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi

2023-10-31 Thread Luca Weiss
On Mon Oct 30, 2023 at 8:26 PM CET, Konrad Dybcio wrote: > On 27.10.2023 16:20, Luca Weiss wrote: > > Now that the WPSS remoteproc is enabled, enable wifi so we can use it. > > > > Signed-off-by: Luca Weiss > > --- > > arch/arm64/boot/dts/qcom/qcm6490-fairp

Re: [PATCH 8/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable various remoteprocs

2023-10-31 Thread Luca Weiss
On Mon Oct 30, 2023 at 8:26 PM CET, Konrad Dybcio wrote: > On 27.10.2023 16:20, Luca Weiss wrote: > > Enable the ADSP, CDSP, MPSS and WPSS that are found on the SoC. > > > > Signed-off-by: Luca Weiss > > --- > > arch/arm64/boot/dts/qc

Re: [PATCH 7/9] arm64: dts: qcom: sc7280: Add CDSP node

2023-10-30 Thread Luca Weiss
On Mon Oct 30, 2023 at 3:11 PM CET, Doug Anderson wrote: > Hi, > > On Mon, Oct 30, 2023 at 2:12 AM Luca Weiss wrote: > > > > On Mon Oct 30, 2023 at 10:04 AM CET, Mukesh Ojha wrote: > > > > > > > > > On 10/27/2023 7:50 PM, Luca Weiss wrote: > >

[PATCH v2 0/7] Initial support for the Fairphone 5 smartphone

2023-09-19 Thread Luca Weiss
: https://lore.kernel.org/linux-arm-msm/20230407-pm7250b-sid-v1-2-fc648478c...@fairphone.com/ Signed-off-by: Luca Weiss --- Changes in v2: - Add comments why nodes in sc7280.dtsi get disabled (Konrad) - Mark more nodes in sc7280.dtsi as reserved - Don't allow writing qfprom when (optional) clock

[PATCH v2 7/7] arm64: dts: qcom: qcm6490: Add device-tree for Fairphone 5

2023-09-19 Thread Luca Weiss
spi, etc Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 667 + 2 files changed, 668 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Make

[PATCH v2 4/7] arm64: dts: qcom: pm8350c: Add flash led node

2023-09-19 Thread Luca Weiss
Add a node for the led controller found on PM8350C, used for flash and torch purposes. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi

[PATCH v2 3/7] arm64: dts: qcom: pm7250b: make SID configurable

2023-09-19 Thread Luca Weiss
Like other Qualcomm PMICs the PM7250B can be used on different addresses on the SPMI bus. Use similar defines like the PMK8350 to make this possible but skip the ifndef based on maintainer feedback. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 14

[PATCH v2 2/7] nvmem: qfprom: Mark core clk as optional

2023-09-19 Thread Luca Weiss
On some platforms like sc7280 on non-ChromeOS devices the core clock cannot be touched by Linux so we cannot provide it. Mark it as optional as accessing qfprom for reading works without it but we still prohibit writing if we cannot provide the clock. Signed-off-by: Luca Weiss --- drivers/nvmem

[PATCH v2 1/7] arm64: dts: qcom: sc7280: Mark some nodes as 'reserved'

2023-09-19 Thread Luca Weiss
With the standard Qualcomm TrustZone setup, components such as lpasscc, pdc_reset and watchdog shouldn't be touched by Linux. Mark them with the status 'reserved' and reenable them in the chrome-common dtsi. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 24

[PATCH v2 5/7] dt-bindings: pinctrl: qcom,sc7280: Allow gpio-reserved-ranges

2023-09-19 Thread Luca Weiss
Allow the gpio-reserved-ranges property on SC7280 TLMM. Acked-by: Linus Walleij Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree

[PATCH v2 6/7] dt-bindings: arm: qcom: Add QCM6490 Fairphone 5

2023-09-19 Thread Luca Weiss
Fairphone 5 is a smartphone based on the QCM6490 SoC. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index

Re: [PATCH 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings

2023-09-23 Thread Luca Weiss
On Samstag, 23. September 2023 13:35:25 CEST Stephan Gerhold wrote: > On Sat, Sep 23, 2023 at 01:19:46PM +0200, Luca Weiss wrote: > > On Samstag, 23. September 2023 12:00:52 CEST Stephan Gerhold wrote: > > > On Sat, Sep 23, 2023 at 11:32:47AM +0200, Luca Weiss wrote

Re: [PATCH 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings

2023-09-23 Thread Luca Weiss
Hi Matti, On Samstag, 23. September 2023 00:40:26 CEST Matti Lehtimäki wrote: > Add pin <-> wakeirq mappings to allow for waking up the AP from sleep > through MPM-connected pins. > > Signed-off-by: Matti Lehtimäki > --- > drivers/pinctrl/qcom/pinctrl-msm8226.c | 12 > 1 file

  1   2   3   4   5   >