platform/kernel/linux-starfive.git
19 months agodt-bindings: arm: qcom: Document msm8956 and msm8976 SoC and devices
Marijn Suijten [Fri, 11 Nov 2022 12:01:53 +0000 (13:01 +0100)]
dt-bindings: arm: qcom: Document msm8956 and msm8976 SoC and devices

Note that msm8976 is omitted as a compatible, since there are currently
no boards/devices using it.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221111120156.48040-9-angelogioacchino.delregno@collabora.com
20 months agodt-bindings: arm: add xiaomi,sagit board based on msm8998 chip
Dzmitry Sankouski [Sat, 12 Nov 2022 20:32:59 +0000 (23:32 +0300)]
dt-bindings: arm: add xiaomi,sagit board based on msm8998 chip

Add xiaomi,sagit board (Xiaomi Mi 6) binding.

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221112203300.536010-2-dsankouski@gmail.com
20 months agodt-bindings: arm: qcom: add sdm670 and pixel 3a compatible
Richard Acayan [Fri, 11 Nov 2022 00:18:17 +0000 (19:18 -0500)]
dt-bindings: arm: qcom: add sdm670 and pixel 3a compatible

The Snapdragon 670 and Pixel 3a initial device trees are about to be
added. Add the compatible strings for the board.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221111001818.124901-3-mailingradian@gmail.com
20 months agodt-bindings: arm: cpus: add qcom kryo 360 compatible
Richard Acayan [Fri, 11 Nov 2022 00:18:16 +0000 (19:18 -0500)]
dt-bindings: arm: cpus: add qcom kryo 360 compatible

The Snapdragon 670 uses CPUs named Kryo 360 silver and Kryo 360 gold.
Add the compatible string in the documentation.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221111001818.124901-2-mailingradian@gmail.com
20 months agoARM: dts: qcom-msm8960-cdp: align TLMM pin configuration with DT schema
Krzysztof Kozlowski [Wed, 9 Nov 2022 10:51:40 +0000 (11:51 +0100)]
ARM: dts: qcom-msm8960-cdp: 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>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
[bjorn: Fixed up expected typo in cs-pins function]
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221109105140.48196-3-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom-msm8960: use define for interrupt constants
Krzysztof Kozlowski [Wed, 9 Nov 2022 10:51:39 +0000 (11:51 +0100)]
ARM: dts: qcom-msm8960: use define for interrupt constants

Replace GIC_PPI, GIC_SPI and interrupt type numbers with appropriate
defines.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221109105140.48196-2-krzysztof.kozlowski@linaro.org
20 months agodt-bindings: arm: qcom: Document SM6375 & Xperia 10 IV
Konrad Dybcio [Mon, 7 Nov 2022 12:09:17 +0000 (13:09 +0100)]
dt-bindings: arm: qcom: Document SM6375 & Xperia 10 IV

Add compatibles for Sony Xperia 10 IV (PDX225) and the SM6375 SoC
it's based on.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221107120920.12593-2-konrad.dybcio@linaro.org
20 months agoARM: dts: qcom-apq8060: align TLMM pin configuration with DT schema
Krzysztof Kozlowski [Mon, 7 Nov 2022 18:59:31 +0000 (19:59 +0100)]
ARM: dts: qcom-apq8060: 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/20221107185931.22075-2-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom: msm8226: Add MMCC node
Rayyan Ansari [Sun, 2 Oct 2022 12:28:53 +0000 (15:28 +0300)]
ARM: dts: qcom: msm8226: Add MMCC node

Add a node for the Multimedia Clock Controller found on MSM8226.

Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221002122859.75525-2-matti.lehtimaki@gmail.com
20 months agodt-bindings: arm: qcom: Separate LTE/WIFI SKU for sc7280-evoker
Sheng-Liang Pan [Mon, 7 Nov 2022 09:43:41 +0000 (17:43 +0800)]
dt-bindings: arm: qcom: Separate LTE/WIFI SKU for sc7280-evoker

evoker will have WIFI/LTE SKU, separate it for each different setting.

Signed-off-by: Sheng-Liang Pan <sheng-liang.pan@quanta.corp-partner.google.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221107173954.v11.1.Ic800ee7b604bcb0519ca404600d7be2352725686@changeid
20 months agodt-bindings: arm: qcom: Document QDU1000/QRU1000 SoCs and boards
Melody Olvera [Wed, 26 Oct 2022 20:04:27 +0000 (13:04 -0700)]
dt-bindings: arm: qcom: Document QDU1000/QRU1000 SoCs and boards

Document the QDU1000 and QRU1000 SoC bindings and the boards that use
them.

Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221026200429.162212-3-quic_molvera@quicinc.com
20 months agoARM: dts: qcom: pm8941: fix iadc node
Luca Weiss [Mon, 31 Oct 2022 18:24:55 +0000 (19:24 +0100)]
ARM: dts: qcom: pm8941: fix iadc node

The spmi-pmic bindings require the iadc node to be named just 'adc'.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031182456.952648-2-luca@z3ntu.xyz
20 months agoARM: dts: qcom: pm8941: fix vadc channel node names
Luca Weiss [Mon, 31 Oct 2022 18:10:22 +0000 (19:10 +0100)]
ARM: dts: qcom: pm8941: fix vadc channel node names

The spmi-vadc bindings require the '@' in the node.

Additionally change the node name to adc-chan which both makes it a
generic node name and also removes the underscore from it.

At the same time sort the nodes by reg value.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031181022.947412-2-luca@z3ntu.xyz
20 months agoARM: dts: qcom: pma8084: fix vadc channel node names
Luca Weiss [Mon, 31 Oct 2022 18:10:21 +0000 (19:10 +0100)]
ARM: dts: qcom: pma8084: fix vadc channel node names

The spmi-vadc bindings require the '@' in the node.

Additionally change the node name to adc-chan which both makes it a
generic node name and also removes the underscore from it.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031181022.947412-1-luca@z3ntu.xyz
20 months agoARM: dts: qcom: pm8941: rename misc node name
Luca Weiss [Mon, 31 Oct 2022 17:57:16 +0000 (18:57 +0100)]
ARM: dts: qcom: pm8941: rename misc node name

