From patchwork Tue Mar 4 15:49:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 14001013 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2651227CB3D for ; Tue, 4 Mar 2025 15:49:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741103395; cv=none; b=UzB3+whX/ZSvWAEc8beWODacG8t+Dir/Aa1KEKFlIMYOrOsZeZF6gmu1WIc6QQUQ9EWGw0SFY3+j5uqf/YcSQDA6QzbOIVaPB37GceMnw8mN2pr3DtMFz2nlc+3FiT4POdGPFJFwTqezMleE7iXuciZERmdtTcNPMiXJAVKzuOQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741103395; c=relaxed/simple; bh=4h0ro++EXKKMcYzlMyF2aROs67wiW1TBYUCRTybl1X0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nr3JuDTW8dsFbeRuoq+xTL8Aywp9rfuxruJm388ezHTdK/5yBiCHoxUryCVeYbhXIh5LouvC0KG1iMsCocLwiM78W/Hv7e9NAZg+7swupTB6Oz7QkD2PRQ869NE4vfUxrd11CCPi1qSSQl3ZxHrgVu+ArL0cH6BoSYrIYDlyb6A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=o5xkDCek; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=bykKnpNc reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="o5xkDCek"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="bykKnpNc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1741103393; x=1772639393; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g5p5A34MpJIsUrfR0gYIJqddGWsXChyJFWZEMauN/Rk=; b=o5xkDCekm1v1sgDeae5Co5xgihCzBm5TklueOcGsV0BbZxLxE89e5hWJ EaTS/0C0HQ/+cZzim7W9dukWfQ8CnYQygEP5mIrqlcQMzN/nndSm02CBC T5m7HT+4d5YlocfLHjmhfQZfoOi6W1ZYIQsH8xcEj3dW5JlntlVApFVfK T58EG5GLPd60SIhf5YXjRGhNqnJpN+veinAOhFLeW5rdGVkpe6abPX0WE i6an0mzjza5hhkdzwix3q4w3vldlZ0lD18bgXHRot3c3Gs1jWHe4y3BiP zsM5GqZRY/+baCOts/shJtLk6hsNmNyEu6XGGXV/aSIHXJOtPjIF9HMkr Q==; X-CSE-ConnectionGUID: wnINBS6UTbaKfLbsQjXPow== X-CSE-MsgGUID: 9dDagD/4SpiBK2DXp8Z7ng== X-IronPort-AV: E=Sophos;i="6.14,220,1736809200"; d="scan'208";a="42272738" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 04 Mar 2025 16:49:50 +0100 X-CheckPoint: {67C7211E-16-F35B2447-E1635CDE} X-MAIL-CPID: B5735A1773F397C33992F6DE6F197D7A_1 X-Control-Analysis: str=0001.0A00639B.67C7211F.00DF,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 34F65162421; Tue, 4 Mar 2025 16:49:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1741103386; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g5p5A34MpJIsUrfR0gYIJqddGWsXChyJFWZEMauN/Rk=; b=bykKnpNcB+Sz/5BhgJVYQ+68PMg16ny4pejBB7mHy51mMLSqGaM1o505R9xmhQVt/GRnx0 d9iNCAGXWJEMn5fFI2481U8YpnlCtt/JwCQwlYmYK49095XfyeE32lz1qDVdMv8eIo8yj3 VWRj9trsfXFz63jqMOtaLDV5v+PvcqxcmxxtuGm2Ayg7SRrDzVQAXThEi6AIDzmjlYIzbR uzmenlb+GQlST/G4W02/7HHeIGdP56ZqW2nR2MhRAzmzzfD6O4a6L3Jx5APeZfG/ffSL7n OnfbRwIKSXtyL9mpKgkqwyQOnSygTZtJbfyIO2ngMz7+aV9uk9bB7lQRTDfTaQ== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson Cc: Alexander Stein , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v3 2/6] dt-bindings: soc: imx93-media-blk-ctrl: Add LDB subnode into schema and example Date: Tue, 4 Mar 2025 16:49:21 +0100 Message-ID: <20250304154929.1785200-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250304154929.1785200-1-alexander.stein@ew.tq-group.com> References: <20250304154929.1785200-1-alexander.stein@ew.tq-group.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 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. Signed-off-by: Alexander Stein Reviewed-by: Frank Li --- .../soc/imx/fsl,imx93-media-blk-ctrl.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml index b3554e7f9e76d..cd785111928bf 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml @@ -24,6 +24,14 @@ properties: reg: maxItems: 1 + ranges: true + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + '#power-domain-cells': const: 1 @@ -46,9 +54,20 @@ properties: - const: csi - const: dsi + bridge@20: + type: object + additionalProperties: true + properties: + compatible: + contains: + const: fsl,imx93-ldb + required: - compatible - reg + - ranges + - '#address-cells' + - '#size-cells' - power-domains - clocks - clock-names @@ -77,4 +96,36 @@ examples: clock-names = "apb", "axi", "nic", "disp", "cam", "pxp", "lcdif", "isi", "csi", "dsi"; #power-domain-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x4ac10000 0x10000>; + + bridge@20 { + compatible = "fsl,imx93-ldb"; + reg = <0x20 0x4>, <0x24 0x4>; + reg-names = "ldb", "lvds"; + clocks = <&clk IMX93_CLK_LVDS_GATE>; + 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: endpoint { + remote-endpoint = <&ldb_to_panel>; + }; + }; + }; + }; };