Krzysztof Kozlowski
e227fa2970
arm64: dts: qcom: sm8350: align TLMM pin configuration with DT schema
...
DT schema expects TLMM pin configuration nodes to be named with '-state'
suffix and their optional children with '-pins' suffix.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220912061746.6311-38-krzysztof.kozlowski@linaro.org
2022-09-13 14:47:17 -05:00
Krzysztof Kozlowski
c9c53d1f43
arm64: dts: qcom: sm8350-sagami: correct TS pin property
...
The pin configuration is selected with "pins", not "pin" property.
Fixes: 1209e92466 ("arm64: dts: qcom: sm8350-sagami: Enable and populate I2C/SPI nodes")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220912061746.6311-37-krzysztof.kozlowski@linaro.org
2022-09-13 14:47:17 -05:00
Krzysztof Kozlowski
448f5a002f
arm64: dts: qcom: sm6350: align TLMM pin configuration with DT schema
...
DT schema expects TLMM pin configuration nodes to be named with '-state'
suffix and their optional children with '-pins' suffix.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220912061746.6311-36-krzysztof.kozlowski@linaro.org
2022-09-13 14:47:17 -05:00
Krzysztof Kozlowski
be24fd19b1
arm64: dts: qcom: sm6125: align TLMM pin configuration with DT schema
...
DT schema expects TLMM pin configuration nodes to be named with '-state'
suffix and their optional children with '-pins' suffix.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220912061746.6311-35-krzysztof.kozlowski@linaro.org
2022-09-13 14:47:17 -05:00
Judy Hsiao
61a301ca83
arm64: dts: qcom: sc7280: Fix Dmic no sound on villager-r1
...
Fix the DMIC no sound issue of villager-r1 by using "PP1800_L2C" as the
DMIC power source to match the hardware schematic.
This patch:
1. set vdd-micb-supply to PP1800_L2C as the MIC Bias voltage regulator.
2. In audio-routing, set VA DMIC01~VA DMIC03 to use the vdd-micb-supply
setting.
Co-developed-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Signed-off-by: Judy Hsiao <judyhsiao@chromium.org >
Reviewed-by: Stephen Boyd <swboyd@chromium.org >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220826065621.2255795-1-judyhsiao@chromium.org
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
29e0b604f0
arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1
...
Add dt nodes for sound card support on rev5+ (aka CRD 3.0/3.1) boards,
which is using WCD9385 headset playback, capture, I2S speaker playback
and DMICs via VA macro.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-13-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
ece7d81f24
arm64: dts: qcom: sc7280: Add sound node for CRD 1.0/2.0 and IDP boards
...
Add dt nodes for sound card support on revision 3, 4
(aka CRD 1.0 and 2.0) and IDP boards, which is using WCD9385 headset
playback, capture, I2S speaker playback and DMICs via VA macro.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-12-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
f10c73ac6e
arm64: dts: qcom: sc7280: Enable lpass cpu node for CRD 3.0/3.1
...
Enable lpass cpu node and add pin control and dai-links for audio on
sc7280 based platforms of rev5+ (aka CRD 3.0/3.1) boards.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-11-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
8cf4133bc1
arm64: dts: qcom: sc7280: Enable lpass cpu node for CRD 1.0/2.0 and IDP boards.
...
Enable lpass cpu node and add pin control and dai-links for audio on sc7280
based platforms of revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Reviewed-by: Stephen Boyd <swboyd@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-10-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
aee6873edb
arm64: dts: qcom: sc7280: Add lpass cpu node
...
Add lpass cpu node for audio on sc7280 based platforms.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Reviewed-by: Stephen Boyd <swboyd@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-9-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
14afeaf917
arm64: dts: qcom: sc7280: herobrine: Add max98360a codec node
...
Add max98360a codec node for audio use case on all herobrine boards.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-8-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
d6c006f510
arm64: dts: qcom: sc7280: Add max98360a codec for CRD 1.0/2.0 and IDP boards
...
Add max98360a codec node for audio use case on revision 3, 4
(aka CRD 1.0 and 2.0) and IDP boards.
Add amp_en node for max98360a codec pin control.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-7-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
0a3a56a93f
arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1
...
Add wcd9385 codec node for audio use case on CRD rev5+ (aka CRD 3.0/3.1)
boards. Add tlmm gpio property for switching CTIA/OMTP Headset.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-6-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
f8b4eb64f2
arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 1.0/2.0 and IDP boards
...
Add wcd9385 codec node for audio use case on sc7280 based platforms
of revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards.
Add tlmm gpio property for switching CTIA/OMTP Headset.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-5-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
d5a959f96b
arm64: dts: qcom: sc7280: Enable digital codecs and soundwire for CRD 3.0/3.1
...
Enable rx, tx and va macro codecs and soundwire nodes for
CRD rev5+ (aka CRD 3.0/3.1) boards.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-4-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
d3219de8bc
arm64: dts: qcom: sc7280: Enable digital codecs and soundwire for CRD 1.0/2.0 and IDP boards
...
Enable rx, tx and va macro codecs and soundwire nodes on revision 3,
4 (aka CRD 1.0 and 2.0) and IDP boards.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-3-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Srinivasa Rao Mandadapu
12ef689f09
arm64: dts: qcom: sc7280: Add nodes for soundwire and va tx rx digital macro codecs
...
SC7280 has VA, TX and RX macros with SoundWire Controllers to attach with
external codecs using soundwire masters. Add these nodes for sc7280 based
platforms audio use case.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com >
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1657200184-29565-2-git-send-email-quic_srivasam@quicinc.com
2022-09-13 09:57:24 -05:00
Taniya Das
c9a406b42f
dt-bindings: clock: Add support for external MCLKs for LPASS on SC7280
...
Support external mclk to interface external MI2S clocks for SC7280.
Fixes: 4185b27b3b ("dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280")
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Taniya Das <quic_tdas@quicinc.com >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1662005846-4838-5-git-send-email-quic_c_skakit@quicinc.com
2022-09-13 09:57:24 -05:00
Taniya Das
42801e6185
dt-bindings: clock: Add resets for LPASS audio clock controller for SC7280
...
Add support for LPASS audio clock gating for RX/TX/SWA core bus clocks
for SC7280. Update reg property min/max items in YAML schema.
Fixes: 4185b27b3b ("dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280")
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Taniya Das <quic_tdas@quicinc.com >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1662005846-4838-4-git-send-email-quic_c_skakit@quicinc.com
2022-09-13 09:57:23 -05:00
Taniya Das
05c2312889
dt-bindings: clock: Add "qcom,adsp-pil-mode" property
...
When this property is set, the remoteproc is used to boot the
LPASS and therefore lpass_q6ss_ahbm_clk and lpass_q6ss_ahbs_clk
clocks would be used to bring LPASS out of reset and the rest of
the lpass clocks would be controlled directly by the remoteproc.
This is a cleanup done to handle overlap of regmap of
lpasscc and lpass_aon blocks.
Signed-off-by: Taniya Das <quic_tdas@quicinc.com >
Signed-off-by: Satya Priya <quic_c_skakit@quicinc.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/1662005846-4838-2-git-send-email-quic_c_skakit@quicinc.com
2022-09-13 09:57:23 -05:00
Jimmy Chen
d42fae738f
arm64: dts: qcom: Add LTE SKUs for sc7280-villager family
...
This adds LTE skus for villager device tree files.
Signed-off-by: Jimmy Chen <jinghung.chen3@hotmail.com >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/SG2PR03MB5006B0C3E57803E3B1E0EDBCCC949@SG2PR03MB5006.apcprd03.prod.outlook.com
2022-09-13 09:57:23 -05:00
Jimmy Chen
3accba70e2
arm64: dts: qcom: sc7280: Add herobrine-villager-r1
...
This adds sc7280-herobrine-villager-r1.dts for villager device tree files.
Herobrine-r1 is exactly the same as -r0 except that it uses a
different audio solution (it uses the same one as the CRD).
Signed-off-by: Jimmy Chen <jinghung.chen3@hotmail.com >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/SG2PR03MB500667CFE3F5F59585F8BA77CC949@SG2PR03MB5006.apcprd03.prod.outlook.com
2022-09-13 09:37:43 -05:00
Jimmy Chen
593ad9132f
dt-bindings: arm: qcom: document sc7280 and villager board
...
This adds a LTE skus for Chromebook Villager to the yaml.
Signed-off-by: Jimmy Chen <jinghung.chen3@hotmail.com >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/SG2PR03MB5006CE1EB9BFD95511133CA6CC949@SG2PR03MB5006.apcprd03.prod.outlook.com
2022-09-13 09:37:17 -05:00
Bhupesh Sharma
00d92171ee
arm64: dts: qcom: sa8155p-adp: Remove unused properties from eth node
...
The 'snps,ptp-ref-clk-rate' and 'snps,ptp-req-clk-rate' properties
are not supported by the stmmac driver currently, so remove
them from the sa8155p-adp ethernet node as well.
Cc: Bjorn Andersson <andersson@kernel.org >
Cc: Rob Herring <robh@kernel.org >
Cc: Vinod Koul <vkoul@kernel.org >
Cc: David Miller <davem@davemloft.net >
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220907204153.2039776-1-bhupesh.sharma@linaro.org
2022-09-08 18:17:06 -05:00
Krzysztof Kozlowski
b626ac159e
arm64: dts: qcom: sc7280: correct CPU BWMON unit address
...
Correct CPU BWMON unit address to match the "reg" property.
Reported-by: Stephen Boyd <swboyd@chromium.org >
Fixes: b2f3eac1b7 ("arm64: dts: qcom: sc7280: Add cpu and llcc BWMON")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220908085830.39141-1-krzysztof.kozlowski@linaro.org
2022-09-08 18:16:52 -05:00
Jakob Hauser
3ae82f22ed
arm64: dts: qcom: msm8916-samsung-serranove: Add magnetometer
...
Add magnetometer Yamaha YAS537 to the DeviceTree of samsung-serranove.
The YAS537 variant was recently added to the Yamaha YAS magnetometers
driver [1].
In the DeviceTree of samsung-serranove for the Android kernel, there is
unfortunately no information on interrupts or pinctrl [2].
In the Android kernel driver for magnetometer Yamaha YAS537, there is a
device-specific matrix to correct an ellipsoid shape of the measure values
into a sphere shape [3]. This could be converted and applied to a mount-matrix.
However, the current state of the mainline Yamaha YAS537 driver needs
post-process calibration in userspace anyway, as it lacks a formula to center
the measure values around zero. The correction of the ellipsoid into a sphere
can be done in the post-process calibration as well.
A mount-matrix is needed nonetheless. When putting samsung-serranove flat on
a table in portrait orientation heading north, the Yamaha YAS537 magnetometer
axes natively point X+ to north, Y+ to east and Z+ into the ground, which
corresponds to a common way to define the Earth's magnetic field coordinate
system [4]. According to the IIO definition, it should be Y+ to north, X+ to
east and Z+ upwards [5], which corresponds to a common device coordinate system
and eases sensor fusing.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/iio/magnetometer/yamaha-yas530.c?id=65f79b501030678393eae0ae03d60a8151fbef55
[2] https://github.com/msm8916-mainline/android_kernel_qcom_msm8916/blob/GT-I9195I/arch/arm/boot/dts/samsung/msm8916/msm8916-sec-serranovelte-eur-r03.dtsi#L318-L321
[3] https://github.com/msm8916-mainline/android_kernel_qcom_msm8916/blob/GT-I9195I/drivers/iio/magnetometer/yas_mag_drv-yas537.c#L105-L106
[4] https://en.wikipedia.org/wiki/Earth%27s_magnetic_field#Characteristics
[5] https://github.com/torvalds/linux/blob/v5.19/Documentation/devicetree/bindings/iio/mount-matrix.txt#L93-L126
Cc: Stephan Gerhold <stephan@gerhold.net >
Signed-off-by: Jakob Hauser <jahau@rocketmail.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220904214935.31032-1-jahau@rocketmail.com
2022-09-06 09:55:31 -05:00
Bhupesh Sharma
7dac799140
arm64: dts: qcom: sc8280xp-pmics: Remove reg entry & use correct node name for pmc8280c_lpg node
...
Commit eeca7d4621 ("arm64: dts: qcom: pm8350c: Drop PWM reg declaration")
dropped PWM reg declaration for pm8350c pwm(s), but there is a leftover
'reg' entry inside the lpg/pwm node in sc8280xp dts file. Remove the same.
While at it, also remove the unused unit address in the node
label.
Also, since dt-bindings expect LPG/PWM node name to be "pwm",
use correct node name as well, to fix the following
error reported by 'make dtbs_check':
'lpg' does not match any of the regexes
Fixes: eeca7d4621 ("arm64: dts: qcom: pm8350c: Drop PWM reg declaration")
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org >
Cc: Bjorn Andersson <andersson@kernel.org >
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org >
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220905070240.1634997-1-bhupesh.sharma@linaro.org
2022-09-06 09:55:09 -05:00
Luca Weiss
80f63766e5
arm64: dts: qcom: sm7225-fairphone-fp4: Add pm7250b PMIC
...
The PM7250B is primarily used for charger and fuel gauge on Fairphone 4
but also has some thermal zones that we can configure already.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220902111055.106814-3-luca.weiss@fairphone.com
2022-09-06 09:54:49 -05:00
Luca Weiss
11975b9b81
arm64: dts: qcom: Add pm7250b PMIC
...
PM7250B is a PMIC primarily used for charging and fuel gauge but also
has some of the standard functionality like temp-alarm, adc, etc.
Add the .dtsi with some of the functionality added.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220902111055.106814-2-luca.weiss@fairphone.com
2022-09-06 09:54:49 -05:00
Johan Hovold
d0909bf4fa
arm64: dts: qcom: fix syscon node names
...
Some recent changes that added new syscon nodes used misspelled node names.
Fixes: 86d7c9460e arm64: dts: qcom: sm8150: split TCSR halt regs out of mutex
Fixes: 0da6033872 arm64: dts: qcom: sdm630: split TCSR halt regs out of mutex
Fixes: 8a8531e69b arm64: dts: qcom: sdm845: split TCSR halt regs out of mutex
Fixes: d9a2214d6b arm64: dts: qcom: sc7280: split TCSR halt regs out of mutex
Fixes: ce1ac53c7f arm64: dts: qcom: sc7180: split TCSR halt regs out of mutex
Fixes: fc10cfa385 arm64: dts: qcom: msm8998: split TCSR halt regs out of mutex
Fixes: 100ce22059 arm64: dts: qcom: msm8996: split TCSR halt regs out of mutex
Signed-off-by: Johan Hovold <johan+linaro@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220905091602.20364-1-johan+linaro@kernel.org
2022-09-05 21:52:32 -05:00
Johan Hovold
ae240fbffb
arm64: dts: qcom: sc8280xp: mark USB controllers as wakeup-sources
...
The primary and secondary USB controllers can be used to wake the system
from suspend so mark them accordingly.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Tested-by: Steev Klimaszewski <steev@kali.org > #Lenovo Thinkpad X13s
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220902081652.12631-1-johan+linaro@kernel.org
2022-09-05 21:52:04 -05:00
Sheng-Liang Pan
2abf6b6b94
arm64: dts: qcom: sc7280: Add device tree for herobrine evoker
...
Add a basic device tree for the herobrine evoker board.
Signed-off-by: Sheng-Liang Pan <sheng-liang.pan@quanta.corp-partner.google.com >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220902160845.v5.2.I7dd7a79c4cc5fe91c3feb004473feb3b34b7b2d8@changeid
2022-09-05 21:51:48 -05:00
Sheng-Liang Pan
8336a4e761
dt-bindings: arm: qcom: document sc7280 and evoker board
...
This adds Chromebook Evoker to the yaml.
Signed-off-by: Sheng-Liang Pan <sheng-liang.pan@quanta.corp-partner.google.com >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220902160845.v5.1.Ief93544cd0cbfa412092f5de92de10d59a2a5b3a@changeid
2022-09-05 21:51:48 -05:00
Rajendra Nayak
b2f3eac1b7
arm64: dts: qcom: sc7280: Add cpu and llcc BWMON
...
Add cpu and llcc BWMON nodes and their corresponding
OPP tables for sc7280 SoC.
Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220902043511.17130-5-quic_rjendra@quicinc.com
2022-09-05 21:51:22 -05:00
Krzysztof Kozlowski
209a04885a
arm64: dts: qcom: sdm845-mtp: correct ADC settle time
...
The PMIC's VADC property for settle time is qcom,hw-settle-time, not
qcom,hw-settle-time-us. The latter is used in PMIC's TM ADC.
qcom/sdm845-mtp.dtb: pmic@0: adc@3100:adc-chan@4c: 'qcom,hw-settle-time-us' does not match any of the regexes: 'pinctrl-[0-9]+'
Fixes: d5e12f3823 ("arm64: dts: qcom: sdm845: mtp: Add vadc channels and thermal zones")
Cc: <stable@vger.kernel.org >
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: David Heidelberg <david@ixit.cz >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-13-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:34 -05:00
Krzysztof Kozlowski
5589ffb2da
arm64: dts: qcom: sc7280-idp: correct ADC channel node name and unit address
...
Correct SPMI PMIC VADC channel node name:
1. Use hyphens instead of underscores,
2. Add missing unit address.
This fixes `make dtbs_check` warnings like:
qcom/sc7280-idp.dtb: pmic@0: adc@3100: 'pmk8350_die_temp', 'pmr735a_die_temp' do not match any of the regexes: '^.*@[0-9a-f]+$', 'pinctrl-[0-9]+'
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: David Heidelberg <david@ixit.cz >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-12-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:34 -05:00
Krzysztof Kozlowski
09a19abffb
arm64: dts: qcom: align PMIC GPIO pin configuration with DT schema
...
DT schema expects PMIC GPIO pin configuration nodes to be named with
'-state' suffix:
qcom/sc7280-herobrine-crd.dtb: pmic@2: gpio@8800: 'edp-bl-reg-en' does not match any of the regexes: '-state$', 'pinctrl-[0-9]+'
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: David Heidelberg <david@ixit.cz >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-11-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:34 -05:00
Krzysztof Kozlowski
87783dbe1c
arm64: dts: qcom: align SPMI PMIC Power-on node name with dtschema
...
Bindings expect Power-on node name to be "pon":
'power-on@800' do not match any of the regexes
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: David Heidelberg <david@ixit.cz >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-10-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:34 -05:00
Krzysztof Kozlowski
15f50a4871
arm64: dts: qcom: align SPMI PMIC LPG node name with dtschema
...
Bindings expect LPG/PWM node name to be "pwm":
pmic@5: 'lpg' does not match any of the regexes
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: David Heidelberg <david@ixit.cz >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-9-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:34 -05:00
Krzysztof Kozlowski
c29ed5af6f
arm64: dts: qcom: align SPMI PMIC regulators node name with dtschema
...
Bindings expect regulators node name to be "regulators":
qcom/sdm630-sony-xperia-nile-voyager.dtb: pmic@3: 'pm660l-regulators' does not match any of the regexes
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: David Heidelberg <david@ixit.cz >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-8-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:34 -05:00
Krzysztof Kozlowski
fe9132202a
arm64: dts: qcom: align SPMI PMIC ADC node name with dtschema
...
Bindings expect VADC node name to be "adc":
pmic@0: 'vadc@3100' does not match any of the regexes
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-7-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:29 -05:00
Krzysztof Kozlowski
64a48a25ae
arm64: dts: qcom: pmk8350: drop interrupt-names from ADC
...
The SPMI PMIC VADC and Thermal Monitoring ADC have only one interrupt
line and their bindings do not allow interrupt-names. None of other
variants use them, so drop it from DTSI.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-6-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:25 -05:00
Krzysztof Kozlowski
448d8cdea6
arm64: dts: qcom: pmk8350: drop incorrect io-channel-ranges
...
Since commit 044b32fa52 ("dt-bindings:iio:qcom-spmi-vadc drop
incorrect io-channel-ranges from example") the io-channel-ranges are not
allowed in the Qualcomm SPMI PMIC ADC and anyway they are not correct
for IIO provider.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828084341.112146-5-krzysztof.kozlowski@linaro.org
2022-08-29 21:59:22 -05:00
Akhil P Oommen
ad3b0f33fa
arm64: dts: qcom: sc7280: Update gpu opp table
...
On the lite sku where GPU Fmax is 550Mhz, voting for a slightly higher
bandwidth at the highest gpu opp helps to improve "Manhattan offscreen"
score by 10%. Update the gpu opp table such that this is applicable only
on SKUs which has 550Mhz as GPU Fmax.
Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220829011035.1.Ie3564662150e038571b7e2779cac7229191cf3bf@changeid
2022-08-29 21:57:27 -05:00
Matthias Kaehlcke
cab29d324a
arm64: dts: qcom: sc7280-qcard: Add alias 'wifi0'
...
Add the alias 'wifi0' for the WiFi interface on the Qcard. The alias
is needed by the BIOS which patches the WiFi MAC address read from
the VPD (Vital Product Data) into the device tree.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220829094435.1.I4534cf408373478dd6e84dc8b9ddd0d4e1a3f143@changeid
2022-08-29 21:57:10 -05:00
Dmitry Baryshkov
9ea5ae6299
arm64: dts: qcom: sm8250: move DSI opp table to the dsi0 node
...
It makes no sense to have the OPP table for the DSI controllers in the
DSI1 PHY node. Move it to more logical dsi0 device node.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org >
Reviewed-by: Caleb Connolly <caleb@connolly.tech >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220822191138.316912-1-dmitry.baryshkov@linaro.org
2022-08-29 17:30:52 -05:00
Eric Biggers
276ee34a40
arm64: dts: qcom: sm8450: add Inline Crypto Engine registers and clock
...
Add the registers and clock for the Inline Crypto Engine (ICE) to the
device tree node for the UFS host controller on sm8450. This makes
ufs_qcom support inline encryption when CONFIG_SCSI_UFS_CRYPTO=y.
The address and size of the register range, and the minimum and maximum
frequency of the ICE core clock, all match the values used downstream.
I've validated this on an SM8450 HDK using the 'encrypt' group of
xfstests on ext4 with MOUNT_OPTIONS="-o inlinecrypt".
Signed-off-by: Eric Biggers <ebiggers@google.com >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220826071244.185584-1-ebiggers@kernel.org
2022-08-29 17:25:39 -05:00
Matthias Kaehlcke
643d05163e
arm64: dts: qcom: sc7280-herobrine: Don't enable the USB 2.0 port
...
The USB 2.0 port of sc7280 is currently not used by any herobrine
board. Delete the device tree entries that enable it.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org >
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220826084813.1.I8c9a771fcf4d1cfb6e8e0ef17a153143af9a644d@changeid
2022-08-29 17:25:15 -05:00
Stephen Boyd
144fbd028f
arm64: dts: qcom: sc7180-trogdor: Keep pm6150_adc enabled for TZ
...
There's still a thermal zone using pm6150_adc in the pm6150.dtsi file,
pm6150_thermal. It's not super obvious because it indirectly uses the
adc through an iio channel in pm6150_temp. Let's keep this enabled on
lazor and coachz so that reading the temperature of the pm6150_thermal
zone continues to work. Otherwise we get -EINVAL when reading the zone,
and I suspect the PMIC temperature trip doesn't work properly so we
don't shutdown when the PMIC overheats.
Cc: Matthias Kaehlcke <mka@chromium.org >
Fixes: b8d1e3d334 ("arm64: dts: qcom: sc7180-trogdor: Delete ADC config for unused thermistors")
Signed-off-by: Stephen Boyd <swboyd@chromium.org >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220827004901.511543-1-swboyd@chromium.org
2022-08-29 17:25:06 -05:00
Bryan O'Donoghue
eeca7d4621
arm64: dts: qcom: pm8350c: Drop PWM reg declaration
...
The PWM is a part of the SPMI PMIC block and maps several different
addresses within the SPMI block. It is not accurate to describe as pwm@reg
as a result.
Fixes: 5be66d2dc8 ("arm64: dts: qcom: pm8350c: Add pwm support")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org >
Signed-off-by: Bjorn Andersson <andersson@kernel.org >
Link: https://lore.kernel.org/r/20220828132648.3624126-3-bryan.odonoghue@linaro.org
2022-08-29 17:24:53 -05:00