From patchwork Sun Mar 21 11:43:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12152957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB153C433C1 for ; Sun, 21 Mar 2021 11:43:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7FEC86157E for ; Sun, 21 Mar 2021 11:43:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7FEC86157E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F1E546E1BB; Sun, 21 Mar 2021 11:43:48 +0000 (UTC) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8111B6E1BB for ; Sun, 21 Mar 2021 11:43:48 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id f16so17584138ljm.1 for ; Sun, 21 Mar 2021 04:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yC6sQQpeQv3wXPmtPXFBTvqQOQNp1qqEx00Cra5b8ho=; b=BuUqCPP3xC7RYch7SvgeAfdPBSSG7JYM9Ky6w5s1R5pn5SzbghNf3X0OCsDyJdD7FN gN2fCD5iLmuM8/pEqlGvtmj5/Tl9B0EZsr7HNLQVRrwPCtFG4ArwLXdKEt3aO74UPYn/ Z42yLdpSljo4Dkj9xnnPEjAjfo1/tSFMQG++pOZfYV7F2424jOTMnfZYuE3DFJtXOde/ N9eakYFE+btBuNRksbD++mfOxRlILtcQCGzUkfgdyLJ9zYeS+1nliDDmpQWlDy0Uasi9 CXEe/mW+dE6TmgQRBnRQTOLAWpqbOH2MFPq2GIzji5Z+vQq2gydFcVyTlvs8PNfS0p5A HgLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yC6sQQpeQv3wXPmtPXFBTvqQOQNp1qqEx00Cra5b8ho=; b=Xc2Arv7KFRDb8urjSxO1pqp4+0PwyAgg/tRDUiYLiOaB5to/BKv2OT24I8zImvq4Tp i+XNlz8UrIlByrkJWV887kIsSm2IO3fXHA90QpHaYZjWtYH5xEllhA83VtqpK2qOdMgU 3Z/oaFOSkt6smx3XdC99Z6iTbX+ae9g05oxqBqNJ0y34PrtvIoxyTvUemfgFM+iYPBUP bcZWzY02UYJfFaYIEW+K4MhptNde6UoRQs2o1YbRHh0WRikqgJwDB8T+dUQw5Lmcsidb myrVAR0JNHeDki9Pfifol6OIjsk9p5S5oB9UkuRB0997uPskvgRPzvSsFnCHsGjw7S+y KDrg== X-Gm-Message-State: AOAM531ZI66bDCpgKC8CCchkxjRHcOb5ZNUnj+tNhbqU1Qu3gCBSjPMn citKPmBL9VsExERuhqDXhqAr+zOny/+IM81d06g= X-Google-Smtp-Source: ABdhPJx+/D6Dc8OB1Qp/wtw7IjZEKSpZ/IjzNXq6nkRD6Rxn/6cHI6uAaBP1n1k3i/okhcda/1KYjQ== X-Received: by 2002:a2e:9d8f:: with SMTP id c15mr6507117ljj.494.1616327026901; Sun, 21 Mar 2021 04:43:46 -0700 (PDT) Received: from localhost.localdomain (c-d7cb225c.014-348-6c756e10.bbcust.telenor.se. [92.34.203.215]) by smtp.gmail.com with ESMTPSA id 197sm1484419ljf.70.2021.03.21.04.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 04:43:46 -0700 (PDT) From: Linus Walleij To: Lee Jones , Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] dt-bindings: backlight: Add Kinetic KTD259 bindings Date: Sun, 21 Mar 2021 12:43:40 +0100 Message-Id: <20210321114341.944696-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The KTD259 is just a newer version of the KTD253 and works all the same. Signed-off-by: Linus Walleij --- .../bindings/leds/backlight/kinetic,ktd253.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml index 7a6ec1f8c0f3..73fa59e62181 100644 --- a/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml @@ -4,13 +4,13 @@ $id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Kinetic Technologies KTD253 one-wire backlight +title: Kinetic Technologies KTD253 and KTD259 one-wire backlight maintainers: - Linus Walleij description: | - The Kinetic Technologies KTD253 is a white LED backlight that is + The Kinetic Technologies KTD253 and KTD259 are white LED backlights controlled by a single GPIO line. If you just turn on the backlight it goes to maximum backlight then you can set the level of backlight using pulses on the enable wire. This is sometimes referred to as @@ -21,7 +21,10 @@ allOf: properties: compatible: - const: kinetic,ktd253 + items: + - enum: + - kinetic,ktd253 + - kinetic,ktd259 enable-gpios: description: GPIO to use to enable/disable and dim the backlight. From patchwork Sun Mar 21 11:43:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12152959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50243C433DB for ; Sun, 21 Mar 2021 11:43:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB6C86157E for ; Sun, 21 Mar 2021 11:43:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB6C86157E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D18976E1CD; Sun, 21 Mar 2021 11:43:50 +0000 (UTC) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id C4A2B6E1CF for ; Sun, 21 Mar 2021 11:43:49 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id o126so7390093lfa.0 for ; Sun, 21 Mar 2021 04:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DZAOWxxQmGAQuM4XepxTafRxS1Q61Cev/HyKLtTHaVA=; b=w2mzVHFsGABvESXvpg62uBCxQAmrg578CvIcCYxmH4LrQtSeP3aBLEoV6Db2VU6JnB MHJ+QMjK4sELQNu7le+Ci9m41YnS5OPPA79tnsOpbDMdPkT4iWtELnh++YaIqno+9yDh isigyg+dqtQQ4FkyWb5cit/ZgrvRHf2EHSJsGRgKb6j10O+dWEBIjpUseXjON+YjKRai C52PRcjb6oiCl1BBlVh2VSK5bUqyt8z+VTRrksEjrkhlplomczGbgjU4v7TzCH9gIlFT IwrHjGJnv/XEnf6+a5a+WhmB5NfFjvtf7Of5zfZlQKSjZOl9Ly1XySkDQ0NyNaGvfo21 cjQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DZAOWxxQmGAQuM4XepxTafRxS1Q61Cev/HyKLtTHaVA=; b=Z0Howd2oevYjNPh85Ibbu7W4muGYsoRWleWGWhtXBZN6ncyszEfN5tiQLGyCpeTQnP z6knb/LI6ebvj5li0bUWtV3SUjN3djJO0b2rGlGhndr81ah5mb0TySuk66/56erWPCN7 Ov4t7+FLdCYpYFNJKGsfH8onB3pKKuB4uSsKyPu1XepIgvi3zuNjq+WDe5mLgBDcFyib aVsEAhul58hVt+uueI7iLsT3kmNi6Viq43EiGUSUVaSC2H10xsBHjSJMrUHl+Gu9H/K8 w3DCHhOzB+P5D/Sg1RnB4+jCxVEevbEeFbS0WTDaMh8EApkdHSKOjhSTT5Mp/KyL39/4 tSsQ== X-Gm-Message-State: AOAM53113234BcW5TwmMpdm/1JRI6Y/pEqp247ag2cED1tkNrpyP4Yej E1tFNXCRMf1vuhi0rvuuJVZbFA== X-Google-Smtp-Source: ABdhPJxUxJy6LTVbeIScMxn4yaCtVOuNxGvSUtM55uvryyCVgTyNR14MMom62Zkl1vlwXwgt6Wwb6g== X-Received: by 2002:a19:ed03:: with SMTP id y3mr5864228lfy.377.1616327028248; Sun, 21 Mar 2021 04:43:48 -0700 (PDT) Received: from localhost.localdomain (c-d7cb225c.014-348-6c756e10.bbcust.telenor.se. [92.34.203.215]) by smtp.gmail.com with ESMTPSA id 197sm1484419ljf.70.2021.03.21.04.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 04:43:47 -0700 (PDT) From: Linus Walleij To: Lee Jones , Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] backlight: ktd253: Support KTD259 Date: Sun, 21 Mar 2021 12:43:41 +0100 Message-Id: <20210321114341.944696-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210321114341.944696-1-linus.walleij@linaro.org> References: <20210321114341.944696-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The KTD259 works just like KTD253 so add this compatible to the driver. Signed-off-by: Linus Walleij Reviewed-by: Daniel Thompson --- drivers/video/backlight/ktd253-backlight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/backlight/ktd253-backlight.c b/drivers/video/backlight/ktd253-backlight.c index d7b287cffd5c..a7df5bcca9da 100644 --- a/drivers/video/backlight/ktd253-backlight.c +++ b/drivers/video/backlight/ktd253-backlight.c @@ -173,6 +173,7 @@ static int ktd253_backlight_probe(struct platform_device *pdev) static const struct of_device_id ktd253_backlight_of_match[] = { { .compatible = "kinetic,ktd253" }, + { .compatible = "kinetic,ktd259" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, ktd253_backlight_of_match);