From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A265415A85A for ; Wed, 16 Jul 2025 05:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752642867; cv=none; b=g5Gl7W/hTu4KKAgOXiA62Okp7RBRvwTMEgGCCj/EWWJAL+VXjoJZ0GV2eaLOY9zmeJOQERgsMqVSQkbhMksrxT4poahxWg6lNXzJMDaNnPYT91XjYq/Xgur669f0g9QFJbYXXRHYhtBtQnY5g0imXRA8hBgA66GcB29nggmvzzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752642867; c=relaxed/simple; bh=VURr06Pbv09Wy8Ezi3pN19cHBhNZ5DqK3UF4UBcANjc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BRaTScSsqr68b+ybKkOjcYtWuikYYFKjEZm3Ce7TWUK7HydlHdvr+H9vMZ0FaRpOAyzaRbPZSxcLQAPwoFH42LLkjrVGPDCVBsY0nEoFcNaCiR0vMwbImUIO/961uQQN3uiyL0gcQauxtf8lfXWe9J/EWfgB4qzQt6rIO9c6c+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=gKt7KU8w; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="gKt7KU8w" Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4E2A31C008E; Wed, 16 Jul 2025 07:13:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1752642836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tD3ytvT4byQdBjJAKjFVmfx82og5NRvAZdemf4OF+zY=; b=gKt7KU8wDUCVFZwE4LEmmEGwbVYmjTREj5DDQ+RXfO2hqIJXpTJDlzMYhnm6AX8QryOBd/ 0u37pLa/xPawUoLvKyQGpD2NYyQgAWXSzTsUu7pQLJPu4tLUcGH3hlMuSLcZnM6qM7ev4b gQiTIfYTyE8CsM1KXUhNZUUkKpmqslI= Date: Wed, 16 Jul 2025 07:13:55 +0200 From: Pavel Machek To: E Shattow Cc: Jacek Anaszewski , "linux-kernel@vger.kernel.org" Subject: Re: Are LED functions strings or uint32 in Documentation/devicetree/bindings/leds/common.yaml Message-ID: References: <91d71a35-bb22-4482-8b49-398899ee37ae@freeshell.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="F35NCqBD2fbLx0zU" Content-Disposition: inline In-Reply-To: <91d71a35-bb22-4482-8b49-398899ee37ae@freeshell.de> --F35NCqBD2fbLx0zU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Documentation/devicetree/bindings/leds/common.yaml [1] describes a > uint32 but the $ref is for a string, for "function". What's going on > there? Also what is the reasoning for that sort ordering [2] in the > examples, are we saying that gpios is like a register and function or > default-state is a kind of status? >=20 > 1: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/D= ocumentation/devicetree/bindings/leds/common.yaml > You may want to cc devicetree people and linux-leds mailing list. Take a look at include/dt-bindings/leds/common.h, LED_FUNCTION_PANIC (for example) is a string, so documentation looks consistent to me. BR, Pavel --=20 I don't work for Nazis and criminals, and neither should you. Boycott Putin, Trump, and Musk! --F35NCqBD2fbLx0zU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCaHc1EwAKCRAw5/Bqldv6 8hqeAJ0QgUOzI6h+3+SDCXqMbqmRTLClEgCglnd7H+8z2wBuL+PVxX5h6qAz1wU= =H4Zy -----END PGP SIGNATURE----- --F35NCqBD2fbLx0zU--