The spmi-pmic bindings is now using usb-detect@ for this node, so adjust
the dts to match.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031175717.942237-3-luca@z3ntu.xyz
20 months agoARM: dts: qcom: pm8941: adjust coincell node name to bindings
Luca Weiss [Mon, 31 Oct 2022 17:51:17 +0000 (18:51 +0100)]
ARM: dts: qcom: pm8941: adjust coincell node name to bindings

The spmi-pmic bindings say that pm8941-coincell should be called
'charger'.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031175119.939860-2-luca@z3ntu.xyz
20 months agoARM: dts: qcom: pm8226: fix regulators node name
Luca Weiss [Mon, 31 Oct 2022 17:51:16 +0000 (18:51 +0100)]
ARM: dts: qcom: pm8226: fix regulators node name

Adjust the node name to match bindings and fix the validation warning.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031175119.939860-1-luca@z3ntu.xyz
20 months agoARM: dts: qcom: Drop MMCI interrupt-names
Marek Vasut [Thu, 13 Oct 2022 22:12:41 +0000 (00:12 +0200)]
ARM: dts: qcom: Drop MMCI interrupt-names

The pl18x MMCI driver does not use the interrupt-names property,
the binding document has been updated to recommend this property
be unused, remove it.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013221242.218808-2-marex@denx.de
20 months agoARM: dts: qcom: mdm9615: drop unit ids from PMIC nodes
Dmitry Baryshkov [Fri, 30 Sep 2022 21:20:52 +0000 (00:20 +0300)]
ARM: dts: qcom: mdm9615: drop unit ids from PMIC nodes

On MDM9615 the PMICs are connected using SSBI devices, which do not have
any addressing scheme. Drop the unused unit ids from PMIC device nodes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930212052.894834-2-dmitry.baryshkov@linaro.org
20 months agoARM: dts: qcom: sdx65: add dedicated IMEM and syscon compatibles
Krzysztof Kozlowski [Fri, 4 Nov 2022 19:08:40 +0000 (15:08 -0400)]
ARM: dts: qcom: sdx65: add dedicated IMEM and syscon compatibles

Add proper compatibles to the IMEM device node:
1. syscon as required by the bindings, even though it is not currently
   used,
2. dedicated compatible as required for syscon and simple-mfd nodes.

Align the node name to match IMEM type of device - SRAM.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221104190840.134733-2-krzysztof.kozlowski@linaro.org
20 months agodt-bindings: sram: qcom,imem: document SDX65
Krzysztof Kozlowski [Fri, 4 Nov 2022 19:08:39 +0000 (15:08 -0400)]
dt-bindings: sram: qcom,imem: document SDX65

Add compatible for SDX65 IMEM.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221104190840.134733-1-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom: ipq8064: disable mmc-ddr-1_8v for sdcc1
Christian Marangi [Mon, 24 Oct 2022 23:38:17 +0000 (01:38 +0200)]
ARM: dts: qcom: ipq8064: disable mmc-ddr-1_8v for sdcc1

It was reported non working mmc with this option enabled.
Both mmc for ipq8064 are supplied by a fixed 3.3v regulator so mmc can't
be run at 1.8v.
Disable it to restore correct functionality of this SoC feature.

Tested-by: Hendrik Koerner <koerhen@web.de>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221024233817.27410-1-ansuelsmth@gmail.com
20 months agoARM: dts: qcom-msm8660: align RPM regulators node name with bindings
Neil Armstrong [Fri, 21 Oct 2022 15:27:57 +0000 (17:27 +0200)]
ARM: dts: qcom-msm8660: align RPM regulators node name with bindings

Node names should be generic and new DT schema expects RPM regulators
node to be just "regulators".

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221005-mdm9615-pinctrl-yaml-v3-5-e5e045644971@linaro.org
20 months agoARM: dts: qcom: mdm9615: wp8548-mangoh-green: fix sx150xq node names and probe-reset...
Neil Armstrong [Fri, 21 Oct 2022 15:27:54 +0000 (17:27 +0200)]
ARM: dts: qcom: mdm9615: wp8548-mangoh-green: fix sx150xq node names and probe-reset property

Fix the sx150xq node names to pinctrl and use the right probe-reset property.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221005-mdm9615-pinctrl-yaml-v3-2-e5e045644971@linaro.org
20 months agoARM: dts: qcom: mdm9615: align pinctrl subnodes with dt-schema bindings
Neil Armstrong [Fri, 21 Oct 2022 15:27:53 +0000 (17:27 +0200)]
ARM: dts: qcom: mdm9615: align pinctrl subnodes with dt-schema bindings

Align the MDM9615 DT to the expected subnodes namings in the dt-schema
bindings.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221005-mdm9615-pinctrl-yaml-v3-1-e5e045644971@linaro.org
20 months agoARM: dts: qcom: mdm9615: remove useless amba subnode
Neil Armstrong [Fri, 21 Oct 2022 09:06:47 +0000 (11:06 +0200)]
ARM: dts: qcom: mdm9615: remove useless amba subnode

The separate amba device node doesn't add anything significant to the
DT. The OF parsing code already creates amba_device or platform_device
depending on the compatibility lists.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-11-dac2dfaac703@linaro.org
20 months agoARM: dts: qcom: mdm9615: remove invalid interrupt-names from pl18x mmc nodes
Neil Armstrong [Fri, 21 Oct 2022 09:06:46 +0000 (11:06 +0200)]
ARM: dts: qcom: mdm9615: remove invalid interrupt-names from pl18x mmc nodes

This solves the 'interrupt-names' was unexpected dtbs check error.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-10-dac2dfaac703@linaro.org
20 months agoARM: dts: qcom: mdm9615: remove invalid spi-max-frequency gsbi3_spi node
Neil Armstrong [Fri, 21 Oct 2022 09:06:40 +0000 (11:06 +0200)]
ARM: dts: qcom: mdm9615: remove invalid spi-max-frequency gsbi3_spi node

