From patchwork Wed Aug 12 08:58:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 247632 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp167343ilo; Wed, 12 Aug 2020 01:59:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvLLJVgOE2gJ2RsIMsVnyJknA4xNmhRPWfhTtPvJuyfsxRFPk96r6gShU6l1UF7CUSVluL X-Received: by 2002:a17:906:68b:: with SMTP id u11mr32169831ejb.143.1597222744128; Wed, 12 Aug 2020 01:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597222744; cv=none; d=google.com; s=arc-20160816; b=Xk2CuaRfefXGjKK7qHT906v8TdzjTHhHoTxmGUdpyWMcMixNWI3Xim5JBi/iXV9yFz Y8ztVJ1wW7VIV0fX39NohDzlh+bYe1jHJr9R8GSFp4sSCbZLmSEbd9/a5f+rfsHHw61C Jyohpi7h3CcPopSjK+4r9BGtg4rXDEBAG6OyYLQLcabNj5qm8YQeqfqeX8l65OjmG/gO N9kbFNJrEr0Yf1w3eM9gt+jgF0lwKXDeQTm90p3dQXKPnfWtyL8eFLXq+Nw9Y7949vdw hkMVG80zz99ezY+oSZ89yiuIiIMgg0u5McX+Y6FUg0bGF862HpZsG2fepB86pEp4cQi9 +abw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r3OkcCRL7MqoBL5xlT//nFVOTrvwkEqxrrABannpZUk=; b=sguxHP4PDmPcjANtPzSo0Q9sKiQnGhWHkNghNzsWKehSyMqy0B0wDYlmfU1+48dSYK BSKBDOEa/twrmcz/NWuKb7UXijDf/YFrW+ItoW2xnAzzVJHyx0bFAFbUfjbO2eUiV6UJ kxJns/lftgwg7SJxeiHusHJ/2ovvQZWe4fW3iiUCJ9qWWNqLGh6/9GCE6gBvhcJQxujo j7a/ht+iCIlneLwwKkepKdZC7oybU2L+i8buxIrx8Z1Tl65SIp7RXDLKPNtrXIHbrelF i4q2CyAeNJKywYG/0Gegr+i+m1uqlM7327/mEoDfnlh+QZM8JYm7Ge3C9gDZGv6K2qXt hFFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=viBOK34v; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z94si1145446ede.410.2020.08.12.01.59.03; Wed, 12 Aug 2020 01:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=viBOK34v; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726595AbgHLI7B (ORCPT + 6 others); Wed, 12 Aug 2020 04:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbgHLI7B (ORCPT ); Wed, 12 Aug 2020 04:59:01 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7AF9C06174A for ; Wed, 12 Aug 2020 01:59:00 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id t23so1384546ljc.3 for ; Wed, 12 Aug 2020 01:59:00 -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=r3OkcCRL7MqoBL5xlT//nFVOTrvwkEqxrrABannpZUk=; b=viBOK34vTfDKsrR+xt3ygb+l9eq6m1AdCnrWwi6eVuJtpRgu3PZx2QLv2oh3vpDuLY m6o7ISyRqr3b8U/phrDB11xintLMnuYwkcfiV6HOoXxX+9AB+sRHgQiVL/GoLGVauGuV eMojLcq3AwEbmJVkEgM6WbgzVsJjpzocYSm1e6PlXWpTJgIY0+sTSPBgqDn5mv7nSa2t KOLQH71Zem5nq5UHvCrIWWoquss/cU3MovJHLwijnrW7Og38TSyjXgbKb1n1oyMxHcFN Y5Px1rfKFKFE5bXniCz5sn9ksCoPr01UwJfApeCFFqElUIJ3L83FLb3b4FAcOptSdu3d rPeA== 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=r3OkcCRL7MqoBL5xlT//nFVOTrvwkEqxrrABannpZUk=; b=pq3KMFzvvl+9WYyUrrgF+tBHqWyiwQb15FRgaB5zQ+DP/uepl8hVUCY28Pwi/1b6SN wJiG2PDX0H6O2Z+eED7BuOeM5xfscfnfzPFd9J1kapqhIRfMs1kNyeYsxFeTabwblkE1 UWlNDkbiF2ruuyzTqGYYuYBe3ThoZX565Sui4MzCgmlVASKu4wKnWVBmZAtsTb7xnU4G qfNMAsgmmCEROqpufePUPeWc/6x+bnQ2B0ZJr7Q6qxTmDDNnfCVoaNjDEy+7fXi4fCTK cyJsc8hM+aPFB0sJ+Z7eTBKzV3fIr74tyoOzXQ/8AyMKHcSKPkt2bLKoPTKctqAiFlYa kv+g== X-Gm-Message-State: AOAM531m4fVfRv4ztBjPIpCaRfuz6uNmrnrN3bXud6PMvEFDvU/EaAx7 X36zsXzBNjUoWqaef6BHvZucMA== X-Received: by 2002:a05:651c:2007:: with SMTP id s7mr4581626ljo.74.1597222739347; Wed, 12 Aug 2020 01:58:59 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id 132sm325676lfo.16.2020.08.12.01.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 01:58:58 -0700 (PDT) From: Linus Walleij To: Lee Jones , Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org, Sam Ravnborg Subject: [PATCH 2/3 v2] dt-bindings: backlight: Add Kinetic KTD253 bindings Date: Wed, 12 Aug 2020 10:58:49 +0200 Message-Id: <20200812085850.2643820-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200812085850.2643820-1-linus.walleij@linaro.org> References: <20200812085850.2643820-1-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the Kinetic KTD253 white LED backlight driver. Cc: devicetree@vger.kernel.org Cc: Sam Ravnborg Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Create common.yaml for backlight as suggested by Sam and use that. - Rename the GPIO line "enable-gpios" --- .../leds/backlight/kinetic,ktd253.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml -- 2.26.2 diff --git a/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml new file mode 100644 index 000000000000..e17f45a2a6bf --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$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 + +maintainers: + - Linus Walleij + +description: | + The Kinetic Technologies KTD253 is a white LED backlight that is + 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 + "expresswire". + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: kinetic,ktd253 + + enable-gpios: + description: GPIO to use to enable/disable and dim the backlight. + maxItems: 1 + + default-on: true + default-brightness: true + max-brightness: true + +required: + - compatible + - enable-gpios + +additionalProperties: false + +examples: + - | + #include + backlight { + compatible = "kinetic,ktd253"; + enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + default-on; + default-brightness = <160>; + };