From patchwork Wed Aug 12 08:58:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 247631 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp167306ilo; Wed, 12 Aug 2020 01:58:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJGyTJ5TDHrLHzgppTM+5CI2arQc/9BZ+bXkR9ge59RXU0GFSwQf2rry18gUHTi5a6alfS X-Received: by 2002:a17:906:4a07:: with SMTP id w7mr29407710eju.269.1597222739314; Wed, 12 Aug 2020 01:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597222739; cv=none; d=google.com; s=arc-20160816; b=URTo2/4OdsN5jVKu+URRcu+6rmZMasyrHljqoLvz5Cpo4OC6KD+Kr93OdaQFKxwmh2 MfAS41rZjxaD3z0vNbcxj/nDivQBHoUyVjuruc6DXKAE1fxt68xSdppXcZVKW6ecryZf tl/E5yK0CQXIUINi5NQ6ShmmITkG5qNMsBPTXboqwUKYKvaczWn1tsLfDp9unRfgSbti G267O0TKRyhyfsTf4LNM1UPLs9JQtSSGCiKwoQNwXCPXaslYMSeFyoDNKBpY72xaRG2N LDQEXiCIc4cenqsvTbv6ZpGdozK4Nq0RiMMawVJGR3AuD4g89KzJTEYDOQGjjoqmoRfp kioA== 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=XR829pUP5cLChd4zqV/cH8aq566vZipy/8mJiU3FYTY=; b=XlRXqTI1yF1GGdW5W984n/Hs5og1LJQiazEc/jG2UkxTqfEBhYeuY0Zx1GBdVZ0fLM Yfc/wwdvQdsV3VZp1fIiZqQEiC0b9VNAm/bjo/vcF6YVfNgUpQkGSkNWop4zhDUNgbC0 lul0B0ZX5A/5pe+VfYEHtvRF79/risslCB188TJwSC6XkTsIfogRHAYzCb4yQP/BFa7p RVF7sUhjXkwZzRAqkbGh1aJvPyVjaePU6WXn1D1YXldZxSCqQR7mdnKIA2sABnd4adVF OCW07QxCZ4TxEuMdjjhKOrrKKV3NXL60XwdJ+jxxLvbeEdiqg5o3s8tHjl+OallLBmm3 RDLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mKuImcfj; 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 f10si749888ejc.652.2020.08.12.01.58.59; Wed, 12 Aug 2020 01:58:59 -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=mKuImcfj; 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 S1726601AbgHLI66 (ORCPT + 6 others); Wed, 12 Aug 2020 04:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbgHLI66 (ORCPT ); Wed, 12 Aug 2020 04:58:58 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6C7C06174A for ; Wed, 12 Aug 2020 01:58:57 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id d2so763917lfj.1 for ; Wed, 12 Aug 2020 01:58:57 -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=XR829pUP5cLChd4zqV/cH8aq566vZipy/8mJiU3FYTY=; b=mKuImcfjEOJa5U6e8r4Oy2S/3g8vafL/gjV+IfgGp/8JPqvEEUDaOZ0SiUip81VNwg +3xBN84L9ziqvJPujY2o5pBMUYAEcTCuMLYgaxjkulnLjtLX2BvvirHb4yTsjwIX1VsO dRLr1Agaoxh93uPOXsl0oKVMAAVDjBwW9RoQwC/A6XKWCI1ZWSgoRqheqTxfN14x7/co n92xE3RLiemHvtTUq42uOXq9rhFY4iBPuTowinKxanXqn5eKtRSQltgnAIv0QdYcxx1J ojeY9NWozkeN0R5Mm+jhlJbEJrJndAvuhBYiXuLvme0yndR0bd6qHOFIh9k8LM6cj8wU 2L7A== 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=XR829pUP5cLChd4zqV/cH8aq566vZipy/8mJiU3FYTY=; b=KGk8uabBB1GH7bQlvR5Bi00lSgmcEd33FqClgkK6gRVqrxOX/qzubPg2GourL/Wwi3 5M431klTGFwZFSZnEvsUciaJwH5A4CXjH+m6cjKEyn3Rp4EUQYCiYjQXjDTCtS3HrIJz DzZXV+a5vh1QXZ2ecbrKaGmdh3I4khyAFPo0MxYJKKcq3F5rrTF9kJW4hicr0i1lbP+P KuSk0MAwpxoFvnqISIiXIqvw2dLeGPsVJEihqIZOcAtxyCNHPRFZERNaHQo6weyxMiQP SciXMuurKuDewOZcFcZzztmYxIN/c7oXTub0V7xILZrJx3snQe1Wc3+dPAg+xpvsaE8O wjmA== X-Gm-Message-State: AOAM531/emutjcYbduHoPHdsttigOz+Rvq1lPo5qfGTHxH43k3S4Fd7y qMGQ1AAtso73DMSGPxmOau3e4w== X-Received: by 2002:a19:814c:: with SMTP id c73mr5043801lfd.16.1597222736269; Wed, 12 Aug 2020 01:58:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 01:58:55 -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 1/3 v2] dt-bindings: backlight: Add some common backlight properties Date: Wed, 12 Aug 2020 10:58:48 +0200 Message-Id: <20200812085850.2643820-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 Let's use a common.yaml include for the backlight like we do with the LEDs. The LEDs are inherently incompatible so their bindings cannot be reused for backlight. Cc: devicetree@vger.kernel.org Suggested-by: Sam Ravnborg Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - New patch as suggested by Sam. --- .../bindings/leds/backlight/common.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/common.yaml -- 2.26.2 diff --git a/Documentation/devicetree/bindings/leds/backlight/common.yaml b/Documentation/devicetree/bindings/leds/backlight/common.yaml new file mode 100644 index 000000000000..8ae7e3818b0d --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/common.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common backlight properties + +maintainers: + - Lee Jones + - Daniel Thompson + - Jingoo Han + +description: | + Backlight devices provide backlight for different types of graphical + displays. They are typically but not necessarilt implemented using a white + LED powered by a boost converter. + +properties: + default-on: + description: + The initial state of the backlight can be set to be on with this + property. This is a state applied by the operating system so that the + backlight is always turned on at boot. + + default-brightness: + description: + The default brightness that should be applied to the LED by the operating + system on start-up. The brightness should not exceed the brightness the + LED can provide. + $ref: /schemas/types.yaml#definitions/uint32 + minimum: 0 + + max-brightness: + description: + Normally the maximum brightness is determined by the hardware and this + property is not required. This property is used to put a software limit + on the brightness apart from what the driver says, as it could happen + that a LED can be made so bright that it gets damaged or causes damage + due to restrictions in a specific system, such as mounting conditions. + $ref: /schemas/types.yaml#definitions/uint32 + minimum: 0