platform/kernel/linux-rpi.git
2 years agoarm64: dts: qcom: Only include sc7180.dtsi in sc7180-trogdor.dtsi
Stephen Boyd [Wed, 27 Apr 2022 02:03:39 +0000 (19:03 -0700)]
arm64: dts: qcom: Only include sc7180.dtsi in sc7180-trogdor.dtsi

The SoC is always present on sc7180-trogdor.dtsi and thus we should
include it in the "generic" dtsi file for trogdor. Previously we had
removed it from there because we had to do the spi6/spi0 swizzle, so
each trogdor variant board had to include sc7180.dtsi and then
sc7180-trogdor.dtsi so that the latter dtsi file could modify the right
spi bus for EC and H1 properties that are common to all trogdor boards.

Now that we're done with that we can replace sc7180.dtsi includes with
sc7180-trogdor.dtsi and include sc7180.dtsi in sc7180-trogdor.dtsi as
was originally intended. We still need to include sc7180-trogdor.dtsi
before the bridge dtsi files though because those rely on the panel
label.

Cc: "Joseph S. Barrera III" <joebar@chromium.org>
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220427020339.360855-4-swboyd@chromium.org
2 years agoarm64: dts: qcom: sc7180-trogdor: Simplify spi0/spi6 labeling
Stephen Boyd [Wed, 27 Apr 2022 02:03:38 +0000 (19:03 -0700)]
arm64: dts: qcom: sc7180-trogdor: Simplify spi0/spi6 labeling

We had to do this spi0/spi6 flip-flop on trogdor-r0 because the spi
buses got swizzled between r0 and r1. The swizzle stopped after r1, but
we kept this around to support either hardware possibility and to keep
trogdor-r0 working.

trogdor-r0 isn't supported upstream, so this swizzle is not doing
anything besides making a pattern that others tryt  to copy for the EC and
H1 nodes. Let's remove it and simplify the dts files.

Cc: "Joseph S. Barrera III" <joebar@chromium.org>
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220427020339.360855-3-swboyd@chromium.org
2 years agoarm64: dts: qcom: sc7180-trogdor: Simplify trackpad enabling
Stephen Boyd [Wed, 27 Apr 2022 02:03:37 +0000 (19:03 -0700)]
arm64: dts: qcom: sc7180-trogdor: Simplify trackpad enabling

Trogdor boards with a detachable keyboard don't have a trackpad over
i2c. Instead the trackpad is on the detachable keyboard base. Let's move
the enabling of the trackpad i2c bus out of the base sc7180-trogdor.dtsi
file so that each trogdor board that is detachable, of which there are
many, doesn't have to disable the trackpad bus.

Cc: "Joseph S. Barrera III" <joebar@chromium.org>
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220427020339.360855-2-swboyd@chromium.org
2 years agoarm64: dts: qcom: sc7280: eDP for herobrine boards
Douglas Anderson [Tue, 26 Apr 2022 19:41:03 +0000 (12:41 -0700)]
arm64: dts: qcom: sc7280: eDP for herobrine boards

Add eDP support to herobrine boards, splitting up amongst the
different files as makes sense. Rationale for the current split of
things:
* The eDP connector itself is on qcard. However, not all devices with
  a qcard will use an eDP panel. Some might use MIPI and, presumably,
  someone could build a device with qcard that had no display at all.
* The qcard provides a PWM for backlight that goes to the eDP
  connector. This PWM is also provided to the board and it's expected
  that it would be used as the backlight PWM even for herobrine
  devices with MIPI displays.
* It's currently assumed that all herobrine boards will have some sort
  of display, either MIPI or eDP (but not both).
* We will assume herobrine-rev1 has eDP. The schematics allow for a
  MIPI panel to be hooked up but, aside from some testing, nobody is
  doing this and most boards don't have all the parts stuffed for
  it. The two panels would also share a PWM for backlight, which is
  weird.
* herobrine-villager and herobrine-hoglin (crd) also have eDP.
* herobrine-hoglin (crd) has slightly different regulator setup for
  the backlight. It's expected that this is unique to this board. See
  comments in the dts file.
* There are some regulators that are defined in the qcard schematic
  but provided by the board like "vreg_edp_bl" and
  "vreg_edp_3p3". While we could put references to these regulators
  straight in the qcard.dtsi file, this would force someone using
  qcard that didn't provide those regulators to provide a dummy or do
  an ugly /delete-node/. Instead, we'll add references in
  herobrine.dtsi.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220426124053.v2.1.Iedd71976a78d53c301ce0134832de95a989c9195@changeid
2 years agoarm64: dts: qcom: sa8155p-adp: Disable multiple Tx and Rx queues for ethernet IP
Bhupesh Sharma [Sat, 23 Apr 2022 19:50:03 +0000 (01:20 +0530)]
arm64: dts: qcom: sa8155p-adp: Disable multiple Tx and Rx queues for ethernet IP

Fix the issues seen with ethernet traffic getting stalled on SA8155p-ADP
board with default (or larger) mtu size of 1500 bytes, by disabling
multiple Tx and Rx queues for the stmmac IP block.

With the single queue setup, the ethernet traffic is stable,
wget / curl can work well on the board and no ethernet stall is
observed even when longer netperf / iperf3 test are run. Also
a performance of ~940 Mbits/sec is observed on the 1G link, so
there is no observable degradation in performance as well.

Fixes: c5cb42cc8411 ("arm64: dts: qcom: sa8155p-adp: Enable ethernet node")
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220423195003.353150-1-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: sm8150: Fix iommu sid value for SDC2 controller
Bhupesh Sharma [Fri, 22 Apr 2022 21:06:11 +0000 (02:36 +0530)]
arm64: dts: qcom: sm8150: Fix iommu sid value for SDC2 controller

Fix the IOMMU sid value for SDC2 controller, to ensure that no
ADMA error is observed when the microSD card is detected on the
SA8155p-ADP board.

Fixes: 876644c76034 ("arm64: dts: qcom: sm8150: Add support for SDC2")
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220422210611.173842-1-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: sm8350-duo2: enable battery charger
Katherine Perez [Tue, 7 Dec 2021 23:17:36 +0000 (15:17 -0800)]
arm64: dts: qcom: sm8350-duo2: enable battery charger

