Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1333604rwb; Thu, 1 Dec 2022 16:05:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UsrauFft8X3Yo9qQyEa7eKPmDp09MslEdFaJTSYtvLgFsqhpEI7LZZS1yGdGsO8w758oc X-Received: by 2002:a17:906:3c12:b0:7ad:7e81:1409 with SMTP id h18-20020a1709063c1200b007ad7e811409mr58489052ejg.326.1669939548906; Thu, 01 Dec 2022 16:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669939548; cv=none; d=google.com; s=arc-20160816; b=Mzd9xkDSfaEb7Q7PslMnbdoMVmv/XXsNLaB0/9V860JuDpFhPnIE62QewIlEarjhxi o/FtCKvCHlOBWWgryJlBEqc91bl3eCynR6TVa08McWgm7C3Mu6OLQVSlqjg29TyxL7MH 1DRsn2KR4ObO43GVzjS4ZQ+vJGTHgfy2rEAYLE5ybwePCaQ1nOzCcsREyB497RA1aV7j AkVBpm1+mN/5PLbrALWGRvk5sKtgyRMbtpQckG7rreRq/Xa+3dXKDIszNfjHf2ST4Cfw 7kio0jeiNaB3IKaDyiTQcOGaO+3bvr4o93dWDYpfvuxoQ7OlIQDlkux3Na+/MyvUEdF+ 8iqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lvh7bk0X0xJ0k9t1hMcrOK74zP9ebDwEIsFtFQSr3UY=; b=qwS1WcYykB8GupPwKta4YC20fZbYY4lSkyi2zdkdy1eJGx+G4tqis7VGzHXeaadcLU ygpEp00TSyXwk99guzMXTmpYuY1vaRek8Kpl5T+X/AJXxhw7s3pyR6WTw83ALAFKEO6I o2U/OMax9+XEtxXhBlyOy0wJ8jI7zD1AnrcH3FKqGiVULtzgJc07vUbKi1t2j/3vxb2F xAg3HNQYw7CHhVBsel105EV2F8w+/PiJ+FkPlmv0fKP8M5x8NmmqlBfcIO+Qw0nzMBUA qGoWHHH6+TMitzgaB0+BdQC20ehZ8I5OqBf+PQ67njMWVLvNZb1lSLAftPFT9NE0YTkb dJXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=GT2sE7J+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he41-20020a1709073da900b00783e7d72fc0si5452688ejc.272.2022.12.01.16.05.29; Thu, 01 Dec 2022 16:05:48 -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; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=GT2sE7J+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbiLAXpL (ORCPT + 81 others); Thu, 1 Dec 2022 18:45:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231673AbiLAXpH (ORCPT ); Thu, 1 Dec 2022 18:45:07 -0500 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50BEBBE4F8; Thu, 1 Dec 2022 15:45:05 -0800 (PST) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 298D985291; Fri, 2 Dec 2022 00:45:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1669938303; bh=lvh7bk0X0xJ0k9t1hMcrOK74zP9ebDwEIsFtFQSr3UY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GT2sE7J+6qvb84xLBa7huCUrgAM0aCNnh75bDqOEFGmc1jXSm7iHydrf1lyTGlFbn CISZL8J1vU8T1t3WJhGZTqNtTssjyAyNvYDzBQCggFmhSw7VjN0QuaU8kZ3FqgBnFi D1pCBTCywASNtBkeB+ub07CPpL/944xJLVn9ycK4MuHQEPIjaw6Cf7W8CXJklOZrs2 yRPIPL983S87TI82sMQcb4bjm7rtGmqSBNLVANBdI9mRP+4zG6jRBz0CvGB2O0uOZ9 4S+zavS9dq9ZWX+THOaoL0FPKH0PSLohkXld2J/Ac1cZX+Gpx76qMqiSyXD29y1J9c PL4n96QeDJF4w== Message-ID: <66e960c0-3743-ed7d-f8b1-747ecdc61f9f@denx.de> Date: Fri, 2 Dec 2022 00:44:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] dt-bindings: leds: Mark label property as deprecated Content-Language: en-US To: Pavel Machek , Rob Herring Cc: Christoph Niedermaier , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Jacek Anaszewski , kernel@dh-electronics.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org References: <20221122111124.6828-1-cniedermaier@dh-electronics.com> <3f4c89a3-8955-ce41-ac2a-cee9b0ed5210@denx.de> <20221130191905.GA2631320-robh@kernel.org> From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 11/30/22 20:26, Pavel Machek wrote: > On Wed 2022-11-30 13:19:05, Rob Herring wrote: >> On Fri, Nov 25, 2022 at 10:26:30PM +0100, Marek Vasut wrote: >>> On 11/22/22 13:23, Pavel Machek wrote: >>>> Hi! >>> >>> Hi, >>> >>>>> Mark the label property as deprecated as it is mentioned >>>>> in the description. >>>> >>>> Lets do it the other way around. Functions (etc) don't really provide >>>> good enough description of LED, and label is still needed. >>> >>> Can you please provide a clear explanation which property or approach is the >>> correct one for new DTs ? >>> >>> So far, the documentation states that "label" is deprecated, and users >>> should replace it with "function" and "color". >> >> 'function' is what activity/operation the LED is associated with. It is >> a fixed set of strings which s/w may use. It is a replacement for >> 'linux,default-trigger'. >> >> 'label' is what is printed next to the LED for a human to read. 'label' >> can be anything and the OS shouldn't care what it is. > > Unfortunately, no. > > We use label as a path in /sys/class/leds. And it looks like integer > "function" is not really adequate for describing what LED does. There > are too many LEDs and not enough integers, and it is common to have > same function ("activity") on multiple devices ("wifi", "mmc", "eth"). The Documentation/devicetree/bindings/leds/common.yaml schema indicates that function is a string, not an integer: " 32 function: 33 description: 34 LED function. Use one of the LED_FUNCTION_* prefixed definitions 35 from the header include/dt-bindings/leds/common.h. If there is no 36 matching LED_FUNCTION available, add a new one. 37 $ref: /schemas/types.yaml#/definitions/string "