From patchwork Fri Apr 21 07:53:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maarten Zanders X-Patchwork-Id: 676060 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C928EC77B75 for ; Fri, 21 Apr 2023 07:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231382AbjDUHxP (ORCPT ); Fri, 21 Apr 2023 03:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbjDUHxO (ORCPT ); Fri, 21 Apr 2023 03:53:14 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA17C8A78 for ; Fri, 21 Apr 2023 00:53:10 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-94a34a14a54so217927266b.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=dN+QR/6Bb4FnjKjPxMitwHp4yiUsKO/fpH19//6SabBfIkabMnvBOcNdp4gp4TPGUN C/fI7gBMp1VBIvfJPwKDdhG7h6A/9QjF44Q2s4XU0B2UmCQTYfNwIiigytCPqjMnf6ho A2jChqUDcmgt7CVyhwianErH6wqKakjFGVVgRzWUUPrltMzuvpHbXKwtH1odC0tlG/j4 VyjeBQu7Gh0NKi9MZbmOnnOBZL3TSEl314Y9r+IgW2qeQukSxGBvqvfvXeXZ3qHHI3NP XYolmCfTVLvDOxUNMBAz67+1/+6/2aLqJklkuoFQVysqJnJFpfCySLfpAJA+IMzH1GVI blVg== X-Gm-Message-State: AAQBX9fbBrhsAl2ptrlfuYe47GPqC+vI+9cW4Mg1ofwtPLk6Ouwq0U43 6np8P5BBI+fK9/eWWUD5IWnHNAPRE6c3Zkguk50= X-Google-Smtp-Source: AKy350ZrPOyb5gNqJDCECrzhUNI+s0cndb1LmsWNk9uyVe6i2HFgL1SS9e2xdOpAxGc2SwfEA3auVA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-leds@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