Enable the relevant qup and I2C nodes to enable the battery charger.

Signed-off-by: Katherine Perez <kaperez@linux.microsoft.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211207231736.1762503-2-kaperez@linux.microsoft.com
2 years agoarm64: dts: qcom: Enable pm8350c pwm for sc7280-idp2
Satya Priya [Tue, 22 Feb 2022 05:55:09 +0000 (11:25 +0530)]
arm64: dts: qcom: Enable pm8350c pwm for sc7280-idp2

Enable pm8350c pmic pwm support for backlight on sc7280-idp2.

Signed-off-by: Satya Priya <quic_c_skakit@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1645509309-16142-5-git-send-email-quic_c_skakit@quicinc.com
2 years agoarm64: dts: qcom: pm8350c: Add pwm support
Satya Priya [Tue, 22 Feb 2022 05:55:08 +0000 (11:25 +0530)]
arm64: dts: qcom: pm8350c: Add pwm support

Add pwm support for PM8350C pmic.

Signed-off-by: Satya Priya <quic_c_skakit@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1645509309-16142-4-git-send-email-quic_c_skakit@quicinc.com
2 years agoarm64: dts: qcom: sc7280-qcard: Configure CTS pin to bias-bus-hold for bluetooth
Vijaya Krishna Nivarthi [Thu, 21 Apr 2022 15:56:07 +0000 (21:26 +0530)]
arm64: dts: qcom: sc7280-qcard: Configure CTS pin to bias-bus-hold for bluetooth

WLAN rail was leaking power during RBSC/sleep even after turning BT off.
Change active and sleep pinctrl configurations to handle same.

Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1650556567-4995-3-git-send-email-quic_vnivarth@quicinc.com
2 years agoarm64: dts: qcom: sc7280-idp: Configure CTS pin to bias-bus-hold for bluetooth
Vijaya Krishna Nivarthi [Thu, 21 Apr 2022 15:56:06 +0000 (21:26 +0530)]
arm64: dts: qcom: sc7280-idp: Configure CTS pin to bias-bus-hold for bluetooth

WLAN rail was leaking power during RBSC/sleep even after turning BT off.
Change active and sleep pinctrl configurations to handle same.

Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1650556567-4995-2-git-send-email-quic_vnivarth@quicinc.com
2 years agoarm64: dts: qcom: sc7180: Remove ipa interconnect node
Stephen Boyd [Fri, 15 Apr 2022 00:58:26 +0000 (17:58 -0700)]
arm64: dts: qcom: sc7180: Remove ipa interconnect node

This device node is unused now that we've removed the driver that
consumed it in the kernel. Drop the unused node to save some space.

Cc: Alex Elder <elder@linaro.org>
Cc: Taniya Das <quic_tdas@quicinc.com>
Cc: Mike Tipton <quic_mdtipton@quicinc.com>
Cc: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Georgi Djakov <djakov@kernel.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220415005828.1980055-1-swboyd@chromium.org
2 years agoarm64: dts: qcom: sc7280-idp: Enable GPI DMAs
Vinod Koul [Thu, 21 Apr 2022 11:55:26 +0000 (17:25 +0530)]
arm64: dts: qcom: sc7280-idp: Enable GPI DMAs

Some versions of the firmware for the sc7280-idp  board FIFO mode
disabled and must thus use GPI DMA. Enable gpi_dma0 and gpi_dma1 to
allow this.

Co-developed-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220421115526.1828659-3-vkoul@kernel.org
2 years agoarm64: dts: qcom: sc7280: Add GENI I2C/SPI DMA channels
Vinod Koul [Thu, 21 Apr 2022 11:55:25 +0000 (17:25 +0530)]
arm64: dts: qcom: sc7280: Add GENI I2C/SPI DMA channels

The GENI I2C and SPI controllers may use the GPI DMA engine, define the
rx and tx channels for these controllers to enable this.

Co-developed-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220421115526.1828659-2-vkoul@kernel.org
2 years agoarm64: dts: qcom: sc7280: Add GPI DMAengines
Vinod Koul [Thu, 21 Apr 2022 11:55:24 +0000 (17:25 +0530)]
arm64: dts: qcom: sc7280: Add GPI DMAengines

The Qualcomm SC7280 has two GPI DMAengines, add definitions for these.

Co-developed-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220421115526.1828659-1-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Fix qmp phy node (use phy@ instead of lanes@)
Bhupesh Sharma [Mon, 18 Apr 2022 20:55:09 +0000 (02:25 +0530)]
arm64: dts: qcom: sm8450: Fix qmp phy node (use phy@ instead of lanes@)

Fix the following 'make dtbs_check' warning(s) by
using phy@ instead of lanes@:
arch/arm64/boot/dts/qcom/sm8450-hdk.dtb: phy@1c0f000: 'lanes@1c0e000'
  does not match any of the regexes: '^phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220418205509.1102109-5-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: db845c: Add support for MCP2517FD
Vinod Koul [Thu, 21 Apr 2022 07:34:38 +0000 (13:04 +0530)]
arm64: dts: qcom: db845c: Add support for MCP2517FD

Add support for onboard MCP2517FD SPI CAN transceiver attached to
SPI0 of RB3.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220421073438.1824061-1-vkoul@kernel.org
2 years agoarm64: dts: qcom: qrb5165-rb5: Fix can-clock node name
Vinod Koul [Thu, 21 Apr 2022 07:35:02 +0000 (13:05 +0530)]
arm64: dts: qcom: qrb5165-rb5: Fix can-clock node name

Per DT spec node names should not have underscores (_) in them, so
change can_clock to can-clock.

Fixes: 5c44c564e449 ("arm64: dts: qcom: qrb5165-rb5: Add support for MCP2518FD")
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220421073502.1824089-1-vkoul@kernel.org
2 years agoarm64: dts: qcom: sc7280: Add SAR sensors to herobrine crd
Matthias Kaehlcke [Sat, 16 Apr 2022 00:22:41 +0000 (17:22 -0700)]
arm64: dts: qcom: sc7280: Add SAR sensors to herobrine crd