The spi-max-frequency property has nothing to do in the controller's node,
remove it and fix the 'spi-max-frequency' was unexpected dtbs check error.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-4-dac2dfaac703@linaro.org
20 months agoARM: dts: qcom: mdm9615: add missing reg in cpu@0 node
Neil Armstrong [Fri, 21 Oct 2022 09:06:39 +0000 (11:06 +0200)]
ARM: dts: qcom: mdm9615: add missing reg in cpu@0 node

Fixes cpu@0: 'reg' is a required property from dtbs check.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-3-dac2dfaac703@linaro.org
20 months agoARM: dts: qcom: mdm9615*: add SPDX-License-Identifier
Neil Armstrong [Fri, 21 Oct 2022 09:06:38 +0000 (11:06 +0200)]
ARM: dts: qcom: mdm9615*: add SPDX-License-Identifier

Replace the license blob by a clean SPDX-License-Identifier with GPL2+
or MIT even if X11 is specified in the original blob since the actual
license text corresponds to a MIT license.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-2-dac2dfaac703@linaro.org
20 months agodt-bindings: arm: qcom: move swir,mangoh-green-wp8548 board documentation to qcom...
Neil Armstrong [Fri, 21 Oct 2022 09:06:37 +0000 (11:06 +0200)]
dt-bindings: arm: qcom: move swir,mangoh-green-wp8548 board documentation to qcom.yaml

Document into the main qcom.yaml as conversion from swir.txt to dt-schema.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-1-dac2dfaac703@linaro.org
20 months agoARM: dts: qcom: ipq8064-rb3011: Add SoC compatible
Krzysztof Kozlowski [Mon, 17 Oct 2022 01:46:53 +0000 (21:46 -0400)]
ARM: dts: qcom: ipq8064-rb3011: Add SoC compatible

Add qcom,ipq8064 compatible fallback for the SoC.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221017014653.12970-2-krzysztof.kozlowski@linaro.org
20 months agodt-bindings: arm: qcom: document Mikrotik RB3011 board
Krzysztof Kozlowski [Mon, 17 Oct 2022 01:46:52 +0000 (21:46 -0400)]
dt-bindings: arm: qcom: document Mikrotik RB3011 board

Add compatible for existing Mikrotik RB3011 board.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221017014653.12970-1-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom: msm8974: align TLMM pin configuration with DT schema
Krzysztof Kozlowski [Mon, 17 Oct 2022 01:22:25 +0000 (21:22 -0400)]
ARM: dts: qcom: msm8974: 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.  All
nodes for GPIOs must also define the function property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221017012225.8579-2-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom: ipq4018-jalapeno: Add SoC compatible
Krzysztof Kozlowski [Thu, 13 Oct 2022 15:54:18 +0000 (11:54 -0400)]
ARM: dts: qcom: ipq4018-jalapeno: Add SoC compatible

Add qcom,ipq4018 compatible fallback for the SoC.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013155418.47577-4-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom: ipq4018-ap120c-ac: Add SoC compatible
Krzysztof Kozlowski [Thu, 13 Oct 2022 15:54:17 +0000 (11:54 -0400)]
ARM: dts: qcom: ipq4018-ap120c-ac: Add SoC compatible

Add qcom,ipq4018 compatible fallback for the SoC.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013155418.47577-3-krzysztof.kozlowski@linaro.org
20 months agodt-bindings: arm: qcom: Document IPQ4018 boards
Krzysztof Kozlowski [Thu, 13 Oct 2022 15:54:16 +0000 (11:54 -0400)]
dt-bindings: arm: qcom: Document IPQ4018 boards

Add compatibles for existing boards with IPQ4018 SoC: ALFA Network
AP120C-AC and 8devices Jalapeno.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013155418.47577-2-krzysztof.kozlowski@linaro.org
20 months agodt-bindings: vendor-prefixes: Add ALFA Network
Krzysztof Kozlowski [Thu, 13 Oct 2022 15:54:15 +0000 (11:54 -0400)]
dt-bindings: vendor-prefixes: Add ALFA Network

Add vendor prefix for ALFA Network Inc.

https://www.alfa.com.tw/

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013155418.47577-1-krzysztof.kozlowski@linaro.org
20 months agoARM: dts: qcom: msm8974: Add CCI bus
Luca Weiss [Sun, 2 Oct 2022 12:28:58 +0000 (15:28 +0300)]
ARM: dts: qcom: msm8974: Add CCI bus

Add a node for the Camera Control Interface I2C bus found on MSM8974.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221002122859.75525-7-matti.lehtimaki@gmail.com
20 months agoARM: dts: qcom: msm8226: Add CCI bus
Rayyan Ansari [Sun, 2 Oct 2022 12:28:57 +0000 (15:28 +0300)]
ARM: dts: qcom: msm8226: Add CCI bus

Add a node for the Camera Control Interface I2C bus found on MSM8226.

Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221002122859.75525-6-matti.lehtimaki@gmail.com
20 months agoARM: dts: qcom-ipq8064: use pll4 clock for the gcc device
Dmitry Baryshkov [Tue, 27 Sep 2022 11:38:26 +0000 (14:38 +0300)]
ARM: dts: qcom-ipq8064: use pll4 clock for the gcc device

Add a link to LCC's PLL4 clock to the GCC device node following the
bindings (and driver needs).

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220927113826.246241-4-dmitry.baryshkov@linaro.org
20 months agoARM: dts: qcom: Add support for Huawei Watch
Luca Weiss [Sat, 24 Sep 2022 15:29:37 +0000 (17:29 +0200)]
ARM: dts: qcom: Add support for Huawei Watch

Add support for this smartwatch, based on Snapdragon 400 SoC.

Currently supported functionality:
* Internal storage
* USB
* Charger
* Power button
* Bluetooth
* Wifi

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924152937.4076-2-luca@z3ntu.xyz
20 months agodt-bindings: arm: qcom: Document huawei,sturgeon device
Luca Weiss [Sat, 24 Sep 2022 15:29:36 +0000 (17:29 +0200)]
dt-bindings: arm: qcom: Document huawei,sturgeon device

