From: Amireddy Mallikarjuna reddy <mallikarjunax.reddy@linux.intel.com>
To: linux-leds@vger.kernel.org, pavel@ucw.cz, dmurphy@ti.com,
devicetree@vger.kernel.org, robh+dt@kernel.org
Cc: linux-kernel@vger.kernel.org, cheol.yong.kim@intel.com,
qi-ming.wu@intel.com, mallikarjunax.reddy@linux.intel.com,
malliamireddy009@gmail.com, yixin.zhu@intel.com
Subject: [PATCH v1 1/2] dt-bindings: leds: Add bindings for intel LGM SOC
Date: Thu, 5 Nov 2020 17:43:50 +0800 [thread overview]
Message-ID: <c9c963a2d03fbd03bd21f71f3d776ac5800cf6cc.1604331498.git.mallikarjunax.reddy@linux.intel.com> (raw)
Add DT bindings YAML schema for SSO controller driver
of Lightning Mountain(LGM) SoC.
Signed-off-by: Amireddy Mallikarjuna reddy <mallikarjunax.reddy@linux.intel.com>
---
.../devicetree/bindings/leds/leds-lgm.yaml | 116 +++++++++++++++++++++
1 file changed, 116 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/leds-lgm.yaml
diff --git a/Documentation/devicetree/bindings/leds/leds-lgm.yaml b/Documentation/devicetree/bindings/leds/leds-lgm.yaml
new file mode 100644
index 000000000000..1acf1fa9643b
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-lgm.yaml
@@ -0,0 +1,116 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/leds-lgm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Intel LGM Soc LED SSO driver
+
+maintainers:
+ - Yixin.zhu@intel.com
+ - mallikarjunax.reddy@intel.com
+
+properties:
+ compatible:
+ const: intel,sso-led
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 2
+
+ gpio-controller: true
+
+ '#gpio-cells':
+ const: 2
+
+ intel,sso-gpio-base:
+ $ref: /schemas/types.yaml#definitions/uint32
+ description:
+ Identifies the first gpio handled.
+
+ ngpios:
+ minimum: 0
+ maximum: 32
+ description:
+ Number of GPIOs this controller provides.
+
+ intel,sso-update-rate:
+ $ref: /schemas/types.yaml#definitions/uint32
+ description:
+ Blink frequency for SOUTs in Hz.
+
+ ssoled:
+ type: object
+ description:
+ This sub-node must contain a sub-node for each leds.
+
+ patternProperties:
+ "^led@[0-23]$":
+ type: object
+
+ properties:
+ intel,led-pin:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ This indicates the LED pin number.
+
+ intel,sso-brightness:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: brightness level of the LED.
+ minimum: 0
+ maximum: 255
+
+ intel,sso-hw-trigger:
+ type: boolean
+ description: This property indicates Hardware driven/control LED.
+
+ intel,sso-hw-blink:
+ type: boolean
+ description: This property indicates Enable LED blink by Hardware.
+
+ intel,sso-blink-rate:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: LED HW blink frequency.
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - "#gpio-cells"
+ - gpio-controller
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/intel,lgm-clk.h>
+
+ ssogpio: ssogpio@E0D40000 {
+ compatible = "intel,sso-led";
+ 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 = <250000>;
+
+ ssoled {
+ led0 {
+ label = "led0:green:gphy";
+ led-gpio = <&ssogpio 0 0>;
+ intel,led-pin = <0>;
+ };
+
+ led23 {
+ label = "led23:green:power_led";
+ led-gpio = <&ssogpio 23 0>;
+ intel,led-pin = <23>;
+ intel,sso-brightness = <0x255>;
+ };
+ };
+ };
--
2.11.0
next reply other threads:[~2020-11-05 9:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 9:43 Amireddy Mallikarjuna reddy [this message]
2020-11-05 9:43 ` [PATCH v1 2/2] leds: lgm: Add LED controller driver for LGM Soc Amireddy Mallikarjuna reddy
2020-11-05 10:11 ` Pavel Machek
2020-11-11 22:34 ` Reddy, MallikarjunaX
2020-11-05 9:52 ` [PATCH v1 1/2] dt-bindings: leds: Add bindings for intel LGM SOC Pavel Machek
2020-11-11 22:34 ` Reddy, MallikarjunaX
2020-11-05 18:48 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9c963a2d03fbd03bd21f71f3d776ac5800cf6cc.1604331498.git.mallikarjunax.reddy@linux.intel.com \
--to=mallikarjunax.reddy@linux.intel.com \
--cc=cheol.yong.kim@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dmurphy@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=malliamireddy009@gmail.com \
--cc=pavel@ucw.cz \
--cc=qi-ming.wu@intel.com \
--cc=robh+dt@kernel.org \
--cc=yixin.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®