Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2690927imw; Wed, 6 Jul 2022 10:05:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdg3KQfQLmH6tZAWzEijXfu3+j/VtCvtRQkSeXCb/9Tk4xFNsiMVdgLTgBRsm7Rsmn8cF8 X-Received: by 2002:a17:90a:5515:b0:1ed:50e2:853e with SMTP id b21-20020a17090a551500b001ed50e2853emr50855768pji.41.1657127144135; Wed, 06 Jul 2022 10:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657127144; cv=none; d=google.com; s=arc-20160816; b=s4RdgPQ5ACybPFM3tmUHkmXu9n3zQavhHlNCR4mGJlh6c+Ggm9B8SmJONvuPzz8MqL mxZkK0oLoNuEiaYt9g0bOAcjXh3kbMX1PGUsnvPKonYbmbLfLpx8rcnrrn2d0rGstgHI Z0wssFBrXkjMm4CuTqcBaThIAFfVVwLaKGVcl9tBSJ0FBGKZ7fOLF92zrSklgXkkiQ9g vcenJpNyv2CW4ypv2jXUXwaIdoyZn78yggRMmK6jeIjjL9E01U6F+m2zK5mWNbRYCBBu QAUErly135Byn7D92APX3iKXsw5A/QwjKsE81H78ziTi5OVGz4woxh/5qedgIBDgvWQI U6Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=46WFx0LHKHo7IAjx9SQsto+DNFSa6rkI9h3YC0DlQ/0=; b=RHRhwMxZNaBkEfViOMq4PnS6OtPMZ+xs8NRgdvV8WyvhEBTcEI+K9/slK19BXPZ+o8 fNa8CvpDyKI16PmeFSr38KX62ueB8YAg8JbIAutwCoERCkX4OHo0uUMp2m9Oi7mbClpB 6HfPN6h6PJSDwe+aYi4jZVyF84jM9ZsjP/yB7BktbYP35f0azquvNT0HjeuftMlDp3Eb 1b2fSZ3nxlbghlyx5URamN9H+sFZGgo5hOF7+FiWuhFxofOn5zwuimorl6J7HX767/GI /MLBCN2h/XD0aq0aBa2gyNLtRq0+VgiXJjmojky6npLbbZcmdnWkvQc6hjMwOvOe0B8/ 7b2A== ARC-Authentication-Results: i=1; mx.google.com; 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 t123-20020a625f81000000b0052878f66f84si8478978pfb.22.2022.07.06.10.05.29; Wed, 06 Jul 2022 10:05:44 -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; 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 S233659AbiGFQVW (ORCPT + 99 others); Wed, 6 Jul 2022 12:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbiGFQVQ (ORCPT ); Wed, 6 Jul 2022 12:21:16 -0400 Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC24313D1E; Wed, 6 Jul 2022 09:21:15 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id v185so14445190ioe.11; Wed, 06 Jul 2022 09:21:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=46WFx0LHKHo7IAjx9SQsto+DNFSa6rkI9h3YC0DlQ/0=; b=bgqFOdwH1VqsnFwXFXuF1zFEqPWatdgv33CfgxiZsS8XU8CMuzOUktLEQpgTgOgonF qvBVKpWCD0dNEmRpJyFsDSiufxKgNuxnobBZUpy5P8iq5FxLdVwLfItn8nlbgBrLP3j4 u80fGIs1fLIIpzxDh/EETpEkVhX+UnsdEHT2iVI1iLPMRxiiGKYIhlPxEKhAnwru3RGm AX3i14Q9wNERuWjJfWtM2KGTWi7dj1QSGLf3Hp2qyKmrDfs70OnOBKrDsscaHCpNnaHL wvI5fhlBUChtK+0gsjBUTBHQ7SaX8KHqKMO/KvU5yvBYZJOeU18htsDhmdoaWE5o5RTI YlhA== X-Gm-Message-State: AJIora/IBopWcz2zOIwKf3gVmWzkzzg4ZLeJ+iTHqrUhyrCRZYGrK6wP l2clu6N2KvfrGexh1k9ApjINNYNYdw== X-Received: by 2002:a05:6638:2110:b0:33b:b100:551e with SMTP id n16-20020a056638211000b0033bb100551emr26646242jaj.116.1657124473556; Wed, 06 Jul 2022 09:21:13 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id r16-20020a02b110000000b0032e271a558csm15967124jah.168.2022.07.06.09.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 09:21:13 -0700 (PDT) Received: (nullmailer pid 151818 invoked by uid 1000); Wed, 06 Jul 2022 16:21:11 -0000 Date: Wed, 6 Jul 2022 10:21:11 -0600 From: Rob Herring To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Pavel Machek , Krzysztof Kozlowski , Linus Walleij , Marek =?iso-8859-1?Q?Beh=FAn?= , 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: <20220706162111.GA145516-robh@kernel.org> References: <20220706112828.27278-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220706112828.27278-1-pali@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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? > > 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 > >