From patchwork Mon Jul 20 20:35:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 238742 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2306575ilg; Mon, 20 Jul 2020 13:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAOQpdLw8DFa0m4ziWw9oYCBKVvuKMnuOQeRQWYENrxUk7voM2qxp56jFwGe/tHksiddSx X-Received: by 2002:a17:906:cce6:: with SMTP id ot38mr22046786ejb.266.1595277322298; Mon, 20 Jul 2020 13:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595277322; cv=none; d=google.com; s=arc-20160816; b=cKpPE6Railu+WDBsNPX69G5scidFcfvqxdLoKO5YD/7pM5gK14p/GNi3cCu7zWWKbO a6WQ5KsJ4K3ovMGNruj9z8HsvPexrNfVX9DDuIoUk41jd9GBpDkUsQOnoY0i7WcB03PY WXT90d0upj5RdSyM+Why190QXJ+bMmtL4Cd9IHigbyTTKkEixYWtxyHgRh///urzouqc pUGPutY7liwmvSrEpfnTHNqJUHlhrQ3gpVnbxHb5LuqkqwCRmvItqn1+4s0DQcpYCZxk Us8txJeYzShnCwPyikCzFGG3B2Gi92Z5MWu4HSmfm70smPRGzxM2kTwN2XUwfYsdhAfm hTlw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=x2zJYpgDs4IU0fc9VR3TdzhXdQh+0MOJRer0pywnXKA=; b=GRUxbLLqcd9Ra9IKwni3vQIGziQCvRgqcwErf+CICpoLk4hFfz36TC954g3Qb7uaxe oFMewSmLsHqX30DSDR4yk7hugrtxQqfP1SqVdvCg9L6v939FVBj6DZXoGY0m3MVJvLDG 7w5kUbuAN+TDx+Bto+K1cqsax4WafFWwUMXWHPJKUFJ9g35LSsuVvYg2KlwLj9+7d1co 693nxgvRcWYiEPxC6+ebrQeoBm4EnqAj0uKVNUWyX3E6U1jlZJnnNE5rQjA2LfYMwHXU zys6tPuDsYvGcutdXui2ECVWsfdm4EKDmWC6ePDFUzQE++HYAebDnVVheVBzcD/cB8W/ 81Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KhkPtvIs; 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 t22si10968570eje.467.2020.07.20.13.35.22; Mon, 20 Jul 2020 13:35:22 -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=KhkPtvIs; 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 S1726381AbgGTUfV (ORCPT + 6 others); Mon, 20 Jul 2020 16:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgGTUfV (ORCPT ); Mon, 20 Jul 2020 16:35:21 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA2A5C061794 for ; Mon, 20 Jul 2020 13:35:20 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id b25so21674164ljp.6 for ; Mon, 20 Jul 2020 13:35:20 -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=x2zJYpgDs4IU0fc9VR3TdzhXdQh+0MOJRer0pywnXKA=; b=KhkPtvIsDLUNIupaXYNs8UBWIwdZ5u3Ek5KzfJqFq/S0YjXqGAPiLmgJ8ef90Q0q9l zXaUKRTw8YvweSdBStgruLCIAPSNwXiiOKMzP+FUmVd7CdH8+m8yks4w7YQbA735nY1m Dhf9ftDAXtFClaNUWPGxg4atllIYzWU1vQzjQNFS68jYxjRmHMURVEL84OdGJXRjD8A3 i0FQSxlq89LbYuIqg68lCArt8ML/2QEDRwashMf9J5pQxQ5kx6s9bm+weCDzNzh4qu3X HhdCiEb6DWrcAlOQBt/OQjjqRBzPgposiQLdr7rFarZ4M8llrLhhmOkGZCMiM0ItgmBD zt2Q== 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=x2zJYpgDs4IU0fc9VR3TdzhXdQh+0MOJRer0pywnXKA=; b=OBuPxNxP6daYnZQ7Njsi0uoB8cK399KvNPJ2sZxkVcqe2HyUuIYZrakWt3J+Le0gA6 wirHjTLjnnL0toM9LNQs5aQNb+xTGrq07Q83b3I0QqMJvDfUZPpCx8Ciwy1LzkXl3OPf Rxi61NNJSZnUNk1qFps9iFwBnQ2c02UWX/T5iZhmxNXvKsX7Af7w3iLlhJlq6Z8+KdQy RmWuyPWFpjap6R1nOsPXgfzlgkts9Gq7xl97nwCQPs4nLRc6yHpFYDBQcBcKoXzwIZj0 FFe5iWrzKeoCHjbxPe9DAw+mOjOT8CBY30Kly7Vj7HbPmiG0eZqS7sexmGhgpm0tkyJR QbQQ== X-Gm-Message-State: AOAM533rUp+LCtJHZM8o/Ax2zAtU25uqH6DvVH79PZfN5EOrhyVubrQi adeE9PCGVBZbFKemmL1X8W9XPA== X-Received: by 2002:a2e:8718:: with SMTP id m24mr11490351lji.253.1595277319177; Mon, 20 Jul 2020 13:35:19 -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 y24sm3435076ljy.91.2020.07.20.13.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 13:35:18 -0700 (PDT) From: Linus Walleij To: Lee Jones , Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2 v1] dt-bindings: backlight: Add Kinetic KTD253 bindings Date: Mon, 20 Jul 2020 22:35:05 +0200 Message-Id: <20200720203506.3883129-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 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 Signed-off-by: Linus Walleij --- .../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..610bf9a0e270 --- /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. + +properties: + compatible: + const: kinetic,ktd253 + + gpios: + description: GPIO to use to enable/disable and dim the backlight. + maxItems: 1 + + default-brightness: + description: Default brightness level on boot. 0 is off. + minimum: 0 + maximum: 255 + + max-brightness: + description: Maximum brightness that is allowed during runtime. + minimum: 0 + maximum: 255 + +required: + - compatible + - gpios + +examples: + - | + #include + backlight { + compatible = "kinetic,ktd253"; + gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + default-on; + default-brightness = <160>; + };