From patchwork Mon Feb 27 15:54:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13153855 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 4732DC64ED6 for ; Mon, 27 Feb 2023 15:55:48 +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: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:In-Reply-To:References: List-Owner; bh=FT0JKPpPnQiPAbJnhCeAi32AHkmZdPIoAshdbJcuh2U=; b=3EfRKGGirBu/SU xotLxL/AQ4p+/cx4oV1Yjuuu/p2Gzbu0ewq4YJq23EinOZ5c/0CkrA5PFSL9cSR3s/P/cufQ/AfNW 5CVY9WNqw5JH7V25eU5VJH92gfRecpP2VNxX14jpyfIAE5k/A9Uxfr34hC5qizcPLQIi6TFnin2mi vPJ6eyXOSwbscjzoPBlLDyDzyK7MTxY2j/EHeBT40vrnx5lg1MVpzqQVHWnmLxpQMGNhrhqrgdl3A nElbtu+QHJ3qn+Qap7BXUg/zLV+s7mjKlHXJZZ/W2hCvvwtMWF6yRPhaX2MlXmk2KjE3DgLgy8wqF x3Ieo9zZq/OgbqV0swBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpr-00AG2t-U0; Mon, 27 Feb 2023 15:54:44 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpl-00AG0h-8i for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 15:54:39 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id CB84085A35; Mon, 27 Feb 2023 16:54:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677513275; bh=RhbrvPnLAIm5JcSIDnQQcF9dl9lbKecsaZECrKT+Xlc=; h=From:To:Cc:Subject:Date:From; b=luU0IHYI33XBRTeo6nNLjyfCuq7kf6pArMdc76xGL1+aiqpCT5ZYSjhwwcP842CmL sViVHyx7Wkfx8TQ0h3uWQyvEn9V8k4f/dMPh5MEHzzUCeKeJxW4sL1lEtwdpksUwVF c++6I+C3l6n67FBVjjguUViGHLZbdVJWV8yB2NI4Ed0PY6zlZclaZxzCX6crNSDT+M /Xsvk5nf9XKIG+AnanFWBtTovpcsmj4aQ0p/H41dJUXihaj07ISdlutFKDS/vhV7Ao ah4R03+Wm8uRFhttDM25IbatK3/7dUOY8ErIMYqLFX6z5+If2QtY1WoTq8S7JPaB/P SfUZxFsiJdYJg== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Krzysztof Kozlowski , Alexander Stein , Liu Ying , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v5 1/5] dt-bindings: soc: imx8mp-media-blk-ctrl: Align block controller example name Date: Mon, 27 Feb 2023 16:54:19 +0100 Message-Id: <20230227155423.40359-1-marex@denx.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_075437_710716_B0BA3C25 X-CRM114-Status: GOOD ( 12.40 ) 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 Align the block controller example node name with Linux imx8mp.dtsi . No functional change. Acked-by: Krzysztof Kozlowski Reviewed-by: Alexander Stein Reviewed-by: Liu Ying Tested-by: Alexander Stein Signed-off-by: Marek Vasut --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V2: Adjust the label too V3: - Add RB from Liu - Drop the label V4: Add AB from Krzysztof V5: Add RB/TB from Alexander --- .../devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml index dadb6108e3213..a0f7c73510d04 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml @@ -94,7 +94,7 @@ examples: #include #include - media_blk_ctl: blk-ctl@32ec0000 { + blk-ctrl@32ec0000 { compatible = "fsl,imx8mp-media-blk-ctrl", "syscon"; reg = <0x32ec0000 0x138>; power-domains = <&mediamix_pd>, <&mipi_phy1_pd>, <&mipi_phy1_pd>, From patchwork Mon Feb 27 15:54:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13153859 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 4FE11C64ED6 for ; Mon, 27 Feb 2023 15:56:18 +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=4fcjP49K2JYjOQDrCTCHSda/j9yMCEeieqwHTfa/1Ok=; b=RVjlnyo+DPGEtK 9Wh4Q+MTfU/vGKoSyyO7FSNKYDumjQlbRliy/yl5gcT39BfYzF9fHQcEXIj6fjuI1Sqme6c7RIBLR tuHwe8iNY2HdB2jJnDTusb6cIC+rYGOnKKmO+kPjQeVK7SkC2J7upka8B4RyX1Yf0pxTeriv31KWl K9f1X9QWBUKqhKHHQJqT5Fmgdufd40xvtQ9+7i/Vvz42bUKT2Z9WbOyg5XVZavSRPmsHg3iN+oLk0 kClgCVNs2tehU9MoZpgmkAMXswAgPUdcn+yGi7deu6zLuDVOJNdt/UGz3+RzhRMGrTF6FfSil3dvx vSeYKnUOGMmJl8PfN6rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfqQ-00AGAb-Di; Mon, 27 Feb 2023 15:55:18 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpn-00AG0k-0u for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 15:54:44 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id CFE3D85A6E; Mon, 27 Feb 2023 16:54:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677513276; bh=dp80n/Xb1MY7V2hfMwK3jGstdjDAtU/XiGsxt01/Pzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cAMV5AKxIQOaSw2cIggf/tbuOI+4qvI+5YpSON3QL8LD/yVT2s7VfW+rvOvNWej8j dajqY15+pc8xhRWwsURmO6bb0TlsA4Pu8IIpi4/FHLnTs009Kruta8dAwS2mCbTeC8 /Rqs1TaWUsarbfOdbwZ+K2+ZpqxuAmELfrxMPq2Mvm/TSfwhu0osMKyJ2cc9WP5nxA KRBIVLsZnW1UbWhfXssOQSWPxRhDl2cG/12KTmxXMdjaXN9vs+5Gkpz3TxxcC9QF5Z icVcpsl5UBReuvoV9gL823k8omEiRGDQ4ci9MnHvWuvUO4sYWAqXsj0ZUoRsrtM3I5 Pd6ZUKTkMR7+g== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Krzysztof Kozlowski , Liu Ying , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v5 2/5] dt-bindings: soc: imx8mp-media-blk-ctrl: Add LDB subnode into schema and example Date: Mon, 27 Feb 2023 16:54:20 +0100 Message-Id: <20230227155423.40359-2-marex@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230227155423.40359-1-marex@denx.de> References: <20230227155423.40359-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_075441_511767_F23D46CA X-CRM114-Status: GOOD ( 11.88 ) 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 Document the LDB bridge subnode and add the subnode into the example. For the subnode to work, the block control must scan its subnodes and bind drivers to them, do not misuse either simple-bus or simple-mfd here. Acked-by: Alexander Stein Reviewed-by: Krzysztof Kozlowski Reviewed-by: Liu Ying Tested-by: Alexander Stein Signed-off-by: Marek Vasut --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V2: Add RB from Liu V3: - Update commit subject and drop space before fullstop. - Add RB from Krzysztof V4: No change V5: - Reorder clock and reg properties in example - Add AB/TB from Alexander --- .../soc/imx/fsl,imx8mp-media-blk-ctrl.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml index a0f7c73510d04..ea9aa876ed130 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml @@ -23,6 +23,12 @@ properties: reg: maxItems: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + '#power-domain-cells': const: 1 @@ -78,9 +84,16 @@ properties: - const: isp1 - const: dwe + bridge@5c: + type: object + $ref: /schemas/display/bridge/fsl,ldb.yaml# + unevaluatedProperties: false + required: - compatible - reg + - '#address-cells' + - '#size-cells' - '#power-domain-cells' - power-domains - power-domain-names @@ -114,5 +127,43 @@ examples: clock-names = "apb", "axi", "cam1", "cam2", "disp1", "disp2", "isp", "phy"; #power-domain-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + + bridge@5c { + compatible = "fsl,imx8mp-ldb"; + reg = <0x5c 0x4>, <0x128 0x4>; + reg-names = "ldb", "lvds"; + clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; + clock-names = "ldb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif2: endpoint { + remote-endpoint = <&lcdif2_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + remote-endpoint = <&ldb_to_lvdsx4panel>; + }; + }; + + port@2 { + reg = <2>; + + ldb_lvds_ch1: endpoint { + }; + }; + }; + }; }; ... From patchwork Mon Feb 27 15:54:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13153857 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 04C79C64ED8 for ; Mon, 27 Feb 2023 15:55:50 +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=LFJ5MP8xjSeK1NsWhLbUUqn2aGxSgMPqnZ+h7X/D3ww=; b=yBFUbEnyH+9gir GGEIONack50xnV5ygJC0n43IFkIaw/pWMHRRdBnMFkAGoH/F/WJ9cqYTw9cxEugHey1PuQTJtG9Xf 1orKAIJNVdkmDXiRzGo8x/jyi117yUxlOdF4JjlVh9eR9JEyvpyBbJjsTe4+GygmkgFjFh0o/YdLo mpGwVZ3AKRwBOBSywShMmO2jTSz9jS7LSysPlwgHW+XfIkNAGjc2CxWAhREN+SSMMOs+gubGtjiIF 6VY5lE086ZiZkJggMYK+agWcKHa3aJkot/y+QzqIq6j0bINzwZrwbDZXtZtPeyZWHNX4GtPfYalEn V1BohBqPMwwcJIsE8oCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpz-00AG48-QC; Mon, 27 Feb 2023 15:54:51 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpn-00AG1F-4K for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 15:54:42 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C3A6E85A7B; Mon, 27 Feb 2023 16:54:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677513277; bh=zvV2YD0UV3KsEgaXHKPjZ5VzXCKzCsRPiqTxY5xb/SI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dAcwbcaFTi/j3joWZfmun9EgSMCakcK9v8bJb4rdNBOjEe5etM3pUaTjpmcgh6xtI hwp1OJsoX97ksrSAoI3zFlbMTszAcqFvneydPNR8jqr9aYm/P2UpaWBKal3m9c8dNt ZPmJLWL7sFjA/zx8VcOc+/+9y0REdtqknp86GAitEBI/cF8SwyrtCUohQhZ+BJOvNG d8YgWzHeAdLMgl2Y8kp6QdpmF86/cHZH65BLgGseG4KXk88FYaUGrRtH/hVIrh/K9U r/G0aqRZfM6skIylujTgtSB9+15lfU6aUF3B8bJa8pwQ1HXVilET/3d4Y3QRk4Imhr Z/SLSsLFDRe3A== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v5 3/5] soc: imx: imx8m-blk-ctrl: Scan subnodes and bind drivers to them Date: Mon, 27 Feb 2023 16:54:21 +0100 Message-Id: <20230227155423.40359-3-marex@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230227155423.40359-1-marex@denx.de> References: <20230227155423.40359-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_075441_501821_56C057D1 X-CRM114-Status: GOOD ( 13.78 ) 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 This particular block can have DT subnodes describing the LVDS LDB bridge. Instead of misusing simple-bus to scan for those nodes, do the scan within the driver. Fixes: 94e6197dadc9 ("arm64: dts: imx8mp: Add LCDIF2 & LDB nodes") Tested-by: Alexander Stein Signed-off-by: Marek Vasut Reviewed-by: Lucas Stach --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V2: - Turn this into 3/4 - Warn and continue in case of error V3: Add RB from Liu V4: - Use devm_of_platform_populate() - Remove RB from Liu V5: - Handle devm_of_platform_populate() return value correctly - Add TB from Alexander --- drivers/soc/imx/imx8m-blk-ctrl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 399cb85105a18..8bee7280303c5 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -310,6 +310,10 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) dev_set_drvdata(dev, bc); + ret = devm_of_platform_populate(dev); + if (ret) + goto cleanup_provider; + return 0; cleanup_provider: From patchwork Mon Feb 27 15:54:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13153858 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 155D9C64ED6 for ; Mon, 27 Feb 2023 15:56:07 +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=viWBPW/juWWRmi+C3ZhyhVhPfy22RWfllRZcuge476w=; b=G4QDROrpN2cP4j 80TopKUl08BEQq4X3VjtsQykTT/JNG3kBiGcqjOH1iPwbDOLLrMO9YDCjgUWSEl8TDFhCpNEx3gsM /mqZBzykwMAjYtztUqF28XADaNh/NIGJ0ewlV5yRnxW1zQn1X/9pN1t0qQhute88jTN+6bRCdmsQN R1p5H4Dr7ccH/L3pXaK4p57yYe5La4jxV8ZzkSbUFxcMPXf/1Q2KZZdNQaFxMt4vyTgCPhCDqGMMc hsTVayP0g/ocKQjWBvATzLfPJN1GNd1CFvk8QPlcUSIzgpBKvRP/h/YAI8pukZhv//TWvfStvUztV 3gYtGf/Zk/zd1tBpPNGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfqG-00AG7X-32; Mon, 27 Feb 2023 15:55:08 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpn-00AG1I-Vf for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 15:54:44 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id BBECC85A7E; Mon, 27 Feb 2023 16:54:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677513278; bh=h/H6962qlPLr49CwsRblOHwuzdTuUVTM4Vlng5jTHA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SGHWtk5QjHc5vy+2kLNh4jWA/G5M1JMx4cegVMyhtwZPquuYEo1ouZn2kAJGgN3vO 4+jS56FxILPhM+Ewy97Ie62Jiubdj/UApcA8KIcKRea4SUYgNseGkU7Y2CpPh5y4yi ybl587hFpDJwBv9bUNl7ak+/kv4QSgcPKVKxJ3PKvsHHOhhwbXXBVUy2CGQpSo2/zE uUaFIZiRg1svf9WsiD0+rqfwR9UEuMuHyRX3CtVgI5J9zTQau8gXJvGPi+t2jc1whQ qAjJSnltPrafhqipE6MqnlqW2T3lBcfuWUYefYn+XJdM0LQzfPkqU2pYqNWNLaSkwK 9zuX5qjyQCV+g== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Liu Ying , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v5 4/5] arm64: dts: imx8mp: Drop simple-bus from fsl,imx8mp-media-blk-ctrl Date: Mon, 27 Feb 2023 16:54:22 +0100 Message-Id: <20230227155423.40359-4-marex@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230227155423.40359-1-marex@denx.de> References: <20230227155423.40359-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_075441_527092_43B21F60 X-CRM114-Status: GOOD ( 13.27 ) 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 This block should not be compatible with simple-bus and misuse it that way. Instead, the driver should scan its subnodes and bind drivers to them. Reviewed-by: Alexander Stein Reviewed-by: Liu Ying Tested-by: Alexander Stein Fixes: 94e6197dadc9 ("arm64: dts: imx8mp: Add LCDIF2 & LDB nodes") Signed-off-by: Marek Vasut --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V2: Turn this into 4/4 V3: Add RB from Liu V4: No change V5: Add RB/TB from Alexander --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 2dd60e3252f35..ca8093ee4d0e4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1151,7 +1151,7 @@ lcdif2_to_ldb: endpoint { media_blk_ctrl: blk-ctrl@32ec0000 { compatible = "fsl,imx8mp-media-blk-ctrl", - "simple-bus", "syscon"; + "syscon"; reg = <0x32ec0000 0x10000>; #address-cells = <1>; #size-cells = <1>; From patchwork Mon Feb 27 15:54:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13153856 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 6BD75C7EE23 for ; Mon, 27 Feb 2023 15:55:51 +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=pYk7h5jisECUPnZ2C0LqMbt77o/QtHmF1aueENLuwE0=; b=nK+5kIyoCoI6ds Bv0bnImHoqVYRpA6jRlJUxAsvRFIe4CwBo7lD02bpsKTheR46DocFz5em66Roj7qhyjcHINhk1ImF vPn1sMzjkgSckIPBV/KIEFIr8WQv7tNvsz2ZJspFB0zxpm1auEAkPcMbuxnO938A8q8Ij2XHnd5FD mE4pfFQVtuW3EtHaIFAMNIq/PTyaaS1+fBS5ZPCsQhgtF9am4oq9z8gG8c5wNlu5cIawPEKzFx2EF 5IOvZVsxYOPW+jBQK3Pk4nPn3MT7S+YaK3itsRSbXGNk5ZXxf2kco8NdDJ8ITDIYl2WNzP0jGQ7Vj ilowz0PP9czJFmSICB6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfq7-00AG5p-Ok; Mon, 27 Feb 2023 15:54:59 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWfpo-00AG1J-Of for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 15:54:42 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A80BE85A81; Mon, 27 Feb 2023 16:54:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677513279; bh=a8O4DByypb/t3gn7Z8fOup0Bdhrzf3HTjCQWF9LzYY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O4lgGKTCluXo8gVo8zEYNvWSAfDIRSHVquCn9z9rrEnCPG46xrRPj3mfzz3G3HqY9 M7i9hk+6glqC57uFKLlQamXGCwSJ78Mwej0DvP9vL+VoMxvuJKBkm/RJkJDyWc+CFe Gg3B4KwI0DGqgBQZ4kDwbag585KKyylsk7bNRT3qxx+6NBZkTZ4RMDrOVaz9Nw92L/ jMtU3S8upDWUqy8zKah002e3GXUTTjJY8J34TfU6ncWzB1AjDyPiBaOnOpL1c4Y9h2 yQdci7d5an9lcdB3fbbr+dXXfSzdbOPfMdCDng4j6Z5A9OQ28CA2Y9N6f3wNQCc753 +reSWPf2WiBIw== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v5 5/5] arm64: dts: imx8mp: Reorder clock and reg properties Date: Mon, 27 Feb 2023 16:54:23 +0100 Message-Id: <20230227155423.40359-5-marex@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230227155423.40359-1-marex@denx.de> References: <20230227155423.40359-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_075441_506981_E15EF36B X-CRM114-Status: GOOD ( 12.22 ) 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 Align the clock and reg properties order with example bindings and the rest of the imx8mp.dtsi . No functional change. Signed-off-by: Marek Vasut Reviewed-by: Lucas Stach Reviewed-by: Alexander Stein --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V5: New patch --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index ca8093ee4d0e4..524b4ccfcc553 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1202,10 +1202,10 @@ media_blk_ctrl: blk-ctrl@32ec0000 { lvds_bridge: bridge@5c { compatible = "fsl,imx8mp-ldb"; - clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; - clock-names = "ldb"; reg = <0x5c 0x4>, <0x128 0x4>; reg-names = "ldb", "lvds"; + clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; + clock-names = "ldb"; assigned-clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; assigned-clock-parents = <&clk IMX8MP_VIDEO_PLL1_OUT>; status = "disabled";