From patchwork Tue Apr 30 19:17:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 163153 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp3626872ill; Tue, 30 Apr 2019 12:17:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRJErHZGBoqkQ4lZERsNzKOXVLuxZ9A6bCflLQFdWaz2F9mLwn9IZPqM0EbaTGXId3i9Aw X-Received: by 2002:a63:6a42:: with SMTP id f63mr20947538pgc.377.1556651860121; Tue, 30 Apr 2019 12:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556651860; cv=none; d=google.com; s=arc-20160816; b=YO5Rl0ZtoK6bU4uwgfyMJqBu6qC4fAAQ9XRpXVvSFlhs3teniAnpVlyIkYTk39jnGy auul/KUWEQ0XAdzAMUpPg2IB9kwKsp4ATaI0/xeIsfkmPpwrTteLAUb3v97AKgZ6VVxy bvi026FGAAxWBJ60T6MkiOAmgf+snKSV2OaTnZF9TBsN0X2C9wuvln/TYIBXjJdM0QuS 5UKFj4pM8HCQYpjEzlpJ1oLMROUEeC/qoLZcdaUEbV8xIdxDpx2Y7w2Hri+7dFXkH+Ok okpAMjtkcRO43NEvvoLPBHAtYIcIObAqff+Zl9xBfy5X5qc6E7MZJK62E9JY4opQXKUx 3HTQ== 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=DBVpWzS6+eBA2YDAgUhsz0NAmJ+G2vM/BxVVyNYpCHc=; b=u+h8BnBp0dM+EMSoe/5veKfkhmEQp8aTmQvFaISHoG/hiOiYDFo4KftH8LPdQBw9+f zbq8MF/9mLhTcI5vPxnU32ABqtp3lwftJKjfFuDWz8sTLQ0CMaWGJAXtPQlujYW5J8pZ rn5cHH8jqAox5VB1OpEevmCMRb7Suc4zwHiPhPDJsp7E4m8K20SN82MlC3u48zCOIDf2 KHx4hMfX03L/3b4LcFBi+s18cS1ih71FGOj74O8CD2ddy2VSLuddGua2uGuJO2Pi7Woi wYr7QgbPN1nXISXe9M8XXWERGQcmsff2YCTWuNa6a/Hojamg0axuTJobCWZ3diY9/sZc OV5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Bn8Jqn+f; 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 i37si4945543plb.252.2019.04.30.12.17.40; Tue, 30 Apr 2019 12:17:40 -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=Bn8Jqn+f; 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 S1727121AbfD3TRj (ORCPT + 1 other); Tue, 30 Apr 2019 15:17:39 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50940 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbfD3TRj (ORCPT ); Tue, 30 Apr 2019 15:17:39 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3UJHYG6028256; Tue, 30 Apr 2019 14:17:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556651854; bh=DBVpWzS6+eBA2YDAgUhsz0NAmJ+G2vM/BxVVyNYpCHc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Bn8Jqn+f8SOu8/cNH3P/shqmP5F1OUJMhLnAoDynPSkM3RECt/WwMMTJ8wr9gKA6T YxtxKligwAwXA4Q8WklM2or42s6yM2Vzase/mmMIGWibjupe3Es6JYADG9ihVB4/DO QK4B7/mu089TwqZOYyAonY+doObJfRHYpD3x5lEc= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3UJHY8w088678 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 30 Apr 2019 14:17:34 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 30 Apr 2019 14:17:34 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Tue, 30 Apr 2019 14:17:34 -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 x3UJHXsw007885; Tue, 30 Apr 2019 14:17:34 -0500 From: Dan Murphy To: , CC: , , Dan Murphy , Rob Herring Subject: [PATCH v3 3/7] dt-bindings: mfd: LMU: Add ti,brightness-resolution Date: Tue, 30 Apr 2019 14:17:26 -0500 Message-ID: <20190430191730.19450-4-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190430191730.19450-1-dmurphy@ti.com> References: <20190430191730.19450-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. Reviewed-by: Rob Herring Signed-off-by: Dan Murphy --- 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 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>;