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: 405903 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2791985jai; Sun, 21 Mar 2021 04:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2H8/nJeRbqypgLFOKzTAq4pUd4/HJbyXSLw9jFMtc3ry2zHIIbC9ukrIKk0wurwNqi6af X-Received: by 2002:a65:64ce:: with SMTP id t14mr18605412pgv.36.1616327032796; Sun, 21 Mar 2021 04:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616327032; cv=none; d=google.com; s=arc-20160816; b=G/lkM4ZWrbPsWHpXmIj4vstrX2uyXdI7JXFjYgcT7+zoGbhxnxOVLVkAsCtAIumnlg flv7O8aRLrbUSQ1BPQNYb3bSfh0Gua/FCaAYNP2DNAUtggqIg3gVKG4aq6UY+MDZxbbl RkCcAQ/vrGT3LH1dY6Qczb/XOuKBDQMcei1LTb/Oh+QUASjNuVm1DSrLmZzDnbkeKSoA FQ0chXUS7DYwWR1/SqoIsTcLL7WQpATsFaS8nvWJxZu08BpvLBoib59+a4oXaRr9NQHL 5jPTgPi4GvA6K7BcTPGNKIGQ+AmMAJKeJpOhNpHlICZPM7AR85Mo2FEEhU+eNdXf+4YS AuCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=xpHkJMawnozhF2hV+cA9aKQhhNHSQjY1864LB3YJLOU=; b=CyongM87uW4XJfLZ7yynQ3Uf+4wWO3oE2/aDEvRq0+rc45g6I99XrZAXcAFLo9/5EC JUC0febVa5syQwrCO5ae8M7JP1zqxNx4XcP7oYQo2hii9vgsfO935nKojD5hKpeuR7Ky kcWt4pwjmrcs1Eq+Mm2swvM6K2yegXO422dFES9aJdhQ7kZAFCMVNlR69na7PzrAqH25 Xwm7FsBJj0SVJEnhUA+32vmkUHsH5ydcxw/amCx9O7wIZcsFcMtE3QpQNcxfwEkehve6 uzhaFAti4Nn2/Xx9LRaUJaEhpY8Iq6o5heeu16DoSHswG90TT8z1HoKRkcH0y+lerac/ qEFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BuUqCPP3; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id g6si11906535pju.160.2021.03.21.04.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 04:43:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BuUqCPP3; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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-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(-) -- 2.29.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel 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: 405904 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2792015jai; Sun, 21 Mar 2021 04:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQBhb4kNISVo9yGg1lkPiJy03Z3BhOd5lvq7+U7A3G3Rq1no5K2WQLfG0vNC/gbPVo4Jd+ X-Received: by 2002:a17:902:b210:b029:e6:33b4:cd9e with SMTP id t16-20020a170902b210b02900e633b4cd9emr21859846plr.67.1616327038333; Sun, 21 Mar 2021 04:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616327038; cv=none; d=google.com; s=arc-20160816; b=qZYlBbsocEaiSh7I6FwtCjXzhfOM0jhCUeRZb5v0bWko1R6dhY1XuL562vmEZr5hIy ibufNetWGuUa0eOHifkWG+vwQPf4UI4YvaZa7Sb9L83Q3jswJnEeSJUoQ2qA2lPbRqei bblAUYQbxmGVcQqQOM1uPM7uqH+4snVpyKyJE4xTpT0Fuq0oCVb263IurLkhXP5KjhkP 0M2Y0Ko48DL1PZt/U3ZB3806/kDzLrLZLvgOWikoRjF+B2mMvDatTacXLDa9MJP9T1sW lAvrdrre0dL6vK/o+wWHTB7zOC4+lL4AZ6TG1Ku3hcFU1eG32pqc/JgP72lAASB4uUlc F0Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=fBpYGNO7xwO0HYKvtznZgpTwwNz+grPA03syeJSxyg8=; b=gR5k6a5HeMhf08jcR/r3Ha9A3OumADVnFTj1klUkqxyUP5soB4wVb0ScOyStX7pIRr eSuwCfJQAAzjb1dtGEhIRYJM9YDYnivSx0gAzanj3su6WneqBpYMNGNRtSPwKu3mJuKC TTs/XYBBupRFmgnAudPcS2LoRd0BgsGknR1foyEMN5+i5xrBdQo9wiqz0Afdtwi10RQ9 qX6QAm92o/ftKTjIY9/0+9h5vhzRq8ovYgLJouLMhQKzXX7WER2YtF9QUymK0tZfAfXT 6paKUuVu/XjjahcnRXpMgpyCNrMMOyGHZNfRu8egVB29Cit/GAnXqCTGNi8XkAa2p26J ANXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w2mzVHFs; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id z14si11035441pgj.472.2021.03.21.04.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 04:43:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w2mzVHFs; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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-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 --- drivers/video/backlight/ktd253-backlight.c | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Daniel Thompson 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);