Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4922610iob; Mon, 9 May 2022 04:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQFcP4jPT8MtV1pufAFayphKfo+oVcklw2q9rueB2EkVIDIfy5ANlIy3IkMecIH3mNPk+e X-Received: by 2002:a17:90b:4a02:b0:1dc:4710:c1fe with SMTP id kk2-20020a17090b4a0200b001dc4710c1femr26344135pjb.208.1652097528301; Mon, 09 May 2022 04:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652097528; cv=none; d=google.com; s=arc-20160816; b=lE78j0ImpC9CUVFn0KzJCRCazDuMFtb/a2hPm8lSDJBE90dhosQ9dFyhUbyM39cvL+ 9UBDH9JVt9vwz+umqDOIczPvIJ1gzcnSMzfR/uEOnz40bpiHRsmJGQTSx9h0ZcQnFvHZ N8d9hSVHF7uIfIBoF9p8n+uTWnh53sDA5IpsLc+qJmTf8flHEhHZVPM543a4yjcmBnwL HlLxZ9KbCGxdFP+jLkXFbHkNFBoYDkmP724EH96ymq55+8aOQHoEx1O5OjR1019cL09P KJ6dD6C99QCIP3aOr3YDUmScGdo1waaDTVyndABJpEoYfJUfz3374UdiZ0LyiyWRunAi FrvA== 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=W/dDZTXvhevSA0CwXNeoVIZNKRdACOkTC7CvftF8ff4=; b=gz8VV8CR62cR1Rk6MuWxdeQ3++7dSxxnVjoyKflSmBgH++aFcBSBzO5oBC+zziLDap fgGHMmG4JMghfIKMihb8t6IuOfPAWiFWSqY/L7Qa38kJVg9tAggSn1btbcKNF2/qyQmG h3qU/7xIzz1J5GItolsfwEtEEM+/lhKOprTr11xCCZ96grgk8vpzwhgYi+y+L9AVZS0L ZWIXHkf2zEcQ53PVlzDt35lQ1Bc+kKff0oXuj12Gnhwasdm/KsywVgmd/CBhRlTXoiNG cmuM6dghRO9UENzuSmq9c4m9dslV6odvX8YYyrGq0j9aqPQE3kX7+kiM3xegfWORCNdO iHrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hXKQ4iPh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w21-20020a634915000000b00398989698d4si14190516pga.647.2022.05.09.04.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:58:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hXKQ4iPh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 977CE1E05B7; Mon, 9 May 2022 04:13:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232483AbiEILQo (ORCPT + 99 others); Mon, 9 May 2022 07:16:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232320AbiEILQD (ORCPT ); Mon, 9 May 2022 07:16:03 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 967851A8E32; Mon, 9 May 2022 04:12:09 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id l18so26074327ejc.7; Mon, 09 May 2022 04:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W/dDZTXvhevSA0CwXNeoVIZNKRdACOkTC7CvftF8ff4=; b=hXKQ4iPhqEuKSEkcznKWL5bTQuEvBLD8qMJKXAdJhjdH1Jic9CSNhB1Eg9oqprJ32/ u2sXG5GiPqCXo+JVf9HIPvgnlnW5jNThAK+2mvuoD/0hoWdwownTlRJ40GFBOGXrvlcP HxNMNQbeWLZJedRiOiPLzK5ZQGWaTiCh+OOKPvgjFjkNmS7k0H+qlevcVzjNyDRlPfXP mS/1fOkyR/y/h9Z4zZK3pLpUrFbd0x9ZLH6hzLUKDA6D2muVgTCt2UcbIfPq4+W9EpQP ubjPFJBoyTEy/o+MNaDwGJp8A9sL3waH6fhp3Nbvuvf38qRssQPnQQdMSmS0xuQKPJFK VahQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W/dDZTXvhevSA0CwXNeoVIZNKRdACOkTC7CvftF8ff4=; b=xyMK/4n0NjnDLh9PR840faqHmPsjm/3Hx8vRLKPPs8RxMXTiI74YDtxQFNAkooBc0q Yk54AeNVQNqH3AUK3apZUKWI6q16pNV/Tnes2Lp7yQPP4cklkTcyEq+7UBxSJ2hN4h3S H73spGWsqrm0Qws2w6Urz4h2WdrYdWub4ZeyJfjrDn/iCVi3p+CQIimDn10gkPiJHqlL YW6EmhhFLdnH3Wz652N0cmofMbcC1oF2kslgkZYfbuIfwHWcqhefktW522XSDQMbWBOQ 1/n1RIA6BaDx1rMPzh5c5HaSqkvvaeKPdGphI1T5DLBk/fYIDO9bRQzqrOO5UtjlPOia R7yQ== X-Gm-Message-State: AOAM5330+DP8hkj+SboZ9qOdXiMIlGeU2n5zy08byGpD3+vifpwHgoiv OIoXR+j1ErJ5+mFoyoGT4nc= X-Received: by 2002:a17:906:559:b0:6f3:8ba6:39c8 with SMTP id k25-20020a170906055900b006f38ba639c8mr14168185eja.486.1652094728074; Mon, 09 May 2022 04:12:08 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id c24-20020aa7c758000000b0042617ba63b4sm6075672eds.62.2022.05.09.04.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:12:07 -0700 (PDT) From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/3] ARM: dts: imx6qdl-colibri: backlight pwm: Simplify inverted backlight Date: Mon, 9 May 2022 13:11:26 +0200 Message-Id: <20220509111126.7032-4-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220509111126.7032-1-max.oss.09@gmail.com> References: <20220509111126.7032-1-max.oss.09@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Max Krummenacher Set #pwm-cells to the default 3 to gain access to the parameter which allows inverting the PWM signal. This is useful to specify a backlight which has its highest brightness at 0. Also adapt the brightness steps as the backlight doesn't light up for very low duty cycles. Signed-off-by: Max Krummenacher --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index f0908b530f86..023e76215064 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -6,6 +6,7 @@ */ #include +#include / { model = "Toradex Colibri iMX6DL/S Module"; @@ -13,13 +14,13 @@ backlight: backlight { compatible = "pwm-backlight"; - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; + brightness-levels = <0 45 63 88 119 158 203 255>; + default-brightness-level = <4>; enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; power-supply = <®_module_3v3>; - pwms = <&pwm3 0 5000000>; + pwms = <&pwm3 0 5000000 PWM_POLARITY_INVERTED>; status = "disabled"; }; @@ -620,7 +621,6 @@ /* Colibri PWM */ &pwm3 { - #pwm-cells = <2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm3>; status = "disabled"; -- 2.20.1