Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3001350ybz; Mon, 27 Apr 2020 08:17:11 -0700 (PDT) X-Google-Smtp-Source: APiQypJUMXHdo+Z7Y4NgoEmENiFMUE8eGZ9U0EQLtg/p0aBtV1OaBqcXOaciQedhyAOgX7EdXAxz X-Received: by 2002:aa7:c5d1:: with SMTP id h17mr19056930eds.109.1588000631171; Mon, 27 Apr 2020 08:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588000631; cv=none; d=google.com; s=arc-20160816; b=OIATM1dHMdvBRvlo2hQC2ehTyN2TpnyohkGWkPTu5enrQ9eg8rm40ji8i+clMq0aG3 hv6nBBH95Hb8W4/WUTEM3Cj4Evo9KJK7GBel7tGzCUcm4YEwqtT/vfKG/5M9iHEYQDkc BTo7Fa+zSpZvoHhD4ITuHsRbj1lL+9w1QiMPxlIIw3h9jyMmOYV2DfKdTFZnDXGhqicG W6fo2nDBnWq0qtQDFr/1s3wqN+3SY4ieKKno0+jTJy9IVEZJLn+VkOZRo0LPvNSlRkmG EG04cdHL8aj1KMBMg6YAEK5hvQsg6Kc/45DCAP6Ig/w4KJdnS0DVTjELaOL+rl6RwL/N Xz2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=XWry+u6pVwpV5/98WYI1wCy3jfelFeqocqsFGir8JYk=; b=Z1dV3+uF3dbNiousBS0wSVUve7S/jjuojUPrdbRhtgl819sA1wzOLyaTDOERdYCM9o G58Sy1/qMDwwoSc834zjHBcTTnH5eOFaG0Rz7MypWqp7MI302dY4YR+kNhcc7cpH5UWt yfJw3j9uVlgdGyDe5TNJ5EBrnT+tbmxKbCIpiKnk+FIXX+uQTNpprrvM9gbXytRxXa/d uJQCpikoNmWUxK0b20P5qFMPnjXAV7ehdvjxMgI9s2LZpq6bYy1XxzAlsgh+r00r5OzD bRkQRgFuNQi4l2v1qIKV62u25eKQIh3lMLwmdxxtmYE0aiHE83vkhu5Bfw4ievhlut7i +ZJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qn23si8276330ejb.111.2020.04.27.08.16.47; Mon, 27 Apr 2020 08:17:11 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728258AbgD0POG (ORCPT + 99 others); Mon, 27 Apr 2020 11:14:06 -0400 Received: from foss.arm.com ([217.140.110.172]:36874 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728252AbgD0POD (ORCPT ); Mon, 27 Apr 2020 11:14:03 -0400 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 BA71A31B; Mon, 27 Apr 2020 08:14:02 -0700 (PDT) Received: from [10.57.33.170] (unknown [10.57.33.170]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D9BCC3F68F; Mon, 27 Apr 2020 08:14:00 -0700 (PDT) Subject: Re: [PATCH v2 2/3] arm64: dts: rockchip: rk3399-roc-pc: Fix MMC numbering for LED triggers To: Johan Jonker , Chen-Yu Tsai Cc: devicetree , =?UTF-8?Q?Heiko_St=c3=bcbner?= , Pavel Machek , linux-kernel , "open list:ARM/Rockchip SoC..." , Rob Herring , jacek.anaszewski@gmail.com, linux-leds@vger.kernel.org, linux-arm-kernel , dmurphy@ti.com References: <20200427073132.29997-3-wens@kernel.org> <684132b8-4a84-8295-474b-38ccb992bba7@gmail.com> <65d15254-08da-895c-1a0c-ef6ce231b620@gmail.com> <74a984fc-ce57-211b-936c-2d77e2e642bb@gmail.com> From: Robin Murphy Message-ID: <94e7671f-2d11-b2f7-e049-b90893c61ab2@arm.com> Date: Mon, 27 Apr 2020 16:13:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-04-27 3:12 pm, Johan Jonker wrote: > Hi, > >>> So for fixing up the LED node names, we'd probably want the following: >>> >>> diy_led: led-0 >>> yellow_led: led-1 >>> work_led: led-2 > > Change proposal for led nodes to comply with preexisting dts. > Does this work? > > diy_led: led_0: led-0 > yellow_led: led_1: led-1 > work_led: led_2: led-2 Yuck, why? Labels are simply human-readable source annotations for the sake of referencing nodes more easily. Meaningful label names - that correlate to SoC or board components, schematic names, or physical labels on the board/device - make the DT sources easier to read, review, and maintain. There are a handful of cases where one node might have multiple labels, e.g. if two logical supply nets come from the same regulator on certain board variants, but there is zero point in defining redundant labels that just meaninglessly echo the DT's own structure. > blue: led_0: led-0 > > A check does not give any warnings. I should hope not. Labels are there to be consumed by DT compilers (and whatever symbolic overlay handlers count as... DT linkers, maybe?) - they have no business being within the scope of the bindings that define a contract for system software consuming the final DTB. Robin. > make -k ARCH=arm dtbs_check > DT_SCHEMA_FILES=Documentation/devicetree/bindings/leds/leds-gpio.yaml > >> >> That doesn't look pretty either. >> Would like to hear the maintainers view on how to handle other cases >> without 'led' like for example 'blue' for mk808. >> > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip >