Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3110816ybb; Mon, 6 Apr 2020 02:15:00 -0700 (PDT) X-Google-Smtp-Source: APiQypLpWEJODyC+uDyIU7qkIXIQmE05BAFqHMZQ+VQOeLw2v+8tDGA9GEfiIz7WPghMT91Iuysn X-Received: by 2002:a05:6830:1bef:: with SMTP id k15mr16118961otb.372.1586164499908; Mon, 06 Apr 2020 02:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586164499; cv=none; d=google.com; s=arc-20160816; b=WF0Balv4EsGX/+MwcEkimHXzwh4JzCuYuLbhGb6FvA1kq0F0Inmn1/qB4hXXQh/6KJ s6l4XBNLt0LJ89IEyL6m2pzp5h1zSfSvlpnRENM/n4J4eXfHy4mzevhOaL0BJ7TlX4gl eV9GkCBlr0zQ70RbtZwVglKe366kFQ0HQCf7qOS9lHx9ZiDSU0kGGt8tKPUVCynZppWF Qi1WBBsugS8iHYFiLPiC6Yt7WVXzVPgCMka3sw4nQyuheI5U3JFhA9nXFCj3WEY1iYO9 sYN1XUtgDEye60uOMmzSywv3XRYktHt+YMMEOgQUK/o2nToAXf/lGIWTr7F8lTaYtRKb JIXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MrYE4G0gy//Bj/lXIL0I8nwvtkBc0LyJrVJyXvs1DZo=; b=lw89rNvPu4wg9h9WXVf3X2+O5Ve3+Qg1SmsAqxI/qGpQacizmH4Apjjc/4B7e7EO/2 aN5gRc3QJcYmRwoitNquGxgDvOFMdrgz78OoSFHjE3ctLNAmZeeJJS7NP4b8rqf/RBBg tqnaEOx94KtF3ckQ7X+dYJqPQxF1TlxTqo1Osy9kTfwm0YByOw9A28BkHYN47RPxj/Ax wlAWsJvtzYqS4U3ArapUQppcTo3fZT0e2fYlSlcCr3GRgDt8o2vaqW+MVSa4LDynLg9Y BBQlhYm6kr1TEnlJIdq7KG+Brb5gJhg1zVhdnNZmJdNGQ61U6Srfp0qltB6FnYNuD6bc P3uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si8366481oth.49.2020.04.06.02.14.47; Mon, 06 Apr 2020 02:14:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726799AbgDFJNW (ORCPT + 99 others); Mon, 6 Apr 2020 05:13:22 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:55548 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgDFJNV (ORCPT ); Mon, 6 Apr 2020 05:13:21 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 575E91C4527; Mon, 6 Apr 2020 11:13:19 +0200 (CEST) Date: Mon, 6 Apr 2020 11:13:13 +0200 From: Pavel Machek To: Robin Murphy Cc: Chen-Yu Tsai , Johan Jonker , Heiko =?iso-8859-1?Q?St=FCbner?= , Rob Herring , "open list:ARM/Rockchip SoC..." , linux-kernel , linux-arm-kernel , jacek.anaszewski@gmail.com, devicetree@vger.kernel.org Subject: Re: [PATCH 1/6] arm64: dts: rockchip: rk3399-roc-pc: Fix MMC numbering for LED triggers Message-ID: <20200406091313.GF31120@duo.ucw.cz> References: <20200327030414.5903-2-wens@kernel.org> <684a08e6-7dfe-4cb1-2ae5-c1fb4128976b@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ExXT7PjY8AI4Hyfa" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ExXT7PjY8AI4Hyfa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dt.yaml: leds: > > > diy-led:linux,default-trigger:0: 'mmc2' is not one of ['backlight', > > > 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pat= tern'] > > > arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dt.yaml: leds: > > > yellow-led:linux,default-trigger:0: 'mmc1' is not one of ['backlight', > > > 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pat= tern'] > >=20 > > Maybe we should just get rid of linux,default-trigger then? >=20 > In this particular case, I'd say it's probably time to reevaluate the rat= her > out-of-date binding. The apparent intent of the "linux,default-trigger" > property seems to be to describe any trigger supported by Linux, so either > the binding wants to be kept in sync with all the triggers Linux actually > supports, or perhaps it should just be redefined as a free-form It is enough to keep it in sync with all the triggers we actually use :-). > I'd be slightly inclined towards the latter, since the schema validator > can't know whether the given trigger actually corresponds to the correct > thing for whatever the LED is physically labelled on the board/case, nor > whether the version(s) of Linux that people intend to use actually support > that trigger (since it doesn't have to be the version contemporary with t= he > schema definition), so strict validation of this particular property seems > to be of limited value. But freeform seems acceptable, too. > > > > - diy-led { > > > > + diy_led: diy-led { > > > > label =3D "red:diy"; > > > > gpios =3D <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; > > > > default-state =3D "off"; > > > > linux,default-trigger =3D "mmc1"; > > > > }; This label probably should be "mmc1:red:activity" or something like that. > > > > - yellow-led { > > > > + yellow_led: yellow-led { > > > > label =3D "yellow:yellow-led"; > > > > gpios =3D <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; > > > > default-state =3D "off"; And this label should be changed, too. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ExXT7PjY8AI4Hyfa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXoryqQAKCRAw5/Bqldv6 8ulxAJ9JvBVEpW4qxrGrRgIxyoWrDXPWaACglhyoV7FLpZSAdi34M9to1ysGuB4= =FV4E -----END PGP SIGNATURE----- --ExXT7PjY8AI4Hyfa--