~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/gpio/gpio-mmio.yaml (Architecture sparc64) and /Documentation/devicetree/bindings/gpio/gpio-mmio.yaml (Architecture alpha)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/gpio/gpio-m      4 $id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Generic MMIO GPIO                            7 title: Generic MMIO GPIO
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Linus Walleij <linus.walleij@linaro.org>        10   - Linus Walleij <linus.walleij@linaro.org>
 11   - Bartosz Golaszewski <brgl@bgdev.pl>             11   - Bartosz Golaszewski <brgl@bgdev.pl>
 12                                                    12 
 13 description:                                       13 description:
 14   Some simple GPIO controllers may consist of      14   Some simple GPIO controllers may consist of a single data register or a pair
 15   of set/clear-bit registers. Such controllers     15   of set/clear-bit registers. Such controllers are common for glue logic in
 16   FPGAs or ASICs. Commonly, these controllers      16   FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped
 17   NAND-style parallel busses.                      17   NAND-style parallel busses.
 18                                                    18 
 19 properties:                                        19 properties:
 20   compatible:                                      20   compatible:
 21     enum:                                          21     enum:
 22       - brcm,bcm6345-gpio                          22       - brcm,bcm6345-gpio
 23       - ni,169445-nand-gpio                        23       - ni,169445-nand-gpio
 24       - wd,mbl-gpio # Western Digital MyBook L     24       - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
 25                                                    25 
 26   big-endian: true                                 26   big-endian: true
 27                                                    27 
 28   '#gpio-cells':                                   28   '#gpio-cells':
 29     const: 2                                       29     const: 2
 30                                                    30 
 31   gpio-controller: true                            31   gpio-controller: true
 32                                                    32 
 33   little-endian: true                              33   little-endian: true
 34                                                    34 
 35   reg:                                             35   reg:
 36     minItems: 1                                    36     minItems: 1
 37     description:                                   37     description:
 38       A list of registers in the controller. T     38       A list of registers in the controller. The width of each register is
 39       determined by its size. All registers mu     39       determined by its size. All registers must have the same width. The number
 40       of GPIOs is set by the width, with bit 0     40       of GPIOs is set by the width, with bit 0 corresponding to GPIO 0.
 41     items:                                         41     items:
 42       - description:                               42       - description:
 43           Register to READ the value of the GP     43           Register to READ the value of the GPIO lines. If GPIO line is high,
 44           the bit will be set. If the GPIO lin     44           the bit will be set. If the GPIO line is low, the bit will be cleared.
 45           This register may also be used to dr     45           This register may also be used to drive GPIOs if the SET register is
 46           omitted.                                 46           omitted.
 47       - description:                               47       - description:
 48           Register to SET the value of the GPI     48           Register to SET the value of the GPIO lines. Setting a bit in this
 49           register will drive the GPIO line hi     49           register will drive the GPIO line high.
 50       - description:                               50       - description:
 51           Register to CLEAR the value of the G     51           Register to CLEAR the value of the GPIO lines. Setting a bit in this
 52           register will drive the GPIO line lo     52           register will drive the GPIO line low. If this register is omitted,
 53           the SET register will be used to cle     53           the SET register will be used to clear the GPIO lines as well, by
 54           actively writing the line with 0.        54           actively writing the line with 0.
 55       - description:                               55       - description:
 56           Register to set the line as OUTPUT.      56           Register to set the line as OUTPUT. Setting a bit in this register
 57           will turn that line into an output l     57           will turn that line into an output line. Conversely, clearing a bit
 58           will turn that line into an input.       58           will turn that line into an input.
 59       - description:                               59       - description:
 60           Register to set this line as INPUT.      60           Register to set this line as INPUT. Setting a bit in this register
 61           will turn that line into an input li     61           will turn that line into an input line. Conversely, clearing a bit
 62           will turn that line into an output.      62           will turn that line into an output.
 63                                                    63 
 64   reg-names:                                       64   reg-names:
 65     minItems: 1                                    65     minItems: 1
 66     maxItems: 5                                    66     maxItems: 5
 67     items:                                         67     items:
 68       enum:                                        68       enum:
 69         - dat                                      69         - dat
 70         - set                                      70         - set
 71         - clr                                      71         - clr
 72         - dirout                                   72         - dirout
 73         - dirin                                    73         - dirin
 74                                                    74 
 75   native-endian: true                              75   native-endian: true
 76                                                    76 
 77   no-output:                                       77   no-output:
 78     $ref: /schemas/types.yaml#/definitions/fla     78     $ref: /schemas/types.yaml#/definitions/flag
 79     description:                                   79     description:
 80       If this property is present, the control     80       If this property is present, the controller cannot drive the GPIO lines.
 81                                                    81 
 82 required:                                          82 required:
 83   - compatible                                     83   - compatible
 84   - reg                                            84   - reg
 85   - reg-names                                      85   - reg-names
 86   - '#gpio-cells'                                  86   - '#gpio-cells'
 87   - gpio-controller                                87   - gpio-controller
 88                                                    88 
 89 additionalProperties: false                        89 additionalProperties: false
 90                                                    90 
 91 examples:                                          91 examples:
 92   - |                                              92   - |
 93     gpio@1f300010 {                                93     gpio@1f300010 {
 94       compatible = "ni,169445-nand-gpio";          94       compatible = "ni,169445-nand-gpio";
 95       reg = <0x1f300010 0x4>;                      95       reg = <0x1f300010 0x4>;
 96       reg-names = "dat";                           96       reg-names = "dat";
 97       gpio-controller;                             97       gpio-controller;
 98       #gpio-cells = <2>;                           98       #gpio-cells = <2>;
 99     };                                             99     };
100                                                   100 
101     gpio@e0100000 {                               101     gpio@e0100000 {
102       compatible = "wd,mbl-gpio";                 102       compatible = "wd,mbl-gpio";
103       reg-names = "dat";                          103       reg-names = "dat";
104       reg = <0xe0100000 0x1>;                     104       reg = <0xe0100000 0x1>;
105       #gpio-cells = <2>;                          105       #gpio-cells = <2>;
106       gpio-controller;                            106       gpio-controller;
107       no-output;                                  107       no-output;
108     };                                            108     };
109                                                   109 
110     gpio@fffe0406 {                               110     gpio@fffe0406 {
111       compatible = "brcm,bcm6345-gpio";           111       compatible = "brcm,bcm6345-gpio";
112       reg-names = "dirout", "dat";                112       reg-names = "dirout", "dat";
113       reg = <0xfffe0406 2>, <0xfffe040a 2>;       113       reg = <0xfffe0406 2>, <0xfffe040a 2>;
114       native-endian;                              114       native-endian;
115       gpio-controller;                            115       gpio-controller;
116       #gpio-cells = <2>;                          116       #gpio-cells = <2>;
117     };                                            117     };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php