From patchwork Wed May 11 11:59:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12846100 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 33C9EC433FE for ; Wed, 11 May 2022 12:01:11 +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=Z0U8er4RfhCX43RPhPZyt8k46hD/e1uZNZ7gp8zjKXA=; b=b3bu/Qj9rC5Lvf KnTUpljWh8G3kLeCr/NT/AhIjwIwVLOXUEU9vPSFCdgWCtpmF1dpnhnnT0LOW1hwt+gRPT6OGcQ5I IK4EQY2QxNyTtwICkDUkrzDb+VwbnGDoo2G4tEEA2DASFi0WwM7g9wtWBA83NEYJqNE+p3fTp5dIn 8lr4qBOt/vEBHI8tgj7dZYuRRR/NQD53VuV/KpFT9q9e/D4xM8zpgi44MB9BLXRHvre1FLLw5Z6M2 Bq57BIRPyIc3xsO8VRNurEMq/4iIJn33lpSI4kH+pdR8+CpKMi3r84V7LtA7nlfAwoRob1FL9DkFn Ocf3nEyoIBBXwnYbFeGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0c-006bWV-94; Wed, 11 May 2022 12:00:02 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0Y-006bUB-KE for linux-arm-kernel@lists.infradead.org; Wed, 11 May 2022 11:59:59 +0000 Received: by mail-ej1-x62c.google.com with SMTP id l18so3548980ejc.7 for ; Wed, 11 May 2022 04:59:56 -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=yo4A+rzP8xcB+ZIATNv2HRdS6sj8NLoNJ5T3COsIXbo=; b=noY28VYHlxHestrmTvCdpJRb5je14zV1r2LuLgZffu6i25K3VOswkAc2luMTL7kyQD W8GKPgw+q8dGY/6cSTP4OBz8OehujBACY/U677sC5myTROOuWYFtquZZV5y1z1Iv7gjL /jIePy4ebZZdRTmGsNBpnVoTnMaeHHvATXhUCX6D2XRsX6NvAduem+BMO4lYgRymxbH2 GFMbb2euS04ZOSwqFXb7gjzJeW3K0cxCgTkpoaTJvpm6wG74iLLuOhxfrs5GhLwVfGT+ MfzCGJtZsdo4YOSEXbzz1mQW45SWs/gsN/GIxHJza5LbMO+XHaFBIAQrgbz+ilem4mTj ziqQ== 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=yo4A+rzP8xcB+ZIATNv2HRdS6sj8NLoNJ5T3COsIXbo=; b=YPySBE99ps7TMDexzccgUvXqh3gefXC7ko4QFrZa1YqQnNfVE7CWsELhwRLNKLQ468 gTLjqauXOtz3gkHq/Jf99auMvIGCFyr0fp5KIvEBZprSkXkh9GFphHqkxteDujIcnYTA 8WhZckWyJdin7YkIlSSkEzgSgcjUMg6EdHDr0CSleOvwhgUqptxS3yuspSSIdy+va1vG uAf/Cbz/Ufp5wVDU9j7/4fkKM2HfMPTKLy3LVByctLakyOkpE9isecXJAH/KzlmoT+qU XzOuqXGkvzDGY9KJIBI304H18WF9e56rAGyJXBfwwkuV14325M9UJZQdgN9yyiklc2OC C80g== X-Gm-Message-State: AOAM5324NMWzGkM68mPSoWyvjS+g59JYv40Yc2dcfgIsNXPX5h0H459g KMU4llGOGuU4kkbvwpPLF10= X-Google-Smtp-Source: ABdhPJx/XM86EArrxboH11zKOVaD+R2oMeqqs/A7FUjEu6ib5U8D1GIwOnZn1OpRvYcKXvwCI8mq3A== X-Received: by 2002:a17:907:1c20:b0:6f4:639e:9400 with SMTP id nc32-20020a1709071c2000b006f4639e9400mr23735888ejc.485.1652270394903; Wed, 11 May 2022 04:59:54 -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 g6-20020a50d0c6000000b0042617ba63aasm1089279edf.52.2022.05.11.04.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 04:59:54 -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 v2 1/4] ARM: dts: imx6qdl-colibri: Fix capacitive touch reset polarity Date: Wed, 11 May 2022 13:59:07 +0200 Message-Id: <20220511115911.54960-2-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220511115911.54960-1-max.oss.09@gmail.com> References: <20220511115911.54960-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-20220511_045958_700596_FB317B34 X-CRM114-Status: GOOD ( 12.98 ) 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") Reviewed-by: Fabio Estevam Signed-off-by: Max Krummenacher --- Changes in v2: - Added Fabio's 'Reviewed-by' - Removed blank line in commit text 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 Wed May 11 11:59:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12846102 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 531B9C4332F for ; Wed, 11 May 2022 12:01:27 +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=IHi3DF7FkOWGXfjk4zZhBCYtkeh3CyBYJLcsKCTzfN0=; b=RRL7/Dmc4k51Ot 83v6RucOWMoRhinFAbQ49NifHGAPo34HAIutGuEXBPBLPwMftKtI9rMxr5qyvkUpKfgQxD+SaJD7B GtWuhFbZPLXxT5yapqjIjkgJGgnqk9xJXL2/x4pG3dEu/hSHDZkyBQYZiVSrJ8JOA9O6MweB8yQSo g4pKiCnjSlWO7dJouySUqACPN9+ImVvLRynwz1/nf+0HZSP07TRYQPCsTt7zBDjv8mENf+aYkNf/u MlxiCcPwWNJpkn/ka1db0N1ekMyKw+qzsOfIVReIOSxCBVGr+u9vao055mSZXJhu/eHLqhSHmUFId 7iWKFix08fBm5AZZb6Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0u-006bcO-Nl; Wed, 11 May 2022 12:00:20 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0Z-006bUC-IV for linux-arm-kernel@lists.infradead.org; Wed, 11 May 2022 12:00:01 +0000 Received: by mail-ed1-x530.google.com with SMTP id a21so2285337edb.1 for ; Wed, 11 May 2022 04:59:57 -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=yoXugxNmlSlyrYTc39E+9Noe/h1XX+7WUCIyJignh3o=; b=D026iAc3+EoDUnwWKEQ9HoDKjAWHKuRpOUTVxCk4fCFdz81hkNeDa/JP3Az+cIYC3T G0qCh+RbRrbF+aldPqAMEtZa2QEnfnZKlgHhTrDCObLVtJfzy43FJyDDpLp/Hfl/HbWO 5zXS7WP0sgw+gfsYf34Y7Gh22Ye0a+Wb2M+Oyr57ymkqaXLtoacMV2GeWPEuuLB7vhpT VQ1XEYGVAQU4s7FuEiVBNsoXEwDjmDETPDaNuKCP3Wc48PHvZj61sRYgfCuExSDIEw0i T0zFBG/+O2N+Z2yg9xlv6Fr2VkXMz/+JZ2lUuPbkPJ3Y6ckeWVZyHDYrZZ4ObtvP0dFd RJFA== 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=yoXugxNmlSlyrYTc39E+9Noe/h1XX+7WUCIyJignh3o=; b=fMbm4Bk7TsrmOv/X1LW9gsi2ftXOSjza6VtEqF8B709dd8jnYl4x4hLbbPE9A+ij/O XzachJN/RrHEjYC/m61Ia60ls1LnSAGlmOQYxoDOyM3BIV+DamnkhAxFsX916y1YkY1c KQWqw5u4zDSMfAIEgv/6P5yOu/+pn3WkfNuwhA2cn06zPICzwSTW+YiPnSJPUH+RC41h /QafA99+wE/UnzDkI7GoVNxZHecfH1voforTBXAmxKndreWCZeSG8aUcTs/0t/VVi7Vs ee8Ataq/RJ+8H9ndh4vVJ4diyIEM4rfbdZaSWPrMTQQ4J7Nol9umpk1JL2fc2Skh0sw0 Tu9w== X-Gm-Message-State: AOAM532hSsKdigFaZW++UI5l8qkQqkO12qvJOpfCtbLe8J4jE/jkJe5g 75pgur/n5tRBfeHubGNbJJE= X-Google-Smtp-Source: ABdhPJzgqkvrEDviEwiklNlmmdCAVDvDspKWtkdWOiB4VrnsT8/Vw/77WrUGaK+ioYO2KLRwBqtHpg== X-Received: by 2002:a05:6402:11cb:b0:427:7e52:eba5 with SMTP id j11-20020a05640211cb00b004277e52eba5mr29164454edw.17.1652270396074; Wed, 11 May 2022 04:59:56 -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 g6-20020a50d0c6000000b0042617ba63aasm1089279edf.52.2022.05.11.04.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 04:59:55 -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 v2 2/4] ARM: dts: imx6qdl-colibri: Mux mclk for sgtl5000 with the codec node Date: Wed, 11 May 2022 13:59:08 +0200 Message-Id: <20220511115911.54960-3-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220511115911.54960-1-max.oss.09@gmail.com> References: <20220511115911.54960-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-20220511_045959_648104_1DD1BC09 X-CRM114-Status: GOOD ( 14.62 ) 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") Reviewed-by: Fabio Estevam Signed-off-by: Max Krummenacher --- Changes in v2: - Added Fabio's 'Reviewed-by' 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 Wed May 11 11:59:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12846101 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 59682C433EF for ; Wed, 11 May 2022 12:01: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=CycBybb62LaH2rb7HKSfJX117DmOMF6/sFmZg5McRE8=; b=YjyVk5No+rEAA6 9Mc6GEqC4bTB1sfz4XDsPlqWtM8wxMegjFyVIgPLWhrBv5jhT9aHFUAMDmenGYyulPtoKYxyxsOFn RvCTvh7+DIPZNlJh9WQ9551O/T9hCt3KFfKsvx4500soGl7LxXflDT60hXIdIHAgJgAD9knngaExV WYnDDW2r4+oz++dQTVBKHraqyCZyfQ96+XMHkgC0Ng4agzgkhcHBZwNJVwK0Zu5aFMByTR1Y1/1Mq M+QDirigFa68PAtoIChR3yPvtln6hPwIWBzk0YYanIoBejRBR/L5TdgW8QHaRvgWwA0bXux01MGQg 3WxB+HhgJf8EAjRRrQtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0l-006bZA-0E; Wed, 11 May 2022 12:00:11 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0Z-006bUI-Fw for linux-arm-kernel@lists.infradead.org; Wed, 11 May 2022 12:00:01 +0000 Received: by mail-ed1-x536.google.com with SMTP id p4so2327045edx.0 for ; Wed, 11 May 2022 04:59:58 -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=z9UUg/fQTsaqkN2h8KB+8rJP5/jfsoQ0IyVKGrfdu/4=; b=bX7HkIaoRGew6tEpswM1+CpQTkckKbCj2lnYq+HShOUZpzz+RfWZilYyN71yloU2uI ozyiwfQGWhSi7g+IzclDVQKRMv8hjB7jonUeVL9V8heuurAhq2C5G6iGiU2qmD6JWnRD ex/o125CBSZ6xJXfa6jS3NpnpebkYl5bUM/cih75cRfvYd5yYaU2FXTHFLfTXpwLJqm2 7h0XsORg+WcxwkQanXx3QMJw+RRviq2wPVxyNE4KmbvVK1zFo5Db5HBNcto6CdvpTlzv 90nbMW146FyRT035OgKdwKUcqY+aEoX5wMadvfSpTXuVTnX1ZEjitYya9oHC/S+t7jBK ZgvA== 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=z9UUg/fQTsaqkN2h8KB+8rJP5/jfsoQ0IyVKGrfdu/4=; b=Uo+trwaBeQpUstQFYONRKzESAVLihNll10qQYDzdmLhfDWr0JgKG0qMscBKZDd34YR NA7GkSyr/s2RE5/X5lOesMf1FjNA0aNGXzQkdYe1u8FrfAfc+1cyZU+3NR6TecAcNX0K YF+w3BCHeZwWpIDUaMKSWCuItTy84c4MIC5FEJJWdBMiwzHPMMAHGZyH8/5WTkh065tM XNA+lBbRtFVBj4VBXnEnyctSmY5crjNVqJbAiXwk+zE8gvE/2FEXLaomsMUt14QIfdNv t83pwE0jnWL2FS9Uc8hfkY9hD4ZY+i/2RqV3OSQyrVKIxIvYjEMBv8RniHJ0xbifMm58 fJKA== X-Gm-Message-State: AOAM531xebxLL++y02g+933d7rhwIZ4I2eg4hufdv80SQSWtMbpEOGDO ijtO0Q1eFin9vpwVQUTM7MM= X-Google-Smtp-Source: ABdhPJzxCvHM1I7LqhcNanhrQZI6z4CClwZqgmMIMSm/Hg8qiFB9Gdh0gSTe4+hoZrA1IWvHM7Pvsw== X-Received: by 2002:a05:6402:2790:b0:427:d09b:df82 with SMTP id b16-20020a056402279000b00427d09bdf82mr28621102ede.151.1652270397282; Wed, 11 May 2022 04:59:57 -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 g6-20020a50d0c6000000b0042617ba63aasm1089279edf.52.2022.05.11.04.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 04:59:56 -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 v2 3/4] ARM: dts: imx6qdl-colibri: backlight pwm: Simplify inverted backlight Date: Wed, 11 May 2022 13:59:09 +0200 Message-Id: <20220511115911.54960-4-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220511115911.54960-1-max.oss.09@gmail.com> References: <20220511115911.54960-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-20220511_045959_568448_A641A93D X-CRM114-Status: GOOD ( 13.80 ) 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. Signed-off-by: Max Krummenacher --- Changes in v2: - Split to two patches as proposed by Fabio Estevam 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..d91fae92c90a 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 4 8 16 32 64 128 255>; + default-brightness-level = <6>; 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"; From patchwork Wed May 11 11:59:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12846103 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 6A549C433F5 for ; Wed, 11 May 2022 12:01:37 +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=VZE6heyymyH3OJB1cOJvSo1Fl5m55oQfLACAJwlP7zc=; b=L4z1Jz+wWAc8yp OVX9fXbNLAoEZmno344RdMRiM0GeDAc51neoZ3bVJn3qsPlbV0DrB8xY095zJsn0ZpdtGLAHhMUO3 zchN5iCAqYchwJpPfGY+XMTku56lb9MYKKmYyggtQ3UF1eBwn8PkHfzPa4UMj0ZTJNEFFUSlpoYx1 LpnUHRQIjAlwVqbjYOzIfvu25EQptmbfWZbVTyfjV3RBul2hCouzvCPA2qyGuA9hGL/1B3IdbKkHr mvdoay0FoArXRIIUWYhMBYpIxbp3zWt4RZ/jY5rr6nBkDqYvl9YGxBwi2lLs/7u2nDtswEXAdEutd IS57vRtqbTlTcgU9k3mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol13-006bfj-Go; Wed, 11 May 2022 12:00:29 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0Z-006bUn-NG for linux-arm-kernel@lists.infradead.org; Wed, 11 May 2022 12:00:01 +0000 Received: by mail-ed1-x530.google.com with SMTP id c12so2240657edv.10 for ; Wed, 11 May 2022 04:59:59 -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=3eEpM+FBBTw194C71zX34kjk6ylwP+rd4n2HSuTY7Nw=; b=MRgaBpz/RsKSinth52qx2FJq+/0G6AQQtuh9XafwkipCFyBfMsll+OtwaBTOaK6U0H H7PJT2ZEWiTy3wnYZwGXp3e0+x4liCmtj/l0szWpbInYR6BImbfsFYgybhVyXKkBdVgY EpQDXwSbw1en/6Ne3dtUK0D7uQYvxwA8WPcij/ERPcWO0aW4O0wNdizWLhJ7kly24OJd nAzzKkz1V/2zAsWNiOdObrs0H9fLFcMOyri0f7uIhMFskJ17XAed4uvb5E7mWQE7zs7m AueUActhEfLyPC/GNeMOmbABJd8LYLHE4C3BhZhwVZCKxaAJSFJFMB2Fcv+6dpT/etK5 7RgQ== 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=3eEpM+FBBTw194C71zX34kjk6ylwP+rd4n2HSuTY7Nw=; b=XSKM2tfKLfcK22A2Dg72iXi2rcav+KrnUfCoV+3K+CINRvNgop3N+rhPlvmN63JZj8 bnAcZcIROsP730FYGDu9J5/Bkevtm+MqPS5wRM68Zt+zp6h0n6xxUYj3qcsCMheffi8u 6ZhohlxtT6KMqKPnNVfp5BmFNA6V8GSH3lh7kTboHjhMlaV3EJV7044qFpJ9H7rz/WRC 7trJ7r02jvGEwhoDhjqHfh5Ww2Fjt/UU0+/FUqL8G9ZVisHVk3k7j2JdiidT+//JOkVq OaDcrnlgFt5K0qPl2R3xQ+tuuwF+mUZnDzOD5fbgaLejhOVtdA1EelBin4e7PNmyskk/ p6ng== X-Gm-Message-State: AOAM533Nx2FKEwXA1w2qGcH/c60dgioraM061cU0t6+AUHNh9GoLlveP wsVYrbVBsxTnB8MfYw+2nlM= X-Google-Smtp-Source: ABdhPJzG5hQF6/6whSh+Q6bYm+jLDCxI1y2bcjo9ORc2L/YKy513EqsfKP2t6gWyBKGIfmwPWt5kLg== X-Received: by 2002:a05:6402:424c:b0:427:eae2:ed09 with SMTP id g12-20020a056402424c00b00427eae2ed09mr28523662edb.376.1652270398431; Wed, 11 May 2022 04:59:58 -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 g6-20020a50d0c6000000b0042617ba63aasm1089279edf.52.2022.05.11.04.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 04:59:57 -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 v2 4/4] ARM: dts: imx6qdl-colibri: backlight pwm: Adapt brightness steps Date: Wed, 11 May 2022 13:59:10 +0200 Message-Id: <20220511115911.54960-5-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220511115911.54960-1-max.oss.09@gmail.com> References: <20220511115911.54960-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-20220511_045959_781255_F3C76742 X-CRM114-Status: GOOD ( 12.65 ) 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 Adapt the brightness steps as the backlight doesn't light up for very low duty cycles. Signed-off-by: Max Krummenacher Reviewed-by: Fabio Estevam --- Changes in v2: - add reviewed-by tags - Split the Backlight PWM patch into two patches, a) #pwm-cells 3, b) adapt brightness steps - Split to two patches as proposed by Fabio Estevam arch/arm/boot/dts/imx6qdl-colibri.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index d91fae92c90a..023e76215064 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -14,8 +14,8 @@ backlight: backlight { compatible = "pwm-backlight"; - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; + 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>;