Message ID | 20221028133501.95833-2-maarten.zanders@mind.be |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp836265wru; Fri, 28 Oct 2022 06:37:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/1HAsRswF+Q8LGk+AENjSIQFhGYvsdmhnJuZqQgnlwA0cuXn1ZoVznj1ixZXBxm1owVV8 X-Received: by 2002:a05:6a02:281:b0:45c:2b19:a52c with SMTP id bk1-20020a056a02028100b0045c2b19a52cmr44905497pgb.180.1666964279442; Fri, 28 Oct 2022 06:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666964279; cv=none; d=google.com; s=arc-20160816; b=tFE5Sx6NLxpM5imm6tVH/m/qGSx4D4Y5u3BOCc2nxOu0ox2iza8aU078VcFLSzEP7m XYqjBv+Dn5zDl/Sck0i+IMAzUKuUFSPTZnWacpzGOlaMt4ET8TtJnxQOkCya4g0eIybf 6QNI5rjMjo8FixCgMaMBDY1lt92Dh75yD/XkqTDDRw14TI6xz+Mz5UpDCm8KfJjrLznz lt/F69QzrUxLZeBDJTkKNoiW+FL+8KqUhCL+tu/8BX496srN+BvPxsEwgwUS/kNtn1b5 8E+zcqdbm3J7sW+N6si3I6wZghZpEv35G8CFNtkVaxTJNGQ+MsZUPTzEMlfGE8ZnWZK7 IiuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mPTLDxE+Qpo8aT7LTAOpqv5zhoPUlSbtMdZx1FPPRU0=; b=akwpvkTfH3l/0taPcFd2UUqV24peLa0SMfaNPYeXLoCSKpu7DCFFTT34FmRfHhIdcT OgN1OekqjDXGwV34OHYw1REYLZ9Rbn4xBep4FI2Rj8PaO0F5M6Xh+ZSRQp2lF5yGV4GP GU6fFIT1Lj0NJ32qMrc4+7Mjhk/n5kWCUzm10VM4K5SATPmPs01aV/1SRBcYvFeUyEvg 8Of4W+IKnhOICUg862aubZqTBqHGKF5sVFf9WddRwnCccaUX8SBmcjQS2HBuIRNTkB/e PFIPgxmTGTX7fLs3FlOAgVnp/bjDg1RNItqEWJgSdAsXMJgKVNQMegmQ41l/pEdEZ19W qglQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mind.be header.s=google header.b="fTXnu/dZ"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a170903110300b00176b7b8cf2esi6301802plh.586.2022.10.28.06.37.45; Fri, 28 Oct 2022 06:37:59 -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=@mind.be header.s=google header.b="fTXnu/dZ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbiJ1NgJ (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 28 Oct 2022 09:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbiJ1NgB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Oct 2022 09:36:01 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB41EC695C for <linux-kernel@vger.kernel.org>; Fri, 28 Oct 2022 06:35:59 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id kt23so12931270ejc.7 for <linux-kernel@vger.kernel.org>; Fri, 28 Oct 2022 06:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mPTLDxE+Qpo8aT7LTAOpqv5zhoPUlSbtMdZx1FPPRU0=; b=fTXnu/dZCwl4ftwCR9prOocmWD2+dhmNpE7ufBkYUMAKK9C2Ecm6U8Kq9Q3mXBgIya m6hqfBy1nFIf/qD5mGGNywbFov2uB+CTB/sxre5LkBeKqBJjt8bg41l+MvSHzeqBCqlg 42OMLslRRd/49M8PaFkd57CyJ1+vYMOgUwWexzP+DmRlN2cLhyYGAr0T0nHhEevNXiw5 HhmHsG891pDclpUeGS4oyiZe3HYoC+yUcUllP9Vfq5XEyZuTzbkN+60voSReHPP4OJqC msrZt5WOU3l8OSIJANL/fzjbuc71wGSHFUbgzbcgyapCWHZESUcCIoHc+s6AgBT/ZHpE 9wkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mPTLDxE+Qpo8aT7LTAOpqv5zhoPUlSbtMdZx1FPPRU0=; b=FUZmiJ2fnUK7L2mRuahw7U6eK5GN68rR4RMXksLFUG5zG9My12ounVmNW3vlE8+TgZ VZRvlTL510Igam9mQsFpIZLFo0Jtv19b1IE6DmTCMvk2k3OZ9YuPNk/gafh16bv6qxQh /1x2ZsuNH7QGtA0w9uhS8X9LSx91/0ilpKbhq42y1F0qKOe+jZt/sS2btDfwgXAexX5r eC3pHAjDNRx+xHdJqviF3cN+T6cE65WUvKiWYqkY++kFf0vsS2GPAbcK5koHcpj55wdv xkgWsX+vG8DC4LyUNwt+YnnEDlNwfWtJ0yGW3fbgWqViM9x2pysBwev82rp/PMdatnxO lQmg== X-Gm-Message-State: ACrzQf1t5usadsT9U1ais6Wi4paxW8phUCPby1JIWdjyuv2sbMGRB3X9 pwtgZrtMhB22tPhVXG14T66HUw4yZnOmcXhz2TQ= X-Received: by 2002:a17:907:2711:b0:7a6:bbea:683e with SMTP id w17-20020a170907271100b007a6bbea683emr25678116ejk.344.1666964158306; Fri, 28 Oct 2022 06:35:58 -0700 (PDT) Received: from dtpc.zanders.be (78-22-137-109.access.telenet.be. [78.22.137.109]) by smtp.gmail.com with ESMTPSA id mf7-20020a170906cb8700b007aa239cf4d9sm2190907ejb.89.2022.10.28.06.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 06:35:57 -0700 (PDT) From: Maarten Zanders <maarten.zanders@mind.be> To: Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Jacek Anaszewski <jacek.anaszewski@gmail.com> Cc: Maarten Zanders <maarten.zanders@mind.be>, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump Date: Fri, 28 Oct 2022 15:34:58 +0200 Message-Id: <20221028133501.95833-2-maarten.zanders@mind.be> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221028133501.95833-1-maarten.zanders@mind.be> References: <20221028133501.95833-1-maarten.zanders@mind.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747938736137676034?= X-GMAIL-MSGID: =?utf-8?q?1747938736137676034?= |
Series |
leds: lp55xx: support disabling the charge pump
|
|
Commit Message
Maarten Zanders
Oct. 28, 2022, 1:34 p.m. UTC
Add a binding to disable the internal charge pump for lp55xx.
Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
---
Documentation/devicetree/bindings/leds/leds-lp55xx.yaml | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 28/10/2022 09:34, Maarten Zanders wrote: > Add a binding to disable the internal charge pump for lp55xx. > > Signed-off-by: Maarten Zanders <maarten.zanders@mind.be> > --- > Documentation/devicetree/bindings/leds/leds-lp55xx.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml > index 7ec676e53851..9eb8d1017402 100644 > --- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml > +++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml > @@ -64,6 +64,11 @@ properties: > '#size-cells': > const: 0 > > + ti,disable-charge-pump: > + description: | Drop | > + Disable the internal charge pump. Does it mean that it is enabled by default? Best regards, Krzysztof
On 10/29/22 00:07, Krzysztof Kozlowski wrote: > Drop | OK. >> + Disable the internal charge pump. > Does it mean that it is enabled by default? The device default after reset is "off". The current implementation sets it to "auto". Other possible modes are "bypass" and "boost". Should I change to an optional "ti,charge_pump_mode" as string and set default to "auto"? Thanks!
On 29/10/2022 03:48, Maarten Zanders wrote: > > On 10/29/22 00:07, Krzysztof Kozlowski wrote: >> Drop | > OK. >>> + Disable the internal charge pump. >> Does it mean that it is enabled by default? > > The device default after reset is "off". > The current implementation sets it to "auto". > Other possible modes are "bypass" and "boost". > > Should I change to an optional "ti,charge_pump_mode" as string and set > default to "auto"? enum makes more sense in that case. Just don't user underscores in property names. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml index 7ec676e53851..9eb8d1017402 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml @@ -64,6 +64,11 @@ properties: '#size-cells': const: 0 + ti,disable-charge-pump: + description: | + Disable the internal charge pump. + type: boolean + patternProperties: "(^led@[0-9a-f]$|led)": type: object