Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp356841pxb; Thu, 5 Nov 2020 01:45:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyRzshFldnhlqPkszyO5dNueXNgtX5cDbAV10GQzy6UQ9TKQskQDlq6VuF11FoRM5qCIH1 X-Received: by 2002:aa7:cb4a:: with SMTP id w10mr1675707edt.343.1604569555798; Thu, 05 Nov 2020 01:45:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604569555; cv=none; d=google.com; s=arc-20160816; b=nTvFDd2k9eRV/5MKV7C1SpNObiGkrC4QRivSD8HG04GQi+LEHClxmRXOdWLumCAjGB QIyp4H3ZoSGg3laZcu2Ixj7XGMMajTkmutt/IWS63x6N40FMTmTkebXK25SDd/14ITlG 6Y6aHmy1e4GMI7HgYJ2DJvK94o7G6hTxIXGv5PQ/SEWUWWWy1Qa21hrCSI/y5yBbGIkF o1K4xefFWxo7iIlY2Q3rcG4X0R4mB8wXBhHVqEeR+RZ3XWmLov1ktc5oKbpjr2N8Dvz+ GGoDTOs3UOH8F+gSvbLJpd+zfT75a836U580Q8O/nHto9A/MElnQSu8HUqNHJgaRRJek KLFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=Mz8u/7t3YgrJxF0ZdOxZZabeofKfaADI9oGKN65+Z+Q=; b=Reonm65dmo+ofeGkAkGKgVnFmdFUna4llgcRTuZArPdf+5Y/yqRMACx97bS3iwuVBi vUbXqQvnKeL0n41LHZBFX0IAYdjSKkL6pd0L+ZH6s3ghvAz79RWcYqz15mEtTb24bqYY GIwbx2jXwjxfkmktdKeQmUMvMrycY/snK1Mrz/4mNeFpk/u+AuqBe29qa2G416TTJ2HB 1y710v7KiBuuUycnJN9dX6af3qmH1ICYleny6hovhx3JFxt9yVehqe7UXKC6zjspKi9D DpwlrV9nTntkuPydxsiIfIzt4VvryUhoZCvf5yW5zO0eswmHG41ZALV2D5AMYIcyg+Yl ArKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si783868ejc.737.2020.11.05.01.45.33; Thu, 05 Nov 2020 01:45:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbgKEJoA (ORCPT + 99 others); Thu, 5 Nov 2020 04:44:00 -0500 Received: from mga09.intel.com ([134.134.136.24]:33602 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKEJoA (ORCPT ); Thu, 5 Nov 2020 04:44:00 -0500 IronPort-SDR: +2VlLOwP1p23HIyz47RPZrXHhWEcY7AdUQ1SJccvp6s2+PAV3clPWxYaTO6g9TFhwfYEPoZ2yl k8BlcgWgof/A== X-IronPort-AV: E=McAfee;i="6000,8403,9795"; a="169498711" X-IronPort-AV: E=Sophos;i="5.77,453,1596524400"; d="scan'208";a="169498711" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2020 01:43:59 -0800 IronPort-SDR: pE9UuVIndlimvwkB72VNabhAXd/FqGcBZObmaBwyHY15DMDeMHAoaQakKYtlV36JAvfOs45bCr +A04c/EJNZ5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,453,1596524400"; d="scan'208";a="397197968" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga001.jf.intel.com with ESMTP; 05 Nov 2020 01:43:57 -0800 From: Amireddy Mallikarjuna reddy 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 Message-Id: X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings YAML schema for SSO controller driver of Lightning Mountain(LGM) SoC. Signed-off-by: Amireddy Mallikarjuna reddy --- .../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 + + 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