dt-bindings: gpio: Move fsl,mxs-pinctrl.txt into gpio-mxs.yaml
Subsystems (5)
Frank Li
maintainerPATCH 1/1 dt-bindings: gpio: Move fsl,mxs-pinctrl.txt into gpio-mxs.yaml
Move mxs-pinctrl part into gpio-mxs.yaml and add pinctrl examples to fix below CHECK_DTB warning:
arch/arm/boot/dts/nxp/mxs/imx28-xea.dtb: pinctrl@80018000 (fsl,imx28-pinctrl):
'auart0-2pins@0', 'auart0@0', ... 'usb1@1' do not match any of the regexes: 'gpio@[0-9]+$', 'pinctrl-[0-9]+'
--- .../devicetree/bindings/gpio/gpio-mxs.yaml | 73 +++++++++- .../bindings/pinctrl/fsl,mxs-pinctrl.txt | 127 ------------------ 2 files changed, 69 insertions(+), 131 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txt
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +69 -4
@@ -18,9 +18,11 @@ description: | properties: compatible: - enum: - - fsl,imx23-pinctrl - - fsl,imx28-pinctrl + items: + - enum: + - fsl,imx23-pinctrl + - fsl,imx28-pinctrl + - const: simple-bus '#address-cells': const: 1
@@ -31,6 +33,61 @@ properties: maxItems: 1 patternProperties: + "^(?!gpio).*@[0-9]+$": + type: object + properties: + fsl,pinmux-ids: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + An integer array. Each integer in the array specify a pin + with given mux function, with bank, pin and mux packed as below. + + [15..12] : bank number + [11..4] : pin number + [3..0] : mux selection + + This integer with mux selection packed is used as an entity by both group + and config nodes to identify a pin. The mux selection in the integer takes + effects only on group node, and will get ignored by driver with config node, + since config node is only meant to set up pin configurations. + + Valid values for these integers are listed below. + + reg: + maxItems: 1 + + fsl,drive-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + description: | + 0: MXS_DRIVE_4mA + 1: MXS_DRIVE_8mA + 2: MXS_DRIVE_12mA + 3: MXS_DRIVE_16mA + + fsl,voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + 0: MXS_VOLTAGE_LOW - 1.8 V + 1: MXS_VOLTAGE_HIGH - 3.3 V + + fsl,pull-up: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + 0: MXS_PULL_DISABLE - Disable the internal pull-up + 1: MXS_PULL_ENABLE - Enable the internal pull-up + + Note that when enabling the pull-up, the internal pad keeper gets disabled. + Also, some pins doesn't have a pull up, in that case, setting the fsl,pull-up + will only disable the internal pad keeper. + + required: + - fsl,pinmux-ids + + additionalProperties: false + "gpio@[0-9]+$": type: object properties:
@@ -80,7 +137,7 @@ examples: pinctrl@80018000 { #address-cells = <1>; #size-cells = <0>; - compatible = "fsl,imx28-pinctrl"; + compatible = "fsl,imx28-pinctrl", "simple-bus"; reg = <0x80018000 0x2000>; gpio@0 {
@@ -132,4 +189,12 @@ examples: interrupt-controller; #interrupt-cells = <2>; }; + + lcdif-apx4@5 { + reg = <5>; + fsl,pinmux-ids = <0x1181 0x1191>; + fsl,drive-strength = <0>; + fsl,voltage = <0>; + fsl,pull-up = <0>; + }; };
Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txt deleted +0 -127
127 lines not on this page · raw message
Signature · 1 line
2.34.1
Rob Herring
maintainerQuoted 19 lines · Frank Li
Move mxs-pinctrl part into
gpio-mxs.yamland add pinctrl examples to fix belowCHECK_DTBwarning:
arch/arm/boot/dts/nxp/mxs/imx28-xea.dtb: pinctrl@80018000 (fsl,imx28-pinctrl):'auart0-2pins@0', 'auart0@0', ... 'usb1@1' do not match any of the regexes: 'gpio@[0-9]+$', 'pinctrl-[0-9]+'Signed-off-by Frank Li <[email protected]>--- .../devicetree/bindings/gpio/gpio-mxs.yaml | 73 +++++++++- .../bindings/pinctrl/fsl,mxs-pinctrl.txt | 127 ------------------ 2 files changed, 69 insertions(+), 131 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txtDocumentation/devicetree/bindings/gpio/gpio-mxs.yaml +0
-0@@ -18,9 +18,11 @@ description: |
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml description: | · line 25
Quoted 10 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +5
-3properties: compatible: - enum: - - fsl,imx23-pinctrl - - fsl,imx28-pinctrl + items: + - enum: + - fsl,imx23-pinctrl + - fsl,imx28-pinctrl + - const: simple-bus
I don't think the use of simple-bus is correct here. The addresses are not MMIO (there's no size), and I would guess the child nodes are dependent on the parent.
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml properties: · line 36
Quoted 8 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +1
-0'#address-cells': const: 1@@ -31,6 +33,61 @@ properties: maxItems: 1 patternProperties: + "^(?!gpio).*@[0-9]+$":
Unit-address should be hex? If not, then another reason this is not a simple-bus.
Quoted 11 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +11
-0+ type: object + properties: + fsl,pinmux-ids: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + An integer array. Each integer in the array specify a pin + with given mux function, with bank, pin and mux packed as below. + + [15..12] : bank number + [11..4] : pin number + [3..0] : mux selection
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml properties: · line 57
Quoted 10 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +10
-0+ + This integer with mux selection packed is used as an entity by both group + and config nodes to identify a pin. The mux selection in the integer takes + effects only on group node, and will get ignored by driver with config node, + since config node is only meant to set up pin configurations. + + Valid values for these integers are listed below. + + reg: + maxItems: 1
Would be good to say what 'reg' represents here.
Quoted 58 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +42
-1+ + fsl,drive-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + description: | + 0: MXS_DRIVE_4mA + 1: MXS_DRIVE_8mA + 2: MXS_DRIVE_12mA + 3: MXS_DRIVE_16mA + + fsl,voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + 0: MXS_VOLTAGE_LOW - 1.8 V + 1: MXS_VOLTAGE_HIGH - 3.3 V + + fsl,pull-up: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + 0: MXS_PULL_DISABLE - Disable the internal pull-up + 1: MXS_PULL_ENABLE - Enable the internal pull-up + + Note that when enabling the pull-up, the internal pad keeper gets disabled. + Also, some pins doesn't have a pull up, in that case, setting the fsl,pull-up + will only disable the internal pad keeper. + + required: + - fsl,pinmux-ids + + additionalProperties: false + "gpio@[0-9]+$": type: object properties:@@ -80,7 +137,7 @@ examples: pinctrl@80018000 { #address-cells = <1>; #size-cells = <0>; - compatible = "fsl,imx28-pinctrl"; + compatible = "fsl,imx28-pinctrl", "simple-bus"; reg = <0x80018000 0x2000>; gpio@0 {@@ -132,4 +189,12 @@ examples: interrupt-controller; #interrupt-cells = <2>; }; + + lcdif-apx4@5 { + reg = <5>; + fsl,pinmux-ids = <0x1181 0x1191>; + fsl,drive-strength = <0>; + fsl,voltage = <0>; + fsl,pull-up = <0>; + }; };
Frank Li
maintainerQuoted 20 lines · Rob Herring
Quoted 19 lines · Frank Li
Move mxs-pinctrl part into
gpio-mxs.yamland add pinctrl examples to fix belowCHECK_DTBwarning:
arch/arm/boot/dts/nxp/mxs/imx28-xea.dtb: pinctrl@80018000 (fsl,imx28-pinctrl):'auart0-2pins@0', 'auart0@0', ... 'usb1@1' do not match any of the regexes: 'gpio@[0-9]+$', 'pinctrl-[0-9]+'Signed-off-by Frank Li <[email protected]>--- .../devicetree/bindings/gpio/gpio-mxs.yaml | 73 +++++++++- .../bindings/pinctrl/fsl,mxs-pinctrl.txt | 127 ------------------ 2 files changed, 69 insertions(+), 131 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txtDocumentation/devicetree/bindings/gpio/gpio-mxs.yaml +0
-0@@ -18,9 +18,11 @@ description: |
Quoted 14 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml description: | · line 25
Quoted 10 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +5
-3properties: compatible: - enum: - - fsl,imx23-pinctrl - - fsl,imx28-pinctrl + items: + - enum: + - fsl,imx23-pinctrl + - fsl,imx28-pinctrl + - const: simple-busI don't think the use of simple-bus is correct here. The addresses are not MMIO (there's no size), and I would guess the child nodes are dependent on the parent.
This is legency device, which more than 10 years. It use simple-bus to probe children gpio devices. pinctrl have not use it.
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +0
-0'#address-cells': const: 1@@ -31,6 +33,61 @@ properties: maxItems: 1
Quoted 5 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml properties: · line 36
Quoted 2 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +1
-0patternProperties: + "^(?!gpio).*@[0-9]+$":Unit-address should be hex? If not, then another reason this is not a simple-bus.
Yes, it is wrong to use simple-bus in old driver and dts drivers/gpio/gpio-mxs.c
It is not worth to fix driver and dts for such old lagency devices. Although chip is still shipping, we have not board to test it.
Quoted 16 lines
Quoted 16 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +15
-0+ type: object + properties: + fsl,pinmux-ids: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + An integer array. Each integer in the array specify a pin + with given mux function, with bank, pin and mux packed as below. + + [15..12] : bank number + [11..4] : pin number + [3..0] : mux selection + + This integer with mux selection packed is used as an entity by both group + and config nodes to identify a pin. The mux selection in the integer takes + effects only on group node, and will get ignored by driver with config node,
Quoted 8 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml properties: · line 57
Quoted 6 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +6
-0+ since config node is only meant to set up pin configurations. + + Valid values for these integers are listed below. + + reg: + maxItems: 1Would be good to say what 'reg' represents here.
It is just a index, which are not use by drivers. But need it to dts build issue.
Frank
Quoted 59 lines
Quoted 59 lines
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml +42
-1+ + fsl,drive-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + description: | + 0: MXS_DRIVE_4mA + 1: MXS_DRIVE_8mA + 2: MXS_DRIVE_12mA + 3: MXS_DRIVE_16mA + + fsl,voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + 0: MXS_VOLTAGE_LOW - 1.8 V + 1: MXS_VOLTAGE_HIGH - 3.3 V + + fsl,pull-up: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + 0: MXS_PULL_DISABLE - Disable the internal pull-up + 1: MXS_PULL_ENABLE - Enable the internal pull-up + + Note that when enabling the pull-up, the internal pad keeper gets disabled. + Also, some pins doesn't have a pull up, in that case, setting the fsl,pull-up + will only disable the internal pad keeper. + + required: + - fsl,pinmux-ids + + additionalProperties: false + "gpio@[0-9]+$": type: object properties:@@ -80,7 +137,7 @@ examples: pinctrl@80018000 { #address-cells = <1>; #size-cells = <0>; - compatible = "fsl,imx28-pinctrl"; + compatible = "fsl,imx28-pinctrl", "simple-bus"; reg = <0x80018000 0x2000>; gpio@0 {@@ -132,4 +189,12 @@ examples: interrupt-controller; #interrupt-cells = <2>; }; + + lcdif-apx4@5 { + reg = <5>; + fsl,pinmux-ids = <0x1181 0x1191>; + fsl,drive-strength = <0>; + fsl,voltage = <0>; + fsl,pull-up = <0>; + }; };