Document the Huawei Watch ("sturgeon") which is a smartwatch based on
Snapdragon 400 SoC.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924152937.4076-1-luca@z3ntu.xyz
20 months agoARM: dts: qcom-apq8064: change HDMI PHY node name to generic one
Dmitry Baryshkov [Sat, 24 Sep 2022 09:43:46 +0000 (12:43 +0300)]
ARM: dts: qcom-apq8064: change HDMI PHY node name to generic one

Change HDMI PHY node names from custom 'hdmi-phy' to the generic 'phy'.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924094347.178666-2-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064: fix coresight compatible
Luca Weiss [Thu, 13 Oct 2022 19:06:57 +0000 (21:06 +0200)]
ARM: dts: qcom: apq8064: fix coresight compatible

There's a typo missing the arm, prefix of arm,coresight-etb10. Fix it to
make devicetree validation happier.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Fixes: 7a5c275fd821 ("ARM: dts: qcom: Add apq8064 CoreSight components")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013190657.48499-3-luca@z3ntu.xyz
21 months agoARM: dts: qcom: apq8084: fix compatible for l2-cache
Luca Weiss [Thu, 13 Oct 2022 19:06:56 +0000 (21:06 +0200)]
ARM: dts: qcom: apq8084: fix compatible for l2-cache

The compatible "qcom,arch-cache" for l2-cache does not exist, and all
other Qualcomm boards use just "cache" for it. Fix it.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013190657.48499-2-luca@z3ntu.xyz
21 months agoARM: dts: qcom: ipq8064-rb3011: fix nand node validation
Luca Weiss [Thu, 13 Oct 2022 19:06:55 +0000 (21:06 +0200)]
ARM: dts: qcom: ipq8064-rb3011: fix nand node validation

The devicetree documentation for the nand node requires the subnode be
called nand@ and no compatible is needed.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221013190657.48499-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom: correct indentation
Krzysztof Kozlowski [Sun, 2 Oct 2022 09:20:00 +0000 (11:20 +0200)]
ARM: dts: qcom: correct indentation

Do not use spaces for indentation.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221002092000.68844-1-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530)
Matti Lehtimäki [Tue, 27 Sep 2022 21:49:39 +0000 (00:49 +0300)]
ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530)

Add a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T530) wifi tablet
based on the apq8026 platform.

Currently supported are accelerometer sensor, hall sensor,
internal storage, physical buttons (power & volume), screen
(based on simple-framebuffer set up by the bootloader), sdcard,
touchscreen and USB.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220927214940.244480-4-matti.lehtimaki@gmail.com
21 months agodt-bindings: arm: qcom: Document samsung,matisse-wifi device
Matti Lehtimäki [Tue, 27 Sep 2022 21:49:38 +0000 (00:49 +0300)]
dt-bindings: arm: qcom: Document samsung,matisse-wifi device

Add binding documentation for Samsung Galaxy Tab 4 10.1 (2014) wifi
tablet which is based on Snapdragon 400 (apq8026) SoC.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220927214940.244480-3-matti.lehtimaki@gmail.com
21 months agoARM: dts: qcom: pm8226: Add node for the GPIOs
Matti Lehtimäki [Tue, 27 Sep 2022 21:49:37 +0000 (00:49 +0300)]
ARM: dts: qcom: pm8226: Add node for the GPIOs

The PM8226 provides 8 GPIOs. Add a node to support them.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220927214940.244480-2-matti.lehtimaki@gmail.com
21 months agoARM: dts: qcom: pmx65: use node name "gpio" for spmi-gpio
Luca Weiss [Sun, 25 Sep 2022 19:06:21 +0000 (21:06 +0200)]
ARM: dts: qcom: pmx65: use node name "gpio" for spmi-gpio

All other usages of qcom,spmi-gpio use the gpio@ node name, and this is
also validated by the dt binding check. Fix it.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220925190622.111505-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom: msm8974-sony-*: fix multi-led node name
Luca Weiss [Sun, 25 Sep 2022 17:56:30 +0000 (19:56 +0200)]
ARM: dts: qcom: msm8974-sony-*: fix multi-led node name

The name rgb-led is not allowed, multi-led is supposed to be used.

<snip>/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine-amami.dtb: pm8941@1: pwm: 'rgb-led' does not match any of the regexes: '^led@[0-9a-f]$', 'pinctrl-[0-9]+'
        From schema: <snip>/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220925175631.103535-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom: msm8974: Remove bogus *-cells from smd-edge
Luca Weiss [Sun, 25 Sep 2022 17:32:03 +0000 (19:32 +0200)]
ARM: dts: qcom: msm8974: Remove bogus *-cells from smd-edge

The bindings check complains that #address-cells and #size-cells
shouldn't be in the smd-edge node. Remove it.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220925173203.96117-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom: apq8084: add tsens interrupt
Luca Weiss [Sun, 25 Sep 2022 16:13:17 +0000 (18:13 +0200)]
ARM: dts: qcom: apq8084: add tsens interrupt

Add the interrupt for tsens, based on the information from downstream
msm-3.4 dts.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220925161317.76356-2-luca@z3ntu.xyz
21 months agoARM: dts: qcom: msm8974: fix tsens compatible
Luca Weiss [Sun, 25 Sep 2022 16:13:16 +0000 (18:13 +0200)]
ARM: dts: qcom: msm8974: fix tsens compatible

Bindings mandate the use of the fallback compatible qcom,tsens-v0_1 for
msm8974. Add it to fix the warning.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220925161317.76356-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom: add 'chassis-type' property
Luca Weiss [Sat, 24 Sep 2022 15:44:22 +0000 (17:44 +0200)]
ARM: dts: qcom: add 'chassis-type' property

Add the chassis-type property to arm32 Qualcomm watches, phones and
tablets.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924154422.9896-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom: fix node name for rpm-msg-ram
Luca Weiss [Sat, 24 Sep 2022 14:51:25 +0000 (16:51 +0200)]
ARM: dts: qcom: fix node name for rpm-msg-ram

Adjust the name to match the bindings and fix the following validation
error:

