From patchwork Mon May 6 19:16:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 163456 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp360294ilm; Mon, 6 May 2019 12:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7LCaBM+n3F9jDlv3LK9DxxGEo+UjXdUik4kDzaM9tTwUD22j0aiT47TA2HnpdY1i2G29c X-Received: by 2002:a17:902:2bc5:: with SMTP id l63mr35545627plb.202.1557170209567; Mon, 06 May 2019 12:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557170209; cv=none; d=google.com; s=arc-20160816; b=HxfApDbWzhD2g9U9lGidcERw6w6/5zCvwDQQYIgYZqsn3G3moPXHY/dvzBNOouibOr SC4v2yaaWTPDXdicQg+xGTv4djj02ATdrVm/xTSZqz7iq9cmt7QAz/GG0ituGPgmTcVN DhfFMb7wCB/Y6m+iDfCNwenY5QzUGRZQN9Zzs3LTRiVTBoVZeiDhpb+om3D/HMZ7U+1w JorHgr1vUhcotLHl9QipwlfDQTqvwDMfvL8E/GmiBH9rsuHp/M4np7m/wSi7qCTkxFJw jScDTuLXew6QSK4NvK+NvOcIIbAskgJYz12oXmg5MNQ8QHQTdekNc0wENiRT8XWZUOaI +YFQ== 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=joTM0whnuH7gzNMVxKwNKb5uWvtOKPDEYbO5LEo4NSk=; b=D3qL7KTjYvzOog7CUjI94HC8X33xqWIE7tzHwCY7Kpptj6odKQligstqWJHQjH97Mj qDLYi9BrmhOTgg5wXNzbcmrWyvpMsyTV1QxvN5cwFs5zJJ1IVNhpRxiZ1arykOg7U4XG NSTtU5Vyd/17/DIyLRJ3/acOZaqSLy+WWls1h6Hiqpa3hg37o5xDfVtil+UxPBCyNcOM 6zCrOmEwzqMpd09YnXzFl4lGUAbuxnlJe33cK/M0GSIuvrdeeaoejSJF0O6KQgR9Fvn+ 6bLxFVnEJ5VYhVN3RzOftx6gOYUnG5dEIgRL9BzztDfm1ee14sfMns0oWgOdcDhwTQB6 oJog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="t/dWa0Bk"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 t22si8651647pgg.292.2019.05.06.12.16.49; Mon, 06 May 2019 12:16:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="t/dWa0Bk"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726862AbfEFTQn (ORCPT + 30 others); Mon, 6 May 2019 15:16:43 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:45158 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbfEFTQ2 (ORCPT ); Mon, 6 May 2019 15:16:28 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x46JGA2x023390; Mon, 6 May 2019 14:16:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1557170170; bh=joTM0whnuH7gzNMVxKwNKb5uWvtOKPDEYbO5LEo4NSk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t/dWa0Bk6US1ij7V3cifsFKehN1cHVqXPL7VvWhWEpBNWonQsMXJR5GSZDSEyDmcp tDhk52LOh2b/4SBJUdWsAx/Dffg8tBwKIBAMGRIzZIp1YLat4pk8FmXdpsMeLgLEr2 gG3pqQ5RW6txLqqFLJP2U738HXvSs8XdMChF63Wk= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x46JGAbN092534 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 May 2019 14:16:10 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 6 May 2019 14:16:09 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE105.ent.ti.com (157.170.170.35) 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; Mon, 6 May 2019 14:16:08 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x46JG92c009526; Mon, 6 May 2019 14:16:09 -0500 From: Dan Murphy To: , CC: , , , , Dan Murphy , Rob Herring Subject: [PATCH v4 3/7] dt-bindings: mfd: LMU: Add ti,brightness-resolution Date: Mon, 6 May 2019 14:16:10 -0500 Message-ID: <20190506191614.25051-4-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190506191614.25051-1-dmurphy@ti.com> References: <20190506191614.25051-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. Reviewed-by: Rob Herring Signed-off-by: Dan Murphy --- v4 - No changes - https://lore.kernel.org/patchwork/patch/1068617/ v3 - No changes added Reviewed-by Rob - https://lore.kernel.org/patchwork/patch/1058763/ 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.21.0.5.gaeb582a983 diff --git a/Documentation/devicetree/bindings/mfd/ti-lmu.txt b/Documentation/devicetree/bindings/mfd/ti-lmu.txt index 160eb0a5e21a..e3efefb194c5 100644 --- a/Documentation/devicetree/bindings/mfd/ti-lmu.txt +++ b/Documentation/devicetree/bindings/mfd/ti-lmu.txt @@ -31,6 +31,16 @@ Optional properties: - ramp-down-us: 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-us = <200000>; ramp-down-us = <200000>;