Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2679758imw; Wed, 6 Jul 2022 09:56:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZduK1lT9joq7YcFXXjpK8e/j6hre8kWWp9+9z5Wqigpk2Z4SP4n8nB1TEjpdzGJcNQlKy X-Received: by 2002:a63:4c05:0:b0:412:1688:566e with SMTP id z5-20020a634c05000000b004121688566emr20117005pga.579.1657126561425; Wed, 06 Jul 2022 09:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657126561; cv=none; d=google.com; s=arc-20160816; b=z6gWfyWjJkrzg0ia3JyVPOXSVsSKD7ZzMZTJYzle1rT4k+e4Je9idVfSNk0mNpjiZb 8wtyVuwNtrToFxPGrvL7+rHfBVX+vief1uZr2aZXOn9UZaIRgqaBBIRheKYnoR20luyF 9K0a/xQq/2mob2HxOfv6GCAfoQstYkpkTv4i32oNxwnKVJeVDm31hpygqM8MlEYdiWYg K5Q3KPnPP5LO/wZvYaK/1ZKBOZK6/rCxFpLBkqjsSdHtCxhoDqeGw+s8964ZADGZbZCU 3pUAMvQWi5BgziCi9+wnYNwTts6P4kuZcY1XmX1VbkwpuHGHM8BhKr2c4iggIENFfFeC hagg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Gf8Xz/GGoc9JTfpmZqc6OypyRQQv3xoHJqWdRHcHehk=; b=tcktGfGhIqa5Fy+nzpCU7Qcc+BTaFfVyPEAK1ORUDrWGXx2TXOI3wMhzmhJFPW+ISB AKjP9DTHyTOb4LzFQ1cmD2lOm8AAWQyDSsERJIyL12ezjUyQb0nxxPUGhQf6Y0qlOkaR m85eGme76Osf+v/B4R3Dr4jgE8wfzc9zrEJI/rwLs6zcxw3Qw9S2YGiU3UbjDuSKr/9T gAU/0oLvKqfuvOgfzZZmhbhmsSyvxIMY9WfU3jU8voyqomZ5Dl3WpMU35RNHBCQm3k+m ZiyIb36khc3qPYZ2W6l6OBNamoyOPjpnDigwleixs1xSssQkJ7/dW8gHSEvFMDePZZjb JfUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lOyZD6X+; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090311ce00b0016b81385a2fsi21240215plh.47.2022.07.06.09.55.47; Wed, 06 Jul 2022 09:56:01 -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=@kernel.org header.s=k20201202 header.b=lOyZD6X+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbiGFQXn (ORCPT + 99 others); Wed, 6 Jul 2022 12:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiGFQXm (ORCPT ); Wed, 6 Jul 2022 12:23:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 507831D0D5; Wed, 6 Jul 2022 09:23:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 042D4B81ADB; Wed, 6 Jul 2022 16:23:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83B9CC3411C; Wed, 6 Jul 2022 16:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657124618; bh=E94CHoe4nJY8KaW5wk7Skqvv5P2Zf38aYdSKiyagHDg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lOyZD6X+mJZZAfd982nC3hM4EB71f6D3hD5QE5OXiAoCuBgb7nS+zDyCB/sWZgqda MMGW6dJi9kHb/dB+3UXiSyW1dsWnzh42NIxyqxj7g3N4i9GjiC+F9R1Y/bixvs5F1b 6Un822/c6bbMg6wBtKyr13pjFFFFJuTnLvxIALTG+tiNh//43cq3wbb9uDA2/gytOb 63OgU72JIeJumm0pCRw9NyjGsCepgvsjkjgH6IXHSCq0YGnoEQ8BZ3DnvcvllkYHut MHnsEhv32nUJMZR3z5iBKtWfRYB94ttiPmSAeXQjehBJG7Ac7TrkrwcDlfBplJjJAS OjALc7l3wKnLg== Received: by pali.im (Postfix) id 89B9A7BA; Wed, 6 Jul 2022 18:23:35 +0200 (CEST) Date: Wed, 6 Jul 2022 18:23:35 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Rob Herring Cc: Pavel Machek , Krzysztof Kozlowski , Linus Walleij , Marek =?utf-8?B?QmVow7pu?= , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: leds: register-bit-led: Add value property Message-ID: <20220706162335.2eewgf7l3xghdjtr@pali> References: <20220706112828.27278-1-pali@kernel.org> <20220706162111.GA145516-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220706162111.GA145516-robh@kernel.org> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wednesday 06 July 2022 10:21:11 Rob Herring wrote: > On Wed, Jul 06, 2022 at 01:28:27PM +0200, Pali Rohár 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. > > > > Signed-off-by: Pali Rohár > > --- > > .../devicetree/bindings/leds/register-bit-led.yaml | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/leds/register-bit-led.yaml b/Documentation/devicetree/bindings/leds/register-bit-led.yaml > > index 79b8fc0f9d23..d6054a3f9087 100644 > > --- a/Documentation/devicetree/bindings/leds/register-bit-led.yaml > > +++ b/Documentation/devicetree/bindings/leds/register-bit-led.yaml > > @@ -43,6 +43,17 @@ properties: > > 0x100000, 0x200000, 0x400000, 0x800000, 0x1000000, 0x2000000, 0x4000000, > > 0x8000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000 ] > > > > + value: > > + description: > > + bit value of ON state for the bit controlling this LED in the register > > + when not specified it is same as the mask > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: > > + [ 0x0, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x100, 0x200, 0x400, 0x800, > > + 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000, 0x40000, 0x80000, > > + 0x100000, 0x200000, 0x400000, 0x800000, 0x1000000, 0x2000000, 0x4000000, > > + 0x8000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000 ] > > + > > offset: > > description: > > register offset to the register controlling this LED > > -- > > 2.20.1 > > > >