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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/leds/leds-lgm.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/leds/leds-lgm.yaml (Architecture ppc) and /Documentation/devicetree/bindings/leds/leds-lgm.yaml (Architecture i386)


  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/leds/leds-l      4 $id: http://devicetree.org/schemas/leds/leds-lgm.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Intel Lightning Mountain (LGM) SoC LED       7 title: Intel Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Zhu, Yi Xin <Yixin.zhu@intel.com>               10   - Zhu, Yi Xin <Yixin.zhu@intel.com>
 11   - Amireddy Mallikarjuna reddy <mallikarjunax.     11   - Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com>
 12                                                    12 
 13 properties:                                        13 properties:
 14   compatible:                                      14   compatible:
 15     const: intel,lgm-ssoled                        15     const: intel,lgm-ssoled
 16                                                    16 
 17   reg:                                             17   reg:
 18     maxItems: 1                                    18     maxItems: 1
 19                                                    19 
 20   clocks:                                          20   clocks:
 21     maxItems: 2                                    21     maxItems: 2
 22                                                    22 
 23   clock-names:                                     23   clock-names:
 24     items:                                         24     items:
 25       - const: sso                                 25       - const: sso
 26       - const: fpid                                26       - const: fpid
 27                                                    27 
 28   gpio-controller: true                            28   gpio-controller: true
 29                                                    29 
 30   '#gpio-cells':                                   30   '#gpio-cells':
 31     const: 2                                       31     const: 2
 32                                                    32 
 33   ngpios:                                          33   ngpios:
 34     minimum: 0                                     34     minimum: 0
 35     maximum: 32                                    35     maximum: 32
 36     description:                                   36     description:
 37       Number of GPIOs this controller provides     37       Number of GPIOs this controller provides.
 38                                                    38 
 39   intel,sso-update-rate-hz:                        39   intel,sso-update-rate-hz:
 40     description:                                   40     description:
 41       Blink frequency for SOUTs in Hz.             41       Blink frequency for SOUTs in Hz.
 42                                                    42 
 43   led-controller:                                  43   led-controller:
 44     type: object                                   44     type: object
 45     description:                                   45     description:
 46       This sub-node must contain a sub-node fo     46       This sub-node must contain a sub-node for each leds.
 47                                                    47 
 48     additionalProperties: false                    48     additionalProperties: false
 49                                                    49 
 50     properties:                                    50     properties:
 51       '#address-cells':                            51       '#address-cells':
 52         const: 1                                   52         const: 1
 53                                                    53 
 54       '#size-cells':                               54       '#size-cells':
 55         const: 0                                   55         const: 0
 56                                                    56 
 57     patternProperties:                             57     patternProperties:
 58       "^led@[0-2]$":                               58       "^led@[0-2]$":
 59         $ref: common.yaml#                         59         $ref: common.yaml#
 60         unevaluatedProperties: false               60         unevaluatedProperties: false
 61                                                    61 
 62         properties:                                62         properties:
 63           reg:                                     63           reg:
 64             description: Index of the LED.         64             description: Index of the LED.
 65             minimum: 0                             65             minimum: 0
 66             maximum: 2                             66             maximum: 2
 67                                                    67 
 68           led-gpios:                               68           led-gpios:
 69             maxItems: 1                            69             maxItems: 1
 70                                                    70 
 71           intel,sso-hw-trigger:                    71           intel,sso-hw-trigger:
 72             type: boolean                          72             type: boolean
 73             description: This property indicat     73             description: This property indicates Hardware driven/control LED.
 74                                                    74 
 75           intel,sso-hw-blink:                      75           intel,sso-hw-blink:
 76             type: boolean                          76             type: boolean
 77             description: This property indicat     77             description: This property indicates Enable LED blink by Hardware.
 78                                                    78 
 79           intel,sso-blink-rate-hz:                 79           intel,sso-blink-rate-hz:
 80             description: LED HW blink frequenc     80             description: LED HW blink frequency.
 81                                                    81 
 82           retain-state-suspended:                  82           retain-state-suspended:
 83             type: boolean                          83             type: boolean
 84             description: The suspend state of      84             description: The suspend state of LED can be retained.
 85                                                    85 
 86           retain-state-shutdown:                   86           retain-state-shutdown:
 87             type: boolean                          87             type: boolean
 88             description: Retain the state of t     88             description: Retain the state of the LED on shutdown.
 89                                                    89 
 90 required:                                          90 required:
 91   - compatible                                     91   - compatible
 92   - reg                                            92   - reg
 93   - clocks                                         93   - clocks
 94   - clock-names                                    94   - clock-names
 95   - "#gpio-cells"                                  95   - "#gpio-cells"
 96   - gpio-controller                                96   - gpio-controller
 97                                                    97 
 98 additionalProperties: false                        98 additionalProperties: false
 99                                                    99 
100 examples:                                         100 examples:
101   - |                                             101   - |
102     #include <dt-bindings/clock/intel,lgm-clk.    102     #include <dt-bindings/clock/intel,lgm-clk.h>
103     #include <dt-bindings/leds/common.h>          103     #include <dt-bindings/leds/common.h>
104                                                   104 
105     ssogpio: ssogpio@e0d40000 {                   105     ssogpio: ssogpio@e0d40000 {
106       compatible = "intel,lgm-ssoled";            106       compatible = "intel,lgm-ssoled";
107       reg = <0xE0D40000 0x2E4>;                   107       reg = <0xE0D40000 0x2E4>;
108       gpio-controller;                            108       gpio-controller;
109       #gpio-cells = <2>;                          109       #gpio-cells = <2>;
110       ngpios = <32>;                              110       ngpios = <32>;
111       pinctrl-names = "default";                  111       pinctrl-names = "default";
112       pinctrl-0 = <&pinctrl_ledc>;                112       pinctrl-0 = <&pinctrl_ledc>;
113       clocks = <&cgu0 LGM_GCLK_LEDC0>, <&afecl    113       clocks = <&cgu0 LGM_GCLK_LEDC0>, <&afeclk>;
114       clock-names = "sso", "fpid";                114       clock-names = "sso", "fpid";
115       intel,sso-update-rate-hz = <250000>;        115       intel,sso-update-rate-hz = <250000>;
116                                                   116 
117       led-controller {                            117       led-controller {
118         #address-cells = <1>;                     118         #address-cells = <1>;
119         #size-cells = <0>;                        119         #size-cells = <0>;
120                                                   120 
121         led@0 {                                   121         led@0 {
122           reg = <0>;                              122           reg = <0>;
123           function = "gphy";                      123           function = "gphy";
124           color = <LED_COLOR_ID_GREEN>;           124           color = <LED_COLOR_ID_GREEN>;
125           led-gpios = <&ssogpio 0 0>;             125           led-gpios = <&ssogpio 0 0>;
126         };                                        126         };
127                                                   127 
128         led@2 {                                   128         led@2 {
129           reg = <2>;                              129           reg = <2>;
130           function = LED_FUNCTION_POWER;          130           function = LED_FUNCTION_POWER;
131           color = <LED_COLOR_ID_GREEN>;           131           color = <LED_COLOR_ID_GREEN>;
132           led-gpios = <&ssogpio 23 0>;            132           led-gpios = <&ssogpio 23 0>;
133         };                                        133         };
134       };                                          134       };
135     };                                            135     };
                                                      

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