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
63 description: Index of the LED.
69 description: This property indicates Hardware driven/control LED.
73 description: This property indicates Enable LED blink by Hardware.
75 intel,sso-blink-rate-hz:
76 description: LED HW blink frequency.
78 retain-state-suspended:
80 description: The suspend state of LED can be retained.
82 retain-state-shutdown:
84 description: Retain the state of the LED on shutdown.
94 additionalProperties: false
98 #include <dt-bindings/clock/intel,lgm-clk.h>
99 #include <dt-bindings/leds/common.h>
101 ssogpio: ssogpio@e0d40000 {
102 compatible = "intel,lgm-ssoled";
103 reg = <0xE0D40000 0x2E4>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_ledc>;
109 clocks = <&cgu0 LGM_GCLK_LEDC0>, <&afeclk>;
110 clock-names = "sso", "fpid";
111 intel,sso-update-rate-hz = <250000>;
114 #address-cells = <1>;
120 color = <LED_COLOR_ID_GREEN>;
121 led-gpio = <&ssogpio 0 0>;
126 function = LED_FUNCTION_POWER;
127 color = <LED_COLOR_ID_GREEN>;
128 led-gpio = <&ssogpio 23 0>;