Commit 61fcbbf3 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Linus Walleij

dt-bindings: pinctrl: mediatek: mt7622: fix array properties

Some properties (function groups & pins) are meant to be arrays and
should allow multiple entries out of enum sets. Use "items" for those.

Mistake was noticed during validation of in-kernel DTS files.

Fixes: b9ffc18c ("dt-bindings: mediatek: convert pinctrl to yaml")
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Acked-by: default avatarRob Herring <robh@kernel.org>
Message-ID: <20240423045502.7778-1-zajec5@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dbe0ed33
...@@ -100,6 +100,7 @@ patternProperties: ...@@ -100,6 +100,7 @@ patternProperties:
then: then:
properties: properties:
groups: groups:
items:
enum: [emmc, emmc_rst] enum: [emmc, emmc_rst]
- if: - if:
properties: properties:
...@@ -108,6 +109,7 @@ patternProperties: ...@@ -108,6 +109,7 @@ patternProperties:
then: then:
properties: properties:
groups: groups:
items:
enum: [esw, esw_p0_p1, esw_p2_p3_p4, rgmii_via_esw, enum: [esw, esw_p0_p1, esw_p2_p3_p4, rgmii_via_esw,
rgmii_via_gmac1, rgmii_via_gmac2, mdc_mdio] rgmii_via_gmac1, rgmii_via_gmac2, mdc_mdio]
- if: - if:
...@@ -126,6 +128,7 @@ patternProperties: ...@@ -126,6 +128,7 @@ patternProperties:
then: then:
properties: properties:
groups: groups:
items:
enum: [i2s_in_mclk_bclk_ws, i2s1_in_data, i2s2_in_data, enum: [i2s_in_mclk_bclk_ws, i2s1_in_data, i2s2_in_data,
i2s3_in_data, i2s4_in_data, i2s_out_mclk_bclk_ws, i2s3_in_data, i2s4_in_data, i2s_out_mclk_bclk_ws,
i2s1_out_data, i2s2_out_data, i2s3_out_data, i2s1_out_data, i2s2_out_data, i2s3_out_data,
...@@ -162,6 +165,7 @@ patternProperties: ...@@ -162,6 +165,7 @@ patternProperties:
then: then:
properties: properties:
groups: groups:
items:
enum: [pcie0_0_waken, pcie0_1_waken, pcie1_0_waken, enum: [pcie0_0_waken, pcie0_1_waken, pcie1_0_waken,
pcie0_0_clkreq, pcie0_1_clkreq, pcie1_0_clkreq, pcie0_0_clkreq, pcie0_1_clkreq, pcie1_0_clkreq,
pcie0_pad_perst, pcie1_pad_perst, pcie_pereset, pcie0_pad_perst, pcie1_pad_perst, pcie_pereset,
...@@ -181,6 +185,7 @@ patternProperties: ...@@ -181,6 +185,7 @@ patternProperties:
then: then:
properties: properties:
groups: groups:
items:
enum: [pwm_ch1_0, pwm_ch1_1, pwm_ch1_2, pwm_ch2_0, pwm_ch2_1, enum: [pwm_ch1_0, pwm_ch1_1, pwm_ch1_2, pwm_ch2_0, pwm_ch2_1,
pwm_ch2_2, pwm_ch3_0, pwm_ch3_1, pwm_ch3_2, pwm_ch4_0, pwm_ch2_2, pwm_ch3_0, pwm_ch3_1, pwm_ch3_2, pwm_ch4_0,
pwm_ch4_1, pwm_ch4_2, pwm_ch4_3, pwm_ch5_0, pwm_ch5_1, pwm_ch4_1, pwm_ch4_2, pwm_ch4_3, pwm_ch5_0, pwm_ch5_1,
...@@ -263,6 +268,7 @@ patternProperties: ...@@ -263,6 +268,7 @@ patternProperties:
pins: pins:
description: description:
An array of strings. Each string contains the name of a pin. An array of strings. Each string contains the name of a pin.
items:
enum: [GPIO_A, I2S1_IN, I2S1_OUT, I2S_BCLK, I2S_WS, I2S_MCLK, TXD0, enum: [GPIO_A, I2S1_IN, I2S1_OUT, I2S_BCLK, I2S_WS, I2S_MCLK, TXD0,
RXD0, SPI_WP, SPI_HOLD, SPI_CLK, SPI_MOSI, SPI_MISO, SPI_CS, RXD0, SPI_WP, SPI_HOLD, SPI_CLK, SPI_MOSI, SPI_MISO, SPI_CS,
I2C_SDA, I2C_SCL, I2S2_IN, I2S3_IN, I2S4_IN, I2S2_OUT, I2C_SDA, I2C_SCL, I2S2_IN, I2S3_IN, I2S4_IN, I2S2_OUT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment