Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11328302rwb; Fri, 25 Nov 2022 14:13:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HwV+j/8x3k3pb/FWqUBV6F8kous83fFc3lYv4B5OlWOKHgtLSrJLl8NLKm/DqJXXd6Qis X-Received: by 2002:a17:90a:4894:b0:218:a96f:9eec with SMTP id b20-20020a17090a489400b00218a96f9eecmr29535946pjh.159.1669414402515; Fri, 25 Nov 2022 14:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669414402; cv=none; d=google.com; s=arc-20160816; b=mSlqaBtE/CipL92SuxbmU3P+wDEDcuszqt2KZ2PNa41sXfJikynJNV0F97utYoRW5X WD3l944r6iMo2A5IT3Ma0YIrrPxm4Bf8BE7FMKizzWbcBP4NwwYWd55eNnHG19J/5I2b Ty6aKksuZ0F/Twrx4mPl7N9H4uvW6EsA9kAXbs3SSlAzMH+g90YwvWtDuVniKGPI/0y0 WlVmt3YSZ8haxP6M7ZdVgtv9tSh0VBleY8zBRpMAVp0X4SIijqwRb4gex7v8zP1R1OmF jht0qGrQjj9JGVFGy1Ojw7dFLjNrLBILnlqtQHsNO+RW9mXfxjLNCbYtPAyTEf8x28GL 3sIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=uxpbxThYzdp5BzI1XcpsxHeBOCgGK/5cbRNHxqP+f8E=; b=bOnwT4bkYjh1yV4vDXdNjKC6BU8QYoSG5giG3bDoI4EbGqweG15JqLO79EJWNt8oeh JgW+mvB3iZ7fDWvNwXLJXxlUiFM3ezq6I5WFCqOUvSAOr60F+yr+ZEv2XL62UtgbC+lq zUduezvJEQw81WZlZH8tQ55xwshNEYgmNeOctVf3DFPCJ4sSBrdpDeQSGzo8/ImS/XhM ocI8RknDuXpjA+4fKTaaiownMXm78ya+Sfgq22btzP2q4v3l55K9EaZDRRLeYazJTLiA ygOdzlLACJl2nyJD1H9Yy/dXT7zgTCJxnZRxV7se6cBp0S6k/Sjg2qGJ5Dm4MMiPdNBN QRUg== 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pv1-20020a17090b3c8100b0020c060f42cbsi7926718pjb.98.2022.11.25.14.13.10; Fri, 25 Nov 2022 14:13:22 -0800 (PST) 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbiKYVmU (ORCPT + 86 others); Fri, 25 Nov 2022 16:42:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbiKYVmT (ORCPT ); Fri, 25 Nov 2022 16:42:19 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD2D656ECE; Fri, 25 Nov 2022 13:42:18 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0B1F22B; Fri, 25 Nov 2022 13:42:25 -0800 (PST) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1DF6D3F587; Fri, 25 Nov 2022 13:42:17 -0800 (PST) Date: Fri, 25 Nov 2022 21:40:50 +0000 From: Andre Przywara To: Samuel Holland Cc: Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 1/2] ARM: dts: sunxi: Fix GPIO LED node names Message-ID: <20221125214050.711997f1@slackpad.lan> In-Reply-To: <20221125195401.61642-1-samuel@sholland.org> References: <20221125195401.61642-1-samuel@sholland.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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, 25 Nov 2022 13:54:00 -0600 Samuel Holland wrote: Hi Samuel, > These board devicetrees fail to validate because the gpio-leds schema > requires its child nodes to have "led" in the node name. > > Signed-off-by: Samuel Holland That looks alright, though the comment in the binding says that we should just have led-0, led-1 instead, so just (hex) numbers. The "status" name is also in the label, so we wouldn't lose information. Actually, also "label" is deprecated, in favour of "color" and "function", shall this be fixed on the way? Or is there anything that breaks (older kernels) when removing the label property? Cheers, Andre > --- > > arch/arm/boot/dts/sun5i-gr8-chip-pro.dts | 2 +- > arch/arm/boot/dts/sun5i-r8-chip.dts | 2 +- > arch/arm/boot/dts/sun6i-a31s-sina31s.dts | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/sun5i-gr8-chip-pro.dts b/arch/arm/boot/dts/sun5i-gr8-chip-pro.dts > index a32cde3e32eb..3222f1490716 100644 > --- a/arch/arm/boot/dts/sun5i-gr8-chip-pro.dts > +++ b/arch/arm/boot/dts/sun5i-gr8-chip-pro.dts > @@ -70,7 +70,7 @@ chosen { > leds { > compatible = "gpio-leds"; > > - status { > + led-status { > label = "chip-pro:white:status"; > gpios = <&axp_gpio 2 GPIO_ACTIVE_HIGH>; > default-state = "on"; > diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts > index 4bf4943d4eb7..303191c926c2 100644 > --- a/arch/arm/boot/dts/sun5i-r8-chip.dts > +++ b/arch/arm/boot/dts/sun5i-r8-chip.dts > @@ -70,7 +70,7 @@ chosen { > leds { > compatible = "gpio-leds"; > > - status { > + led-status { > label = "chip:white:status"; > gpios = <&axp_gpio 2 GPIO_ACTIVE_HIGH>; > default-state = "on"; > diff --git a/arch/arm/boot/dts/sun6i-a31s-sina31s.dts b/arch/arm/boot/dts/sun6i-a31s-sina31s.dts > index 0af48e143b66..b84822453381 100644 > --- a/arch/arm/boot/dts/sun6i-a31s-sina31s.dts > +++ b/arch/arm/boot/dts/sun6i-a31s-sina31s.dts > @@ -67,7 +67,7 @@ hdmi_con_in: endpoint { > leds { > compatible = "gpio-leds"; > > - status { > + led-status { > label = "sina31s:status:usr"; > gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */ > };