Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1976504iob; Thu, 5 May 2022 12:15:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmsrwbJoMtxRliLFdar5wl5pM/WUmXaUF8ueX7NtHnXkDBUekNAPkJiONzXkA9hlIm/Dh+ X-Received: by 2002:a50:ee85:0:b0:428:2648:bc1f with SMTP id f5-20020a50ee85000000b004282648bc1fmr8304294edr.183.1651778121469; Thu, 05 May 2022 12:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651778121; cv=none; d=google.com; s=arc-20160816; b=viUZESzNK/woeYxI5zHYlvq0ITZqj/Xlzm/YvKs4PliBPZ+gFrqkW20y1gB6u8JQwH 7iG2MYaYope6QZPtSdmQH+oaWerqWG94EWpuToe2MUpHzrNvWJpDO5JllsHmBwX+pkRr j2pGIgEMgJm03sep3MqsghmDJ8L78eu5o5MiBworaQ4CJ+Lr1lKXzsGeFX8PbMSzqRlh YAVp/PxLj3ME4fgjeoc/7REFR46LCL/h6crZcso1oT0iVEkwm34y08t/Eet6uVRUIxkP ORe5GtkzPliOIYlhAS/YmoIubcwhdMP4JMw70AZS+VFX/WuxOK+shXEWG/xUAULYHxKC E2wQ== 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=OtzdCLQ1sMXip1wJYQTCTJSMcVxnPKUWI694G3NFHYs=; b=FuzVYVX2OdKop1x2xNicNex8s3I94SFvy38hp8f0nvzul6y2xjw4cPEUNWJzC9Cvng lGEQwt0yDwpmrkyKcVL8Odb0EbxAWvI58CgE3G5elkL0wv0sffHGB0YZbxCs5YFq/EoS 2nlLAMZE8c4p1k+J9IeRHTzdQx9alzsO6RWRHr3FVxU3+Z9fjMPRthNDwn5M116Pe0nf 18Eccyd74xzueGPlsXB4tMku7MKwgn7JVmGAObZTDRB8STjuqfRbk9EGaHbTmg1b5WdY 4L5Dfi/97M+JQbLOZkBMszmKQYIKVYLlTr6uEMYBH0kG+3DgBgQHQlgtqXtujiToEz0D KRFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="QF6KL/3Y"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a1709061b5200b006df76385c62si3006627ejg.258.2022.05.05.12.14.57; Thu, 05 May 2022 12:15:21 -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=@gmail.com header.s=20210112 header.b="QF6KL/3Y"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352674AbiEDPnp (ORCPT + 99 others); Wed, 4 May 2022 11:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352614AbiEDPmC (ORCPT ); Wed, 4 May 2022 11:42:02 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BED7C165BB; Wed, 4 May 2022 08:38:25 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id j15so2588220wrb.2; Wed, 04 May 2022 08:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OtzdCLQ1sMXip1wJYQTCTJSMcVxnPKUWI694G3NFHYs=; b=QF6KL/3YVxfI4tf1KSfxllilhSSRMCc+0qW7eYARjEJ8W0X4GuaRhErkXsYRmMUIKD QRAzVYg/mi1u530dbD1YaQdlXveHquKCJVq9ytiQQFyjK84Oo5rvziZg5pJLcib3CkEr aEmfb7ZVvX3wtDemSXO88gPnCa9DYZS/OcCwH6rSBFx9iySklqAcpVRhHNF8cTec3uD/ 8jYzQbcL0dN+9CQ5ZxzIwoCPf0XUqOLmLyQVmMh9iamAA8huL7/1+k1+YKXJpESk2tEi gBkVLla254GDSd9Y3fzxFpEG/9mLY/ysH0QwRGhpq4MG8MbzKzcDcxlV0yx5DJrODt9d 27gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OtzdCLQ1sMXip1wJYQTCTJSMcVxnPKUWI694G3NFHYs=; b=gPpve8RFQHspW9AylbnUZRBFQVdd/1bpEJhcjykLcnK6eCYcxI5yGg6AacaBr+hi4g sK4HjiEyx4vez1MK4w4wffJVK8RxEqDzC+BrFupTu8QYV0E5t7sexGvbIe4wCycrThE2 UVyFV6KCJwBMXP8roGl4cNu4kpARWpmVoJbzR9miYS+UMyAbLt+DKqiQ/gB60aoyWU+C bK2MeO+6IwZNfMWHFUvzcYD4Q9GLz6m6sN5Hv7a5UUq0BwJDIbSdWcdv1I09z7eTSQCR YVaezvgc6qW9Au+trlZe3PKm6FdbSy8/XDAnvZNOPC//s8Kg2Ivt/wndAFlfd6O5LB9y 8Mmg== X-Gm-Message-State: AOAM533OMUibvtzj5Bkr8oTgU6MPP4yXnfpLx0EII98PgVxaQChZEXcJ xcV+NQjmeAOZCj4faEUC9B4= X-Received: by 2002:a5d:66c8:0:b0:20a:c807:6061 with SMTP id k8-20020a5d66c8000000b0020ac8076061mr16711076wrw.399.1651678704376; Wed, 04 May 2022 08:38:24 -0700 (PDT) Received: from nergzd-desktop.localdomain ([194.39.226.133]) by smtp.gmail.com with ESMTPSA id e18-20020adf9bd2000000b0020c5253d8besm11792725wrc.10.2022.05.04.08.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 08:38:23 -0700 (PDT) From: Markuss Broks To: pavel@ucw.cz Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Lad Prabhakar , Christophe JAILLET , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v6 (corrected v2) 0/2] Make AUX gpio pin optional for ktd2692 Date: Wed, 4 May 2022 18:38:09 +0300 Message-Id: <20220504153814.11108-1-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Some appliances of ktd2692 don't have the AUX pin connected to a GPIO. Specifically, Samsung Galaxy J5 (2015), which uses ktd2692 for driving the front flash LED, has the pin not connected anywhere on schematics. Make specifying the AUX pin optional, since it is additional functionality and only affects amount of current going through the LED. Also convert the txt device-tree bindings to yaml and pick up maintenance over the yaml binding and the driver itself. v2: - fix the dt_binding_check v3: - set the aux_gpio to NULL to avoid passing ERR_PTR as a gpio v4: - maintainership -> maintenance (description) - remove the if (led->aux_gpio) - use devm_gpiod_get_optional for aux gpio v5: - use ret to pass a correct error return code (Christophe) v6: - use PTR_ERR properly (when IS_ERR is true) (Christophe) v6-a: - ended up being a mess, corrected-v2 should have proper tags now Markuss Broks (2): dt-bindings: leds: convert ktd2692 bindings to yaml leds: ktd2692: Make aux-gpios optional .../bindings/leds/kinetic,ktd2692.yaml | 87 +++++++++++++++++++ .../devicetree/bindings/leds/leds-ktd2692.txt | 50 ----------- MAINTAINERS | 6 ++ drivers/leds/flash/leds-ktd2692.c | 18 ++-- 4 files changed, 103 insertions(+), 58 deletions(-) create mode 100644 Documentation/devicetree/bindings/leds/kinetic,ktd2692.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-ktd2692.txt -- 2.35.1