[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250324202300.GA804681-robh@kernel.org>
Date: Mon, 24 Mar 2025 15:23:00 -0500
From: Rob Herring <robh@...nel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Sean Wang <sean.wang@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Andy Teng <andy.teng@...iatek.com>,
linux-mediatek@...ts.infradead.org, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 2/2] dt-bindings: pinctrl: mediatek: Correct indentation
and style in DTS example
On Mon, Mar 24, 2025 at 01:51:05PM +0100, Krzysztof Kozlowski wrote:
> DTS example in the bindings should be indented with 2- or 4-spaces and
> aligned with opening '- |', so correct any differences like 3-spaces or
> mixtures 2- and 4-spaces in one binding.
>
> No functional changes here, but saves some comments during reviews of
> new patches built on existing code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
> ---
> .../pinctrl/mediatek,mt65xx-pinctrl.yaml | 83 +++++++------------
> .../pinctrl/mediatek,mt7622-pinctrl.yaml | 48 +++++------
> .../pinctrl/mediatek,mt8183-pinctrl.yaml | 68 +++++++--------
> .../pinctrl/mediatek,mt8192-pinctrl.yaml | 76 ++++++++---------
> 4 files changed, 127 insertions(+), 148 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml
> index 5f2808212f39..b9680b896f12 100644
> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml
> @@ -137,64 +137,43 @@ examples:
> #size-cells = <2>;
>
> pinctrl@...0800 {
> - compatible = "mediatek,mt8135-pinctrl";
> - reg = <0 0x1000B000 0 0x1000>;
> - mediatek,pctl-regmap = <&syscfg_pctl_a>, <&syscfg_pctl_b>;
> - gpio-controller;
> - #gpio-cells = <2>;
> - interrupt-controller;
> - #interrupt-cells = <2>;
> - interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
> + compatible = "mediatek,mt8135-pinctrl";
> + reg = <0 0x1000B000 0 0x1000>;
> + mediatek,pctl-regmap = <&syscfg_pctl_a>, <&syscfg_pctl_b>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
>
> - i2c0_pins_a: i2c0-pins {
> - pins1 {
> - pinmux = <MT8135_PIN_100_SDA0__FUNC_SDA0>,
> - <MT8135_PIN_101_SCL0__FUNC_SCL0>;
> - bias-disable;
> - };
> - };
> -
> - i2c1_pins_a: i2c1-pins {
> - pins {
> - pinmux = <MT8135_PIN_195_SDA1__FUNC_SDA1>,
> - <MT8135_PIN_196_SCL1__FUNC_SCL1>;
> - bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
> - };
> - };
> -
> - i2c2_pins_a: i2c2-pins {
> - pins1 {
> - pinmux = <MT8135_PIN_193_SDA2__FUNC_SDA2>;
> - bias-pull-down;
> + i2c0_pins_a: i2c0-pins {
Perhaps drop the unused labels while you are here. Either way,
Reviewed-by: Rob Herring (Arm) <robh@...nel.org>
Powered by blists - more mailing lists