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 { + }; + }; + }; + }; }; ...