Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3292942imw; Mon, 11 Jul 2022 06:02:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s1TIr0P6cvFUrMdktHmRWiO2tOCXMBnhD6DF1kXT3/a0aWEL7+9XfyFd09ZMIhNK7wx0r4 X-Received: by 2002:a05:6a00:114f:b0:528:2c7a:634c with SMTP id b15-20020a056a00114f00b005282c7a634cmr18302005pfm.41.1657544542962; Mon, 11 Jul 2022 06:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657544542; cv=none; d=google.com; s=arc-20160816; b=jPG38ZkFRYvEANDSYidZqJq3J8Ehh5pug3tvpGtFvXdkMIrs4EHWSW68mR9wB/ED5c yzlrHQbslxQuETHfq+CzQoUdf2M8TjQjy71S5pUoVNJGpbubsj5fgHuUJ1HzBG3F2y0U f+9Dzkrj+bol4n9gXllK0t5m30u9UHe64Mz9frzLOKoueM1wVBVPl9oU3d7PX0Zu3SiU eRPUEhCbpJImNxhh1cpoCIpRu9NdyDwE5JVntMv7/j/EXTqeR/R0bmxtt13kc4u7EPm0 iGWP/amZ/k7zWiO5z92woldSe3tjQtx+JWDau6dHXlaSz9asnnVsskim/THobNyqX9g0 1pDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9/TaxiyiKvNrui4l1nPGDIlfQKIWpJeKr/oIv6jY5g4=; b=X5gH6khv5Wm9WkJ+pEDGzoGWJjA3Q5O3aVfkx+ovlsKDR5aoizce32Ho3v5JRJCJsF dJhxq41Nkt6TTI8cjBKrBZwvXlyl5pu3hJhwsVK6YjZKJNDqim9qSQJ70ctSdHJwwqcu gVmfb+U/FdvOy+7LZB43SWAMeGIiH0kR10lYx7eCPe192mgSx65LuFi0ax9P49CmZuto hEaU9VdVPFNo/9ot7k6ur0y9/hxTRARf58cPKTsZjYyCLeHDS6W7DZwH7XoNJzTogJhL doNSPJtSPthdmpASRJBSFhhybbAu1EIpgVSlwXIvDXBxnkI/HCG5ztVn7Xp4qZ9sDFe9 0VEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m6femu7C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me14-20020a17090b17ce00b001e0b16a6bb9si11133711pjb.159.2022.07.11.06.02.10; Mon, 11 Jul 2022 06:02:22 -0700 (PDT) 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=@linaro.org header.s=google header.b=m6femu7C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbiGKMHH (ORCPT + 99 others); Mon, 11 Jul 2022 08:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiGKMHG (ORCPT ); Mon, 11 Jul 2022 08:07:06 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FDA841D3F for ; Mon, 11 Jul 2022 05:07:02 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id f73so8311853yba.10 for ; Mon, 11 Jul 2022 05:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9/TaxiyiKvNrui4l1nPGDIlfQKIWpJeKr/oIv6jY5g4=; b=m6femu7CnL6m4go3tibwbbC1inwqYvHVSSn22DT/h7RKq6qF9EKmRH3DETlWmCPGn8 cn8pTHEsfxoOux1OYkYOedJGN8RbiteXRNrSBBG+M0no/fvhcRpAOX58wy+DsFdp0PJ3 JydDc7JRF9HfWUbDLiW8hzd1rLx62+9EoAc/1HID8ALGmq4I0k80JqmR4SJN6A//riV2 cXpA5Wh8/gmdBvUyKxJREn3/+JXdRMo04HxZk5bwgviKC9Idq4k9jErskkxL1GFH07/G SMDrJN44yYGbg/h9Cwlfy7XLvyphnV4VcgNuN76TrfAkch23whM48DXkepHeDk+DH7Ik eVtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9/TaxiyiKvNrui4l1nPGDIlfQKIWpJeKr/oIv6jY5g4=; b=n0SbRFov3hlW8hhrEYGhFvguy3XQroxFYy0XCJIAse7d+ttOy+VjVFzoyzOY4Mb7gY 0KlcgEvBxMH5hPZqXTZOBOwaW+ImZ6oX+wmBsq5Mw15rmenVWiDPhQWKpWQiJFg5NX9c wDAPqDXE5qLnOiHxxKZgZ0j0EwSOv/B6igKNCUK+GnCQN4pXDvOIIBMx1koce9dKRiqT bXP1hp9A3NB3UcGcuQrEA5HXnX3qC55kpIO9S1E4tbtwfLT/Y3hYP2whLiSnAA2eWPCf A3PcCY/QP7WZ50aoqfBaYCeenco5+6Ezq6C65ms5A7ApBbmDystCswihZZ8D+4+ReOhg LI8A== X-Gm-Message-State: AJIora/40zXWiLrePUG+jd72rXn6FEfGVNNQLuDZ23NlW4GG7JiUinS0 dDRpozrxTbfWUrKCX8nELMZ1w8mXPLZgWI/LC/3iLw== X-Received: by 2002:a25:fe04:0:b0:66e:1f8a:8e89 with SMTP id k4-20020a25fe04000000b0066e1f8a8e89mr17240379ybe.514.1657541221456; Mon, 11 Jul 2022 05:07:01 -0700 (PDT) MIME-Version: 1.0 References: <20220706112828.27278-1-pali@kernel.org> <20220706162111.GA145516-robh@kernel.org> <20220706162335.2eewgf7l3xghdjtr@pali> In-Reply-To: <20220706162335.2eewgf7l3xghdjtr@pali> From: Linus Walleij Date: Mon, 11 Jul 2022 14:06:50 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: leds: register-bit-led: Add value property To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Rob Herring , Pavel Machek , Krzysztof Kozlowski , =?UTF-8?B?TWFyZWsgQmVow7pu?= , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Jul 6, 2022 at 6:23 PM Pali Roh=C3=A1r wrote: > On Wednesday 06 July 2022 10:21:11 Rob Herring wrote: > > On Wed, Jul 06, 2022 at 01:28:27PM +0200, Pali Roh=C3=A1r wrote: > > > Allow to define inverted logic (0 - enable LED, 1 - disable LED) via = value > > > property. This property name is already used by other syscon drivers,= e.g. > > > syscon-reboot. > > > > Yes, but those are potentially multi-bit values. This is a single bit > > value, and the only value that's ever needed is 0. Why not just use > > 'active-low' here? > > Just because to have uniform definitions across more syscon nodes. But what happens if he mask and value don't line up? mask =3D 0x10; value =3D 0x08; If you just state active-low; this kind of mistake is not possible to make. So I'd rather go for active-low; Yours, Linus Walleij