platform/kernel/linux-starfive.git
2 years agodt-bindings: nvmem: add U-Boot environment variables binding
Rafał Miłecki [Mon, 28 Feb 2022 13:12:50 +0000 (14:12 +0100)]
dt-bindings: nvmem: add U-Boot environment variables binding

U-Boot uses environment variables for storing device setup data. It
usually needs to be accessed by a bootloader, kernel and often
user-space.

This binding allows describing environment data located in a raw flash
partition. It's treated as NVMEM device and can be reused later for
other storage devices.

Using DT should be cleaner than hardcoding & duplicating such info in
multiple places. Bootloader & kernel can share DTS and user-space can
try reading it too or just have correct data exposed by a kernel.

A custom "compatible" string allows system to automatically load
relevant NVMEM driver but phandle can be also used for reading raw
location.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220228131250.16943-1-zajec5@gmail.com
2 years agodt-bindings: ufs: qcom: Add SM6350 compatible string
Luca Weiss [Mon, 21 Mar 2022 13:33:13 +0000 (14:33 +0100)]
dt-bindings: ufs: qcom: Add SM6350 compatible string

Document the compatible for the UFS found on SM6350.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220321133318.99406-2-luca.weiss@fairphone.com
2 years agodt-bindings: dmaengine: sifive,fu540-c000: include generic schema
Krzysztof Kozlowski [Fri, 18 Mar 2022 16:20:43 +0000 (17:20 +0100)]
dt-bindings: dmaengine: sifive,fu540-c000: include generic schema

Include generic dma-controller.yaml schema, which enforces node naming
and other generic properties.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220318162044.169350-1-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: gpio: pca95xx: drop useless consumer example
Krzysztof Kozlowski [Wed, 16 Mar 2022 13:08:57 +0000 (14:08 +0100)]
dt-bindings: gpio: pca95xx: drop useless consumer example

Consumer examples in the bindings of resource providers are trivial,
useless and duplication of code.  Remove the example code for consumer

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220316130858.93455-1-krzysztof.kozlowski@canonical.com
2 years agoRevert "of: base: Introduce of_alias_get_alias_list() to check alias IDs"
Rob Herring [Mon, 21 Mar 2022 16:35:29 +0000 (11:35 -0500)]
Revert "of: base: Introduce of_alias_get_alias_list() to check alias IDs"

This reverts commit b1078c355d76769b5ddefc67d143fbd9b6e52c05.

The single user of of_alias_get_alias_list(),
drivers/tty/serial/xilinx_uartps.c, has since been refactored and no
longer needs this function. It also contained a Smatch checker warning:

 drivers/of/base.c:2038 of_alias_get_alias_list()
 warn: passing negative bit value 's32min-(-2),0-s32max' to 'set_bit()'

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Herring <robh@kernel.org>
2 years agodt-bindings: virtio,mmio: Allow setting devices 'dma-coherent'
Rob Herring [Thu, 10 Mar 2022 01:35:27 +0000 (19:35 -0600)]
dt-bindings: virtio,mmio: Allow setting devices 'dma-coherent'

'virtio,mmio' devices are always coherent within a guest. As Arm DTs
are default non-coherent, the 'dma-coherent' property needs to be set on
the virtio device to mark them as such. This aligns with the QEMU 'virt'
machine DTB.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220310013528.549030-1-robh@kernel.org
2 years agodt-bindings: gnss: Add two more chips
Linus Walleij [Thu, 17 Mar 2022 22:58:43 +0000 (23:58 +0100)]
dt-bindings: gnss: Add two more chips

The CSR GSD4t is a CSR product using the SiRFstarIV core, and
the CSR CSRG05TA03-ICJE-R is a CSR product using the SiRFstarV
core.

These chips have a SRESETN line that can be pulled low to hard
reset the chip and in some designs this is connected to a GPIO,
so add this as an optional property.

Update the example with a reset line so users see that it need
to be tagged as active low.

Cc: devicetree@vger.kernel.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220317225844.1262643-4-linus.walleij@linaro.org
2 years agodt-bindings: gnss: Rewrite sirfstar binding in YAML
Linus Walleij [Thu, 17 Mar 2022 22:58:42 +0000 (23:58 +0100)]
dt-bindings: gnss: Rewrite sirfstar binding in YAML

This rewrites the SiRFstar DT bindings in YAML.

Cc: devicetree@vger.kernel.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220317225844.1262643-3-linus.walleij@linaro.org
2 years agodt-bindings: gnss: Modify u-blox to use common bindings
Linus Walleij [Thu, 17 Mar 2022 22:58:41 +0000 (23:58 +0100)]
dt-bindings: gnss: Modify u-blox to use common bindings

This modifies the existing U-Blox GNSS bindings to reference
the common GNSS YAML bindings.

Fixed an unrelated whitespace error while at it.

Cc: devicetree@vger.kernel.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220317225844.1262643-2-linus.walleij@linaro.org
2 years agodt-bindings: gnss: Rewrite common bindings in YAML
Linus Walleij [Thu, 17 Mar 2022 22:58:40 +0000 (23:58 +0100)]
dt-bindings: gnss: Rewrite common bindings in YAML

This rewrites the text-based GNSS common bindings to use
a YAML schema.

Cc: devicetree@vger.kernel.org
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220317225844.1262643-1-linus.walleij@linaro.org
2 years agodt-bindings: ata: ahci-platform: Add rk3568-dwc-ahci compatible
Frank Wunderlich [Fri, 11 Mar 2022 21:03:56 +0000 (22:03 +0100)]
dt-bindings: ata: ahci-platform: Add rk3568-dwc-ahci compatible

Add SoC specific compatible for rk3568 ahci controller

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220311210357.222830-6-linux@fw-web.de
2 years agodt-bindings: ata: ahci-platform: Add power-domains property
Frank Wunderlich [Fri, 11 Mar 2022 21:03:55 +0000 (22:03 +0100)]
dt-bindings: ata: ahci-platform: Add power-domains property

Some SoC using power-domains property so add it here

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220311210357.222830-5-linux@fw-web.de
2 years agodt-bindings: ata: ahci-platform: Convert DT bindings to yaml
Frank Wunderlich [Fri, 11 Mar 2022 21:03:52 +0000 (22:03 +0100)]
dt-bindings: ata: ahci-platform: Convert DT bindings to yaml

