From patchwork Fri Apr 5 14:28:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 161867 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp506592jan; Fri, 5 Apr 2019 07:29:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTyvafxa/zrLdb5rvzDAwe/Cnloto+nrhhs6faMCYu1SnV/ErQP/VN0q6p5+TFCmxoJe7i X-Received: by 2002:a63:c944:: with SMTP id y4mr11929206pgg.257.1554474545153; Fri, 05 Apr 2019 07:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554474545; cv=none; d=google.com; s=arc-20160816; b=qKRQBP+B+n1hR3EAn9ak50vzTpfgFvf1R3Cab+ylPLAMd3IDgTXff7d2wS4PMcLFtT Ra8Mag+PyTRNeLjKoQhqKoG8drQ4P6EhMCbBb8HdX6EmFIKG+Bv2fb4xBmE/o6FfnnXv EnhpNk5knIIf/mw1KtgIOBCxM+8jDRNCRneIbE3uY/I7idU/bfSghjlimLlL7Ku+HAHx ke6jazPQVpk7xePTt8zUX+ecu/tJxTfT7rGKC32GAmxSWd1npsHafnlvR0VucQie4z0N 2jUbfoCgW37dQMsNcU150zuaJEDifhh0Rw40Yhnb12TLZx5RGCtSWLCdAa6hpLmDWBCl QgEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6eVDAnS/2+3xqohXvSibJXxGj4O077fv/lz6wFUD+zU=; b=y1XSwR1+VaHhthY/+WpM5J62F0EIB0ojG6YIvUHK7l2KhulHxk14YPl9737Ygx812K aBm9XUP/8/BQdFtIXOth5WgGXUPicAs2WCsj6qtyzsSHEAZopo7EOPu9cpEvXh2SjBcz LxDAtUcQuHz5ZOmoKnLZs7c4qD6/FkImAzZ0PdIrm5Q1AI1i/Fj31wlSljZFkXWfW56i jrK5XCNYTtNRHfUgF11A8ANcTdt70T/nzxXJB0utReg34fmC/lV71I/w0EuDGkvqxwKG 7vXB85NmgDGWGGimtuDKz4vtBnXPHIqErfsrHUriTKGTcMsL7mtqDnwAK1EpgOowQe2D hGCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JRf64rzU; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si18563327pgv.25.2019.04.05.07.29.05; Fri, 05 Apr 2019 07:29:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JRf64rzU; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729987AbfDEO3E (ORCPT + 1 other); Fri, 5 Apr 2019 10:29:04 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35916 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbfDEO3E (ORCPT ); Fri, 5 Apr 2019 10:29:04 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x35ESx4s017735; Fri, 5 Apr 2019 09:28:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554474539; bh=6eVDAnS/2+3xqohXvSibJXxGj4O077fv/lz6wFUD+zU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JRf64rzUVp2jgNiQxuVDquXx4qJ1xOj/B3GlQ4TFKPYnv/eMjVFo68mLqSfdrEcr2 DhubxmgecBsrCY4kQa9MsrrJe9MJ7MvLI8kOdV4x4O9nZyE1IakSnAyVFYTjzkJex1 VXnj5jZYMht5x+jOlCwT8He+Vvy12TqkUyCOMNhM= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x35ESxEV038969 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Apr 2019 09:28:59 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 5 Apr 2019 09:28:59 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 5 Apr 2019 09:28:59 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x35ESxic118450; Fri, 5 Apr 2019 09:28:59 -0500 From: Dan Murphy To: , , , CC: , , , Dan Murphy Subject: [PATCH v2 2/6] dt-bindings: mfd: LMU: Add ti,brightness-resolution Date: Fri, 5 Apr 2019 09:28:51 -0500 Message-ID: <20190405142855.3969-2-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190405142855.3969-1-dmurphy@ti.com> References: <20190405142855.3969-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add ti,brightness-resolution to the TI LMU binding to define whether the device uses 8-bit brightness or 11-bit brightness. Signed-off-by: Dan Murphy --- v2 - New patch. Add brightness resolution to ti-lmu.txt. See patch comments for context. - https://lore.kernel.org/patchwork/patch/1054501/ Documentation/devicetree/bindings/mfd/ti-lmu.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.19.0 diff --git a/Documentation/devicetree/bindings/mfd/ti-lmu.txt b/Documentation/devicetree/bindings/mfd/ti-lmu.txt index adae96c79d39..5881929d5f7a 100644 --- a/Documentation/devicetree/bindings/mfd/ti-lmu.txt +++ b/Documentation/devicetree/bindings/mfd/ti-lmu.txt @@ -31,6 +31,16 @@ Optional property: - ramp-down-ms: Current ramping from one brightness level to the a lower brightness level. Range from 2048 us - 117.44 s + - ti,brightness-resolution - This determines whether to use 8 bit brightness + mode or 11 bit brightness mode. If this value is + not set the device is defaulted to the preferred + 8bit brightness mode per 7.3.4.1 of the data + sheet. This setting can either be in the parent + node or as part of the LED child nodes. This + is determined by the part itself if the strings + have a common brightness register or individual + brightness registers. + The values are 255 (8bit) or 2047 (11bit). Required node: - backlight: All LMU devices have backlight child nodes. @@ -217,6 +227,7 @@ lm3697@36 { compatible = "ti,lm3697-backlight"; lcd { + ti,brightness-resolution = <255>; led-sources = <0 1 2>; ramp-up-ms = <200>; ramp-down-ms = <200>;