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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/gpio/nvidia,tegra20-gpio.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/nvidia,tegra20-gpio.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/gpio/nvidia,tegra20-gpio.yaml (Version linux-5.18.19)


  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/nvidia      4 $id: http://devicetree.org/schemas/gpio/nvidia,tegra20-gpio.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: NVIDIA Tegra GPIO Controller (Tegra20 -      7 title: NVIDIA Tegra GPIO Controller (Tegra20 - Tegra210)
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Thierry Reding <thierry.reding@gmail.com>       10   - Thierry Reding <thierry.reding@gmail.com>
 11   - Jon Hunter <jonathanh@nvidia.com>               11   - Jon Hunter <jonathanh@nvidia.com>
 12                                                    12 
 13 properties:                                        13 properties:
 14   compatible:                                      14   compatible:
 15     oneOf:                                         15     oneOf:
 16       - enum:                                      16       - enum:
 17           - nvidia,tegra20-gpio                    17           - nvidia,tegra20-gpio
 18           - nvidia,tegra30-gpio                    18           - nvidia,tegra30-gpio
 19                                                    19 
 20       - items:                                     20       - items:
 21           - enum:                                  21           - enum:
 22               - nvidia,tegra114-gpio               22               - nvidia,tegra114-gpio
 23               - nvidia,tegra124-gpio               23               - nvidia,tegra124-gpio
 24               - nvidia,tegra210-gpio               24               - nvidia,tegra210-gpio
 25           - const: nvidia,tegra30-gpio             25           - const: nvidia,tegra30-gpio
 26                                                    26 
 27   reg:                                             27   reg:
 28     maxItems: 1                                    28     maxItems: 1
 29                                                    29 
 30   interrupts:                                      30   interrupts:
 31     description: The interrupt outputs from th     31     description: The interrupt outputs from the controller. For Tegra20,
 32       there should be 7 interrupts specified,      32       there should be 7 interrupts specified, and for Tegra30, there should
 33       be 8 interrupts specified.                   33       be 8 interrupts specified.
 34                                                    34 
 35   "#gpio-cells":                                   35   "#gpio-cells":
 36     description: The first cell is the pin num     36     description: The first cell is the pin number and the second cell is used
 37       to specify the GPIO polarity (0 = active     37       to specify the GPIO polarity (0 = active high, 1 = active low).
 38     const: 2                                       38     const: 2
 39                                                    39 
 40   gpio-controller: true                            40   gpio-controller: true
 41                                                    41 
 42   gpio-ranges:                                     42   gpio-ranges:
 43     maxItems: 1                                    43     maxItems: 1
 44                                                    44 
 45   "#interrupt-cells":                              45   "#interrupt-cells":
 46     description: |                                 46     description: |
 47       Should be 2. The first cell is the GPIO      47       Should be 2. The first cell is the GPIO number. The second cell is
 48       used to specify flags:                       48       used to specify flags:
 49                                                    49 
 50         bits[3:0] trigger type and level flags     50         bits[3:0] trigger type and level flags:
 51           1 = low-to-high edge triggered.          51           1 = low-to-high edge triggered.
 52           2 = high-to-low edge triggered.          52           2 = high-to-low edge triggered.
 53           4 = active high level-sensitive.         53           4 = active high level-sensitive.
 54           8 = active low level-sensitive.          54           8 = active low level-sensitive.
 55                                                    55 
 56       Valid combinations are 1, 2, 3, 4, 8.        56       Valid combinations are 1, 2, 3, 4, 8.
 57     const: 2                                       57     const: 2
 58                                                    58 
 59   interrupt-controller: true                       59   interrupt-controller: true
 60                                                    60 
 61 allOf:                                             61 allOf:
 62   - if:                                            62   - if:
 63       properties:                                  63       properties:
 64         compatible:                                64         compatible:
 65           contains:                                65           contains:
 66             const: nvidia,tegra30-gpio             66             const: nvidia,tegra30-gpio
 67     then:                                          67     then:
 68       properties:                                  68       properties:
 69         interrupts:                                69         interrupts:
 70           minItems: 8                              70           minItems: 8
 71           maxItems: 8                              71           maxItems: 8
 72     else:                                          72     else:
 73       properties:                                  73       properties:
 74         interrupts:                                74         interrupts:
 75           minItems: 7                              75           minItems: 7
 76           maxItems: 7                              76           maxItems: 7
 77                                                    77 
 78 required:                                          78 required:
 79   - compatible                                     79   - compatible
 80   - reg                                            80   - reg
 81   - interrupts                                     81   - interrupts
 82   - "#gpio-cells"                                  82   - "#gpio-cells"
 83   - gpio-controller                                83   - gpio-controller
 84   - "#interrupt-cells"                             84   - "#interrupt-cells"
 85   - interrupt-controller                           85   - interrupt-controller
 86                                                    86 
 87 additionalProperties:                              87 additionalProperties:
 88   type: object                                     88   type: object
 89   required:                                        89   required:
 90     - gpio-hog                                     90     - gpio-hog
 91                                                    91 
 92 examples:                                          92 examples:
 93   - |                                              93   - |
 94     #include <dt-bindings/interrupt-controller     94     #include <dt-bindings/interrupt-controller/arm-gic.h>
 95                                                    95 
 96     gpio: gpio@6000d000 {                          96     gpio: gpio@6000d000 {
 97         compatible = "nvidia,tegra20-gpio";        97         compatible = "nvidia,tegra20-gpio";
 98         reg = <0x6000d000 0x1000>;                 98         reg = <0x6000d000 0x1000>;
 99         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVE     99         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
100                      <GIC_SPI 33 IRQ_TYPE_LEVE    100                      <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
101                      <GIC_SPI 34 IRQ_TYPE_LEVE    101                      <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
102                      <GIC_SPI 35 IRQ_TYPE_LEVE    102                      <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
103                      <GIC_SPI 55 IRQ_TYPE_LEVE    103                      <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
104                      <GIC_SPI 87 IRQ_TYPE_LEVE    104                      <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
105                      <GIC_SPI 89 IRQ_TYPE_LEVE    105                      <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
106         #gpio-cells = <2>;                        106         #gpio-cells = <2>;
107         gpio-controller;                          107         gpio-controller;
108         #interrupt-cells = <2>;                   108         #interrupt-cells = <2>;
109         interrupt-controller;                     109         interrupt-controller;
110     };                                            110     };
                                                      

~ [ 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