Create a yaml file for dtbs_check from the old txt binding.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220311210357.222830-2-linux@fw-web.de
2 years agodt-bindings: kbuild: Use DTB files for validation
Rob Herring [Thu, 10 Mar 2022 16:05:13 +0000 (10:05 -0600)]
dt-bindings: kbuild: Use DTB files for validation

Switch the DT validation to use DTB files directly instead of a DTS to
YAML conversion.

The original motivation for supporting validation on DTB files was to
enable running validation on a running system (e.g. 'dt-validate
/sys/firmware/fdt') or other cases where the original source DTS is not
available.

The YAML format was not without issues. Using DTBs with the schema type
information solves some of those problems. The YAML format relies on the
DTS source level information including bracketing of properties, size
directives, and phandle tags all of which are lost in a DTB file. While
standardizing the bracketing is a good thing, it does cause a lot of
extra warnings and churn to fix them.

Another issue has been signed types are not validated correctly as sign
information is not propagated to YAML. Using the schema type information
allows for proper handling of signed types. YAML also can't represent
the full range of 64-bit integers as numbers are stored as floats by
most/all parsers.

The DTB validation works by decoding property values using the type
information in the schemas themselves. The main corner case this does
not work for is matrix types where neither dimension is fixed. For
now, checking the dimensions in these cases are skipped.

Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20220310160513.1708182-3-robh@kernel.org
2 years agodt-bindings: kbuild: Pass DT_SCHEMA_FILES to dt-validate
Rob Herring [Thu, 10 Mar 2022 16:05:12 +0000 (10:05 -0600)]
dt-bindings: kbuild: Pass DT_SCHEMA_FILES to dt-validate

In preparation for supporting validation of DTB files, the full
processed schema will always be needed in order to extract type
information from it. Therefore, the processed schema containing only
what DT_SCHEMA_FILES specifies won't work. Instead, dt-validate has
gained an option, -l or --limit, to specify which schema(s) to use for
validation.

As the command line option is new, we the minimum dtschema version must be
updated.

Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220310160513.1708182-2-robh@kernel.org
2 years agodt-bindings: Add QEMU virt machine compatible
Rob Herring [Thu, 10 Mar 2022 02:12:24 +0000 (20:12 -0600)]
dt-bindings: Add QEMU virt machine compatible

The top level QEMU virt machine compatible, linux,dummy-virt, has been
in use for a long time, but never documented. Add a schema for it.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220310021224.599398-1-robh@kernel.org
2 years agodt-bindings: arm: Convert QEMU fw-cfg to DT schema
Rob Herring [Thu, 10 Mar 2022 01:35:52 +0000 (19:35 -0600)]
dt-bindings: arm: Convert QEMU fw-cfg to DT schema

Convert the QEMU fw-cfg binding to DT schema format. As this binding is
also used on Risc-V now, drop any architecture references and move to a
common location. The fw-cfg interface has also gained some DMA support
which is coherent, so add the missing 'dma-coherent'.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Link: https://lore.kernel.org/r/20220310013552.549590-1-robh@kernel.org
2 years agodt-bindings: i2c: at91: Add SAMA7G5 compatible strings list
Sergiu Moga [Thu, 10 Mar 2022 11:45:53 +0000 (13:45 +0200)]
dt-bindings: i2c: at91: Add SAMA7G5 compatible strings list

Add compatible strings list for SAMA7G5.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220310114553.184763-4-sergiu.moga@microchip.com
2 years agodt-bindings: i2c: convert i2c-at91 to json-schema
Sergiu Moga [Thu, 10 Mar 2022 11:45:52 +0000 (13:45 +0200)]
dt-bindings: i2c: convert i2c-at91 to json-schema

Convert I2C binding for Atmel/Microchip SoCs to Device Tree Schema
format.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220310114553.184763-3-sergiu.moga@microchip.com
2 years agodt-bindings: clk: cleanup comments
Tom Rix [Wed, 9 Mar 2022 22:23:02 +0000 (14:23 -0800)]
dt-bindings: clk: cleanup comments

For spdx, first line /* */ for *.h, change tab to space

Replacements
devider to divider
Comunications to Communications
periphrals to peripherals
supportted to supported
wich to which
Documentatoin to Documentation

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220309222302.1114561-1-trix@redhat.com
2 years agodt-bindings: net: mscc,vsc7514-switch: convert txt bindings to yaml
Clément Léger [Fri, 4 Mar 2022 10:32:25 +0000 (11:32 +0100)]
dt-bindings: net: mscc,vsc7514-switch: convert txt bindings to yaml

Convert existing txt bindings to yaml format.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220304103225.111428-1-clement.leger@bootlin.com
2 years agodt-bindings: imx6q-pcie: Add iMX8MP PCIe compatible string
Richard Zhu [Mon, 7 Mar 2022 09:07:31 +0000 (17:07 +0800)]
dt-bindings: imx6q-pcie: Add iMX8MP PCIe compatible string

Add i.MX8MP PCIe compatible string.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1646644054-24421-5-git-send-email-hongxing.zhu@nxp.com
2 years agodt-bindings: imx6q-pcie: Add iMX8MM PCIe compatible string
Richard Zhu [Thu, 3 Mar 2022 07:50:05 +0000 (15:50 +0800)]
dt-bindings: imx6q-pcie: Add iMX8MM PCIe compatible string

Add the i.MX8MM PCIe compatible string.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1646293805-18248-1-git-send-email-hongxing.zhu@nxp.com
2 years agodt-bindings: kbuild: Print a warning if yamllint is not found
Rob Herring [Thu, 3 Mar 2022 17:45:14 +0000 (11:45 -0600)]
dt-bindings: kbuild: Print a warning if yamllint is not found

Running yamllint is effectively required for binding schemas, so print a
warning if not found rather than silently skipping running it.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220303221417.2486268-1-robh@kernel.org
2 years agodt-bindings: Add vendor prefix for Xen hypervisor
Oleksii Moisieiev [Mon, 7 Mar 2022 08:17:43 +0000 (08:17 +0000)]
dt-bindings: Add vendor prefix for Xen hypervisor

Xen is an open source type-1 hypervisor.

Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/aece6fd976980131120456800de3558e1e2308a0.1646639462.git.oleksii_moisieiev@epam.com
2 years agoMerge branch 'dt/linus' into dt/next
Rob Herring [Tue, 8 Mar 2022 19:42:06 +0000 (13:42 -0600)]
Merge branch 'dt/linus' into dt/next

Pull in DT binding warning fixes

2 years agodt-bindings: firmware: arm,scpi: Add missing maxItems to mboxes/shmem
Geert Uytterhoeven [Tue, 8 Mar 2022 17:49:02 +0000 (18:49 +0100)]
dt-bindings: firmware: arm,scpi: Add missing maxItems to mboxes/shmem

"make dt_binding_check":

    Documentation/devicetree/bindings/firmware/arm,scpi.example.dt.yaml: scpi: shmem: [[2], [1]] is too long

Fix this by adding a proper maxItems value to the shmem property,
and to the related mboxes property.

Fix the grouping of the "mboxes" property in the example.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/58b7c706f259f88a61bfe82d9106fe0a93a9838d.1646761693.git.geert+renesas@glider.be
2 years agodt-bindings: ufs: snps,tc-dwc-g210: convert to dtschema
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:21 +0000 (12:11 +0100)]
dt-bindings: ufs: snps,tc-dwc-g210: convert to dtschema

