Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1708763ybh; Fri, 13 Mar 2020 06:07:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuFCEGS/EOGNzMMoSZ3JlgsK9OnaWXc838F6tQ6TCY9dN2UtqMQY1mnEDOi2BBpv9XVY4gA X-Received: by 2002:a9d:4f0:: with SMTP id 103mr7413104otm.336.1584104871544; Fri, 13 Mar 2020 06:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584104871; cv=none; d=google.com; s=arc-20160816; b=TbgOF3HAb2y/LKn7ISDCQR3DcPQ+ZpSn1qSXj5jijwlUMg7BI8ZJIjqRIZeKhUt+Xi P9kj8mKOtPLTbZln1qY6YN9ZFc+TOezVs/z7P4mV+BvO/dZlIgYstq8COepuq6C4qLF3 TAKrh0EF4RMf6I8SLpb9Zu5gNcjxDs14JU9l4le7bkWsXzIqIovk0wl8igTl/WHTxn8n EnpwLJv2rDRC7X7vzzroIwrZLiIlkX6UZfra8nRHriiwCdJXP4dnyTKImt6p7jk6V0MA 5EuvkZTz5kwlP16DjvFpuliFs81MW+Mdz/uWhHrKTH3AAbdz2Y1rJZNugNrut6JRB+Dq odAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cHdSid7s0H3VQaI6DYZg0oKHqhQK3N0vdw8WgkOoUMY=; b=K8AGK4+PzFCEwlpwiLHyGJkcEyP+P24veQCOLgZhxYtJL6SkQ4xgyaxoamfnQgb9W4 y/x8bBbKeGa7LcOY6tld96rHxIORag1pjz/zeq0A4yenb0V1pgPGlq5g27AQitInz+AX gGB2tHlKjA9b+EVzVxxsrXastbSFLV6KTxQao6Lk3ohW0oWbsOwhVmdZlhf5K6p2NN2E TQq2DemblkJlFAWFLXP6H2rqjOUz5XNpeCRIe4NHPg4nJkdOXGxe24Z1tawIUHRnmyAg jjaNd/zPm+sJyoIuPOW/vTWjJYIb7xEl9F1MbzOMxX+TNC/VzZuJqtJDyH9ay2zYsZuJ FqeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si3359535otn.181.2020.03.13.06.07.19; Fri, 13 Mar 2020 06:07:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbgCMNGY (ORCPT + 99 others); Fri, 13 Mar 2020 09:06:24 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:37357 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726479AbgCMNGX (ORCPT ); Fri, 13 Mar 2020 09:06:23 -0400 Received: by mail-ot1-f68.google.com with SMTP id i12so4713648otp.4; Fri, 13 Mar 2020 06:06:22 -0700 (PDT) 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:user-agent; bh=cHdSid7s0H3VQaI6DYZg0oKHqhQK3N0vdw8WgkOoUMY=; b=m938stGIUcYbW0yoPh4Tr85UeDKatMHrFlEDluReq25JprZzlK79jFrz2yKsFtLS73 w34w68dbI9l4hv3gnkA4GZeb8X0DtQ9CCko0E9u2gdd9A9+ZfL8XqQVHW/wWMAsA1iro 8x7mcScvJMRnCt9ltj9gx6BV3iU5FIDE7Gg8riaFmkvfGQdsYSaIYCGm8qbZQ2lqyniY AAYpr3s1kuwlQLmaUMPRDmkU1A/bXyyps4PLQ11J30w7UO2Wz6k9Ba1oO5+vlMLJdKer hb6kLItTOzoFILG3JIr1H8aOY0ljkYctgYM7TgmYC5v02QagzJ4Rqj5Nsro2/m87H0ZM I5DQ== X-Gm-Message-State: ANhLgQ0W2tPiy4dA3dLf1FzGMlu8RE7RgFALrTuNWhNkAp/wjOyjNPZx iFedlElOkcILRCAN8Hwq6g== X-Received: by 2002:a9d:6752:: with SMTP id w18mr10565258otm.123.1584104782282; Fri, 13 Mar 2020 06:06:22 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p130sm4070287oig.51.2020.03.13.06.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 06:06:21 -0700 (PDT) Received: (nullmailer pid 19075 invoked by uid 1000); Fri, 13 Mar 2020 13:06:20 -0000 Date: Fri, 13 Mar 2020 08:06:20 -0500 From: Rob Herring To: Nicolas Belin Cc: linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, dmurphy@ti.com, devicetree@vger.kernel.org, baylibre-upstreaming@groups.io Subject: Re: [PATCH v3 2/3] dt-bindings: leds: Shiji Lighting APA102C LED Message-ID: <20200313130620.GA19369@bogus> References: <1583502010-16210-1-git-send-email-nbelin@baylibre.com> <1583502010-16210-3-git-send-email-nbelin@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1583502010-16210-3-git-send-email-nbelin@baylibre.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 02:40:09PM +0100, Nicolas Belin wrote: > Document Shiji Lighting APA102C LED driver device tree bindings. > > Signed-off-by: Nicolas Belin > --- > .../devicetree/bindings/leds/leds-apa102c.yaml | 97 ++++++++++++++++++++++ > 1 file changed, 97 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/leds-apa102c.yaml > > diff --git a/Documentation/devicetree/bindings/leds/leds-apa102c.yaml b/Documentation/devicetree/bindings/leds/leds-apa102c.yaml > new file mode 100644 > index 000000000000..21457fc3762d > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/leds-apa102c.yaml > @@ -0,0 +1,97 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/leds-apa102c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: LED driver for Shiji Lighting - APA102C > + > +maintainers: > + - Nicolas Belin > + > +description: > + Each RGB LED is represented as a rgb-led sub-node of the leds-apa102c > + device. Each LED is a three color rgb LED with an additional 32 levels > + brightness adjustment. They can be cascaded so that multiple LEDs can be set > + with a single command. > + > +properties: > + compatible: > + const: shiji,apa102c > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 1000000 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > +patternProperties: > + "^rgb-led@[0-9]+$": > + type: object > + description: | > + Array of connected RGB LEDs. This should reference leds/common.yaml: allOf: - $ref: common.yaml# > + > + properties: > + reg: > + description: | > + This property corresponds to the led index. It has to be between 0 > + and the number of managed leds minus 1 > + maxItems: 1 > + > + label: > + description: | > + This property corresponds to the name of the RGB led. > + maxItems: 1 > + > + linux,default-trigger: true > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + required: > + - reg > + - label > + - '#address-cells' > + - '#size-cells' > + > +required: > + - compatible > + - reg > + - spi-max-frequency > + - '#address-cells' > + - '#size-cells' Add: additionalProperties: false > + > +examples: > + - | > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + led-controller@0 { > + compatible = "shiji,apa102c"; > + reg = <0>; > + spi-max-frequency = <1000000>; > + #address-cells = <1>; > + #size-cells = <0>; > + rgb-led@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + label = "rgb_led1"; > + }; > + rgb-led@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <1>; > + label = "rgb_led2"; > + }; > + }; > + }; > -- > 2.7.4 >