Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2643106pxu; Mon, 7 Dec 2020 11:34:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1Y/xmPDDnc1CLEcdyex7FRVA9vGIO4KFYYSBvBTWMk60LNYeTu27FbfAY20zZmsBCvWrf X-Received: by 2002:a05:6402:1d3b:: with SMTP id dh27mr14580249edb.238.1607369641190; Mon, 07 Dec 2020 11:34:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607369641; cv=none; d=google.com; s=arc-20160816; b=K2JwWowQ5gFARVwc/msNy7t74lL6AkhLPbtaHC1SGmbLe7uJEsjDyzZykBzlFnRMW/ Ljcy5Sa5aW51e+KZ7qsYIHMHhi26nkK3z6qmXv7oJvKXl2hFD+/WrF6/5+tYfFyxZKaM uq7XdoFMd5GuodhDcGzyFvCwvkC2dLSFkdwe92AA7x/4Z4hf+5lc8m4ANqeasNShrHVt wISr4e28xs3S/Ayd4o7WskqFKqVt7J3KuYlfZhKW+c7vidJFZvzpHb9egn6ggk0Ko/fa SRDsdbDatR0NOQoa4u1vutocF+4lQzOW+YAiKqnzkQ6Q4gvrZO+j7pixkakCA4uGjhyp Ca1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FrBHu7s1t25HBDC9PNVrTtnTxd0253xrVnhIVWxHajk=; b=RbBkHnzEq0WCS1MqJ4J0F9OLft5Y0q+LkuHTH2JgytbTvFWTqABsvtyUGb8OALWlwr 7Ux65MJ80+bkdYb8l+sXXoclsC5C2NjeSbB/6oCfqg9gkRdsn0F0hdvywjwaVdAZjE2n vi2Wi+mFCpLEP74cKAcjQSGNbXM2wrrpxFYzPfILtqSoDEenn/yy6jdVqOLCagkgyGi7 T6HRZsfp3gGOHFi+BBGq0ZWOrnBCblHDzyi2tIMKB/k2Bd7u2GhsJu/GF+EPRD4hxaRJ IrJ06RqJmxtI3BxxUKiq+lkipB3Ip+5xJDWud4QqPJ/+KGeeWXj+W9L5dquVmphJ7mTZ upRQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si8748268edm.128.2020.12.07.11.33.38; Mon, 07 Dec 2020 11:34:01 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgLGTaH (ORCPT + 99 others); Mon, 7 Dec 2020 14:30:07 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:43708 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbgLGTaG (ORCPT ); Mon, 7 Dec 2020 14:30:06 -0500 Received: by mail-ot1-f66.google.com with SMTP id q25so1797835otn.10; Mon, 07 Dec 2020 11:29:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FrBHu7s1t25HBDC9PNVrTtnTxd0253xrVnhIVWxHajk=; b=S0p6+ekNUMz+mpRBX1nk27zh6VPGEW7EVETnCnKzSCdkx/gFiOTlhipBjctkW0yhOf lOWxQbd1ajenbfGprNKLZquf9IuyalM7wAxAQQjCGVfNkT4wTOA/y80cueYfaVpZJLRA 48Bjp1UXcE0adqgMQX4vjPkd11IFJ9JoUEwbKZoITvnH/u1f3s5QPihjp8TmjXagq9hr ilJTSY8DJLWR879UVRp4Tp1z4XVx/ueg24N4O7zY1E4QTKkjefDxrMLxkl4lmt1CX6cl bQ64cRb2p5OOq3kevefun15TNalfrz6Q9e6cI8nFFrZnorzlUvvuUIQB5oMldBFGb3vZ o4vQ== X-Gm-Message-State: AOAM532O0GLtmpKG+THXbzba0Z67QGz0BfHZT/t//7pWuRo32HCnzRTu ey7wOT2e0jdUj7z62GXB8iARa6LAsA== X-Received: by 2002:a9d:323:: with SMTP id 32mr14498523otv.309.1607369364739; Mon, 07 Dec 2020 11:29:24 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r7sm3113362oih.21.2020.12.07.11.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 11:29:23 -0800 (PST) Received: (nullmailer pid 670126 invoked by uid 1000); Mon, 07 Dec 2020 19:29:22 -0000 Date: Mon, 7 Dec 2020 13:29:22 -0600 From: Rob Herring To: Amireddy Mallikarjuna reddy Cc: linux-leds@vger.kernel.org, pavel@ucw.cz, dmurphy@ti.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, malliamireddy009@gmail.com, yixin.zhu@intel.com Subject: Re: [PATCH v2 1/2] dt-bindings: leds: Add bindings for Intel LGM SoC Message-ID: <20201207192922.GA658255@robh.at.kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 07:42:51PM +0800, Amireddy Mallikarjuna reddy wrote: > Add DT bindings YAML schema for SSO controller driver > of Lightning Mountain (LGM) SoC. > > Signed-off-by: Amireddy Mallikarjuna reddy > --- > v1: > - Initial version > > v2: > - Fix bot errors (wrong indentation). > - Spell out LGM and SSO. > - Remove vendor specific name for LED properites. > - removed deprecating property "label" > - Include 'reg', 'function' & 'color' properties. > --- > .../devicetree/bindings/leds/leds-lgm.yaml | 130 +++++++++++++++++++++ > 1 file changed, 130 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..d9c53ec30ad1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/leds-lgm.yaml > @@ -0,0 +1,130 @@ > +# 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 Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver > + > +maintainers: > + - Yixin.zhu@intel.com > + - mallikarjunax.reddy@intel.com Full names please. > + > +properties: > + compatible: > + const: intel,sso-led Needs to be SoC specific. > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 2 > + > + clock-names: > + maxItems: 2 Drop, redundant. > + items: > + - const: sso > + - const: fpid > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + > + intel,sso-gpio-base: > + $ref: /schemas/types.yaml#definitions/uint32 > + description: > + Identifies the first gpio handled. gpio-reserved-ranges doesn't work for you? > + > + 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. Needs a unit suffix and with that you can drop the $ref. > + > + ssoled: led-controller > + type: object > + description: > + This sub-node must contain a sub-node for each leds. additionalProperties: false > + > + patternProperties: > + "^led@[0-23]$": > + type: object > + > + properties: > + reg: > + description: Index of the LED. > + minimum: 0 > + maximum: 2 > + > + sso-hw-trigger: Needs vendor prefix. > + type: boolean > + description: This property indicates Hardware driven/control LED. > + > + sso-hw-blink: And here... > + type: boolean > + description: This property indicates Enable LED blink by Hardware. > + > + sso-blink-rate: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: LED HW blink frequency. Needs vendor prefix and unit suffix. > + > + retain-state-suspended: > + type: boolean > + description: The suspend state of LED can be retained. > + > + retain-state-shutdown: > + type: boolean > + description: Retain the state of the LED on shutdown. > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - "#gpio-cells" > + - gpio-controller > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + ssogpio: ssogpio@E0D40000 { gpio@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 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + function = "gphy"; > + color = ; > + led-gpio = <&ssogpio 0 0>; > + }; > + > + led@23 { > + reg = <23>; > + function = LED_FUNCTION_POWER; > + color = ; > + led-gpio = <&ssogpio 23 0>; > + }; > + }; > + }; > -- > 2.11.0 >