Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp945747rwl; Fri, 31 Mar 2023 04:51:51 -0700 (PDT) X-Google-Smtp-Source: AKy350aBOGoAR5WePtcokp7C8Hc6F0lJINzMQVSH2pHa4szzA/mqG4U3nsXehl7bnR7JUJz9k49W X-Received: by 2002:a17:906:74c3:b0:933:fa42:7e36 with SMTP id z3-20020a17090674c300b00933fa427e36mr4278877ejl.5.1680263510758; Fri, 31 Mar 2023 04:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680263510; cv=none; d=google.com; s=arc-20160816; b=wLARIKoZCTJH09MEpHsdCWszt8QkVL3kdDMbqIkJLjduv3KZBWtGloAJFwQKcyHvTy JNIW/5D0yV5UlcOQL+F15bN3CajevOClMAm9MZ5upbABdRl1m4ea+9PXR3xkK0rNfayG lesDdoRxgzmx38acSqkSIJTD9RS+O7T41NxPxjIjZzGrpMRVo5BQdpvkLZMsF/HS/Mb8 DMhIdpmAqRDvVBz4hC4oW3C2JLTmn29sCUtf/kF8XugPkznkwXynDawyg9eIjDbJdA7g NcY5ylQ3rbGbpWCuGvfxy8Y/wwp21RzjhVlCxXWiQrU6rrOj9i56OTbN//0Luj5Q6KHH Kh2g== 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=2YgtMY8rBbFDXVJjPME76ymsc8nBCpDUqB96SgLmnX0=; b=EB01F1eoDdNp3Eak/HBfjx4B9AQJgwrGNz/j1NlguxowhYyOoN3u9kffRyXWU9jvJb pS8ezmkKdpEKqI6HrQxhFZ4Bpt7faood2g9Pirb70UaDiaNmKmwzpgzn9YFzLlzUZ6Rp boR/zNEZe3fySKLK0V52KSEe3IWwABKM4wOizSF/rvWjkfvp4M7yzYzqZp0kSUh5CCWa 3VX2iQUkY9y/J48f4nH8eQIv6dZ0wG1wruSZ5MejOWuZN5B3FdMYiUbV4ltB7OEXgFgB n5W4rQjgGiOcfQInQ78ggwRfOL1XwzU50LGghoKwhF+sOjzF+0eHXkLF7UtXI02zmapg jLnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mind.be header.s=google header.b=MB9rgx3X; 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 w7-20020a17090633c700b0093b5bf364c1si1817050eja.987.2023.03.31.04.51.21; Fri, 31 Mar 2023 04:51:50 -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=MB9rgx3X; 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 S229967AbjCaLq3 (ORCPT + 99 others); Fri, 31 Mar 2023 07:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbjCaLq1 (ORCPT ); Fri, 31 Mar 2023 07:46:27 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D191246A1 for ; Fri, 31 Mar 2023 04:46:23 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id u11-20020a05600c19cb00b003edcc414997so13668836wmq.3 for ; Fri, 31 Mar 2023 04:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; t=1680263182; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2YgtMY8rBbFDXVJjPME76ymsc8nBCpDUqB96SgLmnX0=; b=MB9rgx3XhD1mfFiXKUGIW3KhFITgeb+tY0pPl5VRrhpIR0dlmMfO4uJ1PcZJUDoGKv 93eMs1YJoDKjlFCFsXB96OmSQXUO+gHr1EgepyHZM1g/tHnNzgWn/ukOtc9/wodqN8F1 UkiyTFi80AiS4leZuxkoIc2ygYvqSAKKNbNwZEeNt7efMxflB0k+tKPdQrcixgQz8So8 miM4bQ55wuzxfclz2eK+b9t8WdWY+ngUERXNIeuaiOJDBbfY0eJAsCcLtdNkmmv2u3bH Uf5sgScMIm9alve0IT59ltkV2eVorsZZ5+IYNAYLp4t5pV7y3y2/18yRzFaWApUJIJMd VKfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680263182; 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=2YgtMY8rBbFDXVJjPME76ymsc8nBCpDUqB96SgLmnX0=; b=BQikkKvHNiTdrA0U356HPlVKmTvi+I9qmnfverWRlspgs7V0NRH8IeB8zKVw4pSRAB YtDoPlrdekaL6H3SgpMjQezdEk47UQmarw1uS+VsdaPY9jpCZgRUVApsB8S/97GpBgWs F/CRZrRuHKUMXU/+m6dW8tVdlTdcG+Lq6qxoKascGh9Chzl3KB7aL5+dIFL7zlKTfMnh 6joPAJ7RJ87KjRqlTrXXiIns35IRf1Q+kZm7kABF4xJ5NLiQHLToYOrYj9QPYvKHMai2 zVSbS2mealYx+yCtK+8SJ7GOie1yGKoMkv98SuCCDhA9DyMmMkHYYSoEzaVhm5Kccw/D uD/A== X-Gm-Message-State: AO0yUKX9E/D0bqTXKB7okyiuIalL6eH7aNbClhQvop6N1wZvXMIs1KzW 8acJJdn1boOxG4FC2Fty+4eC1bnVt/esAyLrpCM= X-Received: by 2002:a05:600c:acb:b0:3ee:4f92:907b with SMTP id c11-20020a05600c0acb00b003ee4f92907bmr19975109wmr.14.1680263182009; Fri, 31 Mar 2023 04:46:22 -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 s17-20020a7bc391000000b003edef091b17sm2404017wmj.37.2023.03.31.04.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 04:46:21 -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 v6 0/2] leds: lp55xx: configure internal charge pump Date: Fri, 31 Mar 2023 13:46:08 +0200 Message-Id: <20230331114610.48111-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=0.1 required=5.0 tests=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: 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 Maarten Zanders (2): dt-bindings: leds-lp55xx: add ti,charge-pump-mode leds: lp55xx: configure internal charge pump .../devicetree/bindings/leds/leds-lp55xx.yaml | 8 ++++++++ drivers/leds/leds-lp5521.c | 12 ++++++------ drivers/leds/leds-lp5523.c | 18 +++++++++++++----- drivers/leds/leds-lp55xx-common.c | 14 ++++++++++++++ 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, 60 insertions(+), 13 deletions(-) create mode 100644 include/dt-bindings/leds/leds-lp55xx.h -- 2.37.3