Enable the two SAR sensors of the CRD based on herobrine.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220415172238.1.I671bdf40fdfce7a35f6349fca0dc56145d4210ee@changeid
2 years agoarm64: dts: qcom: sm8250: camss: Add CCI definitions
Bryan O'Donoghue [Fri, 15 Apr 2022 16:46:55 +0000 (17:46 +0100)]
arm64: dts: qcom: sm8250: camss: Add CCI definitions

sm8250 has two CCI busses with two I2C busses apiece.

Co-developed-by: Julian Grahsl <jgrahsl@snap.com>
Signed-off-by: Julian Grahsl <jgrahsl@snap.com>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220415164655.1679628-4-bryan.odonoghue@linaro.org
2 years agoarm64: dts: qcom: sm8250: camss: Add CAMSS block definition
Bryan O'Donoghue [Fri, 15 Apr 2022 16:46:54 +0000 (17:46 +0100)]
arm64: dts: qcom: sm8250: camss: Add CAMSS block definition

Adds a CAMSS definition block.

Co-developed-by: Julian Grahsl <jgrahsl@snap.com>
Signed-off-by: Julian Grahsl <jgrahsl@snap.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220415164655.1679628-3-bryan.odonoghue@linaro.org
2 years agoarm64: dts: qcom: sm8250: Add camcc DT node
Bryan O'Donoghue [Fri, 15 Apr 2022 16:46:53 +0000 (17:46 +0100)]
arm64: dts: qcom: sm8250: Add camcc DT node

