dt-bindings: pinctrl: convert controller description to the json-schema
Subsystems (25)
PATCH 1/2 dt-bindings: pinctrl: convert controller description to the json-schema
From: Rafał Miłecki <[email protected]>
This helps validating DTS and writing YAML files.
--- .../bindings/pinctrl/pinctrl-bindings.txt | 41 +---------------- .../devicetree/bindings/pinctrl/pinctrl.yaml | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt +1 -40
@@ -97,47 +97,8 @@ For example: }; == Pin controller devices == -Required properties: See the pin controller driver specific documentation -Optional properties: -#pinctrl-cells: Number of pin control cells in addition to the index within the - pin controller device instance - -pinctrl-use-default: Boolean. Indicates that the OS can use the boot default - pin configuration. This allows using an OS that does not have a - driver for the pin controller. This property can be set either - globally for the pin controller or in child nodes for individual - pin group control. - -Pin controller devices should contain the pin configuration nodes that client -devices reference. - -For example: - - pincontroller { - ... /* Standard DT properties for the device itself elided */ - - state_0_node_a { - ... - }; - state_1_node_a { - ... - }; - state_1_node_b { - ... - }; - } - -The contents of each of those pin configuration child nodes is defined -entirely by the binding for the individual pin controller device. There -exists no common standard for this content. The pinctrl framework only -provides generic helper bindings that the pin controller driver can use. - -The pin configuration nodes need not be direct children of the pin controller -device; they may be grandchildren, for example. Whether this is legal, and -whether there is any interaction between the child and intermediate parent -nodes, is again defined entirely by the binding for the individual pin -controller device. +See pinctrl.yaml == Generic pin multiplexing node content ==
Documentation/devicetree/bindings/pinctrl/pinctrl.yaml new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
2.31.1
PATCH 2/2 dt-bindings: pinctrl: use pinctrl.yaml
From: Rafał Miłecki <[email protected]>
Also fix some examples to avoid warnings like:
brcm,ns-pinmux.example.dt.yaml: pin-controller@1800c1c0: $nodename:0: 'pin-controller@1800c1c0' does not match '^pinctrl|pinmux@[0-9a-f]+$'
--- .../devicetree/bindings/pinctrl/actions,s500-pinctrl.yaml | 3 +++ .../bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/apple,pinctrl.yaml | 3 +++ .../bindings/pinctrl/aspeed,ast2400-pinctrl.yaml | 3 +++ .../bindings/pinctrl/aspeed,ast2500-pinctrl.yaml | 3 +++ .../bindings/pinctrl/aspeed,ast2600-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml | 3 +++ .../bindings/pinctrl/brcm,bcm63268-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6362-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6368-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml | 3 ++- .../devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml | 7 +++++-- .../devicetree/bindings/pinctrl/cirrus,lochnagar.yaml | 3 +++ .../devicetree/bindings/pinctrl/cirrus,madera.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mn-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mq-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8ulp-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/ingenic,pinctrl.yaml | 8 ++++---- .../devicetree/bindings/pinctrl/intel,lgm-io.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt6779-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt6797-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt7622-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt7986-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/pinctrl-mt8192.yaml | 3 +++ .../devicetree/bindings/pinctrl/pinctrl-mt8195.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml | 3 +++ .../bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sm6125-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,tlmm-common.yaml | 3 +++ .../devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,pfc.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,rza1-ports.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,rza2-pinctrl.yaml | 3 +++ .../bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/rockchip,pinctrl.yaml | 3 +++ .../bindings/pinctrl/socionext,uniphier-pinctrl.yaml | 6 +++--- .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 3 +++ .../bindings/pinctrl/toshiba,visconti-pinctrl.yaml | 5 ++++- .../devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 3 +++ 58 files changed, 165 insertions(+), 11 deletions(-)
Documentation/devicetree/bindings/pinctrl/actions,s500-pinctrl.yaml +3 -0
@@ -184,6 +184,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml +1 -0
@@ -147,6 +147,7 @@ allOf: # boards are defining it at the moment so it would generate a lot of # warnings. + - $ref: "pinctrl.yaml#" - if: properties: compatible:
Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml +3 -0
@@ -67,6 +67,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml +3 -0
@@ -50,6 +50,9 @@ patternProperties: TXD3, TXD4, UART6, USB11D1, USB11H2, USB2D1, USB2H1, USBCKI, VGABIOS_ROM, VGAHS, VGAVS, VPI18, VPI24, VPI30, VPO12, VPO24, WDTRST1, WDTRST2] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible
Documentation/devicetree/bindings/pinctrl/aspeed,ast2500-pinctrl.yaml +3 -0
@@ -62,6 +62,9 @@ patternProperties: USB11BHID, USB2AD, USB2AH, USB2BD, USB2BH, USBCKI, VGABIOSROM, VGAHS, VGAVS, VPI24, VPO, WDTRST1, WDTRST2] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - aspeed,external-nodes
Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml +3 -0
@@ -83,6 +83,9 @@ patternProperties: UART7, UART8, UART9, USBA, USBB, VB, VGAHS, VGAVS, WDTRST1, WDTRST2, WDTRST3, WDTRST4] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible
Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml +3 -0
@@ -37,6 +37,9 @@ patternProperties: enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/brcm,bcm63268-pinctrl.yaml +3 -0
@@ -41,6 +41,9 @@ patternProperties: vdsl_phy_override_1_grp, vdsl_phy_override_2_grp, vdsl_phy_override_3_grp, dsl_gpio8, dsl_gpio9 ] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml +3 -0
@@ -36,6 +36,9 @@ patternProperties: gpio20, gpio25, gpio26, gpio27, gpio28, hsspi_cs1, usb_port1 ] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml +3 -0
@@ -34,6 +34,9 @@ patternProperties: enum: [ ebi_cs_grp, uart1_grp, serial_led_grp, legacy_led_grp, led_grp, spi_cs_grp, utopia_grp, pwm_syn_clk, sys_irq_grp ] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/brcm,bcm6362-pinctrl.yaml +3 -0
@@ -41,6 +41,9 @@ patternProperties: gpio15, gpio16, gpio17, gpio18, gpio19, gpio20, gpio21, gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, nand_grp ] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/brcm,bcm6368-pinctrl.yaml +3 -0
@@ -42,6 +42,9 @@ patternProperties: gpio24, gpio25, gpio26, gpio27, gpio28, gpio29, gpio30, gpio31, uart1_grp ] +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml +2 -1
@@ -53,6 +53,7 @@ patternProperties: additionalProperties: false allOf: + - $ref: "pinctrl.yaml#" - if: properties: compatible:
@@ -77,7 +78,7 @@ additionalProperties: false examples: - | - pin-controller@1800c1c0 { + pinctrl@1800c1c0 { compatible = "brcm,bcm4708-pinmux"; reg = <0x1800c1c0 0x24>; reg-names = "cru_gpio_control";
Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml +5 -2
@@ -137,6 +137,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
@@ -151,9 +154,9 @@ examples: #include <dt-bindings/clock/k210-clk.h> #include <dt-bindings/reset/k210-rst.h> - fpioa: pinmux@502B0000 { + fpioa: pinmux@502b0000 { compatible = "canaan,k210-fpioa"; - reg = <0x502B0000 0x100>; + reg = <0x502b0000 0x100>; clocks = <&sysclk K210_CLK_FPIOA>, <&sysclk K210_CLK_APB0>; clock-names = "ref", "pclk";
Documentation/devicetree/bindings/pinctrl/cirrus,lochnagar.yaml +3 -0
@@ -181,6 +181,9 @@ properties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - gpio-controller
Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml +3 -0
@@ -117,6 +117,9 @@ properties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - pinctrl-0 - pinctrl-names
Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml +3 -0
@@ -58,6 +58,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/fsl,imx8mn-pinctrl.yaml +3 -0
@@ -58,6 +58,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml +3 -0
@@ -58,6 +58,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/fsl,imx8mq-pinctrl.yaml +3 -0
@@ -58,6 +58,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/fsl,imx8ulp-pinctrl.yaml +3 -0
@@ -56,6 +56,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.yaml +4 -4
@@ -28,9 +28,6 @@ maintainers: - Paul Cercueil <[email protected]> properties: - nodename: - pattern: "^pinctrl@[0-9a-f]+$" - compatible: oneOf: - enum:
@@ -121,6 +118,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
@@ -169,7 +169,7 @@ additionalProperties: examples: - | - pin-controller@10010000 { + pinctrl@10010000 { compatible = "ingenic,jz4770-pinctrl"; reg = <0x10010000 0x600>;
Documentation/devicetree/bindings/pinctrl/intel,lgm-io.yaml +3 -0
@@ -47,6 +47,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml +3 -0
@@ -64,6 +64,9 @@ required: - gpio-controller - "#gpio-cells" +allOf: + - $ref: "pinctrl.yaml#" + patternProperties: '-[0-9]+$': type: object
Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml +3 -0
@@ -59,6 +59,9 @@ properties: "#interrupt-cells": const: 2 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/mediatek,mt6797-pinctrl.yaml +3 -0
@@ -45,6 +45,9 @@ properties: "#interrupt-cells": const: 2 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml +3 -0
@@ -42,6 +42,9 @@ properties: "#interrupt-cells": const: 2 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml +3 -0
@@ -56,6 +56,9 @@ properties: "#interrupt-cells": const: 2 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml +3 -0
@@ -56,6 +56,9 @@ properties: "#interrupt-cells": const: 2 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/pinctrl-mt8192.yaml +3 -0
@@ -108,6 +108,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml +3 -0
@@ -187,6 +187,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml +3 -0
@@ -118,6 +118,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml +3 -0
@@ -103,6 +103,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml +1 -0
@@ -14,6 +14,7 @@ description: | MDM9607 platform. allOf: + - $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# properties:
Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml +3 -0
@@ -97,6 +97,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml +3 -0
@@ -133,6 +133,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml +3 -0
@@ -118,6 +118,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml +3 -0
@@ -123,6 +123,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml +1 -0
@@ -14,6 +14,7 @@ description: | SC8180X platform. allOf: + - $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# properties:
Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml +3 -0
@@ -118,6 +118,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml +3 -0
@@ -121,6 +121,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,sm6125-pinctrl.yaml +1 -0
@@ -13,6 +13,7 @@ description: | in the SM6125 platform. allOf: + - $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# properties:
Documentation/devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml +1 -0
@@ -14,6 +14,7 @@ description: | in the SM6350 platform. allOf: + - $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# properties:
Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml +3 -0
@@ -115,6 +115,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml +1 -0
@@ -14,6 +14,7 @@ description: | in the SM8350 platform. allOf: + - $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# properties:
Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml +3 -0
@@ -51,6 +51,9 @@ properties: should not be accessed by the OS. Please see the ../gpio/gpio.txt for more information. +allOf: + - $ref: "pinctrl.yaml#" + required: - interrupts - interrupt-controller
Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml +3 -0
@@ -44,6 +44,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible
Documentation/devicetree/bindings/pinctrl/renesas,pfc.yaml +3 -0
@@ -70,6 +70,9 @@ properties: power-domains: maxItems: 1 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/renesas,rza1-ports.yaml +3 -0
@@ -31,6 +31,9 @@ properties: reg: maxItems: 1 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/renesas,rza2-pinctrl.yaml +3 -0
@@ -72,6 +72,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml +3 -0
@@ -90,6 +90,9 @@ additionalProperties: additionalProperties: $ref: "#/additionalProperties/anyOf/0" +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml +3 -0
@@ -31,6 +31,9 @@ properties: description: The bus clock, sometimes described as pclk, for register accesses. +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml +3 -0
@@ -67,6 +67,9 @@ properties: ranges: true +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - rockchip,grf
Documentation/devicetree/bindings/pinctrl/socionext,uniphier-pinctrl.yaml +3 -3
@@ -10,9 +10,6 @@ maintainers: - Masahiro Yamada <[email protected]> properties: - $nodename: - pattern: "pinctrl" - compatible: enum: - socionext,uniphier-ld4-pinctrl
@@ -26,6 +23,9 @@ properties: - socionext,uniphier-pxs3-pinctrl - socionext,uniphier-nx1-pinctrl +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible
Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml +3 -0
@@ -183,6 +183,9 @@ patternProperties: required: - pinmux +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - '#address-cells'
Documentation/devicetree/bindings/pinctrl/toshiba,visconti-pinctrl.yaml +4 -1
@@ -20,6 +20,9 @@ properties: reg: maxItems: 1 +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
@@ -80,7 +83,7 @@ examples: #address-cells = <2>; #size-cells = <2>; - pmux: pmux@24190000 { + pmux: pinmux@24190000 { compatible = "toshiba,tmpv7708-pinctrl"; reg = <0 0x24190000 0 0x10000>;
Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml +3 -0
@@ -167,6 +167,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: "pinctrl.yaml#" + required: - compatible - reg
Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml +3 -0
@@ -290,6 +290,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: pinctrl.yaml# + required: - compatible
Signature · 1 line
2.31.1
Quoted 5 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This helps validating DTS and writing YAML files.
Signed-off-by Rafał Miłecki <[email protected]>
This looks good to my eyes but I definitely need Rob to look at this before merging!
Yours,
Linus Walleij
Re: [PATCH 2/2] dt-bindings: pinctrl: use pinctrl.yaml
In reply to Rafał MiłeckiQuoted 6 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Also fix some examples to avoid warnings like:
brcm,ns-pinmux.example.dt.yaml: pin-controller@1800c1c0: $nodename:0: 'pin-controller@1800c1c0' does not match '^pinctrl|pinmux@[0-9a-f]+$'Signed-off-by Rafał Miłecki <[email protected]>
Looks good to me, Rob?
Yours,
Linus Walleij
Quoted 11 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This helps validating DTS and writing YAML files.
Signed-off-by Rafał Miłecki <[email protected]>--- .../bindings/pinctrl/pinctrl-bindings.txt | 41 +---------------- .../devicetree/bindings/pinctrl/pinctrl.yaml | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl.yaml
Re: [PATCH 2/2] dt-bindings: pinctrl: use pinctrl.yaml
In reply to Rafał MiłeckiQuoted 58 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Also fix some examples to avoid warnings like:
brcm,ns-pinmux.example.dt.yaml: pin-controller@1800c1c0: $nodename:0: 'pin-controller@1800c1c0' does not match '^pinctrl|pinmux@[0-9a-f]+$'Signed-off-by Rafał Miłecki <[email protected]>--- .../devicetree/bindings/pinctrl/actions,s500-pinctrl.yaml | 3 +++ .../bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/apple,pinctrl.yaml | 3 +++ .../bindings/pinctrl/aspeed,ast2400-pinctrl.yaml | 3 +++ .../bindings/pinctrl/aspeed,ast2500-pinctrl.yaml | 3 +++ .../bindings/pinctrl/aspeed,ast2600-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml | 3 +++ .../bindings/pinctrl/brcm,bcm63268-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6362-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,bcm6368-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml | 3 ++- .../devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml | 7 +++++-- .../devicetree/bindings/pinctrl/cirrus,lochnagar.yaml | 3 +++ .../devicetree/bindings/pinctrl/cirrus,madera.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mn-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8mq-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/fsl,imx8ulp-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/ingenic,pinctrl.yaml | 8 ++++---- .../devicetree/bindings/pinctrl/intel,lgm-io.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt6779-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt6797-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt7622-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt7986-pinctrl.yaml | 3 +++ .../bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/pinctrl-mt8192.yaml | 3 +++ .../devicetree/bindings/pinctrl/pinctrl-mt8195.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml | 3 +++ .../bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sm6125-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/qcom,tlmm-common.yaml | 3 +++ .../devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,pfc.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,rza1-ports.yaml | 3 +++ .../devicetree/bindings/pinctrl/renesas,rza2-pinctrl.yaml | 3 +++ .../bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 3 +++
Quoted 9 lines
.../devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/rockchip,pinctrl.yaml | 3 +++ .../bindings/pinctrl/socionext,uniphier-pinctrl.yaml | 6 +++--- .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 3 +++ .../bindings/pinctrl/toshiba,visconti-pinctrl.yaml | 5 ++++- .../devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml | 3 +++ .../devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 3 +++ 58 files changed, 165 insertions(+), 11 deletions(-)
Quoted 5 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This helps validating DTS and writing YAML files.
Signed-off-by Rafał Miłecki <[email protected]>
Patch applied!
Yours,
Linus Walleij
Re: [PATCH 2/2] dt-bindings: pinctrl: use pinctrl.yaml
In reply to Rafał MiłeckiQuoted 6 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Also fix some examples to avoid warnings like:
brcm,ns-pinmux.example.dt.yaml: pin-controller@1800c1c0: $nodename:0: 'pin-controller@1800c1c0' does not match '^pinctrl|pinmux@[0-9a-f]+$'Signed-off-by Rafał Miłecki <[email protected]>
Unfortunately I have some changes in my tree colliding with this. This is the development branch for v5.17:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel
Do you think you could rebase on this and resend?
I would normally try to do it myself, but I have very little time these days.
Yours,
Linus Walleij