[PATCH 04/13] arm64: dts: qcom: Unify the sc7180-trogdor panel nodes

2021-02-25 Thread Douglas Anderson
Let's avoid a bit of duplication by pushing this up to the trogdor.dtsi file. Signed-off-by: Douglas Anderson --- .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 21 --- .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 19 - arch/arm64/boot/dts/qcom/sc7180

[PATCH 00/13] arm64: dts: qcom: Update sc7180-trogdor variants from downstream

2021-02-25 Thread Douglas Anderson
: dts: qcom: sc7180: add GO_LAZOR variant property for lazor Alexandru M Stan (1): arm64: dts: qcom: sc7180-trogdor: Remove fp control pins in prep for coachz Douglas Anderson (6): arm64: dts: qcom: Move sc7180 MI2S config to board files and make pulldown arm64: dts: qcom: Prep sc

[PATCH 01/13] arm64: dts: qcom: sc7180: Update dts for DP phy inside QMP phy

2021-02-25 Thread Douglas Anderson
-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 1ea3344ab62c..60248a6757d8 100644 --- a/arch/arm64/boot/dts/qcom

[PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk

2021-02-24 Thread Douglas Anderson
Hz mmc1: Card appears overclocked; req 5200 Hz, actual 1 Hz mmc1: Card appears overclocked; req 10400 Hz, actual 19200 Hz Fixes: 6d37a8d19283 ("clk: qcom: gcc-sc7180: Use floor ops for sdcc clks") Signed-off-by: Douglas Anderson --- drivers/clk/qcom/gcc-sc7180

[PATCH] drm: panel: simple: Set enable delay for BOE NV110WTM-N61

2021-02-22 Thread Douglas Anderson
n case the bridge took less than 30 ms to enable / link train). * drm_panel_enable() -> backlight_enable(). Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/pa

[PATCH] arm64: dts: qcom: sc7180: Avoid glitching SPI CS at bootup on trogdor

