Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3460991imw; Mon, 18 Jul 2022 08:28:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmgDvYldZy8/UN3pqDwwOG21PEpmlltflw+HrViIxT5hoRI0oyubp0yaKVON+u1WyA49MM X-Received: by 2002:a05:6402:11c9:b0:43a:b054:52ba with SMTP id j9-20020a05640211c900b0043ab05452bamr38472253edw.344.1658158131107; Mon, 18 Jul 2022 08:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658158131; cv=none; d=google.com; s=arc-20160816; b=e7cS5OJ3L5wC0CaPSRkDB3zxgbzI5G+NHQi7YkBfUCXpEFZVzzXUuea2HeujuF7aXS v8gn005bpK71ryVM9xBok8mR1TDBt2gM9fOZN/25sb3hfMRpLgrGeNq1COq7YrG+019o W5RFCv1s9PXhc7nxdFLGgWlWcf72pV2yo+g7BPdfYOWufDH9ZeKTchWFxqtyADrkz56E KTVj4qFtpmc/HXaux1mZhr14qfhAt8BOuuMjX7n3nwwsG/Q2Q2Mo9c+xYtW4quVpBQ/X SS70XFcByuuohy+CSzCBZ/yPS9JJyeauvRIUwG0o8yMsoUKcJM8yuCG22ZC+s3s7DNin 6K2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yEHVouGendE6v7ZsxfXQtj/Q4eISMUU/bhs6OxS3YX8=; b=OPMAhShtIIi9bVTvmgk+pamKvR8puaUHXDMYm1k0gLZ2Z2s4PX8o1ZXP2cxKy0TnDu 8jQw9fgKWMpv8/h9tAb0UTO+0BmD6AprRO1dM11Pc3eVb2SVK0lxXkEchjwJWFS1wqU6 EFxA40XaxiGu98QKb8ffGdCug0jxQt7ffyNp4NgeGnCLBEVgYzxGw4HMP4zWr+tETdmz p0QJnsePiIKbcZIfT9NwQJOmQ4RlpDi7DI2sHNFrdt1gzp77Ainujq36w+ACm+6NXJTf RdlbGPPxrSMxLjBy8u6aejEr5g3SNQxTgBTygfdRrT9I5/UilNQJEXdMgPJ2giqowimC sydg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=krRe4lUf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a056402190900b0043a78b54d7dsi18257881edz.302.2022.07.18.08.28.26; Mon, 18 Jul 2022 08:28:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=krRe4lUf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbiGRPWj (ORCPT + 99 others); Mon, 18 Jul 2022 11:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbiGRPWi (ORCPT ); Mon, 18 Jul 2022 11:22:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAA962654A; Mon, 18 Jul 2022 08:22:37 -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 433E66120D; Mon, 18 Jul 2022 15:22:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C246C341C0; Mon, 18 Jul 2022 15:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658157756; bh=27LgImjzRSqPlFe7cCtgL1kCoiCEsjgBWZk7Q1LJaq8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=krRe4lUf87BqgwR0AigLhxGg+4m6XcIA2ikmRaNQsToDcA/d9/KKecvawbx+Q3cua WF6hghhtdeWZTBs4Zeywa6C/lswDosW6Vc8oDBfXu/dxj7Uvm5UwP7ZR1lE7RPKhsn NYft3769XhJzB0Ji6Dr16vIDNVwTJLxem8ycjVMhiuxUkBBrKUO/VlDhhX+DSVsMg9 PcO32slIBWwNEM6goh9B3285h6MmEWhyJ54hdWEo8QdBc5OCNwlRlnTTz9HrQ8QMVs tvQBlwCytjGqKGKpMKlOBYBHTHbOYFVslKgyrJJNI3F+DZeR3ZpDxyBdzUWxvKs5vk TacM5voRS11TQ== Received: by mail-vk1-f175.google.com with SMTP id g25so4473481vkm.13; Mon, 18 Jul 2022 08:22:36 -0700 (PDT) X-Gm-Message-State: AJIora9ATdAWOWBazibClMrOWSFU4ItJnFiTWG0A4GQE1caEbnqmXrOq dkCuC/4V2wJHi4aJGTdeL0abXVAWt0ftRngZJw== X-Received: by 2002:ac5:c346:0:b0:374:a4f8:4c5b with SMTP id l6-20020ac5c346000000b00374a4f84c5bmr9600810vkk.19.1658157755454; Mon, 18 Jul 2022 08:22:35 -0700 (PDT) MIME-Version: 1.0 References: <20220624112106.111351-1-krzysztof.kozlowski@linaro.org> In-Reply-To: <20220624112106.111351-1-krzysztof.kozlowski@linaro.org> From: Rob Herring Date: Mon, 18 Jul 2022 09:22:24 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: leds: class-multicolor: reference class directly in multi-led node To: Krzysztof Kozlowski Cc: =?UTF-8?B?TWFyZWsgQmVow7pu?= , Pavel Machek , Krzysztof Kozlowski , Dan Murphy , Sven Schwermer , Bjorn Andersson , Linux LED Subsystem , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , ChiaEn Wu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Fri, Jun 24, 2022 at 5:21 AM Krzysztof Kozlowski wrote: > > The leds/common.yaml is referenced directly in each LED node, which > leads to people doing the same with leds/leds-class-multicolor.yaml. > This is not correct because leds-class-multicolor.yaml defined multi-led > property and its children. Some schemas implemented this incorrect. > > Rework this to match same behavior common.yaml, so expect the multi-led > node to reference the leds-class-multicolor.yaml. Fixing allows to add > unevaluatedProperties:false. > > Signed-off-by: Krzysztof Kozlowski > > --- > > This will conflict with any new users of leds-class-multicolor, e.g.: > https://lore.kernel.org/all/20220623115631.22209-4-peterwu.pub@gmail.com/ > > The new users should be updated to match the usage introduced here. > --- > .../leds/cznic,turris-omnia-leds.yaml | 2 ++ > .../bindings/leds/leds-class-multicolor.yaml | 32 +++++++++---------- > .../devicetree/bindings/leds/leds-lp50xx.yaml | 2 ++ > .../bindings/leds/leds-pwm-multicolor.yaml | 5 ++- > .../bindings/leds/leds-qcom-lpg.yaml | 2 ++ > 5 files changed, 24 insertions(+), 19 deletions(-) Looks like this introduced a new warning: /builds/robherring/linux-dt/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.example.dtb: led-controller: multi-led: Unevaluated properties are not allowed ('max-brightness' was unexpected) From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml Rob