Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: pinctrl: convert nxp,lpc1850-scu.txt to yaml format

Convert nxp,lpc1850-scu.txt to yaml format.

Additional changes:
- keep child name *_cfg to align legancy very old platform dts file.
- remove label in examples.
- just keep one examples.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/20250606160359.1356555-1-Frank.Li@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Frank Li and committed by
Linus Walleij
d3eed11b 56ffb637

+79 -71
-71
Documentation/devicetree/bindings/pinctrl/nxp,lpc1850-scu.txt
··· 1 - NXP LPC18xx/43xx SCU pin controller Device Tree Bindings 2 - -------------------------------------------------------- 3 - 4 - Required properties: 5 - - compatible : Should be "nxp,lpc1850-scu" 6 - - reg : Address and length of the register set for the device 7 - - clocks : Clock specifier (see clock bindings for details) 8 - 9 - The lpc1850-scu driver uses the generic pin multiplexing and generic pin 10 - configuration documented in pinctrl-bindings.txt. 11 - 12 - The following generic nodes are supported: 13 - - function 14 - - pins 15 - - bias-disable 16 - - bias-pull-up 17 - - bias-pull-down 18 - - drive-strength 19 - - input-enable 20 - - input-disable 21 - - input-schmitt-enable 22 - - input-schmitt-disable 23 - - slew-rate 24 - 25 - NXP specific properties: 26 - - nxp,gpio-pin-interrupt : Assign pin to gpio pin interrupt controller 27 - irq number 0 to 7. See example below. 28 - 29 - Not all pins support all properties so either refer to the NXP 1850/4350 30 - user manual or the pin table in the pinctrl-lpc18xx driver for supported 31 - pin properties. 32 - 33 - Example: 34 - pinctrl: pinctrl@40086000 { 35 - compatible = "nxp,lpc1850-scu"; 36 - reg = <0x40086000 0x1000>; 37 - clocks = <&ccu1 CLK_CPU_SCU>; 38 - 39 - i2c0_pins: i2c0-pins { 40 - i2c0_pins_cfg { 41 - pins = "i2c0_scl", "i2c0_sda"; 42 - function = "i2c0"; 43 - input-enable; 44 - }; 45 - }; 46 - 47 - uart0_pins: uart0-pins { 48 - uart0_rx_cfg { 49 - pins = "pf_11"; 50 - function = "uart0"; 51 - bias-disable; 52 - input-enable; 53 - }; 54 - 55 - uart0_tx_cfg { 56 - pins = "pf_10"; 57 - function = "uart0"; 58 - bias-disable; 59 - }; 60 - }; 61 - 62 - gpio_joystick_pins: gpio-joystick-pins { 63 - gpio_joystick_1_cfg { 64 - pins = "p9_0"; 65 - function = "gpio"; 66 - nxp,gpio-pin-interrupt = <0>; 67 - input-enable; 68 - bias-disable; 69 - }; 70 - }; 71 - };
+79
Documentation/devicetree/bindings/pinctrl/nxp,lpc1850-scu.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/pinctrl/nxp,lpc1850-scu.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC18xx/43xx SCU pin controller 8 + 9 + description: 10 + Not all pins support all pin generic node properties so either refer to 11 + the NXP 1850/4350 user manual or the pin table in the pinctrl-lpc18xx 12 + driver for supported pin properties. 13 + 14 + maintainers: 15 + - Frank Li <Frank.Li@nxp.com> 16 + 17 + properties: 18 + compatible: 19 + const: nxp,lpc1850-scu 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + clocks: 25 + maxItems: 1 26 + 27 + patternProperties: 28 + '-pins$': 29 + type: object 30 + additionalProperties: false 31 + 32 + patternProperties: 33 + '_cfg$': 34 + type: object 35 + 36 + allOf: 37 + - $ref: pincfg-node.yaml# 38 + - $ref: pinmux-node.yaml# 39 + 40 + unevaluatedProperties: false 41 + 42 + properties: 43 + nxp,gpio-pin-interrupt: 44 + $ref: /schemas/types.yaml#/definitions/uint32 45 + minimum: 0 46 + maximum: 7 47 + description: 48 + Assign pin to gpio pin interrupt controller 49 + irq number 0 to 7. See example below. 50 + 51 + required: 52 + - compatible 53 + - reg 54 + - clocks 55 + 56 + allOf: 57 + - $ref: pinctrl.yaml# 58 + 59 + unevaluatedProperties: false 60 + 61 + examples: 62 + - | 63 + #include <dt-bindings/clock/lpc18xx-ccu.h> 64 + 65 + pinctrl@40086000 { 66 + compatible = "nxp,lpc1850-scu"; 67 + reg = <0x40086000 0x1000>; 68 + clocks = <&ccu1 CLK_CPU_SCU>; 69 + 70 + gpio-joystick-pins { 71 + gpio-joystick-1_cfg { 72 + pins = "p9_0"; 73 + function = "gpio"; 74 + nxp,gpio-pin-interrupt = <0>; 75 + input-enable; 76 + bias-disable; 77 + }; 78 + }; 79 + };