2021-02-18 Thread Douglas Anderson
he trogdor board file rather than in the SoC dtsi file because chip select polarity can be different depending on what's hooked up and it doesn't feel worth it to spam the SoC dtsi file with both options. The board file would need to pick the right one anyway. Fixes: cfbb97fde694 ("arm64: dts: q

[PATCH] iommu: Properly pass gfp_t in _iommu_map() to avoid atomic sleeping

2021-02-01 Thread Douglas Anderson
Move iotlb_sync_map out from __iommu_map") Signed-off-by: Douglas Anderson --- I haven't done any serious testing on this. I saw a report of the warning and the fix seemed obvious so I'm shooting it out. drivers/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH v2 3/5] drm/panel-simple: Retry if we timeout waiting for HPD

2021-01-15 Thread Douglas Anderson
re attributed to the fact that it's pre-production and/or can be fixed, retries clearly can help in some cases and really don't hurt. Signed-off-by: Douglas Anderson --- Changes in v2: - ("drm/panel-simple: Retry if we timeout waiting for HPD") new for v2. drivers/gpu/drm/pa

[PATCH v2 4/5] dt-bindings: dt-bindings: display: simple: Add N116BCA-EA1

2021-01-15 Thread Douglas Anderson
Another simple eDP panel. Signed-off-by: Douglas Anderson --- Changes in v2: - ("dt-bindings: dt-bindings: display: simple: Add N116BCA-EA1") new for v2. .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc

[PATCH v2 5/5] drm/panel-simple: Add N116BCA-EA1

2021-01-15 Thread Douglas Anderson
This panel is quite similar to the similarly named N116BGE panel (the nominal timings are, in fact identical). However, let's add a new entry because the full range of clocks listed for N116BGE aren't supported for N116BCA-EA1, at least according to the datasheet. Signed-off-by: Douglas Anderson

[PATCH v2 2/5] drm/panel-simple: Don't wait longer for HPD than hpd_absent_delay

2021-01-15 Thread Douglas Anderson
fail to power on and need to be retried. We can detect the problem sooner. Signed-off-by: Douglas Anderson --- Changes in v2: - ("drm/panel-simple: Don't wait longer for HPD...") new for v2. drivers/gpu/drm/panel/panel-simple.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletio

[PATCH v2 1/5] drm/panel-simple: Undo enable if HPD never asserts

2021-01-15 Thread Douglas Anderson
, but this patch makes it so that if I add a retry that I can make things work. Fixes: 48834e6084f1 ("drm/panel-simple: Support hpd-gpios for delaying prepare()") Signed-off-by: Douglas Anderson --- Stephen: I didn't take your Reviewed-by tag since I made a small change. If you're OK with this cha

[PATCH v2 0/5] drm/panel-simple: Patches for N116BCA-EA1

2021-01-15 Thread Douglas Anderson
longer for HPD...") new for v2. - ("drm/panel-simple: Retry if we timeout waiting for HPD") new for v2. - ("dt-bindings: dt-bindings: display: simple: Add N116BCA-EA1") new for v2. - ("drm/panel-simple: Add N116BCA-EA1") new for v2. Douglas Anderson (5): drm/panel-si

[PATCH v9 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2021-01-15 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- Changes in v9: - 120 ms delay => 180 ms delay Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subcla

[PATCH v9 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2021-01-15 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v9 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2021-01-15 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson Acked-by: Will Deacon --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 +

[PATCH v9 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2021-01-15 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH v9 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-15 Thread Douglas Anderson
on the new subclass system. Changes in v3: - Fixed compatible in example. - Removed Benjamin as a maintainer. - Rework to use subclassing. - Updated description. Changes in v2: - ("dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. - Get timings based on the compa

[PATCH v7 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Douglas Anderson
le callback for msm gpio") Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- I kept Maulik's tags from v5 even though there were slight

[PATCH v7 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-14 Thread Douglas Anderson
't need to open-code the logic in both places. This was found by code inspection. I don't have any access to the hardware in question nor software that needs the Ack during unmask. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas Anderson Re

[PATCH v7 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-14 Thread Douglas Anderson
nterrupt status bits to share a register. NOTE: this code fixes no bugs--it simply avoids an extra register read. Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- (no changes since v6) Changes in v6

[PATCH v7 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-14 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Bjorn Andersson --- (no changes since v6) Changes in v6: - Don't wrap line; bust through 80 columns! drivers/pinctrl/qcom/pinctrl-msm.c | 3 +-- drivers/pinctrl/qcom

[PATCH] drm/panel-simple: Undo enable if HPD never asserts

2021-01-14 Thread Douglas Anderson
, but this patch makes it so that if I add a retry that I can make things work. Fixes: 48834e6084f1 ("drm/panel-simple: Support hpd-gpios for delaying prepare()") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 10 -- 1 file changed, 8 insertions(+), 2 deletion

[PATCH v6 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-14 Thread Douglas Anderson
nterrupt status bits to share a register. NOTE: this code fixes no bugs--it simply avoids an extra register read. Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- Changes in v6: - Remove unneeded parenth

[PATCH v6 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-14 Thread Douglas Anderson
't need to open-code the logic in both places. This was found by code inspection. I don't have any access to the hardware in question nor software that needs the Ack during unmask. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas Anderson Re

[PATCH v6 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Douglas Anderson
le callback for msm gpio") Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- I kept Maulik's tags from v5 even though there were slight

[PATCH v6 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-14 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Bjorn Andersson --- Changes in v6: - Don't wrap line; bust through 80 columns! drivers/pinctrl/qcom/pinctrl-msm.c | 3 +-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2

[PATCH v5 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-08 Thread Douglas Anderson
le callback for msm gpio") Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson --- Note that patch #1 of v4 has now landed so it's dropped from the v5 post. Also note that there is no dependency of

[PATCH v5 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-08 Thread Douglas Anderson
't need to open-code the logic in both places. This was found by code inspection. I don't have any access to the hardware in question nor software that needs the Ack during unmask. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas An

[PATCH v5 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-08 Thread Douglas Anderson
nterrupt status bits to share a register. NOTE: this code fixes no bugs--it simply avoids an extra register read. Signed-off-by: Douglas Anderson --- Changes in v5: - ("pinctrl: qcom: No need to read-modify-write the ...") new for v5. drivers/pinctrl/qcom/pinctrl-msm.c | 23

[PATCH v5 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-08 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd --- (no changes since v1) drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl

[PATCH] arm64: dts: qcom: sc7180: Add "dp_hot_plug_det" pinconf for trogdor

2021-01-06 Thread Douglas Anderson
We have an external pull on this line, so disable the internal pull. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180

[PATCH v3 4/4] spi: spi-geni-qcom: Print an error when we timeout setting the CS

2020-12-17 Thread Douglas Anderson
If we're using geni to manage the chip select line (don't do it--use a GPIO!) and we happen to get a timeout waiting for the chip select command to be completed, no errors are printed even though things might not be in the best shape. Let's add a print. Signed-off-by: Douglas Anderson

[PATCH v3 2/4] spi: spi-geni-qcom: Fail new xfers if xfer/cancel/abort pending

2020-12-17 Thread Douglas Anderson
;) Signed-off-by: Douglas Anderson --- Changes in v3: - spin the lock in spi_geni_is_abort_still_pending() if abort pending. Changes in v2: - Make this just about the failed abort. drivers/spi/spi-geni-qcom.c | 59 +++-- 1 file changed, 57 insertions(+), 2 delet

[PATCH v3 3/4] spi: spi-geni-qcom: Don't try to set CS if an xfer is pending

2020-12-17 Thread Douglas Anderson
the driver even more confused about what it's doing. The SPI core in general assumes that setting chip select is a simple operation that doesn't fail. Yet another reason to just reconfigure the chip select line as GPIOs. Signed-off-by: Douglas Anderson --- Changes in v3: - xfter => xfer

[PATCH v3 1/4] spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case

2020-12-17 Thread Douglas Anderson
gh handle_fifo_timeout() and then start a new transfer because interrupts from the old transfer / cancel / abort could still be pending. A future patch will help this corner case. Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas

[PATCH v2 3/4] spi: spi-geni-qcom: Don't try to set CS if an xfer is pending

2020-12-16 Thread Douglas Anderson
ure the chip select line as GPIOs. Signed-off-by: Douglas Anderson --- Changes in v2: - ("spi: spi-geni-qcom: Don't try to set CS if an xfer is pending") new for v2. drivers/spi/spi-geni-qcom.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-

[PATCH v2 2/4] spi: spi-geni-qcom: Fail new xfers if xfer/cancel/abort pending

2020-12-16 Thread Douglas Anderson
;) Signed-off-by: Douglas Anderson --- Changes in v2: - Make this just about the failed abort. drivers/spi/spi-geni-qcom.c | 56 +++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index

[PATCH v2 4/4] spi: spi-geni-qcom: Print an error when we timeout setting the CS

2020-12-16 Thread Douglas Anderson
If we're using geni to manage the chip select line (don't do it--use a GPIO!) and we happen to get a timeout waiting for the chip select command to be completed, no errors are printed even though things might not be in the best shape. Let's add a print. Signed-off-by: Douglas Anderson

[PATCH v2 1/4] spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case

2020-12-16 Thread Douglas Anderson
gh handle_fifo_timeout() and then start a new transfer because interrupts from the old transfer / cancel / abort could still be pending. A future patch will help this corner case. Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas

[PATCH 2/2] spi: spi-geni-qcom: Really ensure the previous xfer is done before new one

2020-12-14 Thread Douglas Anderson
t the next transfer. Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 69 - 1 file changed, 53 insertions(+), 16 deletions(-) diff --git a/drivers/s

[PATCH 1/2] spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case

2020-12-14 Thread Douglas Anderson
ixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 25

[PATCH v5 1/2] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-14 Thread Douglas Anderson
rnel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- (no changes since v4) Changes in v4: - Emphasize in the commit message that this itself doesn't fix anything

[PATCH v5 2/2] mmc: sdhci-msm: Actually set the actual clock

2020-12-14 Thread Douglas Anderson
wrong rate (maybe it's rounding up instead of down), this will make it much more obvious what's going on. NOTE: we have to be a little careful here because the "actual_clock" field shouldn't include the multiplier that sdhci-msm needs internally. Suggested-by: Adrian Hunter Signed-o

[irqchip: irq/irqchip-next] irqchip/qcom-pdc: Fix phantom irq when changing between rising/falling

2020-12-12 Thread irqchip-bot for Douglas Anderson
The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 2f5fbc4305d07725bfebaedb09e57271315691ef Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/2f5fbc4305d07725bfebaedb09e57271315691ef Author:Douglas Anderson

[PATCH v8 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2020-12-11 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- (no changes since v6) Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subclass => ops. Chan

[PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-12-11 Thread Douglas Anderson
uot;dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. - Get timings based on the compatible string. - Use a separate compatible string for this new touchscreen. Douglas Anderson (4): HID: i2c-hid: Reorganize so ACPI and OF are separate modules arm64: defco

[PATCH v8 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-12-11 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v8 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2020-12-11 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH v8 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-12-11 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson Acked-by: Will Deacon --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 +

[PATCH v4 2/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-12-11 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd --- (no changes since v1) drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl

[PATCH v4 4/4] pinctrl: qcom: Clear possible pending parent irq when remuxing GPIOs

2020-12-11 Thread Douglas Anderson
nt already masked us, but it's a good idea in general. * When we mux back will clear any interrupts and unmask our parent if needed. Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson --- This patch

[PATCH v4 3/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2020-12-11 Thread Douglas Anderson
then get rid of the clear. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas Anderson --- I don't have lots of good test cases here, so hopefully someone from Qualcomm can confirm that this works well for them and there isn't some other ph

[PATCH v4 1/4] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-12-11 Thread Douglas Anderson
rupt controller for QCOM SoCs") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Stephen Boyd --- There are no dependencies between this patch and patch #2/#3. It can go in by itself. Patches are only grouped together in one series because

[PATCH v7 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-12-11 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v7 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-12-11 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson Acked-by: Will Deacon --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 +

[PATCH v7 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2020-12-11 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- (no changes since v6) Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subclass => ops. Chan

[PATCH v7 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2020-12-11 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH v7 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-12-11 Thread Douglas Anderson
T7375P") new in v2. - Get timings based on the compatible string. - Use a separate compatible string for this new touchscreen. Douglas Anderson (4): HID: i2c-hid: Reorganize so ACPI and OF are separate modules arm64: defconfig: Update config names for i2c-hid rejigger dt-bindings: inpu

[PATCH v4 1/2] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-11 Thread Douglas Anderson
rnel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- Changes in v4: - Emphasize in the commit message that this itself doesn't fix anything. Changes in v3: - Pro

[PATCH v4 2/2] mmc: sdhci-msm: Actually set the actual clock

2020-12-11 Thread Douglas Anderson
wrong rate (maybe it's rounding up instead of down), this will make it much more obvious what's going on. NOTE: we have to be a little careful here because the "actual_clock" field shouldn't include the multiplier that sdhci-msm needs internally. Signed-off-by: Douglas Anderson ---

[PATCH v3] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-10 Thread Douglas Anderson
a warning in the Qualcomm SDHCI driver to help catch the problem. This would have saved a bunch of time [1]. [1] http://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson --- Changes in v3: - Proper pri

[PATCH v2] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-10 Thread Douglas Anderson
a warning in the Qualcomm SDHCI driver to help catch the problem. This would have saved a bunch of time [1]. [1] http://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson --- Changes in v2: - Store rate i

[PATCH] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-10 Thread Douglas Anderson
a warning in the Qualcomm SDHCI driver to help catch the problem. This would have saved a bunch of time [1]. [1] http://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson --- drivers/mmc/host/sdhci-

[PATCH 2/2] clk: qcom: gcc-sc7180: Add 50 MHz clock rate for SDC2

2020-12-10 Thread Douglas Anderson
f their normal speed. There doesn't seem to be any reason to skip this clock rate, so add it. Fixes: 17269568f726 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180") Signed-off-by: Douglas Anderson --- drivers/clk/qcom/gcc-sc7180.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 1/2] clk: qcom: gcc-sc7180: Use floor ops for sdcc clks

2020-12-10 Thread Douglas Anderson
e the next patch AKA ("clk: qcom: gcc-sc7180: Add 50 MHz clock rate for SDC2")). That means then when you run an older SD card it'll try to clock it at 100 MHz when it's only specced to run at 50 MHz max. As you can probably guess that doesn't work super well. Signed-off-by: Dou

[PATCH v3 2/3] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-12-09 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson --- (no changes since v1) drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index

[PATCH v3 3/3] pinctrl: qcom: Clear possible pending irq when remuxing GPIOs

2020-12-09 Thread Douglas Anderson
hat could have been generated the first time we set RAW_STATUS_EN. Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson --- This patch depends on #2 in the series, but not #1. #1 can land on its own and then

[PATCH v3 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-12-09 Thread Douglas Anderson
rupt controller for QCOM SoCs") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- There are no dependencies between this patch and patch #2/#3. It can go in by itself. Patches are only grouped together in one series because they address similar iss

[PATCH] arm64: dts: qcom: Clean up sc7180-trogdor voltage rails

2020-12-07 Thread Douglas Anderson
to regulator_set_load() are in place and HPM is safer. Switching more things to LPM can happen in a future patch. ALSO NOTE: Power measurements showed no measurable difference after applying this patch, so perhaps it should be viewed more as a cleanup than any power savings. Signed-off-by: Douglas Anderson

[PATCH] arm64: dts: qcom: Fix SD card vqmmc max voltage on sc7180-trogdor

2020-12-04 Thread Douglas Anderson
per above, on Linux right now we end up running vqmmc as 2.904V even though vmmc is 2.952V. This isn't super ideal but shouldn't really hurt. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm6

[PATCH] drm: panel: Fully transition panel_desc kerneldoc to inline style

2020-12-01 Thread Douglas Anderson
* struct panel_desc Suggested-by: Sam Ravnborg Signed-off-by: Douglas Anderson Cc: Douglas Anderson Cc: Sam Ravnborg Cc: Thierry Reding Cc: dri-de...@lists.freedesktop.org --- drivers/gpu/drm/panel/panel-simple.c | 43 +--- 1 file changed, 27 insertions(+), 16 deletions(-)

[PATCH v2] drm: panel: add flags to BOE NV110WTM-N61

2020-12-01 Thread Douglas Anderson
I forgot to add these when posting up the support for BOE NV110WTM-N61. Add them now. Fixes: a96ee0f6b58d ("drm: panel: simple: Add BOE NV110WTM-N61") Signed-off-by: Douglas Anderson Cc: Douglas Anderson Cc: Sam Ravnborg Cc: Thierry Reding Cc: dri-de...@lists.freedesktop.org --

[PATCH v2 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-11-24 Thread Douglas Anderson
rupt controller for QCOM SoCs") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- There are no dependencies between this patch and patch #2/#3. It can go in by itself. Patches are only grouped together in one series because they address similar issues.

[PATCH v2 2/3] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-11-24 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson --- (no changes since v1) drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index

[PATCH v2 3/3] pinctrl: qcom: Clear possible pending irq when remuxing GPIOs

2020-11-24 Thread Douglas Anderson
this switch. Let's move the clearing of the IRQ to the pin muxing routine so that we'll clear a pending IRQ if we're muxing from some non-GPIO mode to a GPIO mode. Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Ande

[PATCH 2/3] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-11-23 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson --- drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 77a25bdf0da7..588df91274e2

[PATCH 3/3] pinctrl: qcom: Clear possible pending irq when remuxing GPIOs

2020-11-23 Thread Douglas Anderson
this switch. Let's move the clearing of the IRQ to the pin muxing routine so that we'll clear a pending IRQ if we're muxing from some non-GPIO mode to a GPIO mode. Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Ander

[PATCH 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-11-23 Thread Douglas Anderson
uld narrow down the race a bit by polling our parent before changing types, but no matter what we do there will still be a period of time where we can't tell the difference between a real transition (or more than one transition) and the phantom. Signed-off-by: Douglas Anderson --- drivers/ir

[PATCH v6 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-11-11 Thread Douglas Anderson
: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. - Get timings based on the compatible string. - Use a separate compatible string for this new touchscreen. Douglas Anderson (4): HID: i2c-hid: Reorganize so ACPI and OF are separate modules arm64: defconfig: Update config names fo

[PATCH v6 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-11-11 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v6 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2020-11-11 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subclass => ops. Changes in v4: - Totally re

[PATCH v6 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-11-11 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 ++- 1 file changed, 2 insert

[PATCH v6 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2020-11-11 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH] arm64: dts: qcom: sc7180: Assign numbers to eMMC and SD

2020-11-11 Thread Douglas Anderson
not already well-defined numbers for all sd/mmc controllers, in the case of sc7180 there _are_ well defined numbers. IMO it is less confusing to use those and match the docs. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --g

[PATCH v4 5/5] dt-bindings: dt-bindings: display: simple: Add BOE NV110WTM-N61

2020-11-09 Thread Douglas Anderson
Add yet another eDP panel. Signed-off-by: Douglas Anderson Acked-by: Rob Herring --- (no changes since v1) .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml

[PATCH v4 1/5] drm: panel: simple: Fixup the struct panel_desc kernel doc

2020-11-09 Thread Douglas Anderson
When I run: scripts/kernel-doc -rst drivers/gpu/drm/panel/panel-simple.c I see that several of the kernel-doc entries aren't showing up because they don't specify the full path down the hierarchy. Let's fix that and also move to inline kernel docs. Signed-off-by: Douglas Anderson

[PATCH v4 2/5] drm: panel: simple: Defer unprepare delay till next prepare to shorten it

2020-11-09 Thread Douglas Anderson
e starting the prepare phase. Signed-off-by: Douglas Anderson --- Changes in v4: - Split ("Allow timing constraints, not fixed delays") into 2 patches. - Reuse the existing "unprepare" and assume it means "unprepare_to_prepare". - Shortened function name to panel_

[PATCH v4 3/5] drm: panel: simple: Allow specifying the delay from prepare to enable

2020-11-09 Thread Douglas Anderson
delay over-delays. We'll support this by logging the time at the end of prepare and then delaying in enable if enough time hasn't passed. Signed-off-by: Douglas Anderson --- Changes in v4: - Split ("Allow timing constraints, not fixed delays") into 2 patches. - Fixed kerneldoc. d

[PATCH v4 4/5] drm: panel: simple: Add BOE NV110WTM-N61

2020-11-09 Thread Douglas Anderson
structure to do this cleanly. This assumes that the backlight will be enabled _after_ the panel enable finishes. This is how it works today and seems a sane assumption. Signed-off-by: Douglas Anderson --- Changes in v4: - Rebased atop changes in earlier patches. Changes in v2: - Adjust

[PATCH v5 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-11-09 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 ++- 1 file changed, 2 insert

[PATCH v5 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-11-09 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v5 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2020-11-09 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subclass => ops. Changes in v4: - Totally redid based on the new subclass system. Changes in v3: - Rework to use su

[PATCH v5 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2020-11-09 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Dou

[PATCH v5 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-11-09 Thread Douglas Anderson
w in v2. - Get timings based on the compatible string. - Use a separate compatible string for this new touchscreen. Douglas Anderson (4): HID: i2c-hid: Reorganize so ACPI and OF are separate modules arm64: defconfig: Update config names for i2c-hid rejigger dt-bindings: input: HID: i2c-hid: Intr

[PATCH v3 2/3] drm: panel: simple: Add BOE NV110WTM-N61

2020-11-05 Thread Douglas Anderson
structure to do this cleanly. This assumes that the backlight will be enabled _after_ the panel enable finishes. This is how it works today and seems a sane assumption. Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Adjust for shorter names in patch #1. drivers

[PATCH v3 1/3] drm: panel: simple: Allow timing constraints, not fixed delays

2020-11-05 Thread Douglas Anderson
nimum time between HPD being asserted by the panel and setting the backlight enable GPIO. By specifying as a constraint we can enforce this without over-delaying. Specifically the link training is allowed to happen in parallel with this delay so adding a fixed 80 ms delay isn't ideal. Signed-off-b

[PATCH v3 3/3] dt-bindings: dt-bindings: display: simple: Add BOE NV110WTM-N61

2020-11-05 Thread Douglas Anderson
Add yet another eDP panel. Signed-off-by: Douglas Anderson Acked-by: Rob Herring --- (no changes since v1) .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml

[PATCH v4 1/4] HID: i2c-hid: Reorganize so ACPI and OF are subclasses

2020-11-03 Thread Douglas Anderson
n't have special needs. We'll organize this so that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since

[PATCH v4 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-11-03 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson --- Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

<    1   2   3   4   5   6   7   8   9   10   >