<snip>/arch/arm/boot/dts/qcom-apq8026-huawei-sturgeon.dtb: memory@fc428000: $nodename:0: 'memory@fc428000' does not match '^sram(@.*)?'
        From schema: <snip>/Documentation/devicetree/bindings/sram/sram.yaml

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924145126.24978-1-luca@z3ntu.xyz
21 months agoARM: dts: qcom-msm8974: change DSI PHY node name to generic one
Dmitry Baryshkov [Sat, 24 Sep 2022 09:01:01 +0000 (12:01 +0300)]
ARM: dts: qcom-msm8974: change DSI PHY node name to generic one

Change DSI PHY node names from custom 'dsi-phy' to the generic 'phy'.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924090108.166934-3-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom-apq8064: change DSI PHY node name to generic one
Dmitry Baryshkov [Sat, 24 Sep 2022 09:01:00 +0000 (12:01 +0300)]
ARM: dts: qcom-apq8064: change DSI PHY node name to generic one

Change DSI PHY node names from custom 'dsi-phy' to the generic 'phy'.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220924090108.166934-2-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8974: switch TCSR mutex to MMIO
Krzysztof Kozlowski [Tue, 20 Sep 2022 15:04:14 +0000 (17:04 +0200)]
ARM: dts: qcom: msm8974: switch TCSR mutex to MMIO

The TCSR mutex bindings allow device to be described only with address
space (so it uses MMIO, not syscon regmap).  This seems reasonable, as
TCSR mutex is actually a dedicated IO address space, and it also fixes
DT schema checks:

  qcom-msm8974-sony-xperia-rhine-amami.dtb: tcsr-mutex: 'reg' is a required property
  qcom-msm8974-sony-xperia-rhine-amami.dtb: tcsr-mutex: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Luca Weiss <luca@z3ntu.xyz> # fairphone-fp2
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220920150414.637634-4-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: msm8974: add missing TCSR syscon compatible
Krzysztof Kozlowski [Tue, 20 Sep 2022 15:04:13 +0000 (17:04 +0200)]
ARM: dts: qcom: msm8974: add missing TCSR syscon compatible

TCSR syscon node should come with dedicated compatible.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Luca Weiss <luca@z3ntu.xyz> # fairphone-fp2
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220920150414.637634-3-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: use generic node name "gpio" in SPMI PMIC
Krzysztof Kozlowski [Thu, 8 Sep 2022 08:09:36 +0000 (10:09 +0200)]
ARM: dts: qcom: use generic node name "gpio" in SPMI PMIC

GPIO controller nodes are named by convention just "gpio", not "gpios".

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220908080938.29199-1-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: msm8974: Drop redundant phy-names from DSI controller
Bryan O'Donoghue [Wed, 7 Sep 2022 00:00:57 +0000 (01:00 +0100)]
ARM: dts: qcom: msm8974: Drop redundant phy-names from DSI controller

phy-names has been marked deprecated. Remove it from the msm8974 DSI
controller block.

Signed-off-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/20220907000105.786265-4-bryan.odonoghue@linaro.org
21 months agoARM: dts: qcom: apq8064: Drop redundant phy-names from DSI controller
Bryan O'Donoghue [Wed, 7 Sep 2022 00:00:56 +0000 (01:00 +0100)]
ARM: dts: qcom: apq8064: Drop redundant phy-names from DSI controller

phy-names has been marked deprecated. Remove it from the apq8064 DSI
controller block.

Signed-off-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/20220907000105.786265-3-bryan.odonoghue@linaro.org
21 months agoARM: dts: qcom: msm8660: drop qcom, prefix from SSBI node name
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:36 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8660: drop qcom, prefix from SSBI node name

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-24-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8660: drop unit ids from PMIC nodes
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:35 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8660: drop unit ids from PMIC nodes

On MSM8660 the PMICs are connected using SSBI devices, which do not have
any addressing scheme. Drop the unused unit ids from PMIC device nodes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-23-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8060-dragonboard: use labels to patch device tree
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:34 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8060-dragonboard: use labels to patch device tree

Use labels to add device-specific properties to DT nodes rather than
duplicating SoC DT structure in the device DT.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-22-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8660: move pm8058 LED devices to the main DT file
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:33 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8660: move pm8058 LED devices to the main DT file

Declare PM8058 LED devices in the main msm8660 DT file to allow them to
be used by other devices.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-21-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8960: drop amba device node
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:32 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8960: drop amba device node

The separate amba device node doesn't add anything significant to the
DT. The OF parsing code already creates amba_device or platform_device
depending on the compatibility lists. Drop the amba node and reorder
sdcc nodes according to node addresses.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-20-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8960-cdp: drop unit ids from regulator node
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:31 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8960-cdp: drop unit ids from regulator node

Drop the unused unit id from the gpio-regulator node, there is no
addessing scheme in the /regulators node.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-19-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8960: drop qcom, prefix from SSBI node name
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:30 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8960: drop qcom, prefix from SSBI node name

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-18-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8960: drop unit ids from PMIC nodes
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:29 +0000 (21:52 +0300)]
ARM: dts: qcom: msm8960: drop unit ids from PMIC nodes

On MSM8960 the PMICs are connected using SSBI devices, which do not have
any addressing scheme. Drop the unused unit ids from PMIC device nodes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-17-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064: fix the riva-pil node id
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:28 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064: fix the riva-pil node id

Fix the address of the riva-pil node. The first region address is
0x3200800, so the node should also be called riva-pil@3200800.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-16-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064: drop qcom, prefix from SSBI node name
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:27 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064: drop qcom, prefix from SSBI node name

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-15-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064: drop unit ids from PMIC nodes
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:26 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064: drop unit ids from PMIC nodes

On APQ8064 the PMICs are connected using SSBI devices, which do not have
any addressing scheme. Drop the unused unit ids from PMIC device nodes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-14-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064: drop amba device node
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:25 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064: drop amba device node

The separate amba device node doesn't add anything significant to the
DT. The OF parsing code already creates amba_device or platform_device
depending on the compatibility lists. Drop the amba node and reorder
sdcc and sdcc bam nodes according to node addresses.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-13-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-sony-xperia-lagan-yuga: use labels to patch device tree
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:24 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-sony-xperia-lagan-yuga: use labels to patch device tree

