Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp691793pxf; Thu, 25 Mar 2021 11:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqxf2GcGvCxMtBfpHlA10Y+QjVIqqGtOHZq0J9R/ck8SLidL86pLPG2/B55atG9PwgOlkY X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr10996391edc.367.1616697841296; Thu, 25 Mar 2021 11:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616697841; cv=none; d=google.com; s=arc-20160816; b=rJJSm+/w2Zz7CrwCG1UjrsOJ/BHbuKQ0Gl3L30HgCUkOMWQ79dwK9LuwFNN4Y8SK3H l3Q0pFKAOUviBHnfKYc3CV6ddhHcWaD2emVNPtvOUPoKLWpEyqzDLuR4hZnMOfs4jhYC CMP9Jj+QJLBOsD1x0lpEjRfXYWlx4q8H2Tc5eI9NdqYbkBDKGuzI4MregCZ3rVtIL1Bg eitzgRXA9H3aLfa4IqQHJTn5zD3d/yaHHFAXoOgOt+VG3KiZk4G2RFMqQBUlp1C3fDDz 74h0lN1Iv+rXgBq0Nc2hy+HiHWFD9ear8y1bQX/Qzfoi53WyCCAJ1zHiLi2R8XdawtMd 08Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=anNxVcOzRiGMwawZrRx2mYhJb/ipVoAIiApAARjwIUE=; b=Xy810aK0uxaquvSBb464rLBFfZ5O9kTsaQG/3NMnKK25PMGn0Sug039Mi9phJP9r8O BiDFYfkRf/NEM/LFoQ/D7ygDl3gI8HP1XyuTw0SORegxT0xs6cTp7XrOhELPBQJTRAB7 mT5h2FXDbpHoeebxXWQ7DT+bUDDjnN/ZlI33EYNnK6EBUpzOpgRt1A5QErrSYFlloWSF 6ibsEIne6JfscAgwS3IueMoG65424VyEAH6DzpKKTj+fsKO/nQFvmkGJWEYjiaIAlsXh HSpVhVzyBmVUIJ+0xIBOgpVIyY2/a7DQLIb5Emf216cIx5AEa5sALaUym6mLcIbW2s6y uaBg== 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 t22si5197953edd.558.2021.03.25.11.43.37; Thu, 25 Mar 2021 11:44:01 -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 S229670AbhCYSlz (ORCPT + 99 others); Thu, 25 Mar 2021 14:41:55 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:51466 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhCYSlm (ORCPT ); Thu, 25 Mar 2021 14:41:42 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 725AD1C0B94; Thu, 25 Mar 2021 19:41:40 +0100 (CET) Date: Thu, 25 Mar 2021 19:41:40 +0100 From: Pavel Machek To: Vesa =?iso-8859-1?B?SuTkc2tlbORpbmVu?= Cc: Hermes Zhang , dmurphy@ti.com, robh+dt@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, chenhuiz@axis.com, lkml@axis.com, kernel@axis.com Subject: Re: [PATCH 2/2] dt-binding: leds: Document leds-multi-gpio bindings Message-ID: <20210325184140.GA16039@duo.ucw.cz> References: <20210324075631.5004-1-chenhui.zhang@axis.com> <20210324075631.5004-3-chenhui.zhang@axis.com> <0648fff2-5b38-66da-7eb0-9969e517421f@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <0648fff2-5b38-66da-7eb0-9969e517421f@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > See below. Please trim. > > + led-gpios: > > + description: Array of one or more GPIOs pins used to control the L= ED. > > + minItems: 1 > > + maxItems: 8 # Should be enough >=20 > We also have a case with multi color LEDs (which is probably a more common > than multi intensity LED. So I am wondering how these both could co-exist. >=20 > From: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/= tree/Documentation/devicetree/bindings/leds/leds-gpio.yaml?h=3Dv5.12-rc4#n58 >=20 > led-0 { > gpios =3D <&mcu_pio 0 GPIO_ACTIVE_LOW>; > linux,default-trigger =3D "disk-activity"; > function =3D LED_FUNCTION_DISK; > }; >=20 > Now 'gpios' (and in LED context) and 'led-gpios' is very close to each ot= her > and could easily be confused. >=20 > Perhaps this could be something like: >=20 > intensity-gpios =3D ... >=20 > or even simplified then just to gpios =3D <...> =2E.. > How would this sound? Well, not too bad on a quick look. Are you willing to implement such multi-color-multi-bit-multi-gpio driver? Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYFzZZAAKCRAw5/Bqldv6 8j45AJ9RFvJxNlBDSt9L+2q8p/Lx9iKqbgCfVle9NynAFaWzAsNFO22CXcPitl4= =SdkL -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--