Re: [PATCH] dt-bindings: pinctrl: Use consistent indentation in the example
From: Gary Yang
Date: Sun Sep 13 2026 - 22:22:10 EST
On 2026-09-13 14:32, Krzysztof Kozlowski wrote:
> EXTERNAL EMAIL
>
> Correct indentation in the examples to consistent 2- or 4-spaces
> indentation to fix dt-check-style warnings ("example 0
> [indent-consistent] indent mismatch ..."). Preferred is 4-spaces, but
> re-indenting entire example just for that is too much churn.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
For the cix part:
Reviewed-by: Gary Yang <gary.yang@xxxxxxxxxxx>
> ---
> .../pinctrl/awinic,aw9523-pinctrl.yaml | 50 +++++++++----------
> .../bindings/pinctrl/cix,sky1-pinctrl.yaml | 2 +-
> .../bindings/pinctrl/fsl,imx7d-pinctrl.yaml | 8 +--
> .../bindings/pinctrl/intel,lgm-io.yaml | 14 +++---
> .../pinctrl/mediatek,mt8183-pinctrl.yaml | 4 +-
> .../pinctrl/mediatek,mt8195-pinctrl.yaml | 2 +-
> .../bindings/pinctrl/qcom,hawi-tlmm.yaml | 4 +-
> .../bindings/pinctrl/qcom,kaanapali-tlmm.yaml | 4 +-
> .../bindings/pinctrl/qcom,maili-tlmm.yaml | 4 +-
> .../bindings/pinctrl/semtech,sx1501q.yaml | 4 +-
> .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 46 ++++++++---------
> 11 files changed, 71 insertions(+), 71 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml
> index 98c310a3c63c..1c09c0fd4930 100644
> --- a/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml
> @@ -108,32 +108,32 @@ examples:
> #size-cells = <0>;
>
> aw9523: gpio-expander@58 {
> - compatible = "awinic,aw9523-pinctrl";
> - reg = <0x58>;
> - interrupt-parent = <&tlmm>;
> - interrupts = <50 IRQ_TYPE_EDGE_FALLING>;
> - gpio-controller;
> - #gpio-cells = <2>;
> - gpio-ranges = <&tlmm 0 0 16>;
> - interrupt-controller;
> - #interrupt-cells = <2>;
> - reset-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
> + compatible = "awinic,aw9523-pinctrl";
> + reg = <0x58>;
> + interrupt-parent = <&tlmm>;
> + interrupts = <50 IRQ_TYPE_EDGE_FALLING>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + gpio-ranges = <&tlmm 0 0 16>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + reset-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
>
> - keyboard-matrix-col-pins {
> - pins = "gpio8", "gpio9", "gpio10", "gpio11",
> - "gpio12", "gpio13", "gpio14", "gpio15";
> - function = "gpio";
> - input-disable;
> - output-low;
> - };
> + keyboard-matrix-col-pins {
> + pins = "gpio8", "gpio9", "gpio10", "gpio11",
> + "gpio12", "gpio13", "gpio14", "gpio15";
> + function = "gpio";
> + input-disable;
> + output-low;
> + };
>
> - keyboard-matrix-row-pins {
> - pins = "gpio0", "gpio1", "gpio2", "gpio3",
> - "gpio4", "gpio5", "gpio6", "gpio7";
> - function = "gpio";
> - bias-pull-up;
> - drive-open-drain;
> - input-enable;
> - };
> + keyboard-matrix-row-pins {
> + pins = "gpio0", "gpio1", "gpio2", "gpio3",
> + "gpio4", "gpio5", "gpio6", "gpio7";
> + function = "gpio";
> + bias-pull-up;
> + drive-open-drain;
> + input-enable;
> + };
> };
> };
> diff --git a/Documentation/devicetree/bindings/pinctrl/cix,sky1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/cix,sky1-pinctrl.yaml
> index 8ed53496c386..4ab1f00775cc 100644
> --- a/Documentation/devicetree/bindings/pinctrl/cix,sky1-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/cix,sky1-pinctrl.yaml
> @@ -86,6 +86,6 @@ examples:
> pinmux = <CIX_PAD_GPIO012_FUNC_GPIO012>;
> bias-pull-up;
> drive-strength = <8>;
> - };
> + };
> };
> };
> diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.yaml
> index 948160cfbc5f..7275215918bb 100644
> --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.yaml
> @@ -106,8 +106,8 @@ examples:
> fsl,input-sel = <&iomuxc>;
>
> pinctrl_gpio_lpsr: gpio1-grp {
> - fsl,pins =
> - <0x0008 0x0038 0x0000 0x0 0x0 0x59>,
> - <0x000C 0x003C 0x0000 0x0 0x0 0x59>;
> - };
> + fsl,pins =
> + <0x0008 0x0038 0x0000 0x0 0x0 0x59>,
> + <0x000C 0x003C 0x0000 0x0 0x0 0x59>;
> + };
> };
> diff --git a/Documentation/devicetree/bindings/pinctrl/intel,lgm-io.yaml b/Documentation/devicetree/bindings/pinctrl/intel,lgm-io.yaml
> index 1144ca2896e3..96c405711f65 100644
> --- a/Documentation/devicetree/bindings/pinctrl/intel,lgm-io.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/intel,lgm-io.yaml
> @@ -64,13 +64,13 @@ examples:
> reg = <0xe2880000 0x100000>;
>
> uart0-pins {
> - pins = <64>, /* UART_RX0 */
> - <65>; /* UART_TX0 */
> - function = "CONSOLE_UART0";
> - pinmux = <1>,
> - <1>;
> - groups = "CONSOLE_UART0";
> - };
> + pins = <64>, /* UART_RX0 */
> + <65>; /* UART_TX0 */
> + function = "CONSOLE_UART0";
> + pinmux = <1>,
> + <1>;
> + groups = "CONSOLE_UART0";
> + };
> };
>
> ...
> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml
> index 3db2438fadc7..4bcee7741fcd 100644
> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml
> @@ -221,8 +221,8 @@ examples:
>
> i2c0_pins_a: i2c0-pins {
> pins1 {
> - pinmux = <PINMUX_GPIO48__FUNC_SCL5>,
> - <PINMUX_GPIO49__FUNC_SDA5>;
> + pinmux = <PINMUX_GPIO48__FUNC_SCL5>,
> + <PINMUX_GPIO49__FUNC_SDA5>;
> mediatek,pull-up-adv = <3>;
> drive-strength-microamp = <1000>;
> };
> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8195-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8195-pinctrl.yaml
> index 33cb71775db9..0bcafa78acb2 100644
> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8195-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8195-pinctrl.yaml
> @@ -234,7 +234,7 @@ examples:
> - |
> #include <dt-bindings/pinctrl/mt8195-pinfunc.h>
> #include <dt-bindings/interrupt-controller/arm-gic.h>
> - #
> +
> pio: pinctrl@10005000 {
> compatible = "mediatek,mt8195-pinctrl";
> reg = <0x10005000 0x1000>,
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,hawi-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,hawi-tlmm.yaml
> index 3b3961789860..2b1354e212e5 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,hawi-tlmm.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,hawi-tlmm.yaml
> @@ -113,8 +113,8 @@ examples:
> #interrupt-cells = <2>;
>
> qup-uart7-state {
> - pins = "gpio62", "gpio63";
> - function = "qup1_se7";
> + pins = "gpio62", "gpio63";
> + function = "qup1_se7";
> };
> };
> ...
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,kaanapali-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,kaanapali-tlmm.yaml
> index 53534a07a1f0..ea7d4768483d 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,kaanapali-tlmm.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,kaanapali-tlmm.yaml
> @@ -120,8 +120,8 @@ examples:
> #interrupt-cells = <2>;
>
> qup-uart7-state {
> - pins = "gpio62", "gpio63";
> - function = "qup1_se7";
> + pins = "gpio62", "gpio63";
> + function = "qup1_se7";
> };
> };
> ...
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,maili-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,maili-tlmm.yaml
> index 64fe90b2391b..a0b56adb3388 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,maili-tlmm.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,maili-tlmm.yaml
> @@ -113,8 +113,8 @@ examples:
> #interrupt-cells = <2>;
>
> qup-uart7-state {
> - pins = "gpio62", "gpio63";
> - function = "qup1_se7";
> + pins = "gpio62", "gpio63";
> + function = "qup1_se7";
> };
> };
> ...
> diff --git a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
> index 39d7dad3313b..f7a7551d7f50 100644
> --- a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
> @@ -244,8 +244,8 @@ examples:
> interrupt-controller;
>
> gpio1-cfg {
> - pins = "gpio1";
> - bias-pull-up;
> + pins = "gpio1";
> + bias-pull-up;
> };
> };
> };
> diff --git a/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml
> index ce66fd15ff9c..300d38f87f2d 100644
> --- a/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml
> @@ -317,37 +317,37 @@ examples:
> #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
> zynqmp_firmware: zynqmp-firmware {
> pinctrl0: pinctrl {
> - compatible = "xlnx,zynqmp-pinctrl";
> + compatible = "xlnx,zynqmp-pinctrl";
>
> - pinctrl_uart1_default: uart1-default {
> - mux {
> - groups = "uart0_4_grp", "uart0_5_grp";
> - function = "uart0";
> - };
> + pinctrl_uart1_default: uart1-default {
> + mux {
> + groups = "uart0_4_grp", "uart0_5_grp";
> + function = "uart0";
> + };
>
> - conf {
> - groups = "uart0_4_grp";
> - slew-rate = <SLEW_RATE_SLOW>;
> - power-source = <IO_STANDARD_LVCMOS18>;
> - };
> + conf {
> + groups = "uart0_4_grp";
> + slew-rate = <SLEW_RATE_SLOW>;
> + power-source = <IO_STANDARD_LVCMOS18>;
> + };
>
> - conf-rx {
> - pins = "MIO18";
> - bias-pull-up;
> - };
> + conf-rx {
> + pins = "MIO18";
> + bias-pull-up;
> + };
>
> - conf-tx {
> - pins = "MIO19";
> - bias-disable;
> - input-schmitt-disable;
> - };
> - };
> + conf-tx {
> + pins = "MIO19";
> + bias-disable;
> + input-schmitt-disable;
> + };
> + };
> };
> };
>
> uart1 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_uart1_default>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_uart1_default>;
> };
>
> ...
> --
> 2.53.0
>