Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp315215pxu; Wed, 14 Oct 2020 01:57:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5/38G5RTKfAlwMmJpbBB6qz8q50eChJvcpZZ1BEpVBtuVYlPA4g/MXjtyzInYtHvkqt9+ X-Received: by 2002:a17:906:86c3:: with SMTP id j3mr4224900ejy.493.1602665831437; Wed, 14 Oct 2020 01:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602665831; cv=none; d=google.com; s=arc-20160816; b=wDLVyS16CEJtm9aoWm0/PtzVeqwDWx7gMF6blty1zejWB8IG8huA3oCH/uXmb0kQCG 0MTzlcaDX92OhwcO127nwa7wkT7gm1SfRQj2WDiNEGg7pHbWpydAhqM101IW5YVBTpSs N5HWp57KNahSpLJdLeRVir0nYeUgF/YrWM4m+WnIi8kFxHH+WZMXQQj8jmyFAxlA+eYY 74GBNFS5eBuzEMOzduYEUR2elSO8BVphYXKLK9iyu3/pCPFlHRauZRlyquUsoMmQ4zzt 5VEY5d6UiV4hl8ZGDENzPF/P+RO8OwrknIyu94SdL1NVZZYNooGDiADn5bOi9VFWj/6k S93g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=MaiNv3GXo2pX4OaI0+zphIPeFEB0bNKJeYIM8fq1ILA=; b=yuNYpDb8lPEhmGE5dWhxBvMIFFb3PWEVicA+QtV+tIkyMxT6Ik4aUNi8LMhNsJpoiH amy+4qBTZJ8wGOPafS8aZo9Ic1U8SVLnuoSftIKdTl5hRhz1OUSpg3JtQeIDq8XfA/6x o15BaaGlneyzFaM+LYmr/6tGmugSrnT1TBXz+4uVIWRHQDliHA5c/3zNQciLUHvk5RU2 RrrUaHu0TuecjXa/36BYLeF1XOVxPgUHAjdwUHj+/o8lf+h3lTD628rsQa+Xin7g/yc/ qKZNC/cna2BS3rlRhYF4VzYl4aOYNtN4bqaNO8LtmETDF1hvierL4BSyhNHDZKvKmexA xo0w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si1703896edr.264.2020.10.14.01.56.49; Wed, 14 Oct 2020 01:57:11 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728499AbgJNH7F (ORCPT + 99 others); Wed, 14 Oct 2020 03:59:05 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:53394 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727306AbgJNH7C (ORCPT ); Wed, 14 Oct 2020 03:59:02 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DC266E15FA1BFE7BA172; Wed, 14 Oct 2020 15:58:55 +0800 (CST) Received: from [127.0.0.1] (10.174.177.134) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Wed, 14 Oct 2020 15:58:54 +0800 Subject: Re: [PATCH] dt-bindings: leds: Update devicetree documents for ID_RGB To: Dan Murphy , , CC: , , References: <20201013175034.25911-1-dmurphy@ti.com> From: "Leizhen (ThunderTown)" Message-ID: Date: Wed, 14 Oct 2020 15:58:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20201013175034.25911-1-dmurphy@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.134] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/14 1:50, Dan Murphy wrote: > Update the leds/common.yaml to indicate that the max color ID is 9. > Reflect the same change in the leds-class-multicolor.yaml > > Reported-by: Zhen Lei > Signed-off-by: Dan Murphy > --- > Documentation/devicetree/bindings/leds/common.yaml | 2 +- > .../devicetree/bindings/leds/leds-class-multicolor.yaml | 9 +++++---- > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml > index a2a541bca73c..0c9f912dfee6 100644 > --- a/Documentation/devicetree/bindings/leds/common.yaml > +++ b/Documentation/devicetree/bindings/leds/common.yaml > @@ -43,7 +43,7 @@ properties: > LED_COLOR_ID available, add a new one. > $ref: /schemas/types.yaml#definitions/uint32 > minimum: 0 > - maximum: 8 > + maximum: 9 > > function-enumerator: > description: > diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml > index b55e1f1308a4..f8032e863ecb 100644 > --- a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml > +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml > @@ -16,7 +16,7 @@ description: | > modules. This is achieved by adding multi-led nodes layer to the > monochrome LED bindings. > The nodes and properties defined in this document are unique to the multicolor > - LED class. Common LED nodes and properties are inherited from the common.txt > + LED class. Common LED nodes and properties are inherited from the common.yaml > within this documentation directory. > > patternProperties: > @@ -25,10 +25,11 @@ patternProperties: > description: Represents the LEDs that are to be grouped. > properties: > color: > - const: 8 # LED_COLOR_ID_MULTI > + const: 9 # LED_COLOR_ID_RGB This means only LED_COLOR_ID_RGB is allowed. > description: | > - For multicolor LED support this property should be defined as > - LED_COLOR_ID_MULTI which can be found in include/linux/leds/common.h. > + For multicolor LED support this property should be defined as either > + LED_COLOR_ID_RGB or LED_COLOR_ID_MULTI which can be found in If both LED_COLOR_ID_RGB and LED_COLOR_ID_MULTI are allowed, then we should use enum list both of them. > + include/linux/leds/common.h. > > $ref: "common.yaml#" > >