Use labels to add device-specific properties to DT nodes rather than
duplicating SoC DT structure in the device DT.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-12-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-cm-qs600: pull SDCC pwrseq node up one level
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:23 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-cm-qs600: pull SDCC pwrseq node up one level

There are no need to add additional simple-bus nodes just to populate
a single pwrseq device. Pull it up one level into /. While we are at it
also fix node name replacing underscore with dash.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-11-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-cm-qs600: pull 3p3v regulator from soc node
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:22 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-cm-qs600: pull 3p3v regulator from soc node

The 3.3V regulator is not part of the SoC, so pull it from the SoC
node.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-10-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-cm-qs600: use labels to patch device tree
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:21 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-cm-qs600: use labels to patch device tree

Use labels to add device-specific properties to DT nodes rather than
duplicating SoC DT structure in the device DT.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-9-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-nexus7-flo: fix node name for ext 3p3v regulator
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:20 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-nexus7-flo: fix node name for ext 3p3v regulator

Rename ext 3p3v regulator node, fixing the 'node has a unit name, but no
reg or ranges property' warning.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-8-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-flo: use labels to patch device tree
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:19 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-flo: use labels to patch device tree

Use labels to add device-specific properties to DT nodes rather than
duplicating SoC DT structure in the device DT.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-7-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-ifc6410: pull SDCC pwrseq node up one level
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:18 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-ifc6410: pull SDCC pwrseq node up one level

There are no need to add additional simple-bus nodes just to populate
a single pwrseq device. Pull it up one level into /. While we are at it
also fix node name replacing underscore with dash.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-6-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-ifc6410: fix user1 LED node name
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:17 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-ifc6410: fix user1 LED node name

There are no address-cells for the gpio-leds child nodes, so rename
led@1 node to led-user1.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-5-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-ifc6410: pull ext-3p3v regulator from soc node
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:16 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-ifc6410: pull ext-3p3v regulator from soc node

The ext 3.3V regulator is not part of the SoC, so pull it from the SoC
node.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-4-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064-ifc6410: use labels to patch device tree
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:15 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064-ifc6410: use labels to patch device tree

Use labels to add device-specific properties to DT nodes rather than
duplicating SoC DT structure in the device DT.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-3-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: apq8064: disable HDMI nodes by default
Dmitry Baryshkov [Fri, 30 Sep 2022 18:52:14 +0000 (21:52 +0300)]
ARM: dts: qcom: apq8064: disable HDMI nodes by default

Disable HDMI nodes. Individual board can enable them if required. The
only APQ8064 board that has working HDMI output is IFC6410, which
enables these devices explicitly.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-2-dmitry.baryshkov@linaro.org
21 months agoARM: dts: qcom: msm8974: align TLMM pin configuration with DT schema
Krzysztof Kozlowski [Thu, 6 Oct 2022 12:46:31 +0000 (14:46 +0200)]
ARM: dts: qcom: msm8974: 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>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221006124659.217540-7-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: msm8226: align TLMM pin configuration with DT schema
Krzysztof Kozlowski [Thu, 6 Oct 2022 12:46:30 +0000 (14:46 +0200)]
ARM: dts: qcom: msm8226: 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>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221006124659.217540-6-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: sdx55: align TLMM pin configuration with DT schema
Krzysztof Kozlowski [Thu, 6 Oct 2022 12:46:29 +0000 (14:46 +0200)]
ARM: dts: qcom: sdx55: 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.  Schema
also requires 'function' property, so two nodes for the same gpio (mux
and config) should be merged into one.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221006124659.217540-5-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: sdx55: add gpio-ranges to TLMM pinctrl
Krzysztof Kozlowski [Thu, 6 Oct 2022 12:46:28 +0000 (14:46 +0200)]
ARM: dts: qcom: sdx55: add gpio-ranges to TLMM pinctrl

Add required gpio-ranges property to TLMM pinctrl node:

  qcom-sdx55-mtp.dtb: pinctrl@f100000: 'gpio-ranges' is a required property

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221006124659.217540-4-krzysztof.kozlowski@linaro.org
21 months agoARM: dts: qcom: align RPM regulators node name with bindings
Krzysztof Kozlowski [Mon, 26 Sep 2022 09:21:04 +0000 (11:21 +0200)]
ARM: dts: qcom: align RPM regulators node name with bindings

Node names should be generic and new DT schema expects RPM regulators
node to be just "regulators".

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220926092104.111449-4-krzysztof.kozlowski@linaro.org
21 months agoLinux 6.1-rc1
Linus Torvalds [Sun, 16 Oct 2022 22:36:24 +0000 (15:36 -0700)]
Linux 6.1-rc1

21 months agoMerge tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 16 Oct 2022 22:27:07 +0000 (15:27 -0700)]
Merge tag 'random-6.1-rc1-for-linus' of git://git./linux/kernel/git/crng/random

Pull more random number generator updates from Jason Donenfeld:
 "This time with some large scale treewide cleanups.

  The intent of this pull is to clean up the way callers fetch random
  integers. The current rules for doing this right are:

   - If you want a secure or an insecure random u64, use get_random_u64()

   - If you want a secure or an insecure random u32, use get_random_u32()

     The old function prandom_u32() has been deprecated for a while
     now and is just a wrapper around get_random_u32(). Same for
     get_random_int().

   - If you want a secure or an insecure random u16, use get_random_u16()

   - If you want a secure or an insecure random u8, use get_random_u8()

   - If you want secure or insecure random bytes, use get_random_bytes().

     The old function prandom_bytes() has been deprecated for a while
     now and has long been a wrapper around get_random_bytes()

   - If you want a non-uniform random u32, u16, or u8 bounded by a
     certain open interval maximum, use prandom_u32_max()

     I say "non-uniform", because it doesn't do any rejection sampling
     or divisions. Hence, it stays within the prandom_*() namespace, not
     the get_random_*() namespace.

     I'm currently investigating a "uniform" function for 6.2. We'll see
     what comes of that.

  By applying these rules uniformly, we get several benefits:

   - By using prandom_u32_max() with an upper-bound that the compiler
     can prove at compile-time is ≤65536 or ≤256, internally
     get_random_u16() or get_random_u8() is used, which wastes fewer
     batched random bytes, and hence has higher throughput.

   - By using prandom_u32_max() instead of %, when the upper-bound is
     not a constant, division is still avoided, because
     prandom_u32_max() uses a faster multiplication-based trick instead.

   - By using get_random_u16() or get_random_u8() in cases where the
     return value is intended to indeed be a u16 or a u8, we waste fewer
     batched random bytes, and hence have higher throughput.

  This series was originally done by hand while I was on an airplane
  without Internet. Later, Kees and I worked on retroactively figuring
  out what could be done with Coccinelle and what had to be done
  manually, and then we split things up based on that.

  So while this touches a lot of files, the actual amount of code that's
  hand fiddled is comfortably small"

* tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
  prandom: remove unused functions
  treewide: use get_random_bytes() when possible
  treewide: use get_random_u32() when possible
  treewide: use get_random_{u8,u16}() when possible, part 2
  treewide: use get_random_{u8,u16}() when possible, part 1
  treewide: use prandom_u32_max() when possible, part 2
  treewide: use prandom_u32_max() when possible, part 1

21 months agoMerge tag 'perf-tools-for-v6.1-2-2022-10-16' of git://git.kernel.org/pub/scm/linux...
Linus Torvalds [Sun, 16 Oct 2022 22:14:29 +0000 (15:14 -0700)]
Merge tag 'perf-tools-for-v6.1-2-2022-10-16' of git://git./linux/kernel/git/acme/linux

Pull more perf tools updates from Arnaldo Carvalho de Melo:

 - Use BPF CO-RE (Compile Once, Run Everywhere) to support old kernels
   when using bperf (perf BPF based counters) with cgroups.

 - Support HiSilicon PCIe Performance Monitoring Unit (PMU), that
   monitors bandwidth, latency, bus utilization and buffer occupancy.

   Documented in Documentation/admin-guide/perf/hisi-pcie-pmu.rst.

 - User space tasks can migrate between CPUs, so when tracing selected
   CPUs, system-wide sideband is still needed, fix it in the setup of
   Intel PT on hybrid systems.

 - Fix metricgroups title message in 'perf list', it should state that
   the metrics groups are to be used with the '-M' option, not '-e'.

 - Sync the msr-index.h copy with the kernel sources, adding support for
   using "AMD64_TSC_RATIO" in filter expressions in 'perf trace' as well
   as decoding it when printing the MSR tracepoint arguments.

 - Fix program header size and alignment when generating a JIT ELF in
   'perf inject'.

 - Add multiple new Intel PT 'perf test' entries, including a jitdump
   one.

 - Fix the 'perf test' entries for 'perf stat' CSV and JSON output when
   running on PowerPC due to an invalid topology number in that arch.

 - Fix the 'perf test' for arm_coresight failures on the ARM Juno
   system.

 - Fix the 'perf test' attr entry for PERF_FORMAT_LOST, adding this
   option to the or expression expected in the intercepted
   perf_event_open() syscall.

 - Add missing condition flags ('hs', 'lo', 'vc', 'vs') for arm64 in the
   'perf annotate' asm parser.

 - Fix 'perf mem record -C' option processing, it was being chopped up
   when preparing the underlying 'perf record -e mem-events' and thus
   being ignored, requiring using '-- -C CPUs' as a workaround.

 - Improvements and tidy ups for 'perf test' shell infra.

 - Fix Intel PT information printing segfault in uClibc, where a NULL
   format was being passed to fprintf.

* tag 'perf-tools-for-v6.1-2-2022-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (23 commits)
  tools arch x86: Sync the msr-index.h copy with the kernel sources
  perf auxtrace arm64: Add support for parsing HiSilicon PCIe Trace packet
  perf auxtrace arm64: Add support for HiSilicon PCIe Tune and Trace device driver
  perf auxtrace arm: Refactor event list iteration in auxtrace_record__init()
  perf tests stat+json_output: Include sanity check for topology
  perf tests stat+csv_output: Include sanity check for topology
  perf intel-pt: Fix system_wide dummy event for hybrid
  perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc
  perf test: Fix attr tests for PERF_FORMAT_LOST
  perf test: test_intel_pt.sh: Add 9 tests
  perf inject: Fix GEN_ELF_TEXT_OFFSET for jit
  perf test: test_intel_pt.sh: Add jitdump test
  perf test: test_intel_pt.sh: Tidy some alignment
  perf test: test_intel_pt.sh: Print a message when skipping kernel tracing
  perf test: test_intel_pt.sh: Tidy some perf record options
  perf test: test_intel_pt.sh: Fix return checking again
  perf: Skip and warn on unknown format 'configN' attrs
  perf list: Fix metricgroups title message
  perf mem: Fix -C option behavior for perf mem record
  perf annotate: Add missing condition flags for arm64
  ...

21 months agoMerge tag 'kbuild-fixes-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/masahi...
Linus Torvalds [Sun, 16 Oct 2022 18:12:22 +0000 (11:12 -0700)]
Merge tag 'kbuild-fixes-v6.1' of git://git./linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

 - Fix CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y compile error for the
   combination of Clang >= 14 and GAS <= 2.35.

 - Drop vmlinux.bz2 from the rpm package as it just annoyingly increased
   the package size.

 - Fix modpost error under build environments using musl.

 - Make *.ll files keep value names for easier debugging

 - Fix single directory build

 - Prevent RISC-V from selecting the broken DWARF5 support when Clang
   and GAS are used together.

* tag 'kbuild-fixes-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
  lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to DWARF5
  kbuild: fix single directory build
  kbuild: add -fno-discard-value-names to cmd_cc_ll_c
  scripts/clang-tools: Convert clang-tidy args to list
  modpost: put modpost options before argument
  kbuild: Stop including vmlinux.bz2 in the rpm's
  Kconfig.debug: add toolchain checks for DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
  Kconfig.debug: simplify the dependency of DEBUG_INFO_DWARF4/5

