From patchwork Thu Feb 2 09:23:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maarten Zanders X-Patchwork-Id: 4867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2388:b0:96:219d:e725 with SMTP id i8csp184846dyf; Thu, 2 Feb 2023 01:27:35 -0800 (PST) X-Google-Smtp-Source: AK7set9c4H7t6eBUiWMcBWhWs9O57j/fD9G7xxvumZAdZlPPmg0gcvdJNXWFvVn3mSoxidy9RoIq X-Received: by 2002:a17:902:d4cf:b0:196:492b:d7de with SMTP id o15-20020a170902d4cf00b00196492bd7demr6721796plg.58.1675330055358; Thu, 02 Feb 2023 01:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675330055; cv=none; d=google.com; s=arc-20160816; b=KLjCi1y96IT6s05k6bK48sbYYkW4T089LYAABb9rcTw202YkZisQ8oQpXdfyWgB08g vTaltH13X/UhKqvuJM4/HgUYzxi9YYdBZ0iTvxMAvNwfZSyhp2+Y2gZ30lXCJ/tgcn9K Z/euP/vdGMKK/aE4hE/J1yDDEMAMtDYOPRClIIdvgvpwQBUVdgq6n7c2ZoWw1KNgICtm JwooSUlrCtRXqNWzMSntwmQB9yITbvgy+0ZwXgMgyMpUjEG3Y8fcBBAMcz/8NVO1f5QA apHmqJCoT/QFei9oQ8ejKZ1dhP9TRWg/KXG+LHeTF9/v8xX6aPj6FctgycLp9Bg2Ain3 RtQg== 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=pylWIAOIiR5skZ+1kMPoVcH9WvFuUK+jl3IbeuDoWjc=; b=ygU5Qp2kXPhWDXTY4KdWuaCNX/ezDf1pti+/jlVP6Ps/7XJRBAhTSzcQjie7beS+Je cYgd2yLP0XdIuCZjga12M2L6hjjSAQZp17pMIn0fdUKNbuA8NgRuAJTDG8kmUWkjFoew o2ApycTdutEmruY8zqdEJDVA75p163rFIdy7TwFzzDkwrvPeiEtzo3ihUFAbrMdBXTsw lSLDq84HxnmzBUB2d6iSTY3D7PXJPZEwSCtEREkpE2Qo5eHbGetjM9h78C7GNpByOpCv iw3r8BkDIY7WJZQUk8PtHfqPRd4IDJ+6CxkuZy2p/sbHlQMACECsdi+6b+J6duPSx39e n+ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mind.be header.s=google header.b="JB/kNWdh"; 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 u134-20020a63798c000000b004ec01adcfafsi10107372pgc.584.2023.02.02.01.26.55; Thu, 02 Feb 2023 01:27:35 -0800 (PST) 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="JB/kNWdh"; 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 S232094AbjBBJYB (ORCPT + 99 others); Thu, 2 Feb 2023 04:24:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231977AbjBBJX6 (ORCPT ); Thu, 2 Feb 2023 04:23:58 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A9A5421D for ; Thu, 2 Feb 2023 01:23:55 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id hx15so4070351ejc.11 for ; Thu, 02 Feb 2023 01:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pylWIAOIiR5skZ+1kMPoVcH9WvFuUK+jl3IbeuDoWjc=; b=JB/kNWdhKyrzvI6OOcUBul4X7b7Gc8XUGhuDDBnhnXc6sj9ZwK3XOlHV504iRfRWcL bmDhDvWLSDGfkW4W9B3YXYrGYs5fJcKPzNH3eEbulmHOJkryhXG+g9YIenQBjmI9WdFW sEPPjIxxc1z370K/kWS1JcUQ++P4vftF93fLBtCYX00XEfsLJpJVHQPfeYnYmTiLdKlb /lLhZB9rd7touERwPcjW8TA6iiAz+Srwyj5eR76sT2ls2EyoGOk15ividhHpthXpiwn8 5f39fJHSwwUaColQDN58sfEZHhtWIVviD7fJlce0CBTwf/7/fQQixTluQEKXec9VxF5Y n4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=pylWIAOIiR5skZ+1kMPoVcH9WvFuUK+jl3IbeuDoWjc=; b=WOifkIUTquDFP0fCJ5Y4yM5Zt97TASKQh2zRLSIN5V3W3X60/UN9cgENBwamrkhGAp +uk7YAg8WpfvVRkuHSFGeXgfw7cB8iTzahs6SwHJ9NYgWBR2G/LLaiOspG/FuzyBoiqu J6fcEylFQ1j/nd/kjNBuelpbGmnXbOatoMJckryHWWKDbOsELetRXGsHE7O9K5az58aN fPCYZhlfaeFHqgsZCAx9fVEsJKwM5A9dpGEWwlGhsiRY9oHOYCrD917qjjxVdRc3F43p db4+Z+l0RXCEKYjk0nfxvnUvK8zvEO0PXunLR3DmZmVvmW8O/ccyYM+JuZzZTzUkN5ac mHrw== X-Gm-Message-State: AO0yUKUhJxHbpCczQ8XHPiLUZlehe8nhuKUYrivJSqTjGRdfkKs6PWvU GXEV9jBUMf+/8AqKzCsA7Y/sNQ== X-Received: by 2002:a17:907:1607:b0:7d3:c516:6ef4 with SMTP id hb7-20020a170907160700b007d3c5166ef4mr7261465ejc.20.1675329834223; Thu, 02 Feb 2023 01:23:54 -0800 (PST) Received: from dtpc.zanders.be (78-22-137-109.access.telenet.be. [78.22.137.109]) by smtp.gmail.com with ESMTPSA id j4-20020a170906474400b00856ad9108e7sm11372658ejs.70.2023.02.02.01.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 01:23:53 -0800 (PST) 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 v3 0/2] leds: lp55xx: configure internal charge pump Date: Thu, 2 Feb 2023 10:23:23 +0100 Message-Id: <20230202092325.21241-1-maarten.zanders@mind.be> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756710888225541385?= X-GMAIL-MSGID: =?utf-8?q?1756710888225541385?= 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 (this version) replaces the string by constants. 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