Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp383559pxb; Thu, 14 Jan 2021 08:11:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhpjc/MLZCdXM+XLYDMJKiTwHt2KBZKmFZBGM3byXHXPiE5XK18WIgsMbdhaiq/cpVdcXN X-Received: by 2002:a17:906:4058:: with SMTP id y24mr5593410ejj.245.1610640665727; Thu, 14 Jan 2021 08:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610640665; cv=none; d=google.com; s=arc-20160816; b=w5Mn9QEhNYjUPzOBSjPBOy79fRy8I4TbpNB0eBx6LrO158fyd6hgs1AwjAU3BAOEgf df8Il8gEFzOq95T78M+QqX/aNtwElYGghlkA80KXp6eQAfLr3241bvfFoy4MBv8KupgJ meYWC1c8VEyP14SFE8oAeBT8jAKyHqMVsL7N2SUPSRJ2P+nvR/nZkIwwRf6TLh7WAFOW qAi2a2gtFYHg4P49/DwlndfnfVwWfCnIL/hhiCecEESrfxIWRQXimNn9pvt0QWJ72Pnl DDbD0rPWtvr67rZ7P8XRtz1QkHjcu8+7qbzS7/EWgeik1smaeogbJtk+oIwTWH2fyM7Q Kzyg== 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:dkim-signature; bh=0JgJHsNz7hWotQHqsv9MMXYM5L07hf3AqCxxBPFoW4Q=; b=iMk0qbP3bg8aj5xLwtU/btdOB6xdh8COh27WB+vLrGHzAzO75BFqbJI9ba3w0NOg+3 oBHvkucHJvBTF33D4gWvr/lOHJIlKGWrSpb4nR1W9a0iUXxPoFMSbsrj2xzgvGbDfUZU VWB6x4f5nBfKszQ/+mgVh0qvpfZ4Gs5GZUEhldYvzMPUQICppZfEir9BkOzOJ6Gt/r7N Q5EAb77lqN2P3ee9Lai3Z8Ij1Pbvwu00F8ANMfQEUNX2zJJbs2daFjsDF9l5+gFs86wA PnVxjGe3fLb5frNzcr0rZcROpBVUZiVIL26zsguIrvxN0Ym3ik/R86NHazQnCOkP5+wc ZazQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=h8mvkBIr; 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=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di24si2696429edb.234.2021.01.14.08.10.40; Thu, 14 Jan 2021 08:11:05 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=h8mvkBIr; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728855AbhANQIb (ORCPT + 99 others); Thu, 14 Jan 2021 11:08:31 -0500 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:6518 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbhANQIb (ORCPT ); Thu, 14 Jan 2021 11:08:31 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10EG2FYd022831; Thu, 14 Jan 2021 17:07:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=0JgJHsNz7hWotQHqsv9MMXYM5L07hf3AqCxxBPFoW4Q=; b=h8mvkBIrZsVp552w8KbS9voQPbwMg9AQvXWDx5P+FlbZI9gzuga/OhxbY5RiAPunuUUy eiO23uCDtWANMLrfBsmjDTEE3CcH4uguKFNpazXIIAKGBLUqxy8LoTtYOYmB/8XON+Yb zES/86Fp6UrHKoluozSCQGAjKjt5cA2u8qhvP6EawJwcHSPlzMtnJL8oai+rBqTnNRmc AeaLaFAApILwKkBHv1kUZWK3FrJFkPGKpneLTV5/NXwSVw+Pt+tQwUaMVxKrG6v3jhWO F/QCF/QeC/RNy4pXKxbWFNuL4jWhBGGPRAr4FJWfEWTS86eIKT12kc7YjW6Vrx/h5ZOj bA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 35y5gxdyeh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Jan 2021 17:07:44 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C1F3C10002A; Thu, 14 Jan 2021 17:07:42 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A8FEF2ADA18; Thu, 14 Jan 2021 17:07:42 +0100 (CET) Received: from lmecxl0912.lme.st.com (10.75.127.49) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 14 Jan 2021 17:07:41 +0100 Subject: Re: [PATCH v9 3/4] ARM: dts: stm32: Fix schema warnings for pwm-leds To: Alexander Dahl , Rob Herring CC: , Ahmad Fatoum , Alexandre Torgue , Alexander Dahl , , , Maxime Coquelin , , , References: <20201228163217.32520-1-post@lespocky.de> <20201228163217.32520-4-post@lespocky.de> From: Alexandre TORGUE Message-ID: Date: Thu, 14 Jan 2021 17:07:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201228163217.32520-4-post@lespocky.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-14_05:2021-01-14,2021-01-14 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexander On 12/28/20 5:32 PM, Alexander Dahl wrote: > The node names for devices using the pwm-leds driver follow a certain > naming scheme (now). Parent node name is not enforced, but recommended > by DT project. > > DTC arch/arm/boot/dts/stm32mp157c-lxa-mc1.dt.yaml > CHECK arch/arm/boot/dts/stm32mp157c-lxa-mc1.dt.yaml > /home/alex/build/linux/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dt.yaml: led-rgb: 'led-blue', 'led-green', 'led-red' do not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+' > From schema: /home/alex/src/linux/leds/Documentation/devicetree/bindings/leds/leds-pwm.yaml > > Signed-off-by: Alexander Dahl > Acked-by: Ahmad Fatoum Applied on stm32-next. Thanks. Alex > --- > > Notes: > v8 -> v9: > * added Acked-by (Ahmad Fatoum) > * rebased on v5.11-rc1 > > v7 -> v8: > * rebased on recent pavel/for-next (post v5.10-rc1) > * updated indexes and added comment (Ahmad Fatoum) > > v6 -> v7: > * split up patch (one per sub arch) > * added actual warnings to commit message > > arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts > index cda8e871f999..1e9bf7eea0f1 100644 > --- a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts > +++ b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts > @@ -36,34 +36,35 @@ > stdout-path = &uart4; > }; > > - led-act { > + led-controller-0 { > compatible = "gpio-leds"; > > - led-green { > + led-0 { > label = "mc1:green:act"; > gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; > linux,default-trigger = "heartbeat"; > }; > }; > > - led-rgb { > + led-controller-1 { > compatible = "pwm-leds"; > > - led-red { > + /* led-1 to led-3 are part of a single RGB led */ > + led-1 { > label = "mc1:red:rgb"; > pwms = <&leds_pwm 1 1000000 0>; > max-brightness = <255>; > active-low; > }; > > - led-green { > + led-2 { > label = "mc1:green:rgb"; > pwms = <&leds_pwm 2 1000000 0>; > max-brightness = <255>; > active-low; > }; > > - led-blue { > + led-3 { > label = "mc1:blue:rgb"; > pwms = <&leds_pwm 3 1000000 0>; > max-brightness = <255>; >