Intel Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-lgm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Zhu, Yi Xin <Yixin.zhu@intel.com>", "Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,lgm-ssoled"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"sso"
Item 2
Exact value (
const):"fpid"
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
Exact value (const): 2
ngpios — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 32
Number of GPIOs this controller provides.
intel,sso-update-rate-hz — not listed as required here #
Blink frequency for SOUTs in Hz.
led-controller — not listed as required here #
Value type (type): "object"
This sub-node must contain a sub-node for each leds.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — not listed as required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 2
led-gpios — not listed as required here
Maximum number of items (maxItems): 1
intel,sso-hw-trigger — not listed as required here
Value type (type): "boolean"
This property indicates Hardware driven/control LED.
intel,sso-hw-blink — not listed as required here
Value type (type): "boolean"
This property indicates Enable LED blink by Hardware.
intel,sso-blink-rate-hz — not listed as required here
LED HW blink frequency.
retain-state-suspended — not listed as required here
Value type (type): "boolean"
The suspend state of LED can be retained.
retain-state-shutdown — not listed as required here
Value type (type): "boolean"
Retain the state of the LED on shutdown.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#gpio-cells", "gpio-controller"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/intel,lgm-clk.h>
#include <dt-bindings/leds/common.h>
ssogpio: ssogpio@e0d40000 {
compatible = "intel,lgm-ssoled";
reg = <0xE0D40000 0x2E4>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <32>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ledc>;
clocks = <&cgu0 LGM_GCLK_LEDC0>, <&afeclk>;
clock-names = "sso", "fpid";
intel,sso-update-rate-hz = <250000>;
led-controller {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
function = "gphy";
color = <LED_COLOR_ID_GREEN>;
led-gpios = <&ssogpio 0 0>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
led-gpios = <&ssogpio 23 0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)