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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mux/gpio-mux.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/mux/gpio-mux.yaml (Architecture m68k) and /Documentation/devicetree/bindings/mux/gpio-mux.yaml (Architecture mips)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/mux/gpio-mu      4 $id: http://devicetree.org/schemas/mux/gpio-mux.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: GPIO-based multiplexer controller            7 title: GPIO-based multiplexer controller
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Peter Rosin <peda@axentia.se>                   10   - Peter Rosin <peda@axentia.se>
 11                                                    11 
 12 description: |+                                    12 description: |+
 13   Define what GPIO pins are used to control a      13   Define what GPIO pins are used to control a multiplexer. Or several
 14   multiplexers, if the same pins control more      14   multiplexers, if the same pins control more than one multiplexer.
 15                                                    15 
 16   The multiplexer state is defined as the numb     16   The multiplexer state is defined as the number represented by the
 17   multiplexer GPIO pins, where the first pin i     17   multiplexer GPIO pins, where the first pin is the least significant
 18   bit. An active pin is a binary 1, an inactiv     18   bit. An active pin is a binary 1, an inactive pin is a binary 0.
 19                                                    19 
 20 properties:                                        20 properties:
 21   compatible:                                      21   compatible:
 22     const: gpio-mux                                22     const: gpio-mux
 23                                                    23 
 24   mux-gpios:                                       24   mux-gpios:
 25     description:                                   25     description:
 26       List of gpios used to control the multip     26       List of gpios used to control the multiplexer, least significant bit first.
 27                                                    27 
 28   '#mux-control-cells':                            28   '#mux-control-cells':
 29     enum: [ 0, 1 ]                                 29     enum: [ 0, 1 ]
 30                                                    30 
 31   '#mux-state-cells':                              31   '#mux-state-cells':
 32     enum: [ 1, 2 ]                                 32     enum: [ 1, 2 ]
 33                                                    33 
 34   idle-state:                                      34   idle-state:
 35     default: -1                                    35     default: -1
 36                                                    36 
 37 required:                                          37 required:
 38   - compatible                                     38   - compatible
 39   - mux-gpios                                      39   - mux-gpios
 40 anyOf:                                             40 anyOf:
 41   - required:                                      41   - required:
 42       - "#mux-control-cells"                       42       - "#mux-control-cells"
 43   - required:                                      43   - required:
 44       - "#mux-state-cells"                         44       - "#mux-state-cells"
 45                                                    45 
 46 additionalProperties: false                        46 additionalProperties: false
 47                                                    47 
 48 examples:                                          48 examples:
 49   - |                                              49   - |
 50     #include <dt-bindings/gpio/gpio.h>             50     #include <dt-bindings/gpio/gpio.h>
 51                                                    51 
 52     mux: mux-controller {                          52     mux: mux-controller {
 53         compatible = "gpio-mux";                   53         compatible = "gpio-mux";
 54         #mux-control-cells = <0>;                  54         #mux-control-cells = <0>;
 55                                                    55 
 56         mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>     56         mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
 57               <&pioA 1 GPIO_ACTIVE_HIGH>;          57               <&pioA 1 GPIO_ACTIVE_HIGH>;
 58     };                                             58     };
 59                                                    59 
 60     adc-mux {                                      60     adc-mux {
 61         compatible = "io-channel-mux";             61         compatible = "io-channel-mux";
 62         io-channels = <&adc 0>;                    62         io-channels = <&adc 0>;
 63         io-channel-names = "parent";               63         io-channel-names = "parent";
 64                                                    64 
 65         mux-controls = <&mux>;                     65         mux-controls = <&mux>;
 66                                                    66 
 67         channels = "sync-1", "in", "out", "syn     67         channels = "sync-1", "in", "out", "sync-2";
 68     };                                             68     };
 69                                                    69 
 70     i2c-mux {                                      70     i2c-mux {
 71         compatible = "i2c-mux";                    71         compatible = "i2c-mux";
 72         i2c-parent = <&i2c1>;                      72         i2c-parent = <&i2c1>;
 73                                                    73 
 74         mux-controls = <&mux>;                     74         mux-controls = <&mux>;
 75                                                    75 
 76         #address-cells = <1>;                      76         #address-cells = <1>;
 77         #size-cells = <0>;                         77         #size-cells = <0>;
 78                                                    78 
 79         i2c@0 {                                    79         i2c@0 {
 80             reg = <0>;                             80             reg = <0>;
 81             #address-cells = <1>;                  81             #address-cells = <1>;
 82             #size-cells = <0>;                     82             #size-cells = <0>;
 83                                                    83 
 84             ssd1307: oled@3c {                     84             ssd1307: oled@3c {
 85                 reg = <0x3c>;                      85                 reg = <0x3c>;
 86             };                                     86             };
 87         };                                         87         };
 88                                                    88 
 89         i2c@3 {                                    89         i2c@3 {
 90             reg = <3>;                             90             reg = <3>;
 91             #address-cells = <1>;                  91             #address-cells = <1>;
 92             #size-cells = <0>;                     92             #size-cells = <0>;
 93                                                    93 
 94             pca9555: pca9555@20 {                  94             pca9555: pca9555@20 {
 95                 reg = <0x20>;                      95                 reg = <0x20>;
 96             };                                     96             };
 97         };                                         97         };
 98     };                                             98     };
 99 ...                                                99 ...
                                                      

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