Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4686993pxu; Tue, 13 Oct 2020 04:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHBycWjSF8hFN7V2KcJUWwRf17fJ7SuusbFyOuKsDmnCDHD4ok/D2Q8XZh7fEYoBT/6Xju X-Received: by 2002:a17:906:e15:: with SMTP id l21mr34055299eji.509.1602590330548; Tue, 13 Oct 2020 04:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602590330; cv=none; d=google.com; s=arc-20160816; b=q418NaSH5fgXezYokiHc1i3VGx6WbM4JBVzElA3GIZ4gETiN5GBqSWTMhhdaumComQ U6mQkalpYIgHZbWSEW/vSKeKfWOzIt3FlySfXm3jXHSGAFRqZO2mBkYZ5cEsQpuQBdYf 2HMOdYmG9YTQLk9b8u8FoX2d5daIMbtLp7THVql5uEjjOfgKb8tg9+eGDhRl0f7NMmma kGSjHJV4o+Ykl7Uxjl44d8MyuJYdPQtTj5JevcRn6Fme+VpwJHLmvz3nxf8aqhc+OIN2 4Mp6sbes9UFGczTfVAq0LtKHR+viZbAO97Gq19g2gL+6MlrzSbocHg2AGEPQHRzcXd8R 6PEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tsWTpurAuv/vlEeR04dTlVeLk9jDAutyxmmT9x78Hg4=; b=Q4chyjUO8SoZtwsWfU69002djV1WBxqQtREE1olNvFiZlmZBhO8qKuKzIbLHyO9PVY e/EW9DSsazo4oOi3czKoGnxgNvoYJTDlhfCxdxXgQe33aBvuMAnC4SX4SBY83LUejdok dMLYN2cASHnRmAXGIxpKXxABcAZSO/oSa0c7J20ixzbLhhUrcWvocMF+gJr2pigYCa0P kBVOYA3wZuuQDusqoXfrOrJlneFiQGG13EsFEMHLqR13AdNZR3nRyaftwk9PEMUXkKyr nqjsRXLNTZ6W9/q6xmD8V9rcoM0n54V02OdTBfWbEk77QtEmhwHtdBiK0hGg8ljyxi8D nJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VHXuf5PS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si12449538eje.64.2020.10.13.04.58.27; Tue, 13 Oct 2020 04:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=VHXuf5PS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390668AbgJMIBk (ORCPT + 99 others); Tue, 13 Oct 2020 04:01:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390648AbgJMIBg (ORCPT ); Tue, 13 Oct 2020 04:01:36 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE649C0613D0 for ; Tue, 13 Oct 2020 01:01:34 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id gv6so219362pjb.4 for ; Tue, 13 Oct 2020 01:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tsWTpurAuv/vlEeR04dTlVeLk9jDAutyxmmT9x78Hg4=; b=VHXuf5PSGufIuEVtxw7oi/WheNmXY+Z+WfaKAzvMOxnjZwgkxR1OmEB4T8sZQewEtg e1c+/oALAlAF0tmbAPm4p0htrPBmga/hDHq3dCm764yD1Y8h89UBPvIgeOxhpUkmzd9y YzRv8baPNKQB6EzJLbfAejrsl+2fGLM9ZtOCQ= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=tsWTpurAuv/vlEeR04dTlVeLk9jDAutyxmmT9x78Hg4=; b=dFuVhNLL3uGDgATLL7C5CLLne676zNVIPaVI2YJvINHIKq5SASIeQnD/koKj//FdoV i7KJ537o6Q8Z6fIiYmXtkj5GAMPKHpPnvS7FBnLFlH4Oj0W3z0nzuw4wx9RR0eQWDpJD GP1e5RFKWFFnKIJx6z4+OSx9Rlwa3rXwulctsHLiUnnWmK/bkzU2NnmO5lsoXQnLCJ1C J3kwygD0Cudfx0tZ34Ag5PGepiJ92u6bnnwAFtl0IchXW4w4nxKKhXl7PcD3I5jvQOHV dhlHpr1CK4r9Izq0zO+L1Xwl15BC7yiUPfURXs9KdS2PyVrQw285rJrF5LWVR43kX8BK +K+g== X-Gm-Message-State: AOAM532z1HUQghECJUccCICGDwswqeNeixfUCnUxttXxrV/gdAIVgUka qX2EWt1Cj17WOfC/FzUj2MCqcw== X-Received: by 2002:a17:90a:7d16:: with SMTP id g22mr24517159pjl.135.1602576094443; Tue, 13 Oct 2020 01:01:34 -0700 (PDT) Received: from alex-desktop.lan (c-73-63-253-164.hsd1.ca.comcast.net. [73.63.253.164]) by smtp.gmail.com with ESMTPSA id y124sm14956924pfy.28.2020.10.13.01.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 01:01:33 -0700 (PDT) From: Alexandru Stan To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Heiko Stuebner , Rob Herring , Andy Gross , Bjorn Andersson Cc: Douglas Anderson , Enric Balletbo i Serra , Matthias Kaehlcke , Alexandru Stan , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] arm64: dts: qcom: trogdor: Add brightness-levels Date: Tue, 13 Oct 2020 01:01:03 -0700 Message-Id: <20201013010056.v2.3.Ie4d84af5a85e8dcb8f575845518fa39f324a827d@changeid> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201013080103.410133-1-amstan@chromium.org> References: <20201013080103.410133-1-amstan@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have better interpolation for the backlight ("backlight: pwm_bl: Fix interpolation"), we can now add the curve to the trogdor boards, being careful to crop the low end. Signed-off-by: Alexandru Stan --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index bf875589d364..ccdabc6c4994 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -179,6 +179,15 @@ pp3300_fp_tp: pp3300-fp-tp-regulator { backlight: backlight { compatible = "pwm-backlight"; + /* The panels don't seem to like anything below ~ 5% */ + brightness-levels = < + 196 256 324 400 484 576 676 784 900 1024 1156 1296 + 1444 1600 1764 1936 2116 2304 2500 2704 2916 3136 + 3364 3600 3844 4096 + >; + num-interpolated-steps = <64>; + default-brightness-level = <951>; + pwms = <&cros_ec_pwm 1>; enable-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; power-supply = <&ppvar_sys>; -- 2.28.0