Add the camcc DT node for the Camera Clock Controller on sm8250.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220415164655.1679628-2-bryan.odonoghue@linaro.org
2 years agoarm64: dts: qcom: sm8450-qrd: Enable spi and i2c nodes
Vinod Koul [Thu, 14 Apr 2022 10:16:30 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450-qrd: Enable spi and i2c nodes

Enable the i2c5, spi4, spi18 and spi19 nodes which were tested on qrd
board along with related qup nodes and gpi_dma0

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-8-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Fix missing iommus for qup1
Vinod Koul [Thu, 14 Apr 2022 10:16:29 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450: Fix missing iommus for qup1

qupv3_id_1 was missing iommus property which cause any dma transaction
to fail and board crash. So add the missing iommus.

Fixes: 5188049c9b36 ("arm64: dts: qcom: Add base SM8450 DTSI")
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-7-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Add qup nodes for qup2
Vinod Koul [Thu, 14 Apr 2022 10:16:28 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450: Add qup nodes for qup2

qup2 has 7 SEs, so add the SEs (i2c and spi) along with pinconf for
these SEs

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-6-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Add qup nodes for qup1
Vinod Koul [Thu, 14 Apr 2022 10:16:27 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450: Add qup nodes for qup1

qup1 has 7 SEs, I2C13 and I2C14 were already added so added the
remaining SEs (i2c and spi) along with pinconf for these SEs
Also add interconnect properties for I2C13 and I2C14

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-5-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Add qup nodes for qup0
Vinod Koul [Thu, 14 Apr 2022 10:16:26 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450: Add qup nodes for qup0

qup0 has 7 SEs, with SE7 as uart and already added, so add the
remaining 6 SEs (i2c and spi) along with pinconf for these SEs

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-4-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Fix missing iommus for qup
Vinod Koul [Thu, 14 Apr 2022 10:16:25 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450: Fix missing iommus for qup

qupv3_id_0 was missing iommus property which cause any dma transaction
to fail and board crash. So add the missing iommus.

While at it also add interconnect nodes for qup

Fixes: 5188049c9b36 ("arm64: dts: qcom: Add base SM8450 DTSI")
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-3-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8450: Add gpi_dma nodes
Vinod Koul [Thu, 14 Apr 2022 10:16:24 +0000 (15:46 +0530)]
arm64: dts: qcom: sm8450: Add gpi_dma nodes

GPI DMA can be used for DMA operations for QUP devices, so add the three
gpi_dma insances found in this SoC

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220414101630.1189052-2-vkoul@kernel.org
2 years agoarm64: dts: qcom: sm8350-hdk: Enable &gpi_dma1
Bjorn Andersson [Tue, 12 Apr 2022 21:51:37 +0000 (14:51 -0700)]
arm64: dts: qcom: sm8350-hdk: Enable &gpi_dma1

Some versions of the firmware for the SM8350 Hardware Development Kit
(HDK) has FIFO mode disabled for i2c13 and must thus use GPI DMA. Enable
&gpi_dma1 to allow this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220412215137.2385831-3-bjorn.andersson@linaro.org
2 years agoarm64: dts: qcom: sm8350: Add GENI I2C/SPI DMA channels
Bjorn Andersson [Tue, 12 Apr 2022 21:51:36 +0000 (14:51 -0700)]
arm64: dts: qcom: sm8350: Add GENI I2C/SPI DMA channels

The GENI I2C and SPI controllers may use the GPI DMA engine, define the
rx and tx channels for these controllers to enable this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220412215137.2385831-2-bjorn.andersson@linaro.org
2 years agoarm64: dts: qcom: sm8350: Define GPI DMA engines
Bjorn Andersson [Tue, 12 Apr 2022 21:51:35 +0000 (14:51 -0700)]
arm64: dts: qcom: sm8350: Define GPI DMA engines

The Qualcomm SM8350 has three GPI DMA engines, add definitions for
these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220412215137.2385831-1-bjorn.andersson@linaro.org
2 years agoarm64: dts: qcom: sc7280: Add wakeup-source property for USB node
Sandeep Maheswaram [Mon, 11 Apr 2022 19:16:54 +0000 (00:46 +0530)]
arm64: dts: qcom: sc7280: Add wakeup-source property for USB node

Adding wakeup-source property for USB controller in SC7280.
This property is added to inform that the USB controller is
wake up capable and to conditionally power down the phy during
system suspend.

Signed-off-by: Sandeep Maheswaram <quic_c_sanm@quicinc.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1649704614-31518-7-git-send-email-quic_c_sanm@quicinc.com
2 years agoarm64: dts: qcom: msm8996: override nodes by label
Krzysztof Kozlowski [Sat, 2 Apr 2022 19:28:59 +0000 (21:28 +0200)]
arm64: dts: qcom: msm8996: override nodes by label

Using node paths to extend or override a device tree node is error
prone.  If there was a typo error, a new node will be created instead of
extending the existing node.  This will lead to run-time errors that
could be hard to detect.

A mistyped label on the other hand, will cause a dtc compile error
(during build time).  This also reduces the indentation making the code
easier to read.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220402192859.154977-2-krzysztof.kozlowski@linaro.org
2 years agoarm64: dts: qcom: msm8994: override nodes by label
Krzysztof Kozlowski [Sat, 2 Apr 2022 19:28:58 +0000 (21:28 +0200)]
arm64: dts: qcom: msm8994: override nodes by label

Using node paths to extend or override a device tree node is error
prone.  If there was a typo error, a new node will be created instead of
extending the existing node.  This will lead to run-time errors that
could be hard to detect.

A mistyped label on the other hand, will cause a dtc compile error
(during build time).  This also reduces the indentation making the code
easier to read.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220402192859.154977-1-krzysztof.kozlowski@linaro.org
2 years agoarm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom wled backlight and link to...
Joel Selvaraj [Fri, 1 Apr 2022 00:18:10 +0000 (05:48 +0530)]
arm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom wled backlight and link to panel

Xiaomi Poco F1 uses the QCOM WLED driver for backlight control.
Enable and link it to the panel to use it.

Signed-off-by: Joel Selvaraj <jo@jsfamily.in>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/BY5PR02MB70092607CD7CDD8CF8BCD464D9E09@BY5PR02MB7009.namprd02.prod.outlook.com
2 years agoarm64: dts: qcom: sdm845-xiaomi-beryllium: enable second wifi channel
Joel Selvaraj [Wed, 30 Mar 2022 06:45:05 +0000 (12:15 +0530)]
arm64: dts: qcom: sdm845-xiaomi-beryllium: enable second wifi channel

Like the c630, the Poco F1 is also capable of using both antenna
channels for 2.4 and 5ghz wifi, however unlike the c630 only the first
channel is used for bluetooth. Similar to Oneplus 6.

Signed-off-by: Joel Selvaraj <jo@jsfamily.in>
Reviewed-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/BY5PR02MB7009E2566F9000F338432761D91F9@BY5PR02MB7009.namprd02.prod.outlook.com
2 years agoarm64: dts: qcom: sdm845-xiaomi-beryllium: fix typo in panel's vddio-supply property
Joel Selvaraj [Wed, 30 Mar 2022 06:45:04 +0000 (12:15 +0530)]
arm64: dts: qcom: sdm845-xiaomi-beryllium: fix typo in panel's vddio-supply property

vddio is misspelled with a "0" instead of "o". Fix it.

Signed-off-by: Joel Selvaraj <jo@jsfamily.in>
Reviewed-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/BY5PR02MB7009901651E6A8D5ACB0425ED91F9@BY5PR02MB7009.namprd02.prod.outlook.com
2 years agoarm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom ipa driver
Joel Selvaraj [Wed, 30 Mar 2022 06:45:03 +0000 (12:15 +0530)]
arm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom ipa driver

Enable Qualcomm IP Accelerator (IPA) driver for mobile data functionality
which works by using ModemManager.

Signed-off-by: Joel Selvaraj <jo@jsfamily.in>
Reviewed-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/BY5PR02MB7009405D7C06C0B480974063D91F9@BY5PR02MB7009.namprd02.prod.outlook.com
2 years agoarm64: dts: qcom: sdm845-xiaomi-beryllium: change firmware path and use mbn format
Joel Selvaraj [Wed, 30 Mar 2022 06:45:02 +0000 (12:15 +0530)]
arm64: dts: qcom: sdm845-xiaomi-beryllium: change firmware path and use mbn format

The "qcom/sdm845/" path conflicts with db845c's firmware that are
present in the linux-firmware package. Xiaomi uses their own signed
firmware for Poco F1 and can't use the db845c's firmware. So let's
use "qcom/sdm845/beryllium/" to distinguish Poco F1's firmware files.

For easier handling and packaging, the mdt+bXX files are squashed
using Bjorn Andersson's pil-squasher tool from this link:
https://github.com/andersson/pil-squasher

Signed-off-by: Joel Selvaraj <jo@jsfamily.in>
Reviewed-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/BY5PR02MB700966DEE6F6044EBEB5B892D91F9@BY5PR02MB7009.namprd02.prod.outlook.com
2 years agoarm64: dts: qcom: do not use underscore in BCM node name
Krzysztof Kozlowski [Mon, 11 Apr 2022 08:59:34 +0000 (10:59 +0200)]
arm64: dts: qcom: do not use underscore in BCM node name

Align BCM voter node with DT schema by using hyphen instead of
underscore.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220411085935.130072-3-krzysztof.kozlowski@linaro.org
2 years agoarm64: dts: qcom: sm8450: Add thermal zones
Vladimir Zapolskiy [Sun, 10 Apr 2022 23:44:57 +0000 (02:44 +0300)]
arm64: dts: qcom: sm8450: Add thermal zones

Add thermal zones handled by tsens sensors. The definitions and the trip
points were taken from the downstream dts. For the CPU core thermal
sensors, the trip points were changed to follow the example of other
Qualcomm platforms.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220410234458.1739279-3-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450: Add thermal sensor controllers
Vladimir Zapolskiy [Sun, 10 Apr 2022 23:44:56 +0000 (02:44 +0300)]
arm64: dts: qcom: sm8450: Add thermal sensor controllers

The change adds description of two thermal sensor controllers found
on SM8450.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220410234458.1739279-2-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: msm8998: reserve potentially inaccessible clocks
Michael Srba [Mon, 11 Apr 2022 07:21:56 +0000 (09:21 +0200)]
arm64: dts: qcom: msm8998: reserve potentially inaccessible clocks

With the gcc driver now being more complete and describing clocks which
might not always be write-accessible to the OS, conservatively specify
all such clocks as protected in the SoC dts.
The board dts - or even user-supplied dts - can override this property
to reflect the actual configuration.

Signed-off-by: Michael Srba <michael.srba@seznam.cz>
Reviewed-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220411072156.24451-6-michael.srba@seznam.cz
2 years agoMerge branch '20220411072156.24451-2-michael.srba@seznam.cz' into arm64-for-5.19
Bjorn Andersson [Tue, 19 Apr 2022 17:05:00 +0000 (12:05 -0500)]
Merge branch '20220411072156.24451-2-michael.srba@seznam.cz' into arm64-for-5.19

2 years agodt-bindings: clock: gcc-msm8998: Add definitions of SSC-related clocks
Michael Srba [Mon, 11 Apr 2022 07:21:52 +0000 (09:21 +0200)]
dt-bindings: clock: gcc-msm8998: Add definitions of SSC-related clocks

Add definitions of four clocks which need to be manipulated in order to
initialize the AHB bus which exposes the SCC block in the global address
space.

Signed-off-by: Michael Srba <Michael.Srba@seznam.cz>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220411072156.24451-2-michael.srba@seznam.cz
2 years agoarm64: dts: qcom: add RPM clock controller fallback compatible
Krzysztof Kozlowski [Fri, 1 Apr 2022 20:10:28 +0000 (22:10 +0200)]
arm64: dts: qcom: add RPM clock controller fallback compatible

The bindings require a fallback compatible to RPM clock controller.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220401201035.189106-4-krzysztof.kozlowski@linaro.org
2 years agoarm64: dts: qcom: msm8994: remove SMD qcom,local-pid property
Krzysztof Kozlowski [Fri, 1 Apr 2022 20:10:27 +0000 (22:10 +0200)]
arm64: dts: qcom: msm8994: remove SMD qcom,local-pid property

The Qualcomm SMD does not use qcom,local-pid property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220401201035.189106-3-krzysztof.kozlowski@linaro.org
2 years agoarm64: dts: qcom: msm8953: do not use underscore in node name
Krzysztof Kozlowski [Fri, 1 Apr 2022 20:10:26 +0000 (22:10 +0200)]
arm64: dts: qcom: msm8953: do not use underscore in node name

Align RPM requests node with DT schema by using hyphen instead of
underscore.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220401201035.189106-2-krzysztof.kozlowski@linaro.org
2 years agoarm64: dts: qcom: sm7225-fairphone-fp4: Enable wifi
Luca Weiss [Fri, 25 Mar 2022 10:18:41 +0000 (11:18 +0100)]
arm64: dts: qcom: sm7225-fairphone-fp4: Enable wifi

Configure regulators used by the wifi hardware and enable it.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220325101841.172304-2-luca.weiss@fairphone.com
2 years agoarm64: dts: qcom: sm6350: Add wifi node
Luca Weiss [Fri, 25 Mar 2022 10:18:40 +0000 (11:18 +0100)]
arm64: dts: qcom: sm6350: Add wifi node

Add a node describing the wifi hardware found on sm6350.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220325101841.172304-1-luca.weiss@fairphone.com
2 years agoarm64: dts: qcom: msm8994: Add mmc aliases
Konrad Dybcio [Sat, 19 Mar 2022 17:46:45 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Add mmc aliases

Set the aliases for both SDHCI controllers.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-16-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994: Add watchdog timer node
Konrad Dybcio [Sat, 19 Mar 2022 17:46:44 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Add watchdog timer node

Add and configure the watchdog node.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-15-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994: Fix BLSP[12]_DMA channels count
Konrad Dybcio [Sat, 19 Mar 2022 17:46:43 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Fix BLSP[12]_DMA channels count

MSM8994 actually features 24 DMA channels for each BLSP,
fix it!

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-14-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994: Add OCMEM node
Konrad Dybcio [Sat, 19 Mar 2022 17:46:42 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Add OCMEM node

Add OCMEM node to allow for GPU SRAM access.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-13-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994-kitakami: Update regulator configuration
Konrad Dybcio [Sat, 19 Mar 2022 17:46:41 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994-kitakami: Update regulator configuration

Remove regulator-always-on property where not necessary and mark regulators
that are not supposed to be voted active on boot with regulator-boot-on.
While at it, reorder the load properties to make it look more decent.

Reorder PMICs to fix a probe defer caused by messy dependencies and Linux's
inability to handle them (at least for now).

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-12-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994-kitakami: Disable a mistakengly enabled I2C host
Konrad Dybcio [Sat, 19 Mar 2022 17:46:40 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994-kitakami: Disable a mistakengly enabled I2C host

I2C4 turns out not to be used on Kitakami after all and it only blocks a
GPIO used by camera hardware.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-11-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8992-libra: Fix up the framebuffer
Konrad Dybcio [Sat, 19 Mar 2022 17:46:39 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8992-libra: Fix up the framebuffer

Make sure the necessary clocks are kept on after clk_cleanup (until MDSS
is properly handled by its own driver) and touch up the fb address to
prevent some weird shifting. It's still not perfect, but at least the
kernel log doesn't start a third deep into your screen..

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
[bjorn: Folded in change of framebuffer base address, from Konrad]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-10-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994: Fix the cont_splash_mem address
Konrad Dybcio [Sat, 19 Mar 2022 17:46:38 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Fix the cont_splash_mem address

The default memory map places cont_splash_mem at 3401000, which was
overlooked.. Fix it!

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-9-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8992: Use the correct MMCC compatible
Konrad Dybcio [Sat, 19 Mar 2022 17:46:37 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8992: Use the correct MMCC compatible

Now that proper msm8992 support is in the driver, switch to
the new compatible.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-8-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8992: Use the correct GCC compatible
Konrad Dybcio [Sat, 19 Mar 2022 17:46:36 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8992: Use the correct GCC compatible

Now that proper msm8992 support is in the driver, switch to
the new compatible.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-7-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994: Add MMCC node
Konrad Dybcio [Sat, 19 Mar 2022 17:46:35 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Add MMCC node

Describe the Multimedia Clock Controller block in the DT.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-6-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8992-libra: Remove superfluous status = "okay"
Konrad Dybcio [Sat, 19 Mar 2022 17:46:34 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8992-libra: Remove superfluous status = "okay"

The framebuffer is already enabled by default.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-5-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8992-libra: Temporarily restrict CPU count to 1
Konrad Dybcio [Sat, 19 Mar 2022 17:46:33 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8992-libra: Temporarily restrict CPU count to 1

The phone seems to randomly crash when more than 1 CPU is enabled, which
is probably related to lack of some driver.

Restrict the device to only use a single core until this is solved.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-4-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8992-libra: Add CPU regulators
Konrad Dybcio [Sat, 19 Mar 2022 17:46:32 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8992-libra: Add CPU regulators

Specify CPU regulator voltages for both VDD_APC rails.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-3-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: msm8994: Fix sleep clock name
Konrad Dybcio [Sat, 19 Mar 2022 17:46:31 +0000 (18:46 +0100)]
arm64: dts: qcom: msm8994: Fix sleep clock name

The sleep clock name expected by GCC is actually "sleep" and not
"sleep_clk". Fix the clock-names value for it to make sure it is
provided.

Fixes: 9204da57cd65 ("arm64: dts: qcom: msm8994: Provide missing "xo_board" and "sleep_clk" to GCC")

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-2-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: sc7280: Support gpu speedbin
Akhil P Oommen [Fri, 25 Feb 2022 19:21:32 +0000 (00:51 +0530)]
arm64: dts: qcom: sc7280: Support gpu speedbin

Add speedbin fuse and additional OPPs for gpu to support sc7280 SKUs.

Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226005021.v2.5.I4c2cb95f06f0c37038c80cc1ad20563fdf0618e2@changeid
2 years agoarm64: dts: qcom: ipq8074: fix the sleep clock frequency
Kathiravan T [Fri, 11 Feb 2022 12:14:15 +0000 (17:44 +0530)]
arm64: dts: qcom: ipq8074: fix the sleep clock frequency

Sleep clock frequency should be 32768Hz. Lets fix it.

Cc: stable@vger.kernel.org
Fixes: 41dac73e243d ("arm64: dts: Add ipq8074 SoC and HK01 board support")
Link: https://lore.kernel.org/all/e2a447f8-6024-0369-f698-2027b6edcf9e@codeaurora.org/
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1644581655-11568-1-git-send-email-quic_kathirav@quicinc.com
2 years agoarm64: dts: qcom: sm8250: Drop flags for mdss irqs
Dmitry Baryshkov [Wed, 2 Mar 2022 22:54:10 +0000 (01:54 +0300)]
arm64: dts: qcom: sm8250: Drop flags for mdss irqs

The number of interrupt cells for the mdss interrupt controller is 1,
meaning there should only be one cell for the interrupt number, not two.
Drop the second cell containing (unused) irq flags.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: 7c1dffd471b1 ("arm64: dts: qcom: sm8250.dtsi: add display system nodes")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220302225411.2456001-5-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sdm845: Drop flags for mdss irqs
Dmitry Baryshkov [Wed, 2 Mar 2022 22:54:09 +0000 (01:54 +0300)]
arm64: dts: qcom: sdm845: Drop flags for mdss irqs

The number of interrupt cells for the mdss interrupt controller is 1,
meaning there should only be one cell for the interrupt number, not two.
Drop the second cell containing (unused) irq flags.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: 08c2a076d18f ("arm64: dts: qcom: sdm845: Add dpu to sdm845 dts file")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220302225411.2456001-4-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sdm660: Drop flags for mdss irqs
Dmitry Baryshkov [Wed, 2 Mar 2022 22:54:08 +0000 (01:54 +0300)]
arm64: dts: qcom: sdm660: Drop flags for mdss irqs

The number of interrupt cells for the mdss interrupt controller is 1,
meaning there should only be one cell for the interrupt number, not two.
Drop the second cell containing (unused) irq flags.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: ab290284398d ("arm64: dts: qcom: sdm660: Add required nodes for DSI1")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220302225411.2456001-3-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sdm630: Drop flags for mdss irqs
Dmitry Baryshkov [Wed, 2 Mar 2022 22:54:07 +0000 (01:54 +0300)]
arm64: dts: qcom: sdm630: Drop flags for mdss irqs

The number of interrupt cells for the mdss interrupt controller is 1,
meaning there should only be one cell for the interrupt number, not two.
Drop the second cell containing (unused) irq flags.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: b52555d590d1 ("arm64: dts: qcom: sdm630: Add MDSS nodes")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220302225411.2456001-2-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: msm8996: Drop flags for mdss irqs
Dmitry Baryshkov [Wed, 2 Mar 2022 22:54:06 +0000 (01:54 +0300)]
arm64: dts: qcom: msm8996: Drop flags for mdss irqs

The number of interrupt cells for the mdss interrupt controller is 1,
meaning there should only be one cell for the interrupt number, not two.
Drop the second cell containing (unused) irq flags.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: 12d540375736 ("arm64: dts: qcom: msm8996: Add DSI0 nodes")
Fixes: 3a4547c1fc2f ("arm64: qcom: msm8996.dtsi: Add Display nodes")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220302225411.2456001-1-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450-hdk: add pcie nodes
Dmitry Baryshkov [Tue, 1 Mar 2022 06:15:00 +0000 (09:15 +0300)]
arm64: dts: qcom: sm8450-hdk: add pcie nodes

Add device tree nodes for PCIe0/PCIe1 controllers and corresponding
PHYs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-8-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450-qrd: enable PCIe0 host
Dmitry Baryshkov [Tue, 1 Mar 2022 06:14:59 +0000 (09:14 +0300)]
arm64: dts: qcom: sm8450-qrd: enable PCIe0 host

Enable PCIe0 host on SM8450 QRD device.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-7-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450-qrd: enable PCIe0 PHY device
Dmitry Baryshkov [Tue, 1 Mar 2022 06:14:58 +0000 (09:14 +0300)]
arm64: dts: qcom: sm8450-qrd: enable PCIe0 PHY device

Enable PCIe0 PHY on the SM8450 QRD device.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-6-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450: add PCIe1 root device
Dmitry Baryshkov [Tue, 1 Mar 2022 06:14:57 +0000 (09:14 +0300)]
arm64: dts: qcom: sm8450: add PCIe1 root device

Add device tree node for the second PCIe host found on the Qualcomm
SM8450 platform.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-5-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450: add PCIe1 PHY node
Dmitry Baryshkov [Tue, 1 Mar 2022 06:14:56 +0000 (09:14 +0300)]
arm64: dts: qcom: sm8450: add PCIe1 PHY node

Add device tree node for the second PCIe PHY device found on the Qualcomm
SM8450 platform.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-4-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450: add PCIe0 RC device
Dmitry Baryshkov [Tue, 1 Mar 2022 06:14:55 +0000 (09:14 +0300)]
arm64: dts: qcom: sm8450: add PCIe0 RC device

Add device tree node for the first PCIe host found on the Qualcomm
SM8450 platform.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-3-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sm8450: add PCIe0 PHY node
Dmitry Baryshkov [Tue, 1 Mar 2022 06:14:54 +0000 (09:14 +0300)]
arm64: dts: qcom: sm8450: add PCIe0 PHY node

Add device tree node for the first PCIe PHY device found on the Qualcomm
SM8450 platform.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220301061500.2110569-2-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: sc7280: Add lpasscore & lpassaudio clock controllers
Taniya Das [Wed, 2 Feb 2022 05:32:07 +0000 (11:02 +0530)]
arm64: dts: qcom: sc7280: Add lpasscore & lpassaudio clock controllers

Add the low pass audio clock controller device nodes.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220202053207.14256-1-tdas@codeaurora.org
2 years agoMerge branch '20220223172248.18877-1-tdas@codeaurora.org' into arm64-for-5.19
Bjorn Andersson [Wed, 13 Apr 2022 02:18:13 +0000 (21:18 -0500)]
Merge branch '20220223172248.18877-1-tdas@codeaurora.org' into arm64-for-5.19

2 years agodt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280
Taniya Das [Wed, 23 Feb 2022 17:22:47 +0000 (22:52 +0530)]
dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280

The LPASS(Low Power Audio Subsystem) clock provider have a bunch of generic
properties that are needed in a device tree. Also add clock ids for
LPASS core clocks and audio clock IDs for LPASS client to request for
the clocks.

Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220223172248.18877-1-tdas@codeaurora.org
2 years agoarm64: dts: qcom: msm8996: User generic node name for DMA
Kuldeep Singh [Sun, 10 Apr 2022 17:50:53 +0000 (23:20 +0530)]
arm64: dts: qcom: msm8996: User generic node name for DMA

Qcom BAM DT spec expects generic DMA controller node name as
"dma-controller" to enable validations.

Signed-off-by: Kuldeep Singh <singh.kuldeep87k@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220410175056.79330-4-singh.kuldeep87k@gmail.com
2 years agoarm64: dts: qcom: msm8916-huawei-g7: Add sound card
Stephan Gerhold [Sun, 10 Apr 2022 19:51:13 +0000 (21:51 +0200)]
arm64: dts: qcom: msm8916-huawei-g7: Add sound card

The huawei-g7 uses the msm8916-wcd-digital/analog audio codecs similar
to apq8016-sbc, so we can mostly copy paste it from there to make audio
work correctly. The main difference is the hphl-jack-type-normally-open
property, which is needed to avoid inverted audio jack detection.

Note that at least on my device the jack detection is not fully
reliable: sometimes headphones are detected as headsets (with
microphone). However, this is not a big problem for typical usage.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220410195113.13646-3-stephan@gerhold.net
2 years agoarm64: dts: qcom: msm8916-huawei-g7: Clarify installation instructions
Stephan Gerhold [Sun, 10 Apr 2022 19:51:12 +0000 (21:51 +0200)]
arm64: dts: qcom: msm8916-huawei-g7: Clarify installation instructions

The comment with installation instructions in the huawei-g7 device tree
is a bit misleading and does not describe the recommended installation
steps very well. The bootloader is actually not patched; to avoid all
trouble with the vendor bootloader it is easier to bypass it completely
by jumping to a custom bootloader (e.g. based on the open-source LK
released by Qualcomm).

To avoid confusion, simplify the comment to state only the problem
and then refer to the wiki article which contains detailed suggested
installation instructions. This will also make it easier to keep it
up to date with new developments in the future.

Fixes: 55056b229189 ("arm64: dts: qcom: msm8916: Add device tree for Huawei Ascend G7")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220410195113.13646-2-stephan@gerhold.net
2 years agoarm64: dts: qcom: sm8250-edo: Add dual CS35L41 amps
Konrad Dybcio [Tue, 22 Feb 2022 01:48:05 +0000 (02:48 +0100)]
arm64: dts: qcom: sm8250-edo: Add dual CS35L41 amps

Add nodes for dual Cirrus Logic CS35L41 audio amps connected via I2C.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220222014806.22446-1-konrad.dybcio@somainline.org
2 years agoarm64: dts: qcom: sc7280: Add reset entries for SDCC controllers
Shaik Sajida Bhanu [Tue, 12 Apr 2022 10:32:08 +0000 (16:02 +0530)]
arm64: dts: qcom: sc7280: Add reset entries for SDCC controllers

Add gcc hardware reset entries for eMMC and SD card.

Signed-off-by: Shaik Sajida Bhanu <quic_c_sbhanu@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1649759528-15125-3-git-send-email-quic_c_sbhanu@quicinc.com
2 years agoarm64: dts: qcom: sc7280-herobrine: Audio codec wants 1.8V, not 1.62V
Douglas Anderson [Mon, 11 Apr 2022 21:13:39 +0000 (14:13 -0700)]
arm64: dts: qcom: sc7280-herobrine: Audio codec wants 1.8V, not 1.62V

The L2C rail on herobrine boards is intended to go to the audio
codec. Let's override the 1.62V specified in the qcard.dtsi file to be
1.8V.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220411141332.v2.1.I9f06fec63b978699fe62591fec9e5ac31bb3a69d@changeid
2 years agoarm64: dts: qcom: ipq6018: Fix qmp usb3 phy node
Bhupesh Sharma [Mon, 28 Feb 2022 12:30:17 +0000 (18:00 +0530)]
arm64: dts: qcom: ipq6018: Fix qmp usb3 phy node

Fix the following 'make dtbs_check' warning(s) by
using phy@ instead of lanes@ and by moving '#clock-cells' to
sub-node:

arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dt.yaml: ssphy@78000:
 'lane@78200' does not match any of the regexes: '^phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
[bjorn: s/clock-names/clock-cells/ per Shawn's feedback]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220228123019.382037-7-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: sm8450: Fix qmp ufs phy node (use phy@ instead of lanes@)
Bhupesh Sharma [Mon, 28 Feb 2022 12:30:16 +0000 (18:00 +0530)]
arm64: dts: qcom: sm8450: Fix qmp ufs phy node (use phy@ instead of lanes@)

Fix the 'make dtbs_check' warning:

arch/arm64/boot/dts/qcom/sm8450-qrd.dt.yaml: phy@1d87000:
 'lanes@1d87400' does not match any of the regexes: '^phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220228123019.382037-6-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: sc7280: Fix qmp phy node (use phy@ instead of lanes@)
Bhupesh Sharma [Mon, 28 Feb 2022 12:30:15 +0000 (18:00 +0530)]
arm64: dts: qcom: sc7280: Fix qmp phy node (use phy@ instead of lanes@)

Fix the 'make dtbs_check' warning:

arch/arm64/boot/dts/qcom/sc7280-idp.dt.yaml: phy@1c0e000:
  'lanes@1c0e200' does not match any of the regexes: '^phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220228123019.382037-5-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: msm8996-xiaomi: Drop max-microamp and vddp-ref-clk properties from...
Bhupesh Sharma [Mon, 28 Feb 2022 12:30:14 +0000 (18:00 +0530)]
arm64: dts: qcom: msm8996-xiaomi: Drop max-microamp and vddp-ref-clk properties from QMP PHY

The following properties are not supported and causing dtbs_check
warnings.

    - vdda-phy-max-microamp
    - vdda-pll-max-microamp
    - vddp-ref-clk-max-microamp
    - vddp-ref-clk-always-on

arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dt.yaml: phy@627000:
   'vdda-phy-max-microamp', 'vddp-ref-clk-always-on', 'vddp-ref-clk-max-microamp'
    do not match any of the regexes: '^phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Drop them from QMP PHY nodes for 'msm8996-xiaomi' dts.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220228123019.382037-4-bhupesh.sharma@linaro.org
2 years agoarm64: dts: qcom: msm8916: Add BAM-DMUX for WWAN network interfaces
Stephan Gerhold [Mon, 28 Feb 2022 22:54:00 +0000 (23:54 +0100)]
arm64: dts: qcom: msm8916: Add BAM-DMUX for WWAN network interfaces

The BAM Data Multiplexer provides access to the network data channels
of modems integrated into many older Qualcomm SoCs, including MSM8916.

Add the nodes for the BAM DMA engine and BAM-DMUX to enable using WWAN
on smartphones/tablets based on MSM8916. This should work out of the box
with open-source WWAN userspace such as ModemManager.

The nodes are disabled by default to avoid loading unnecessary drivers
on devices that cannot use BAM-DMUX (e.g. DragonBoard 410c). However,
strictly speaking the nodes could be enabled by default since both the
bam_dma and bam_dmux driver will simply do nothing if the modem does
not announce any BAM-DMUX channels.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220228225400.146555-3-stephan@gerhold.net
2 years agoarm64: dts: qcom: add pm8450 support
Dmitry Baryshkov [Sat, 26 Feb 2022 20:50:35 +0000 (23:50 +0300)]
arm64: dts: qcom: add pm8450 support

Add PM8450 PMIC device tree include file. It is going to be used by
SM8450-based devices.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226205035.1826360-8-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: pmr735a: stop depending on thermal_zones label
Dmitry Baryshkov [Sat, 26 Feb 2022 20:50:33 +0000 (23:50 +0300)]
arm64: dts: qcom: pmr735a: stop depending on thermal_zones label

Most of SoC device trees do not provide the thermal_zones label. Thus
stop depending on it and use the full path to the thermal zones nodes.

Fixes: 7a3544e5d4e8 ("arm64: dts: qcom: pmr735a: Add temp-alarm support")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226205035.1826360-6-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: pm8350c: stop depending on thermal_zones label
Dmitry Baryshkov [Sat, 26 Feb 2022 20:50:32 +0000 (23:50 +0300)]
arm64: dts: qcom: pm8350c: stop depending on thermal_zones label

Most of SoC device trees do not provide the thermal_zones label. Thus
stop depending on it and use the full path to the thermal zones nodes.

Fixes: 3795fe7d497b ("arm64: dts: qcom: pm8350c: Add temp-alarm support")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226205035.1826360-5-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: pmr735b: add temp sensor and thermal zone config
Dmitry Baryshkov [Sat, 26 Feb 2022 20:50:31 +0000 (23:50 +0300)]
arm64: dts: qcom: pmr735b: add temp sensor and thermal zone config

Add temp-alarm device tree node and a default configuration for the
corresponding thermal zone for this PMIC. Temperatures are based on
downstream values.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226205035.1826360-4-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: pm8350b: add temp sensor and thermal zone config
Dmitry Baryshkov [Sat, 26 Feb 2022 20:50:30 +0000 (23:50 +0300)]
arm64: dts: qcom: pm8350b: add temp sensor and thermal zone config

Add temp-alarm device tree node and a default configuration for the
corresponding thermal zone for this PMIC. Temperatures are based on
downstream values.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226205035.1826360-3-dmitry.baryshkov@linaro.org
2 years agoarm64: dts: qcom: pm8350: add temp sensor and thermal zone config
Dmitry Baryshkov [Sat, 26 Feb 2022 20:50:29 +0000 (23:50 +0300)]
arm64: dts: qcom: pm8350: add temp sensor and thermal zone config

Add temp-alarm device tree node and a default configuration for the
corresponding thermal zone for this PMIC. Temperatures are based on
downstream values.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220226205035.1826360-2-dmitry.baryshkov@linaro.org