From patchwork Thu Jun 30 17:39:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12902043 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 9C688C433EF for ; Thu, 30 Jun 2022 17:40:43 +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=RDudc23hSOO/OGXGQMANFRFSJpaZcbn4+fu+uYrD7UU=; b=khcT/Dra2VaAF4 XY3/Bv82qkilxFUZkhnigMSuYrYZFsYAfyaxp/Yol51BRw2Q8dGXAzFW7HmUUUShFI44u6z15UEQr BnUmQYAoRR/0K0rR3kaMB2hHQcKwfIhOYY357EFIrfICD89+zoiHWik2iTafTPJPLzivquikItu4r DwvTgtDosBxnZNqtSw7hpo2XgfUn2P1BXi0pINLBPqjrQr3OQ4jD89l7QUWcC5UwvDLo1azXSaDie hjIYaaVvYw7LBzzXSTGaigdN4roLcb6ZzLxFBEsLr9ASjmKHUiU5JhLDClKzegnB9ECmZmst5KEXT EhHzYGZa/w5j6G4vzSRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6y8k-000sje-2X; Thu, 30 Jun 2022 17:39:42 +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 1o6y8e-000si1-Rg for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2022 17:39:40 +0000 Received: from tr.lan (ip-86-49-12-201.bb.vodafone.cz [86.49.12.201]) (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 B5640842D0; Thu, 30 Jun 2022 19:39:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656610775; bh=gLy1//28wUBXNtxNj+UL/N0qEuZeBJdS8jvKgQKkrzg=; h=From:To:Cc:Subject:Date:From; b=GehRBY2hZ+1ZxMJdt6aAPS7rdeZmtpYLNyLsmGl99OnnGSQk8eyj0KuJB8SodUar8 MjYISdhtVGLZwaxHD/7f5dDRSIjRXQcM7rgJGSyFEfh6umvkLMYNG1HjwjYNv7e/ql LZUv3SScqKClYRgK5cxFqW9NE4ySKmHIYA/Fx+aV0DD98OFq0B8nZgHfYbp+AqeqcF ZxJXC3+yS77ELrr+7i3/kPap9OSLjvg5TVtUlCoM0mTkLy+SIjCNOBK/NNhVPgE/4r BZMyZOEvOhlQPjZ01hfeDW2/fTFejIoVyBvA7Ez/cCvPLC+vLykOXAO3YqOZW8kxtI fXtc4t3uBTBiQ== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: soc: imx8mp-media-blk-ctrl: Add LDB into DT example Date: Thu, 30 Jun 2022 19:39:22 +0200 Message-Id: <20220630173922.92296-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 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-20220630_103937_322617_4944CE38 X-CRM114-Status: GOOD ( 10.61 ) 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 be compatible with simple-mfd in addition to the existing compatibles. Signed-off-by: Marek Vasut Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Rob Herring Cc: devicetree@vger.kernel.org --- .../soc/imx/fsl,imx8mp-media-blk-ctrl.yaml | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 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 b246d8386ba4a..05a19d3229830 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 @@ -18,11 +18,18 @@ properties: compatible: items: - const: fsl,imx8mp-media-blk-ctrl + - const: simple-mfd - const: syscon reg: maxItems: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + '#power-domain-cells': const: 1 @@ -64,9 +71,16 @@ properties: - const: isp - const: phy + 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 @@ -81,7 +95,7 @@ examples: #include media_blk_ctl: blk-ctl@32ec0000 { - compatible = "fsl,imx8mp-media-blk-ctrl", "syscon"; + compatible = "fsl,imx8mp-media-blk-ctrl", "simple-mfd", "syscon"; reg = <0x32ec0000 0x138>; power-domains = <&mediamix_pd>, <&mipi_phy1_pd>, <&mipi_phy1_pd>, <&mediamix_pd>, <&mediamix_pd>, <&mipi_phy2_pd>, @@ -100,5 +114,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"; + clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; + clock-names = "ldb"; + reg = <0x5c 0x4>, <0x128 0x4>; + reg-names = "ldb", "lvds"; + + 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 { + }; + }; + }; + }; }; ...