Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6976190rwr; Tue, 25 Apr 2023 06:37:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bXV/S7hr8UpjaVjDSX9ctPqDggiDeAPlz7k45mC07eYRoikzmIVOZVL8Jj/Dt7P6ojUrvM X-Received: by 2002:a05:6a21:3982:b0:ef:8b50:56b7 with SMTP id ad2-20020a056a21398200b000ef8b5056b7mr18694966pzc.60.1682429830853; Tue, 25 Apr 2023 06:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682429830; cv=none; d=google.com; s=arc-20160816; b=Zjuygmr3xQcNRkCKvn9yhUnbDarzfKl3uLAEJGhDgmWU1Cr4pHse5CVz5q6BY8UOQ4 tnLyPcKNGhG0nIDjcheSZOQuOqBjs2HxYk8a3/6KF4Q38+QiWNYY8XLL12cpnq7eWLEi LDrVjOV+AcXSiHg9tA4wdSi5xaI8qjn9fhnpez9Ne8BYZoz2YidWZe9WMt7tiWmYrQv+ bjC5gLJUL4TtRJzXXCve+ixlvl4eswpNTPt0JN0SVdZy5MY7XCotoqpubLYQOeO1SeMg 3SAfuBMFW+kVFlhaUFLawTCnbjP+O/3ch2odmr2E0dWWfj75s6dtPN0oFhPn4TTcBlVN PpOQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kdk0oLeV5lWKGgZ0gIEDqwnG9h8O0jcZjKku1FAOdO0=; b=zlLYdL/wL4ADKaBO0ZQTsr0tmZXbD9e5ms2klDoP+bDNzQQ8G7UPesNLi8hCOschzh +m2vyq44G5WsLmawohdtU88B+gmjz3P9XieUpA95Shqa4yNTKwuRkYswQxFAHU4yqNm6 sABUFv0bXBWY9fDEg4bgF0TaR+3vYGGITq1OCgybqBir15G1o8ebQkNdyhYkcRnb0NaG mXhahGdDE82D0VeKdv5mUjvUOuFRdAFV7/dVGp7vErBtBggjk5cEx5wyfilSAnQhUPdK t9lcyNswlBdjFxNBh1/57ogTm7WNjxbaXMHIGmMNYW8RvAM9tD+75j3jKKQ6ywru1d2J vCGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a63eb41000000b0051b8a81c5d0si13599406pgk.606.2023.04.25.06.36.43; Tue, 25 Apr 2023 06:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234282AbjDYNfu (ORCPT + 99 others); Tue, 25 Apr 2023 09:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234158AbjDYNf0 (ORCPT ); Tue, 25 Apr 2023 09:35:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B70EE14444; Tue, 25 Apr 2023 06:35:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 37DAB62E7B; Tue, 25 Apr 2023 13:35:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CC30C433EF; Tue, 25 Apr 2023 13:35:00 +0000 (UTC) Date: Tue, 25 Apr 2023 19:04:57 +0530 From: Manivannan Sadhasivam To: Nishanth Menon Cc: Manivannan Sadhasivam , Jacek Anaszewski , Krzysztof Kozlowski , Rob Herring , Lee Jones , Pavel Machek , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vignesh Raghavendra Subject: Re: [PATCH] dt-bindings: leds: Drop redundant cpus enum match Message-ID: <20230425133457.GA5640@thinkpad> References: <20230424151437.256073-1-nm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230424151437.256073-1-nm@ti.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 24, 2023 at 10:14:37AM -0500, Nishanth Menon wrote: > Commit e91a4d5deb96 ("dt-bindings: leds: Document commonly used > LED triggers") introduced a enum match for cpu, while a pattern > '^cpu[0-9]*$' already exists. > > This causes linux,default-trigger = "cpu" to have more than one match > and generates the following dtbs_check warning: > > arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dtb: leds: led-2:linux,default-trigger: More than one condition true in oneOf schema: > {'$ref': '/schemas/types.yaml#/definitions/string', > 'oneOf': [{'items': [{'enum': ['backlight', > 'default-on', > 'heartbeat', > 'disk-activity', > 'disk-read', > 'disk-write', > 'timer', > 'pattern', > 'audio-micmute', > 'audio-mute', > 'bluetooth-power', > 'cpu', > 'flash', > 'kbd-capslock', > 'mtd', > 'nand-disk', > 'none', > 'torch', > 'usb-gadget', > 'usb-host', > 'usbport']}], > 'maxItems': 1, > 'minItems': 1, > 'type': 'array'}, > {'items': [{'pattern': '^cpu[0-9]*$'}], > 'maxItems': 1, > 'minItems': 1, > 'type': 'array'}, > {'items': [{'pattern': '^hci[0-9]+-power$'}], > 'maxItems': 1, > 'minItems': 1, > 'type': 'array'}, > {'items': [{'pattern': '^mmc[0-9]+$'}], > 'maxItems': 1, > 'minItems': 1, > 'type': 'array'}, > {'items': [{'pattern': '^phy[0-9]+tx$'}], > 'maxItems': 1, > 'minItems': 1, > 'type': 'array'}]} > > Drop the explicit match against cpu since the pattern match already > covers the same. > > Fixes: e91a4d5deb96 ("dt-bindings: leds: Document commonly used LED triggers") > Cc: Manivannan Sadhasivam > Signed-off-by: Nishanth Menon Acked-by: Manivannan Sadhasivam - Mani > --- > Documentation/devicetree/bindings/leds/common.yaml | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml > index 11aedf1650a1..58b492d00246 100644 > --- a/Documentation/devicetree/bindings/leds/common.yaml > +++ b/Documentation/devicetree/bindings/leds/common.yaml > @@ -105,8 +105,6 @@ properties: > - audio-mute > # LED indicates bluetooth power state > - bluetooth-power > - # LED indicates activity of all CPUs > - - cpu > # LED indicates camera flash state > - flash > # LED indicated keyboard capslock > -- > 2.40.0 > -- மணிவண்ணன் சதாசிவம்