1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/nxp,lpc1850-scu.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: NXP LPC18xx/43xx SCU pin controller 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotdescription: 10*833e5d42SEmmanuel Vadot Not all pins support all pin generic node properties so either refer to 11*833e5d42SEmmanuel Vadot the NXP 1850/4350 user manual or the pin table in the pinctrl-lpc18xx 12*833e5d42SEmmanuel Vadot driver for supported pin properties. 13*833e5d42SEmmanuel Vadot 14*833e5d42SEmmanuel Vadotmaintainers: 15*833e5d42SEmmanuel Vadot - Frank Li <Frank.Li@nxp.com> 16*833e5d42SEmmanuel Vadot 17*833e5d42SEmmanuel Vadotproperties: 18*833e5d42SEmmanuel Vadot compatible: 19*833e5d42SEmmanuel Vadot const: nxp,lpc1850-scu 20*833e5d42SEmmanuel Vadot 21*833e5d42SEmmanuel Vadot reg: 22*833e5d42SEmmanuel Vadot maxItems: 1 23*833e5d42SEmmanuel Vadot 24*833e5d42SEmmanuel Vadot clocks: 25*833e5d42SEmmanuel Vadot maxItems: 1 26*833e5d42SEmmanuel Vadot 27*833e5d42SEmmanuel VadotpatternProperties: 28*833e5d42SEmmanuel Vadot '-pins$': 29*833e5d42SEmmanuel Vadot type: object 30*833e5d42SEmmanuel Vadot additionalProperties: false 31*833e5d42SEmmanuel Vadot 32*833e5d42SEmmanuel Vadot patternProperties: 33*833e5d42SEmmanuel Vadot '_cfg$': 34*833e5d42SEmmanuel Vadot type: object 35*833e5d42SEmmanuel Vadot 36*833e5d42SEmmanuel Vadot allOf: 37*833e5d42SEmmanuel Vadot - $ref: pincfg-node.yaml# 38*833e5d42SEmmanuel Vadot - $ref: pinmux-node.yaml# 39*833e5d42SEmmanuel Vadot 40*833e5d42SEmmanuel Vadot unevaluatedProperties: false 41*833e5d42SEmmanuel Vadot 42*833e5d42SEmmanuel Vadot properties: 43*833e5d42SEmmanuel Vadot nxp,gpio-pin-interrupt: 44*833e5d42SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 45*833e5d42SEmmanuel Vadot minimum: 0 46*833e5d42SEmmanuel Vadot maximum: 7 47*833e5d42SEmmanuel Vadot description: 48*833e5d42SEmmanuel Vadot Assign pin to gpio pin interrupt controller 49*833e5d42SEmmanuel Vadot irq number 0 to 7. See example below. 50*833e5d42SEmmanuel Vadot 51*833e5d42SEmmanuel Vadotrequired: 52*833e5d42SEmmanuel Vadot - compatible 53*833e5d42SEmmanuel Vadot - reg 54*833e5d42SEmmanuel Vadot - clocks 55*833e5d42SEmmanuel Vadot 56*833e5d42SEmmanuel VadotallOf: 57*833e5d42SEmmanuel Vadot - $ref: pinctrl.yaml# 58*833e5d42SEmmanuel Vadot 59*833e5d42SEmmanuel VadotunevaluatedProperties: false 60*833e5d42SEmmanuel Vadot 61*833e5d42SEmmanuel Vadotexamples: 62*833e5d42SEmmanuel Vadot - | 63*833e5d42SEmmanuel Vadot #include <dt-bindings/clock/lpc18xx-ccu.h> 64*833e5d42SEmmanuel Vadot 65*833e5d42SEmmanuel Vadot pinctrl@40086000 { 66*833e5d42SEmmanuel Vadot compatible = "nxp,lpc1850-scu"; 67*833e5d42SEmmanuel Vadot reg = <0x40086000 0x1000>; 68*833e5d42SEmmanuel Vadot clocks = <&ccu1 CLK_CPU_SCU>; 69*833e5d42SEmmanuel Vadot 70*833e5d42SEmmanuel Vadot gpio-joystick-pins { 71*833e5d42SEmmanuel Vadot gpio-joystick-1_cfg { 72*833e5d42SEmmanuel Vadot pins = "p9_0"; 73*833e5d42SEmmanuel Vadot function = "gpio"; 74*833e5d42SEmmanuel Vadot nxp,gpio-pin-interrupt = <0>; 75*833e5d42SEmmanuel Vadot input-enable; 76*833e5d42SEmmanuel Vadot bias-disable; 77*833e5d42SEmmanuel Vadot }; 78*833e5d42SEmmanuel Vadot }; 79*833e5d42SEmmanuel Vadot }; 80