Convert the Synopsys Universal Flash Storage (UFS) Controller to DT
schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-9-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: mediatek,ufs: convert to dtschema
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:20 +0000 (12:11 +0100)]
dt-bindings: ufs: mediatek,ufs: convert to dtschema

Convert the Mediatek Universal Flash Storage (UFS) Controller to DT
schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-8-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: hisilicon,ufs: convert to dtschema
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:19 +0000 (12:11 +0100)]
dt-bindings: ufs: hisilicon,ufs: convert to dtschema

Convert the HiSilicon Universal Flash Storage (UFS) Controller to DT
schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-7-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: qcom,ufs: convert to dtschema
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:18 +0000 (12:11 +0100)]
dt-bindings: ufs: qcom,ufs: convert to dtschema

Convert the Qualcomm Universal Flash Storage (UFS) Controller to DT
schema format.

Except the conversion, add also properties already present in DTS:
iommus, interconnects and power-domains.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-6-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: drop unused/old ufs-qcom PHY bindings
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:17 +0000 (12:11 +0100)]
dt-bindings: ufs: drop unused/old ufs-qcom PHY bindings

The Qualcomm UFS PHY bindings are documented in
bindings/phy/qcom,qmp-phy.yaml and the compatibles from separate file
bindings/ufs/ufs-qcom.txt are not used at all.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-5-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: cdns,ufshc: convert to dtschema
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:16 +0000 (12:11 +0100)]
dt-bindings: ufs: cdns,ufshc: convert to dtschema

Convert the Cadence Universal Flash Storage (UFS) Controlle to DT schema
format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-4-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: samsung,exynos-ufs: use common bindings
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:15 +0000 (12:11 +0100)]
dt-bindings: ufs: samsung,exynos-ufs: use common bindings

Use common UFS bindings in Samsung Exynos UFS to cover generic/common
properties in DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-3-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: ufs: add common platform bindings
Krzysztof Kozlowski [Sun, 6 Mar 2022 11:11:14 +0000 (12:11 +0100)]
dt-bindings: ufs: add common platform bindings

Add bindings for common parts (platform) of Universal Flash Storage
(UFS) Host Controllers in dtschema format.

Include also the bindings directory in the UFS maintainers entry.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-2-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: phy: ti,tcan104x-can: Document mux-states property
Aswath Govindraju [Thu, 16 Dec 2021 04:10:11 +0000 (09:40 +0530)]
dt-bindings: phy: ti,tcan104x-can: Document mux-states property

On some boards, for routing CAN signals from controller to transceivers,
muxes might need to be set. This can be implemented using mux-states
property. Therefore, document the same in the respective bindings.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211216041012.16892-2-a-govindraju@ti.com
2 years agodt-bindings: mfd: Fix pinctrl node name warnings
Rob Herring [Thu, 3 Mar 2022 23:23:49 +0000 (17:23 -0600)]
dt-bindings: mfd: Fix pinctrl node name warnings

