From patchwork Mon May 9 11:11:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12843350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC07AC433EF for ; Mon, 9 May 2022 11:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DtLU9Dw/yPJMrR6YYkdM2ZEE6erN/mCuV1KPHaG/ZmA=; b=1ofHkShwMD4TAS fICbTNZiQBhmcfERESSLwvPCT1RPTDFdwlDEajMfGXlfJxPwhGdvA6+vi76vvIORqrPDvdI8y7a+t KfcOhryn6/GrXluDpvCSxTjC1vxU0idQ3kRRhypmS745EdC6+bBia5zrmHWnwlWqM5oXDgY+BTM5q g5uO+zH4FEEpareRTeu6c1Y7xCGsO6laTD6aMepsmEZ1p450SFuPUVLbOK2DFNX/yHSK45wzDrw/7 wjMYxpFAFitCvzPFrvdsmpP4YUqNgogD2kkqhoaUEwQZzED652dbk/FnzRHUjvE5Fj88P4XZ9+y97 hXZ01e+VfRWJBSe0WJqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1no1KA-00E1Lq-DZ; Mon, 09 May 2022 11:13:10 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1no1JB-00E0wB-Gg for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 11:12:12 +0000 Received: by mail-ed1-x52f.google.com with SMTP id be20so15817074edb.12 for ; Mon, 09 May 2022 04:12:07 -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=AY6g/ZhZfipKpiYyh+8cNrhHXBB42b61bndOdnGfSCc=; b=pstK1smtSludAPv9C9P0xpgfLTs/lDHKKwVEdJROLAREi4w2AQwVddZiIgA3K83TIM pLExQZcTbBY1xPN1hv1wSm9QwdMsEiF+H/nh0WhKJa3WKTVcBZG/OPaecYo+RcExnRPC AP0h4UiGw6hwPeYSbET1Zf4+z3vo2xYKDWK9Ei/twt0IHl7NrcSMO3Ry6DJC9prii9EX pGiiuLHcYYBtjYqvtBSH7xIpQuX9Jn+ueNUaHqPtXC5UY6+6kGCNPjfRXP3v8hu8C5w0 +R3YjQEg6pEEMWTPGHfLzBiYTdJVCP8kllR61j9n0u+kzrmLmZO1AUCEflQ1zJHnhei8 LJ4A== 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=AY6g/ZhZfipKpiYyh+8cNrhHXBB42b61bndOdnGfSCc=; b=61ZL2HNcsvsI+cBqa5a8xsrGWyRjdqW0GwxXlRBOK5oz0qZZtVl4wRFMchoU69rqr0 5x04iZ4e3dTkigJVsbbZeZHQji6gqjScz0jLtRI7mfE8738RtKHSXTE6j87ynKKomf5o pA8DxTRRddzlGiuPzM/sNLpvbCOuA9h3Wh/edl0AUVrbKr61gYffHVQ+BlzdnZmN2JXR d8Rmhd7+U8LXeoQpb0vp+ry67Zd+QgR0kKU6uUPez2GpuybC2dOLJc4E0WGx7VZio0tg J3hszkld3/e6vHBtNz8qGlx5mVCtSoOgBf5UVqXQyx4cBS09XesgDxyOu3s2xPpJE7+X /1WQ== X-Gm-Message-State: AOAM530FQaXiTV9bcokyor7vhpaOsedOIA3OdN79oN7OoASf/EaD58KA Kfsp0Iaw3xYK92BlyDmDVq4= X-Google-Smtp-Source: ABdhPJzeHuJyREYnVpUbP6n06Pp3xusYm/ued/plBy6ui3ChmQrNnOs7xUwMo5iFZczpeL5IeBuBXg== X-Received: by 2002:aa7:ce87:0:b0:425:d88c:bc92 with SMTP id y7-20020aa7ce87000000b00425d88cbc92mr16991455edv.147.1652094726151; Mon, 09 May 2022 04:12:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:12:05 -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 1/3] ARM: dts: imx6qdl-colibri: Fix capacitive touch reset polarity Date: Mon, 9 May 2022 13:11:24 +0200 Message-Id: <20220509111126.7032-2-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_041209_614194_F9790291 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Max Krummenacher The commit feedaacdadfc ("Input: atmel_mxt_ts - fix up inverted RESET handler") requires the reset GPIO to have GPIO_ACTIVE_LOW. Fixes: 1524b27c94a6 ("ARM: dts: imx6dl-colibri: Move common nodes to SoM dtsi") Signed-off-by: Max Krummenacher Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index c383e0e4110c..7df270cea292 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -593,7 +593,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_atmel_conn>; reg = <0x4a>; - reset-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; /* SODIMM 106 */ + reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; /* SODIMM 106 */ status = "disabled"; }; }; From patchwork Mon May 9 11:11:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12843348 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06B99C433F5 for ; Mon, 9 May 2022 11:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=G9y1tV0DWtjkBJTX2y1svvG1B2d2BhqTJJWaUWqRUuM=; b=N54qcWJXas4xmI RH2DrzfEGBkyUDwQ/XSszm9Mxkab8UN7d3d9thjRnmusJPTLznR6fHbbRlJhox3odcgB8U5EnJEYU jlzFORcILmd9ahVLqNdmaQvKC0rcxAoVXJquKqqV3ACj4Zrmzerkao34azsseyVFeLUoFsr1FYNRb goz5E/WEQe4utFRV+IItrHeCRLiNaTSTY55rI2VDt4Eh0jDUycHZSKsOsHeC2dxzTzDTIHDe7M3U1 nvj7obNJWI+VD1I6E+VL5LMg3OBR5QpfZdvFgRmacoC/3M+hGagVsT8wOQwcDfD1+10/Y5fRTzGwG AcmP04SrgdoAUhQV/FXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1no1JS-00E132-Ti; Mon, 09 May 2022 11:12:27 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1no1JB-00E0wT-9y for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 11:12:10 +0000 Received: by mail-ej1-x631.google.com with SMTP id dk23so26105160ejb.8 for ; Mon, 09 May 2022 04:12:08 -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=bXlbOejj9Sna5Dfj4lSOONGUdBd9cH72j0nYofArQyo=; b=IMk7Nf4Mkgfm01ZACxlWd2nUwAmrsiP2uDe6RHrrYFj+WGLqUkHAYNvBCj0VzulJYH 0OX8ZAcFIINYgYvMoagWxurz1K6ZT2Wgu6hoDFGdcd5N2olNxtPuqvioZMsdAlZKa/3u zWjjPysZAEcIr+/yUXrddeajESnMM/b4UYsI8oVNAi7qnLchl045zja3xaFDu3YKQ9/F JHjXLZxdcPXs4gAiPMcYciCiPW9fLT7VxyQk6DbUnc3mkXBCCSy+oTWNgmYF+cYGSPAQ u0Ve6+Soq3plc+xkXULtAwB81JlDKOr9Px32EPo+d8rksbninqC1W0gGHjd5qNnHbf/b dKpA== 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=bXlbOejj9Sna5Dfj4lSOONGUdBd9cH72j0nYofArQyo=; b=VIGXzO6k+myyvdHBtHmwHiJXX/0TgsrJ9KI5ViuB5XEE9PLSZwBYv+JKew1xwBLJbW lJvuI5Ga9q07NZEwiaqEg4UyJN8PiaYa1SlxYa2P1WZUkWIZZ+2puxdOa892kwGQgKre KG0QpAZnj7WFPKKSCqf50/ANCLThhoXs12jaLLkUA8uZk9mP7Y7qJe6iD1rk4d/4D9NP nTgJQYKBg+/Y+TadvTa4AT0cTyuFda6A8fEU8DsKJPai8l+ER+3HOFwtdMTNADp5lXti MIjo/9eSRqwLr0LV5C/plSkQ5K6L+3u5PbPpDMTCCrcKZ1954SxId8m87S6b7i92g1mp RkqQ== X-Gm-Message-State: AOAM531VaxxBmeEFiGX5qY3Nz0xkW0U43YKCrDi0pgER+rDH6xpQyT3m kILXJfOdU6WeXcIRzs2T3X0= X-Google-Smtp-Source: ABdhPJxHRk3zNzRPO3XitFUCSqKBphxtUV8etOHwuIAJF8BCkcOYE0RQy41AYx3b5X9aw6U6CGIz9g== X-Received: by 2002:a17:907:2ce5:b0:6f5:64f4:91d8 with SMTP id hz5-20020a1709072ce500b006f564f491d8mr11795154ejc.675.1652094727083; Mon, 09 May 2022 04:12:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:12:06 -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 2/3] ARM: dts: imx6qdl-colibri: Mux mclk for sgtl5000 with the codec node Date: Mon, 9 May 2022 13:11:25 +0200 Message-Id: <20220509111126.7032-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_041209_415941_5B37D610 X-CRM114-Status: GOOD ( 14.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Max Krummenacher Move the pin muxing for MCLK used by the codec to the codec node instead of placing it inside the audmux pinctrl group. While no negative effects have been observed this should make sure that MCLK is provided when the codec driver is probed. Follows commit fa51e1dc4b91 ("ARM: dts: imx6qdl-apalis: Fix sgtl5000 detection issue") Signed-off-by: Max Krummenacher Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 7df270cea292..f0908b530f86 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -520,6 +520,8 @@ compatible = "fsl,sgtl5000"; clocks = <&clks IMX6QDL_CLK_CKO>; lrclk-strength = <3>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgtl5000>; reg = <0x0a>; #sound-dai-cells = <0>; VDDA-supply = <®_module_3v3_audio>; @@ -739,8 +741,6 @@ pinctrl_audmux: audmuxgrp { fsl,pins = < - /* SGTL5000 sys_mclk */ - MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x000b0 MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0 MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x130b0 MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0 @@ -991,6 +991,13 @@ >; }; + pinctrl_sgtl5000: sgtl5000grp { + fsl,pins = < + /* SGTL5000 sys_mclk */ + MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x000b0 + >; + }; + pinctrl_spdif: spdifgrp { fsl,pins = < MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x1b0b0 From patchwork Mon May 9 11:11:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12843351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D05EC433EF for ; Mon, 9 May 2022 11:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aLO3t9Kydo/5C2Y9U2IhhR5h1JufDJTRAnuo8aKqsyM=; b=ShgF+YAMgd1JVi /6x35dKyTtagJabEGNnu2o206Hq1owxLjq2+3GT7czw99Imankb0y40gwlhgOqbncoU/vYE4Ua9fL m4IpYVDpLg6L5lGfI7VJ0ySdi5w/UmHgXORMynfN1F6E303vwJMJ140bANfXOQLiz4gQGOUZ32pmR zuMXjs+pU9t7jjD+9dKbULjAIbxoExcg2EKjhiVy/D9nOQM85rL80cUlvPDWxsZl98CDNMl0EPYmT yibt1Hfpll8e3dw5BU18YlaFbxpenSK7Jn4hNAClEZ10uxzI5aPEPHR+PEMR+9Xud25cU5X4FFAoY Gug3UQA2i0qznvGEclLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1no1Kp-00E1br-5e; Mon, 09 May 2022 11:13:51 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1no1JD-00E0wj-Hb for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 11:12:12 +0000 Received: by mail-ej1-x62b.google.com with SMTP id m20so26079352ejj.10 for ; 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=pcWjL873HHNp6WxFK3sgP5MYRWPhCiysiD/Y4Rer3EsKcWbybLanAddA5DFBBYSQW2 nzCQagfIzJIKYHwAbSw2ncCQnVczytKS/3cY2UoDIMXYKbLNCMWVMKfAezZbzCh9u2t5 +jxMkNlvpCySVqhAfHuxMJYLO2PWpjTQJrC03Hia3FBs/NuVBsd/bz024cfsmBrBCmdw KgDK2RTGdPGDjQ4Ed2PUayRfShyWsjYW65hWjLUFTDKXyjrAvLIB/zUmxmnPLhWBMOTQ qQPLacRg0KnDRyPrUpDA3i9S2LK8yABCCwcHIN7Z/VjgBP6dkeC+hLjG5wGKY9jUTb5w EENw== X-Gm-Message-State: AOAM533GXoERDX/XHtltY7IgMK8qVsFtSB7n+b0jgQYVqd55Sy/gNnie zAnxLPVjpKSU/zxHM3idQ8w= X-Google-Smtp-Source: ABdhPJyPZaWZhmEftwjIZNpESFxKpkKA8aFpNHgKO2srzDI3lGvnROkn2dDErjE2rjyHAthlHRo1AA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_041211_616173_EAF3C15E X-CRM114-Status: GOOD ( 14.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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";