Debian Codegraph @

Documentation/devicetree/bindings/pinctrl/nxp,lpc1850-scu.yaml

raw
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 <[email protected]>
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 };