1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/leds-lgm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Intel Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver
10 - Zhu, Yi Xin <Yixin.zhu@intel.com>
11 - Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com>
15 const: intel,lgm-ssoled
37 Number of GPIOs this controller provides.
39 intel,sso-update-rate-hz:
41 Blink frequency for SOUTs in Hz.
46 This sub-node must contain a sub-node for each leds.
48 additionalProperties: false
60 unevaluatedProperties: false
64 description: Index of the LED.
73 description: This property indicates Hardware driven/control LED.
77 description: This property indicates Enable LED blink by Hardware.
79 intel,sso-blink-rate-hz:
80 description: LED HW blink frequency.
82 retain-state-suspended:
84 description: The suspend state of LED can be retained.
86 retain-state-shutdown:
88 description: Retain the state of the LED on shutdown.
98 additionalProperties: false
102 #include <dt-bindings/clock/intel,lgm-clk.h>
103 #include <dt-bindings/leds/common.h>
105 ssogpio: ssogpio@e0d40000 {
106 compatible = "intel,lgm-ssoled";
107 reg = <0xE0D40000 0x2E4>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&pinctrl_ledc>;
113 clocks = <&cgu0 LGM_GCLK_LEDC0>, <&afeclk>;
114 clock-names = "sso", "fpid";
115 intel,sso-update-rate-hz = <250000>;
118 #address-cells = <1>;
124 color = <LED_COLOR_ID_GREEN>;
125 led-gpios = <&ssogpio 0 0>;
130 function = LED_FUNCTION_POWER;
131 color = <LED_COLOR_ID_GREEN>;
132 led-gpios = <&ssogpio 23 0>;