The recent addition pinctrl.yaml in commit c09acbc499e8 ("dt-bindings:
pinctrl: use pinctrl.yaml") resulted in some node name warnings:

Documentation/devicetree/bindings/mfd/cirrus,lochnagar.example.dt.yaml: \
 lochnagar-pinctrl: $nodename:0: 'lochnagar-pinctrl' does not match '^(pinctrl|pinmux)(@[0-9a-f]+)?$'
Documentation/devicetree/bindings/mfd/cirrus,madera.example.dt.yaml: \
 codec@1a: $nodename:0: 'codec@1a' does not match '^(pinctrl|pinmux)(@[0-9a-f]+)?$'
Documentation/devicetree/bindings/mfd/brcm,cru.example.dt.yaml: \
 pin-controller@1c0: $nodename:0: 'pin-controller@1c0' does not match '^(pinctrl|pinmux)(@[0-9a-f]+)?$'

Fix the node names to the preferred 'pinctrl'. For cirrus,madera,
nothing from pinctrl.yaml schema is used, so just drop the reference.

Fixes: c09acbc499e8 ("dt-bindings: pinctrl: use pinctrl.yaml")
Cc: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220303232350.2591143-1-robh@kernel.org
2 years agoMAINTAINERS: dt-bindings: update Krzysztof Kozlowski's email
Krzysztof Kozlowski [Mon, 7 Mar 2022 17:29:01 +0000 (18:29 +0100)]
MAINTAINERS: dt-bindings: update Krzysztof Kozlowski's email

Use Krzysztof Kozlowski's @kernel.org account in dt-bindings maintainer
entry.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220307172901.156929-1-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: arm: Allow 32-bit 'cpu-release-addr' values
Rob Herring [Thu, 3 Mar 2022 16:57:09 +0000 (10:57 -0600)]
dt-bindings: arm: Allow 32-bit 'cpu-release-addr' values

While the DT Spec says 'cpu-release-addr' is always 64-bit, some 32-bit Arm
DTs used a 32-bit value. We're now stuck with those cases, so add uint32 as
a valid type.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220303165710.1859862-1-robh@kernel.org
2 years agodt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES
Rob Herring [Mon, 28 Feb 2022 20:10:05 +0000 (14:10 -0600)]
dt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES

DT_SCHEMA_FILES is currently restricted to a list of exact files with
the full source tree path (i.e. Documentation/devicetree/bindings/...).
Loosen this requirement and let DT_SCHEMA_FILES be a partial match.

With this, checking all schema files in a directory is possible:

$ make DT_SCHEMA_FILES=/gpio/ dt_binding_check

Or all schema files with 'qcom' in the path or filename:

$ make DT_SCHEMA_FILES=qcom dt_binding_check

Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220228201006.1484903-1-robh@kernel.org
2 years agodt-bindings: Another pass removing cases of 'allOf' containing a '$ref'
Rob Herring [Mon, 28 Feb 2022 21:38:02 +0000 (15:38 -0600)]
dt-bindings: Another pass removing cases of 'allOf' containing a '$ref'

Another pass at removing unnecessary use of 'allOf' with a '$ref'.

json-schema versions draft7 and earlier have a weird behavior in that
any keywords combined with a '$ref' are ignored (silently). The correct
form was to put a '$ref' under an 'allOf'. This behavior is now changed
in the 2019-09 json-schema spec and '$ref' can be mixed with other
keywords.

Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-By: Vinod Koul <vkoul@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Marek Behún <kabel@kernel.org>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220228213802.1639658-1-robh@kernel.org
2 years agodt-bindings: usb: renesas,usbhs: Document RZ/V2L bindings
Lad Prabhakar [Sun, 27 Feb 2022 23:15:31 +0000 (23:15 +0000)]
dt-bindings: usb: renesas,usbhs: Document RZ/V2L bindings

Document RZ/V2L (R9A07G054) SoC bindings. USBHS block is identical to one
found on RZ/A2 SoC. No driver changes are required as generic compatible
string "renesas,rza2-usbhs" will be used as a fallback.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220227231531.32279-1-prabhakar.mahadev-lad.rj@bp.renesas.com
2 years agodt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/V2L USBPHY Control bindings
Lad Prabhakar [Sun, 27 Feb 2022 23:03:01 +0000 (23:03 +0000)]
dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/V2L USBPHY Control bindings

Add device tree binding document for RZ/V2L USBPHY Control Device.
RZ/V2L USBPHY Control Device is identical to one found on the RZ/G2L SoC.
No driver changes are required as generic compatible string
"renesas,rzg2l-usbphy-ctrl" will be used as a fallback.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220227230302.30388-1-prabhakar.mahadev-lad.rj@bp.renesas.com
2 years agodt-bindings: timer: renesas: ostm: Document Renesas RZ/V2L OSTM
Lad Prabhakar [Sun, 27 Feb 2022 22:48:44 +0000 (22:48 +0000)]
dt-bindings: timer: renesas: ostm: Document Renesas RZ/V2L OSTM

Document the General Timer Module(a.k.a OSTM) found on the RZ/V2L SoC.
OSTM module is identical to one found RZ/G2L SoC. No driver changes are
required as generic compatible string "renesas,ostm" will be used as a
fallback.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220227224845.27348-1-prabhakar.mahadev-lad.rj@bp.renesas.com
2 years agodt-bindings: i2c: renesas,riic: Document RZ/V2L SoC
Lad Prabhakar [Sun, 27 Feb 2022 21:47:47 +0000 (21:47 +0000)]
dt-bindings: i2c: renesas,riic: Document RZ/V2L SoC

Document RZ/V2L I2C bindings. RZ/V2L I2C is identical to one found on
the RZ/G2L SoC. No driver changes are required as RZ/G2L compatible
string "renesas,riic-rz" will be used as a fallback.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220227214747.24819-1-prabhakar.mahadev-lad.rj@bp.renesas.com
2 years agodt-bindings: net: can: renesas,rcar-canfd: Document RZ/V2L SoC
Lad Prabhakar [Sun, 27 Feb 2022 21:32:50 +0000 (21:32 +0000)]
dt-bindings: net: can: renesas,rcar-canfd: Document RZ/V2L SoC

Document RZ/V2L CANFD bindings. RZ/V2L CANFD is identical to one found on
the RZ/G2L SoC. No driver changes are required as generic compatible
string "renesas,rzg2l-canfd" will be used as a fallback.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220227213250.23637-1-prabhakar.mahadev-lad.rj@bp.renesas.com
2 years agoof: unittest: add program to process EXPECT messages
Frank Rowand [Tue, 1 Feb 2022 18:14:13 +0000 (12:14 -0600)]
of: unittest: add program to process EXPECT messages

If unittest detects a problem it will print a warning or error message
to the console.  Unittest also triggers warning and error messages from
other kernel code as a result of intentionally bad unittest data.  This
has led to confusion as to whether the triggered messages are an
expected result of a test or whether there is a real problem that is
independent of unittest.

EXPECT messages were added to unittest to report each triggered message
that is expected, resulting in verbose console output.

scripts/dtc/of_unittest is a new program that processes the EXPECT
messages to determine whether the triggered messages occurred and
also removes the excess verbosity of the EXPECT messages.  More
information is available from 'scripts/dtc/of_unittest_expect --help'.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220201181413.2719955-1-frowand.list@gmail.com
2 years agodt-bindings: timer: sifive,clint: Group interrupt tuples
Geert Uytterhoeven [Fri, 28 Jan 2022 09:07:36 +0000 (10:07 +0100)]
dt-bindings: timer: sifive,clint: Group interrupt tuples

To improve human readability and enable automatic validation, the tuples
in "interrupts-extended" properties should be grouped using angle
brackets.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/62bf4ee6613550c07a99d4bd226ab0d33acae4c4.1643360652.git.geert@linux-m68k.org
2 years agodt-bindings: timer: sifive,clint: Fix number of interrupts
Geert Uytterhoeven [Fri, 28 Jan 2022 09:07:35 +0000 (10:07 +0100)]
dt-bindings: timer: sifive,clint: Fix number of interrupts

The number of interrupts lacks an upper bound, thus assuming one,
causing properly grouped "interrupts-extended" properties to be flagged
as an error by "make dtbs_check".

Fix this by adding the missing "maxItems", using the architectural
maximum of 4095 interrupts.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/e6a4c5b20d2acb52125d7d6e6c7e3694d7cb182c.1643360652.git.geert@linux-m68k.org
2 years agodt-bindings: reserved-memory: Add restricted-dma-pool constraints
Robin Murphy [Thu, 17 Feb 2022 17:47:14 +0000 (17:47 +0000)]
dt-bindings: reserved-memory: Add restricted-dma-pool constraints

The "restricted-dma-pool" definition prohibits combination with either
of the "no-map" and "reusable" properties, but this is only stated in
the description text. Add those constraints to the schema so we can
properly validate them.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/a4f3d4e2feef008d1236ebc3f5f0c46360f20c60.1645119806.git.robin.murphy@arm.com
2 years agodt-bindings: example: Extend with typical case (int-array and disallowed prop)
Krzysztof Kozlowski [Wed, 23 Feb 2022 07:35:47 +0000 (08:35 +0100)]
dt-bindings: example: Extend with typical case (int-array and disallowed prop)

Extend the example with:
 - an array where each element has constraints (min/max value),
 - property not allowed in case of different compatible.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220223073547.8746-2-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: writing-schema: Install from PyPI repository
Krzysztof Kozlowski [Wed, 23 Feb 2022 07:35:46 +0000 (08:35 +0100)]
dt-bindings: writing-schema: Install from PyPI repository

Installing dtschema from github.com/devicetree-org is not needed anymore
because dtschema is now part of regular PyPI repository.  In certain
cases it might cause some troubles as it brings latest master version,
not the stable release:

    $ pip3 show dtschema
    Version: 2020.8.2.dev4+g341f3e3
    $ make dt_binding_check
    dtschema minimum version is v2020.8.1

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220223073547.8746-1-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: update Roger Quadros email
Krzysztof Kozlowski [Mon, 21 Feb 2022 10:07:01 +0000 (11:07 +0100)]
dt-bindings: update Roger Quadros email

Emails to Roger Quadros TI account bounce with:
  550 Invalid recipient <rogerq@ti.com> (#5.1.1)

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Roger Quadros <rogerq@kernel.org>
Acked-By: Vinod Koul <vkoul@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220221100701.48593-1-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: usb: do not use deprecated synopsys prefix
Krzysztof Kozlowski [Mon, 21 Feb 2022 08:22:28 +0000 (09:22 +0100)]
dt-bindings: usb: do not use deprecated synopsys prefix

The "synopsys" prefix and "synopsys,dwc3" compatible are deprecated.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220221082228.34407-3-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: vendor-prefixes: add second Synopsys prefix
Krzysztof Kozlowski [Mon, 21 Feb 2022 08:22:27 +0000 (09:22 +0100)]
dt-bindings: vendor-prefixes: add second Synopsys prefix

There are few bindings with compatibles starting with a "synopsys"
prefix.  Document it as deprecated, to be sure no new usages will
appear.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220221082228.34407-2-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: vendor-prefixes: add second HiSilicon prefix
Krzysztof Kozlowski [Mon, 21 Feb 2022 08:22:26 +0000 (09:22 +0100)]
dt-bindings: vendor-prefixes: add second HiSilicon prefix

There are few boards DTS using "hisi,rst-syscon" property -
undocumented "hisi" prefix.  The property will not be changed in DTS to
non-deprecated one, because of compatibility reasons.  Add deprecated
"hisi" prefix to silence DT schema warnings.

Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: David Heidelberg <david@ixit.cz>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220221082228.34407-1-krzysztof.kozlowski@canonical.com
2 years agoMAINTAINERS: sifive: drop Yash Shah
Krzysztof Kozlowski [Mon, 14 Feb 2022 08:23:49 +0000 (09:23 +0100)]
MAINTAINERS: sifive: drop Yash Shah

Emails to Yash Shah bounce with "The email account that you tried to
reach does not exist.", so drop him from all maintainer entries.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220214082349.162973-1-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: convert ata/cortina,gemini-sata-bridge to yaml
Corentin Labbe [Fri, 11 Feb 2022 12:01:57 +0000 (12:01 +0000)]
dt-bindings: convert ata/cortina,gemini-sata-bridge to yaml

This patch converts ata/cortina,gemini-sata-bridge binding to yaml

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220211120157.3385145-1-clabbe@baylibre.com
2 years agodt-bindings: crypto: Convert Atmel SHA to yaml
Tudor Ambarus [Fri, 11 Feb 2022 09:39:22 +0000 (11:39 +0200)]
dt-bindings: crypto: Convert Atmel SHA to yaml

Convert Atmel SHA documentation to yaml format. With the conversion the
clock and clock-names properties are made mandatory. The driver returns
-EINVAL if "sha_clk" is not found, reflect that in the bindings and make
the clock and clock-names properties mandatory. Update the example to
better describe how one should define the dt node.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220211093922.456634-4-tudor.ambarus@microchip.com
2 years agodt-bindings: crypto: Convert Atmel TDES to yaml
Tudor Ambarus [Fri, 11 Feb 2022 09:39:21 +0000 (11:39 +0200)]
dt-bindings: crypto: Convert Atmel TDES to yaml

Convert Atmel TDES documentation to yaml format. With the conversion the
clock and clock-names properties are made mandatory. The driver returns
-EINVAL if "tdes_clk" is not found, reflect that in the bindings and make
the clock and clock-names properties mandatory. Update the example to
better describe how one should define the dt node.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220211093922.456634-3-tudor.ambarus@microchip.com
2 years agodt-bindings: crypto: Convert Atmel AES to yaml
Tudor Ambarus [Fri, 11 Feb 2022 09:39:20 +0000 (11:39 +0200)]
dt-bindings: crypto: Convert Atmel AES to yaml

Convert Atmel AES documentation to yaml format. With the conversion the
clock and clock-names properties are made mandatory. The driver returns
-EINVAL if "aes_clk" is not found, reflect that in the bindings and make
the clock and clock-names properties mandatory. Update the example to
better describe how one should define the dt node.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220211093922.456634-2-tudor.ambarus@microchip.com
2 years agoof/fdt: move elfcorehdr reservation early for crash dump kernel
Nikhil Gupta [Fri, 28 Jan 2022 04:23:21 +0000 (09:53 +0530)]
of/fdt: move elfcorehdr reservation early for crash dump kernel

elfcorehdr_addr is fixed address passed to Second kernel which may be conflicted
with potential reserved memory in Second kernel,so fdt_reserve_elfcorehdr() ahead
of fdt_init_reserved_mem() can relieve this situation.

Signed-off-by: Nikhil Gupta <nikhil.gupta@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220128042321.15228-1-nikhil.gupta@nxp.com
2 years agodt-bindings: vendor-prefixes: add HPE Prefix
Nick Hawkins [Thu, 10 Feb 2022 17:59:11 +0000 (11:59 -0600)]
dt-bindings: vendor-prefixes: add HPE Prefix

Description: This patch adds the Hewlett Packard Enterprise prefix
that will be used for upcoming support in the HPE BMC GXP.

Signed-off-by: Nick Hawkins <nick.hawkins@hpe.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220210175912.102159-1-nick.hawkins@hpe.com
2 years agoof: unittest: print pass messages at PR_INFO level
Frank Rowand [Thu, 10 Feb 2022 23:08:19 +0000 (17:08 -0600)]
of: unittest: print pass messages at PR_INFO level

Printing the devicetree unittest pass message for each passed test
creates much console verbosity.  The existing pass messages are
printed at loglevel KERN_DEBUG so they will not print by default.

Change default to print the pass messages at loglevel PR_INFO so
they will print with the default console loglevel.

The test community expects either a pass or a fail message for each
test in a test suite.  The messages are typically post-processed to
report pass/fail results.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220210230819.3303212-1-frowand.list@gmail.com
2 years agodt-bindings: timer: armv7m-systick: convert to dtschema
Fabrice Gasnier [Wed, 9 Feb 2022 13:52:27 +0000 (14:52 +0100)]
dt-bindings: timer: armv7m-systick: convert to dtschema

Convert the ARMv7-M system timer bindings to DT schema format.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1644414747-22159-1-git-send-email-fabrice.gasnier@foss.st.com
2 years agodt-bindings: net: ethernet-controller: document label property
Oleksij Rempel [Wed, 9 Feb 2022 08:28:20 +0000 (09:28 +0100)]
dt-bindings: net: ethernet-controller: document label property

"label" provides human readable name used on a box, board or schematic
to identify Ethernet port.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220209082820.2210753-1-o.rempel@pengutronix.de
2 years agodt-bindings: arm: Trivial typo fixes in cpu-capacity.txt
Zenghui Yu [Tue, 8 Feb 2022 07:03:00 +0000 (15:03 +0800)]
dt-bindings: arm: Trivial typo fixes in cpu-capacity.txt

Correct the spelling of 'cluster1@max-freq' and fix the wrong
capacity-dmips-mhz value 576 (which should be 578 instead).

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208070300.1610-1-yuzenghui@huawei.com
2 years agodt-bindings: display: bridge: document Toshiba TC358768 cells and panel node
David Heidelberg [Mon, 7 Feb 2022 22:39:11 +0000 (23:39 +0100)]
dt-bindings: display: bridge: document Toshiba TC358768 cells and panel node

Inherit valid properties from the dsi-controller.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220207223911.97180-1-david@ixit.cz
2 years agodt-bindings: ltk050h3146w: replace Heiko Stuebner by myself as maintainer
Quentin Schulz [Mon, 31 Jan 2022 16:54:39 +0000 (17:54 +0100)]
dt-bindings: ltk050h3146w: replace Heiko Stuebner by myself as maintainer

Heiko does not work at Theobroma Systems anymore and the boards using
those panels are downstream, maintained internally by the company, so
let's relieve Heiko of maintainership duties.

Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Quentin Schulz <foss+kernel@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220131165439.717713-1-quentin.schulz@theobroma-systems.com
2 years agodt-bindings: rng: atmel,at91-trng: update maintainers entry
Nicolas Ferre [Sun, 30 Jan 2022 14:47:08 +0000 (15:47 +0100)]
dt-bindings: rng: atmel,at91-trng: update maintainers entry

Update according to new MAINTAINERS entry.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/d84760e0b81c338e01f7856e1ce3c5b600b08f23.1643553619.git.nicolas.ferre@microchip.com
2 years agodt-bindings: net: can: fix dtbs warning
Dinh Nguyen [Fri, 28 Jan 2022 13:31:42 +0000 (07:31 -0600)]
dt-bindings: net: can: fix dtbs warning

Mute the warning from "make dtbs_check":

Documentation/devicetree/bindings/net/can/bosch,m_can.example.dt.yaml:
can@20e8000: bosch,mram-cfg: [[0, 0, 0, 32, 0, 0, 0, 1]] is too short

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220128133142.2135718-1-dinguyen@kernel.org
2 years agodt-bindings: display: samsung,exynos-fimd: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:23 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos-fimd: convert to dtschema

Convert the S3C/S5P/Exynos FIMD bindings to DT schema format.

The conversion includes also updates to the bindings, matching the
current DTS and Linux driver: adding optional iommus and power-domains.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-11-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: display: samsung,exynos5433-mic: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:22 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos5433-mic: convert to dtschema

Convert the Exynos5433 MIC bindings to DT schema format.

The conversion includes also updates to the bindings, matching the
current DTS and Linux driver: adding optional power-domains.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-10-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: display: samsung,exynos-hdmi: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:21 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos-hdmi: convert to dtschema

Convert the Exynos HDMI bindings to DT schema format.

The conversion includes also updates to the bindings, matching the
current DTS and Linux driver:
1. Add required properties: VDD supplies, power-domains.
2. Add optional properties: HDMI-EN supply, ports.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-9-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: display: samsung,exynos-mixer: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:20 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos-mixer: convert to dtschema

Convert the Exynos Mixer bindings to DT schema format.

The conversion includes also updates to the bindings, matching the
current DTS and Linux driver:
1. Add clocks required on Exynos4210 and Exynos4212 types of Mixer.
2. Add second memory range on Exynos4210 and Exynos4212.
3. Add interconnects, iommus and power-domains.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-8-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: display: samsung,exynos-hdmi-ddc: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:19 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos-hdmi-ddc: convert to dtschema

Convert the Exynos HDMI DDC bindings to DT schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-7-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: display: samsung,exynos7-decon: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:18 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos7-decon: convert to dtschema

Convert the Exynos7 DECON display controller bindings to DT schema
format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-6-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: display: samsung,exynos5433-decon: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:17 +0000 (18:18 +0100)]
dt-bindings: display: samsung,exynos5433-decon: convert to dtschema

Convert the Exynos5433 DECON display controller bindings to DT schema
format.

The conversion includes also updates to the bindings, matching the
current DTS and Linux driver:
1. Require "fifo" interrupt.
2. Add "dsd" as a last clock.
3. Document "power-domains" and "iommus" properties.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-5-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: phy: samsung,exynos-hdmi-phy: convert to dtschema
Krzysztof Kozlowski [Tue, 8 Feb 2022 17:18:16 +0000 (18:18 +0100)]
dt-bindings: phy: samsung,exynos-hdmi-phy: convert to dtschema

Convert the Exynos HDMI PHY bindings to DT schema format and put them
next to other PHYs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220208171823.226211-4-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: clock: Add binding for TI clksel
Tony Lindgren [Thu, 3 Feb 2022 07:39:29 +0000 (09:39 +0200)]
dt-bindings: clock: Add binding for TI clksel

In order to prepare for fixing lots of devicetree unique_unit_address
warnings for the TI clock nodes, let's add a binding for the TI clksel
clocks. This allows us to move the overlapping reg properties for the
component clocks to be children of the related clksel nodes. And with
that we need the reg property only for the parent clksel node making
the reg property unique like it should be.

We want to set #clock-cells = <2> in case we ever start parsing ranges
of clkcsel instances directly using a clksel driver rather than using the
existing component clock drivers and child nodes.

And before the devicetree files can be updated, we need to update the
TI clock drivers to get the IO address from the parent clksel node.

Cc: Tero Kristo <kristo@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220203073929.59296-1-tony@atomide.com
2 years agodt-bindings: net: convert net/cortina,gemini-ethernet to yaml
Corentin Labbe [Tue, 1 Feb 2022 14:49:40 +0000 (14:49 +0000)]
dt-bindings: net: convert net/cortina,gemini-ethernet to yaml

Converts net/cortina,gemini-ethernet.txt to yaml
This permits to detect some missing properties like interrupts

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220201144940.2488782-1-clabbe@baylibre.com
2 years agodt-bindings: timer: nuvoton,npcm7xx-timer: Convert to YAML
Jonathan Neuschäfer [Sun, 30 Jan 2022 10:27:02 +0000 (11:27 +0100)]
dt-bindings: timer: nuvoton,npcm7xx-timer: Convert to YAML

Let's convert this devicetree binding to YAML, to make it easier to
extend later.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220130102704.2892072-1-j.neuschaefer@gmx.net
2 years agodt-bindings: vendor-prefixes: clarify HP prefix
Krzysztof Kozlowski [Thu, 27 Jan 2022 07:52:29 +0000 (08:52 +0100)]
dt-bindings: vendor-prefixes: clarify HP prefix

There are two independent companies: "HP Inc." and "Hewlett Packard
Enterprise". Clarify that "hp" prefix is about the first one.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220127075229.10299-1-krzysztof.kozlowski@canonical.com
2 years agodt-bindings: trivial-devices: make comment indentation consistent
Stanislav Jakubek [Fri, 14 Jan 2022 17:21:55 +0000 (18:21 +0100)]
dt-bindings: trivial-devices: make comment indentation consistent

Makes the comment indentation consistent across the board.

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220114172155.GA3677@standask-GA-A55M-S2HP
2 years agodt-bindings: i2c: samsung,s3c2410-i2c: convert to dtschema
Krzysztof Kozlowski [Mon, 31 Jan 2022 17:27:13 +0000 (18:27 +0100)]
dt-bindings: i2c: samsung,s3c2410-i2c: convert to dtschema

Convert the Samsung S3C24xx/S3C64xx/S5PV210/Exynos SoC I2C Controller
bindings to DT schema format.

The conversion includes also changes/fixes to the bindings, matching the
real hardware and existing Linux driver:
1. Do not require interrupts on samsung,exynos5-sata-phy-i2c, because
   there is no such.
2. Do not allow gpios on samsung,exynos5-sata-phy-i2c, because they are
   hard-wired just like for HDMI phy.
3. Do not require samsung,i2c-sda-delay and use default of 0.
4. Require clock, which was always required but missing in bindings.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220131172713.208976-1-krzysztof.kozlowski@canonical.com
2 years agoMAINTAINERS: dt-bindings: Add Krzysztof Kozlowski
Krzysztof Kozlowski [Fri, 4 Feb 2022 16:18:51 +0000 (17:18 +0100)]
MAINTAINERS: dt-bindings: Add Krzysztof Kozlowski

Add Krzysztof Kozlowski as a second maintainer for the Devicetree
bindings, to share the Rob's workload and help in review.

Cc: devicetree@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220204161851.138874-1-krzysztof.kozlowski@canonical.com
2 years agoscripts/dtc: Call pkg-config POSIXly correct
Thomas Bracht Laumann Jespersen [Mon, 31 Jan 2022 11:20:28 +0000 (12:20 +0100)]
scripts/dtc: Call pkg-config POSIXly correct

Running with POSIXLY_CORRECT=1 in the environment the scripts/dtc build
fails, because pkg-config doesn't output anything when the flags come
after the arguments.

Fixes: 067c650c456e ("dtc: Use pkg-config to locate libyaml")
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220131112028.7907-1-t@laumann.xyz
2 years agoASoC: dt-bindings: Centralize the 'sound-dai' definition
Rob Herring [Wed, 26 Jan 2022 23:14:27 +0000 (17:14 -0600)]
ASoC: dt-bindings: Centralize the 'sound-dai' definition

'sound-dai' is a common property, but has duplicate type definitions.
Create a new common definition to define the type and then update all
the other occurrences to just define how many entries there are just
like other phandle+arg properties.

The constraints on the number of entries is based on the examples and
could be wrong.

Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220126231427.1638089-1-robh@kernel.org
2 years agodt-bindings: arm,cci-400: Add interrupt controller to example
Rob Herring [Wed, 26 Jan 2022 23:11:46 +0000 (17:11 -0600)]
dt-bindings: arm,cci-400: Add interrupt controller to example

In order to parse the 'interrupts' an interrupt provider node is needed.
That is because the example is a full example (starting with root node)
and on those we don't guess and generate a fake provider.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220126231146.1632819-1-robh@kernel.org
2 years agodt-bindings: remoteproc: ti: Add mailbox provider nodes to example
Rob Herring [Wed, 19 Jan 2022 18:10:54 +0000 (12:10 -0600)]
dt-bindings: remoteproc: ti: Add mailbox provider nodes to example

In order to make the 'mboxes' property in the TI remoteproc examples
parseable, mailbox provider nodes are needed. Normally, the examples
have a __fixup__ node which can be used for determining each
phandle+arg entry. However, for this binding the arg cells contain a
phandle, and the __fixups__ information can't be used.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220119181053.3846613-1-robh@kernel.org
2 years agodt-bindings: watchdog: fsl-imx7ulp-wdt: Fix assigned-clock-parents
Rob Herring [Thu, 20 Jan 2022 17:23:32 +0000 (11:23 -0600)]
dt-bindings: watchdog: fsl-imx7ulp-wdt: Fix assigned-clock-parents

The schema has a typo with 'assigned-clocks-parents'. As it is not
required to list assigned clocks in bindings, just drop the assigned-clocks
property definitions to fix this.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220120172333.1628990-1-robh@kernel.org
2 years agodt-bindings: net: ti,k3-am654-cpts: Fix assigned-clock-parents
Rob Herring [Thu, 20 Jan 2022 17:23:18 +0000 (11:23 -0600)]
dt-bindings: net: ti,k3-am654-cpts: Fix assigned-clock-parents

The schema has a typo with 'assigned-clocks-parents'. As it is not
required to list assigned clocks in bindings, just drop the assigned-clocks
property definitions to fix this

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220120172319.1628500-1-robh@kernel.org
2 years agodt-bindings: i2c: stm32-i2c: Move st,syscfg-fmp definition to top level
Rob Herring [Wed, 19 Jan 2022 17:44:07 +0000 (11:44 -0600)]
dt-bindings: i2c: stm32-i2c: Move st,syscfg-fmp definition to top level

It is preferred to define all properties in the main schema and leave
if/then/else schemas to just be further constraints on properties.

Rework the schema to use be more specific for each cell. Previously,
multiple entries of 3 cells each was allowed.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220119174407.3810088-1-robh@kernel.org
2 years agodt-bindings: ingenic,i2c: Rework interrupts in example
Rob Herring [Wed, 19 Jan 2022 17:43:49 +0000 (11:43 -0600)]
dt-bindings: ingenic,i2c: Rework interrupts in example

In order to determine the number of interrupt cells in examples, the
examples will require all 'interrupts' properties to use the same number
of cells or have explicit interrupt provider node(s). As the former is
simpler, update the Ingenic example to use 2 interrupt cells everywhere.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220119174349.3809513-1-robh@kernel.org
2 years agodt-bindings: nvmem: qcom,spmi-sdam: Drop child node schema
Rob Herring [Wed, 19 Jan 2022 15:11:35 +0000 (09:11 -0600)]
dt-bindings: nvmem: qcom,spmi-sdam: Drop child node schema

Drop the child node schema. The schema for child nodes is already
defined by nvmem.yaml and doesn't need to be duplicated in the
qcom,spmi-sdam schema.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220119151135.3598392-1-robh@kernel.org
2 years agodt-bindings: i2c: imx: Make each example a separate entry
Rob Herring [Wed, 19 Jan 2022 01:52:53 +0000 (19:52 -0600)]
dt-bindings: i2c: imx: Make each example a separate entry

Each independent example should be a separate entry. This allows for
'interrupts' to have different cell sizes.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20220119015253.2437352-1-robh@kernel.org
2 years agodt-bindings: i2c: mpc: Make each example a separate entry
Rob Herring [Wed, 19 Jan 2022 01:52:34 +0000 (19:52 -0600)]
dt-bindings: i2c: mpc: Make each example a separate entry

Each independent example should be a separate entry. This allows for
'interrupts' to have different cell sizes.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220119015234.2436754-1-robh@kernel.org
2 years agodt-bindings: Improve phandle-array schemas
Rob Herring [Wed, 19 Jan 2022 01:50:38 +0000 (19:50 -0600)]
dt-bindings: Improve phandle-array schemas

The 'phandle-array' type is a bit ambiguous. It can be either just an
array of phandles or an array of phandles plus args. Many schemas for
phandle-array properties aren't clear in the schema which case applies
though the description usually describes it.

The array of phandles case boils down to needing:

items:
  maxItems: 1

The phandle plus args cases should typically take this form:

items:
  - items:
      - description: A phandle
      - description: 1st arg cell
      - description: 2nd arg cell

With this change, some examples need updating so that the bracketing of
property values matches the schema.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Georgi Djakov <djakov@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20220119015038.2433585-1-robh@kernel.org
2 years agoof: unittest: update text of expected warnings
Frank Rowand [Thu, 27 Jan 2022 19:26:43 +0000 (13:26 -0600)]
of: unittest: update text of expected warnings

The text of various warning messages triggered by unittest has
changed.  Update the text of expected warnings to match.

The expected vs actual warnings are most easily seen by filtering
the boot console messages with the of_unittest_expect program at
https://github.com/frowand/dt_tools.git.  The filter prefixes
problem lines with '***', and prefixes lines that match expected
errors with 'ok '.  All other lines are prefixed with '   '.
Unrelated lines have been deleted in the following examples.

The mismatch appears as:

-> ### dt-test ### start of unittest - you will see error messages
      OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1
   ** of_unittest_expect WARNING - not found ---> OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1
      OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1
   ** of_unittest_expect WARNING - not found ---> OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1
      OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found 1
   ** of_unittest_expect WARNING - not found ---> OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found -1
      platform testcase-data:testcase-device2: error -ENXIO: IRQ index 0 not found
   ** of_unittest_expect WARNING - not found ---> platform testcase-data:testcase-device2: IRQ index 0 not found
   -> ### dt-test ### end of unittest - 254 passed, 0 failed
   ** EXPECT statistics:
   **
   **   EXPECT found          :   42
   **   EXPECT not found      :    4

With this commit applied, the mismatch is resolved:

   -> ### dt-test ### start of unittest - you will see error messages
   ok OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1
   ok OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1
   ok OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found 1
   ok platform testcase-data:testcase-device2: error -ENXIO: IRQ index 0 not found
   -> ### dt-test ### end of unittest - 254 passed, 0 failed
   ** EXPECT statistics:
   **
   **   EXPECT found          :   46
   **   EXPECT not found      :    0

Fixes: 2043727c2882 ("driver core: platform: Make use of the helper function dev_err_probe()")
Fixes: 94a4950a4acf ("of: base: Fix phandle argument length mismatch error message")
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220127192643.2534941-1-frowand.list@gmail.com
2 years agodt-bindings: dmaengine: zynqmp_dma: convert to yaml
Michael Tretter [Wed, 12 Jan 2022 15:15:39 +0000 (16:15 +0100)]
dt-bindings: dmaengine: zynqmp_dma: convert to yaml

Convert the Xilinx ZynqMP DMA engine bindings to Yaml.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220112151541.1328732-2-m.tretter@pengutronix.de