21 months agoMerge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Linus Torvalds [Sun, 16 Oct 2022 18:08:19 +0000 (11:08 -0700)]
Merge tag 'clk-for-linus' of git://git./linux/kernel/git/clk/linux

Pull more clk updates from Stephen Boyd:
 "This is the final part of the clk patches for this merge window.

  The clk rate range series needed another week to fully bake. Maxime
  fixed the bug that broke clk notifiers and prevented this from being
  included in the first pull request. He also added a unit test on top
  to make sure it doesn't break so easily again. The majority of the
  series fixes up how the clk_set_rate_*() APIs work, particularly
  around when the rate constraints are dropped and how they move around
  when reparenting clks. Overall it's a much needed improvement to the
  clk rate range APIs that used to be pretty broken if you looked
  sideways.

  Beyond the core changes there are a few driver fixes for a compilation
  issue or improper data causing clks to fail to register or have the
  wrong parents. These are good to get in before the first -rc so that
  the system actually boots on the affected devices"

* tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (31 commits)
  clk: tegra: Fix Tegra PWM parent clock
  clk: at91: fix the build with binutils 2.27
  clk: qcom: gcc-msm8660: Drop hardcoded fixed board clocks
  clk: mediatek: clk-mux: Add .determine_rate() callback
  clk: tests: Add tests for notifiers
  clk: Update req_rate on __clk_recalc_rates()
  clk: tests: Add missing test case for ranges
  clk: qcom: clk-rcg2: Take clock boundaries into consideration for gfx3d
  clk: Introduce the clk_hw_get_rate_range function
  clk: Zero the clk_rate_request structure
  clk: Stop forwarding clk_rate_requests to the parent
  clk: Constify clk_has_parent()
  clk: Introduce clk_core_has_parent()
  clk: Switch from __clk_determine_rate to clk_core_round_rate_nolock
  clk: Add our request boundaries in clk_core_init_rate_req
  clk: Introduce clk_hw_init_rate_request()
  clk: Move clk_core_init_rate_req() from clk_core_round_rate_nolock() to its caller
  clk: Change clk_core_init_rate_req prototype
  clk: Set req_rate on reparenting
  clk: Take into account uncached clocks in clk_set_rate_range()
  ...

21 months agoMerge tag '6.1-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
Linus Torvalds [Sun, 16 Oct 2022 18:01:40 +0000 (11:01 -0700)]
Merge tag '6.1-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6

Pull more cifs updates from Steve French:

 - fix a regression in guest mounts to old servers

 - improvements to directory leasing (caching directory entries safely
   beyond the root directory)

 - symlink improvement (reducing roundtrips needed to process symlinks)

 - an lseek fix (to problem where some dir entries could be skipped)

 - improved ioctl for returning more detailed information on directory
   change notifications

 - clarify multichannel interface query warning

 - cleanup fix (for better aligning buffers using ALIGN and round_up)

 - a compounding fix

 - fix some uninitialized variable bugs found by Coverity and the kernel
   test robot

* tag '6.1-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
  smb3: improve SMB3 change notification support
  cifs: lease key is uninitialized in two additional functions when smb1
  cifs: lease key is uninitialized in smb1 paths
  smb3: must initialize two ACL struct fields to zero
  cifs: fix double-fault crash during ntlmssp
  cifs: fix static checker warning
  cifs: use ALIGN() and round_up() macros
  cifs: find and use the dentry for cached non-root directories also
  cifs: enable caching of directories for which a lease is held
  cifs: prevent copying past input buffer boundaries
  cifs: fix uninitialised var in smb2_compound_op()
  cifs: improve symlink handling for smb2+
  smb3: clarify multichannel warning
  cifs: fix regression in very old smb1 mounts
  cifs: fix skipping to incorrect offset in emit_cached_dirents

21 months agoRevert "cpumask: fix checking valid cpu range".
Tetsuo Handa [Sat, 15 Oct 2022 15:53:51 +0000 (00:53 +0900)]
Revert "cpumask: fix checking valid cpu range".

This reverts commit 78e5a3399421 ("cpumask: fix checking valid cpu range").

syzbot is hitting WARN_ON_ONCE(cpu >= nr_cpumask_bits) warning at
cpu_max_bits_warn() [1], for commit 78e5a3399421 ("cpumask: fix checking
valid cpu range") is broken.  Obviously that patch hits WARN_ON_ONCE()
when e.g.  reading /proc/cpuinfo because passing "cpu + 1" instead of
"cpu" will trivially hit cpu == nr_cpumask_bits condition.

Although syzbot found this problem in linux-next.git on 2022/09/27 [2],
this problem was not fixed immediately.  As a result, that patch was
sent to linux.git before the patch author recognizes this problem, and
syzbot started failing to test changes in linux.git since 2022/10/10
[3].

Andrew Jones proposed a fix for x86 and riscv architectures [4].  But
[2] and [5] indicate that affected locations are not limited to arch
code.  More delay before we find and fix affected locations, less tested
kernel (and more difficult to bisect and fix) before release.

We should have inspected and fixed basically all cpumask users before
applying that patch.  We should not crash kernels in order to ask
existing cpumask users to update their code, even if limited to
CONFIG_DEBUG_PER_CPU_MAPS=y case.

Link: https://syzkaller.appspot.com/bug?extid=d0fd2bf0dd6da72496dd
Link: https://syzkaller.appspot.com/bug?extid=21da700f3c9f0bc40150
Link: https://syzkaller.appspot.com/bug?extid=51a652e2d24d53e75734
Link: https://lkml.kernel.org/r/20221014155845.1986223-1-ajones@ventanamicro.com
Link: https://syzkaller.appspot.com/bug?extid=4d46c43d81c3bd155060
Reported-by: Andrew Jones <ajones@ventanamicro.com>
Reported-by: syzbot+d0fd2bf0dd6da72496dd@syzkaller.appspotmail.com
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Yury Norov <yury.norov@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>