From patchwork Mon Dec 11 20:41:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13488041 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 5B5D9C4332F for ; Mon, 11 Dec 2023 20:41:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2A7410E0CD; Mon, 11 Dec 2023 20:41:48 +0000 (UTC) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by gabe.freedesktop.org (Postfix) with ESMTPS id 934E310E0CD for ; Mon, 11 Dec 2023 20:41:46 +0000 (UTC) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-286f3e0d010so1485735a91.0 for ; Mon, 11 Dec 2023 12:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702327306; x=1702932106; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=StSaVFlGCo/Vj/verM8F+5UMgXGzA29ZE2bsPlt2dRM=; b=KSm0vIly9dVAYOMI3x8rtgboVGB55yLnPRD6gv836VCcfLD10bkMc/zphu6E1exuJ/ aKlPZzce/ko9e3VK1s9A0qL54XhPkipV8eihqDLTP928hTG3TAXDho/lWItxCTE7/CAW z7k8bBQXMBMyWVMAnEVbO3cFmBUVqZazAcDORAjpKbr35bKXK51te7OWy8svGOrlnZYN 3vQMtxf8x9xDmB6dliLxBG5uZe8ME7MUCQgWoUi4eDStvlZrGz2W+ZOSd0K6QhT24xhl AIfFoxuEgBhsEonIoXzbIg3J8bAtDYf61K5mI8wN4hjMDoCsxN8nWnUsWXD2BkZ9MdCe DPWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702327306; x=1702932106; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=StSaVFlGCo/Vj/verM8F+5UMgXGzA29ZE2bsPlt2dRM=; b=sFilsUGoKoqSAp0FvhJhDsKIEEI5st/17eVDJ0eIs7KaX5dbldwnF7tIMnZocXLmEl lHwfA3LiYbMGxU107OyufF6pwKq5npKDRMHzzemjY0HVk76R5YVWNWVNxA+6ZIdo9yxJ DGA4oqSwKlPoS6lhGAvlLZlDlOZhbYSm5DdQnkaNG77z9rmHK9WKmM32QnZwJCiN16A+ GCyL4Vx0IjmrXo6tubs3m5F3GXIVejB62hH/iJ4rRzOHUBFJuiHLR4M4U4f5RiBLX6hO abSMsDnZKMmEslaB7E1dRA+nJ59J9B1cv7hdabgRNue8fUoFNdG86MGWYzV+YBxLsPgu MMpA== X-Gm-Message-State: AOJu0YztNYz3uSIqTcFJmnlZ7IiHFqbxRxeh0w5CIriJCPICKJGz8exC PK9SvOX0BGVlCSTHdmfK9jTuRAPVl1s= X-Google-Smtp-Source: AGHT+IGOh8Sn6IwFAIyLL33Ud8dcdOeXPZF9GpbVfASspw8GJ/jw2ilY9XZtNp9p2nIzJINTomJ29Q== X-Received: by 2002:a17:90a:c285:b0:286:bf9e:a6 with SMTP id f5-20020a17090ac28500b00286bf9e00a6mr8687075pjt.4.1702327306123; Mon, 11 Dec 2023 12:41:46 -0800 (PST) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:1d51:eaf7:9aaa:d7c]) by smtp.gmail.com with ESMTPSA id w14-20020a1709027b8e00b001cfc4d8ede5sm7124809pll.301.2023.12.11.12.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 12:41:45 -0800 (PST) From: Fabio Estevam To: marex@denx.de Subject: [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif" Date: Mon, 11 Dec 2023 17:41:36 -0300 Message-Id: <20231211204138.553141-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, Fabio Estevam , kernel@puri.sm, dri-devel@lists.freedesktop.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, martink@posteo.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabio Estevam On i.MX6SX, the LCDIF has an associated power domain. However, i.MX8MQ does not have an LCDIF power domain. imx8mq.dtsi has the following compatible string: compatible = "fsl,imx8mq-lcdif", "fsl,imx6sx-lcdif"; which causes the following dt-schema warning: imx8mq-evk.dtb: lcd-controller@30320000: 'power-domains' is a required property from schema $id: http://devicetree.org/schemas/display/fsl,lcdif.yaml# To prevent this problem, add a specific fsl,imx8mq-lcdif entry in the driver to properly handle such a power-domain requirement difference. Signed-off-by: Fabio Estevam --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index b483ef48216a..ac9ce3b45b38 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -340,6 +340,7 @@ static const struct of_device_id mxsfb_dt_ids[] = { { .compatible = "fsl,imx23-lcdif", .data = &mxsfb_devdata[MXSFB_V3], }, { .compatible = "fsl,imx28-lcdif", .data = &mxsfb_devdata[MXSFB_V4], }, { .compatible = "fsl,imx6sx-lcdif", .data = &mxsfb_devdata[MXSFB_V6], }, + { .compatible = "fsl,imx8mq-lcdif", .data = &mxsfb_devdata[MXSFB_V6], }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, mxsfb_dt_ids); From patchwork Mon Dec 11 20:41:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13488042 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 B63A7C4332F for ; Mon, 11 Dec 2023 20:41:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5486610E4E0; Mon, 11 Dec 2023 20:41:52 +0000 (UTC) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by gabe.freedesktop.org (Postfix) with ESMTPS id 915BD10E4E0 for ; Mon, 11 Dec 2023 20:41:49 +0000 (UTC) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d03f90b0cbso8925815ad.1 for ; Mon, 11 Dec 2023 12:41:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702327309; x=1702932109; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JrUH18u+0NaS8PYtvwYrNxG3qzQVThi1TGXG5Isavng=; b=Q/82FI+XSSzfLDdpe7Zyz1FU+PVXbhGdFq2KqhstU8KLuwRz9m0uo+naKdWNMOb96G BX0rcrwaEoan5VLoOxDXlMtwt3QpbMYie1uDwtKgemXruqMS/dDL8Nn85tJ2+TuGhiAT S9NjQt4OyLIUy2g1suEmyk3fQYh9CRIabOCDPbtulxy50+jC/aE000+krCX5omiIes+L 2UtMUoQ13DgwhdEevpKZ2W6nIaGsdB+b+hoJZtTa6cVV25hFKe74OQ/aGiDSYTt1SA7Q fehcKw2ZBg33FZI0hH9PoXI9tmMcI6yo9Bs6yQrIpw4A8qu7tJo5PecBrlWpCADcQbOb khog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702327309; x=1702932109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JrUH18u+0NaS8PYtvwYrNxG3qzQVThi1TGXG5Isavng=; b=MbcyoUapNk//3f1ZEV30zwyNkhnBHIriMnEiWrDM/5yfxYgz91ryhOAj3lYFjrBtVr OqklSLDeyaqM6850bPcUCyJtRbA1+Laz4rOcIUamtuACmHKf8tZ42CJcEVjLxMrsuRIs 1afodl7yikmPMTJ0TNQOJehzvWl87mS8VXhIvOj6psGeaP99hsZZ+b36ZSb1fzvtsDQo SfKb5jZdLAhaKUVU1Lqj85pZSAAzcHGkbVg5wEIiO+46z9YQ8f3g8WXKFL93uLyhltt7 G/PpABD2Te6xqJ34ukvKVbMR3KHqh60etc0XpZljQJv9TOpr/4FD6V2vQYY/XpmqoaIe UOHw== X-Gm-Message-State: AOJu0Yzpq+Uc7YqHHxXZHX+0jBtn3ja7wEGayHiHd592LkeTiK3jDrY/ KJEYKxm5xhozYzkJnzaxDcqF5Wq4k0c= X-Google-Smtp-Source: AGHT+IF4n1Se4Q/P/CasQTIGLsXUtFG6qJtTwWy2VJlrPfq1GEn4zZD7I79/h57u8EqYPk05TaF82w== X-Received: by 2002:a17:902:d4c3:b0:1d0:45b2:d8b0 with SMTP id o3-20020a170902d4c300b001d045b2d8b0mr9145441plg.5.1702327309084; Mon, 11 Dec 2023 12:41:49 -0800 (PST) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:1d51:eaf7:9aaa:d7c]) by smtp.gmail.com with ESMTPSA id w14-20020a1709027b8e00b001cfc4d8ede5sm7124809pll.301.2023.12.11.12.41.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 12:41:48 -0800 (PST) From: Fabio Estevam To: marex@denx.de Subject: [PATCH 2/3] dt-bindings: lcdif: Decouple imx8mq from imx6sx Date: Mon, 11 Dec 2023 17:41:37 -0300 Message-Id: <20231211204138.553141-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231211204138.553141-1-festevam@gmail.com> References: <20231211204138.553141-1-festevam@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, Fabio Estevam , kernel@puri.sm, dri-devel@lists.freedesktop.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, martink@posteo.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabio Estevam On i.MX6SX, the LCDIF has an associated power domain. i.MX8MQ does not have an LCDIF power domain, so allow passing only "fsl,imx8mq-lcdif" as compatible string to fix the following dt-schema warning: imx8mq-evk.dtb: lcd-controller@30320000: 'power-domains' is a required property from schema $id: http://devicetree.org/schemas/display/fsl,lcdif.yaml# Signed-off-by: Fabio Estevam Acked-by: Conor Dooley --- Documentation/devicetree/bindings/display/fsl,lcdif.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/fsl,lcdif.yaml b/Documentation/devicetree/bindings/display/fsl,lcdif.yaml index 1c2be8d6f633..8969e56d4c98 100644 --- a/Documentation/devicetree/bindings/display/fsl,lcdif.yaml +++ b/Documentation/devicetree/bindings/display/fsl,lcdif.yaml @@ -20,6 +20,7 @@ properties: - fsl,imx23-lcdif - fsl,imx28-lcdif - fsl,imx6sx-lcdif + - fsl,imx8mq-lcdif - fsl,imx8mp-lcdif - fsl,imx93-lcdif - items: @@ -77,7 +78,9 @@ allOf: properties: compatible: contains: - const: fsl,imx6sx-lcdif + enum: + - fsl,imx6sx-lcdif + - fsl,imx8mq-lcdif then: properties: clocks: @@ -113,6 +116,7 @@ allOf: enum: - fsl,imx6sx-lcdif - fsl,imx8mp-lcdif + - fsl,imx8mq-lcdif - fsl,imx93-lcdif then: properties: From patchwork Mon Dec 11 20:41:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13488043 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 BA593C4332F for ; Mon, 11 Dec 2023 20:41:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 21CA410E4EF; Mon, 11 Dec 2023 20:41:55 +0000 (UTC) Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by gabe.freedesktop.org (Postfix) with ESMTPS id B557E10E4EC for ; Mon, 11 Dec 2023 20:41:52 +0000 (UTC) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1d03f90b0cbso8925875ad.1 for ; Mon, 11 Dec 2023 12:41:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702327312; x=1702932112; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4SLdiRyhExEvPi1cg8KDejtcX5uLXmVUyVp5Vl4jGMo=; b=PI7inl+N+FfE+Bo6ygFh4q3IqomS78rRwP0+lDKS6aRIxoR16wvg7uweB7r1talGWa lKXbltJuz9gvsvXZfBUdTotyXGOMVnhBNWIQ6j7OypasM4igZXVlFp7nBE5ss5ee4UT4 fdsQQxr7ICJfZ9LpDwm5/lUNu8QAGiSquB+HnnJRkSX6eyBpM3SnpE/5F6BhelgYrws9 oTcpRNXGvepDhr5y7xSwrJW/CmO9YsbAVhd01dnwvEU2hVW1ZyxgqBWL+xBcy1WWyQyt TpXPmeSILihi1q7tZXG4tHNCZKUe6MP0X6evKP931GNi6XvsWurh+kTKeJwGlNJePhlG Lqfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702327312; x=1702932112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4SLdiRyhExEvPi1cg8KDejtcX5uLXmVUyVp5Vl4jGMo=; b=WaBN4HsUcuibZ9/DVDhapW7G3NOSvaJLrmMe7zsZnA8X6VX9cYXvtx0b540/GU7R78 HZpxKaNZexRL/3CjsOnDJzTS4RjSeLfifJ7WWf7ytSYdBoUS5IaP3JELMLwlRALaOOWn ITG2tTyilGOVByBa2uhUzdEJ+2Zd5Qs5Azx2LHuPVLxo57XrzLIK6UaXpaPcok6vDX4r G2q46FP0rm4jsaeNbaa7KoQhCg6SLHem22m9qALXx/mNN4ZFw0HXhqY9pegTME1nChA3 jYmrFIfTNWhWUVCojq+fCEVgf9fKu0sCxgxVLgQChCNjjkFxHmbwevvdZCn8PNsq91bH U8eQ== X-Gm-Message-State: AOJu0YwJ2gtDDZRMUqqixikva3AlZemWIpCwUH5yYv9jhh75LURAkAQx OGXz8Sp6EEjVf2uh8XrNtSA= X-Google-Smtp-Source: AGHT+IF6I60HrE6MGdchekzFDVSoSd7q2xByXKq950PLJ1Ac62OYbce8O8VpSxDxHwlchyeldQp4PQ== X-Received: by 2002:a17:902:d4c3:b0:1d0:45b2:d8b0 with SMTP id o3-20020a170902d4c300b001d045b2d8b0mr9145535plg.5.1702327312115; Mon, 11 Dec 2023 12:41:52 -0800 (PST) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:1d51:eaf7:9aaa:d7c]) by smtp.gmail.com with ESMTPSA id w14-20020a1709027b8e00b001cfc4d8ede5sm7124809pll.301.2023.12.11.12.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 12:41:51 -0800 (PST) From: Fabio Estevam To: marex@denx.de Subject: [PATCH 3/3] arm64: dts: imx8mq: Exclude "fsl,imx6sx-lcdif" Date: Mon, 11 Dec 2023 17:41:38 -0300 Message-Id: <20231211204138.553141-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231211204138.553141-1-festevam@gmail.com> References: <20231211204138.553141-1-festevam@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, Fabio Estevam , kernel@puri.sm, dri-devel@lists.freedesktop.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, martink@posteo.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabio Estevam On i.MX6SX, the LCDIF has an associated power domain. i.MX8MQ does not have an LCDIF power domain, so pass only "fsl,imx8mq-lcdif" as compatible string to fix the following dt-schema warning: imx8mq-evk.dtb: lcd-controller@30320000: 'power-domains' is a required property from schema $id: http://devicetree.org/schemas/display/fsl,lcdif.yaml# Signed-off-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index c6dc3ba0d43b..5d8365e4eb26 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -739,7 +739,7 @@ sdma2: dma-controller@302c0000 { }; lcdif: lcd-controller@30320000 { - compatible = "fsl,imx8mq-lcdif", "fsl,imx6sx-lcdif"; + compatible = "fsl,imx8mq-lcdif"; reg = <0x30320000 0x10000>; interrupts = ; clocks = <&clk IMX8MQ_CLK_LCDIF_PIXEL>,