Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1898521rwr; Fri, 21 Apr 2023 00:55:13 -0700 (PDT) X-Google-Smtp-Source: AKy350a2702J036+CuNwTtL8EXQwyAGBF/LSMgbBjLflryp+LDSI+sS+EEhGGj5xgkh2xcnWcQdK X-Received: by 2002:a05:6a21:792:b0:ef:e240:b562 with SMTP id mg18-20020a056a21079200b000efe240b562mr5879320pzb.39.1682063713244; Fri, 21 Apr 2023 00:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682063713; cv=none; d=google.com; s=arc-20160816; b=EiVDYnKwGeFO6p/jkzA5SbxBaH0/d2x0QNDIYpd6qIMLakTuC83tMNoTJE1A+2ZCXR j3vbxKeJTIWSfPkXJNNZYoHBw/3WVYTvqoPtqzodOaCdCWfL50bFwIiE2fycgIgQp8zo ZRRcThIGMX3bLFzGli6kYhxP38ouR78rcybBFEBzCnvefNM9qhxs1gFkQzaxEXtMlohh 94Utmd3/jjs8TwnbMOyXonyc+C9WxHOox6d0fJ2b1PSDzjwlygpBNA8ttZQqt8IHAfpp xzKpZJeYLk7NSDwtweDGCg5f6kBy2k66aWXd9U0hBYL7gT3jQldGp3whJI19seRrk0x9 1A2w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=njOMebupF1nfguyxa2HVeQ44xxQhsRp/Byzj17JlSeo=; b=oeRL0wWG4ciqv4c6LBAmE2wAxRiiWxJyFILZHf2YAM3weneOnnJBL3x3DdTbkqQnNQ gMcdc8dr2GSpaX1o09qBMv9g5k1iyiv75+rWlKWoCuJD0GFIf2B6tAr3AGuo86WjohwH 9/A8K2hrxac5ZvwVyD70ujeHlgtEWOLKOcwGcO5kCKiLyf/Nsm2qsQVn8waXECE2NGXI Wtl19Iwd88kSUD+AFqFwdDCbKYKIafcWaiz0ys3nJotrItp0hFDapFCK8kbWykM7vj7l pCQ/tZcH/h2lGYkxxgYEjedoNI1XrJAiz5LujGNfDa9+sTe/FD6XUNGcmnPcsMhwphtt 8Guw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mind.be header.s=google header.b="SiRwBt6/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631442000000b004fb95c8f645si3833061pgu.392.2023.04.21.00.54.59; Fri, 21 Apr 2023 00:55:13 -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="SiRwBt6/"; 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 S231430AbjDUHxQ (ORCPT + 99 others); Fri, 21 Apr 2023 03:53:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231285AbjDUHxO (ORCPT ); Fri, 21 Apr 2023 03:53:14 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2029004 for ; Fri, 21 Apr 2023 00:53:10 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-94a34a14a54so217927166b.1 for ; Fri, 21 Apr 2023 00:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; t=1682063589; x=1684655589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=njOMebupF1nfguyxa2HVeQ44xxQhsRp/Byzj17JlSeo=; b=SiRwBt6/PH4AkBNRp3X3mI7Vdejak84wcvbF9wKaNnDdhl/35eO94s2T0IwsZ2U9QI ShTKJvRE8kCEttdris04yYqTLjhq1MC7Thuc76WqfWUcuVORwyp4dtonXFWBftQUYzl4 Kd9/KiI6TgmcQfljVGloP8kWRo/OJ2s8QIduoXhRhKs95wkkujbDciTPf+U6qgbUBEFO 7EmejfxUO0i7OIGjjcuOBvR3Y89acDZSjNRZ4N/37YDZMXmEqsb8h5tRGrQrr/eirVaJ Uehk+aoQFt0SYluRqNccehZ+DbT81wOcfT5Leh+8/2N39xbW+DDt6zj4qdvEGsEd0rmo b3/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682063589; x=1684655589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=njOMebupF1nfguyxa2HVeQ44xxQhsRp/Byzj17JlSeo=; b=BE0qmBcoH2FXsMJjKzOuHvrz4fJ2or7//qVxLT03A/s7Gl1tMHspYxBtt4FLeUGmKu U+4FQA232nOImMSERnYnn60WVvFaslQOM3+1aEMHI+KlbmHSqsGWyazTHxleQopJykhP kcqE0er3bD5MjHQAqcf+qYikws7FILI/jyMPUrjZlqvdf8HttuTju1CexX5it9+oSfpz cHlIgGbeRTbss2o7hNegCLHbaSfEZvRY44JNvUhQ13yPPxif9rVGxFzMg21JTXCx2w1/ wPFs5fXzyHhNfjK00dCZBaH8Jgci72l3kt31nxDBINOjHwuOEFF+T4BPujjTJgK0CKKX Qrig== X-Gm-Message-State: AAQBX9e3yYdTGsNShtINfNkZ9pDSVY12AaNtQoKhhixh2gRbZZt9lNyC 9M+R3/bucUMCSsYZ1nQBbHEHwQ== X-Received: by 2002:a17:906:34cb:b0:953:42c0:86e7 with SMTP id h11-20020a17090634cb00b0095342c086e7mr1478572ejb.4.1682063589337; Fri, 21 Apr 2023 00:53:09 -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 vp3-20020a170907a48300b0094f14286f86sm1716329ejc.48.2023.04.21.00.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 00:53:08 -0700 (PDT) From: Maarten Zanders To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Jacek Anaszewski Cc: Maarten Zanders , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 0/2] leds: lp55xx: configure internal charge pump Date: Fri, 21 Apr 2023 09:53:03 +0200 Message-Id: <20230421075305.37597-1-maarten.zanders@mind.be> X-Mailer: git-send-email 2.37.3 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 A new option in the devicetree "ti,charge-pump-mode" allows the user to configure the charge pump in a certain mode. The previous implementation was "auto" mode, which remains the default. v1 of the patch implemented a bool to disable the charge pump and had some issues in the yaml binding. v2 implemented all options of the charge pump as a string which was too complex to parse & check. v3 replaces the string by constants. v4 resend with changelog (notes) in each patch v5 dual license in dt header, change property type to u32 v6 change license type, simplify DT parameter check v7 formatting changes, adapt to max 100 char line length v8 devicetree binding documentation: add default & maximum constraints Maarten Zanders (2): dt-bindings: leds-lp55xx: add ti,charge-pump-mode leds: lp55xx: configure internal charge pump .../devicetree/bindings/leds/leds-lp55xx.yaml | 10 ++++++++++ drivers/leds/leds-lp5521.c | 11 +++++------ drivers/leds/leds-lp5523.c | 14 +++++++++----- drivers/leds/leds-lp55xx-common.c | 9 +++++++++ drivers/leds/leds-lp8501.c | 8 +++++--- include/dt-bindings/leds/leds-lp55xx.h | 10 ++++++++++ include/linux/platform_data/leds-lp55xx.h | 3 +++ 7 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 include/dt-bindings/leds/leds-lp55xx.h -- 2.37.3