From patchwork Wed Mar 29 13:16:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2834 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E6A01414BB for ; Wed, 29 Mar 2023 15:18:47 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id e5-20020a17090301c500b001a1aa687e4bsf9436873plh.17 for ; Wed, 29 Mar 2023 06:18:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680095926; cv=pass; d=google.com; s=arc-20160816; b=SSbxtQi0XawA0da7wpYnXM50wjwgvoZEicyXOvwAnNvGsewYJTnR3t10aJUMyN1nW5 eqcnd3X2A3sTDEUBsnURi4q8POMJAdKeYOmVQ2h04cGY2n6S9Q8dvl5enJT+UTIFDX9m RLRtrpBvc5TeWM3E6dZQTPZ24IDlR3JdTi/IXisCtKjIL8Y7Jv+WpSke23bfBiImhiu7 ShmvIEbFcqqksgcDcTJsnA0iCNWYjZ4AnGWkzIrsYXc+Tx1bEIuZ+EPdElmEKy28PeXv agKZ5UgC8kC2LQ1QxulFloRBUWczaxAKoCNrxycgkKn0TQxLN9+O8hUbf8wtyblJYxmr h4fA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0kPMf5STnJGXg/gr/+r2B0YzlEZINEuvimdgZWzGh9s=; b=A+lSk9WCZNAs87o/29/K74k4XKpG139a5cWSvrOsaqitM7zjPM4T6+LJ4zTkf1l3cw SCLC1QM92tGDmwoTo3rr/Q9OpHJAEmMaQ6v7QsXUYR09J5PaERiUVRvyS3KqFRy4hFRT 8jeEXS9TautopNDoh6KHJelM+3M9jb8uHFJpGgmL6uRZ6Vnr504BVNKu4RneTdqNV5GQ 7XSBbhbP9DA2Azns++W5HkdozGLbyPOjLeWYQ7UWA6L8DIDtDdvz7tqFxddYjoo3bTDl vwFSX43nf911BSH5Fa35F5Th8LH3nxiwxjeLzdCXHkVHtrlz70SRciD1SChDAzHpcrLB F4TA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Tkq5mhDm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680095926; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0kPMf5STnJGXg/gr/+r2B0YzlEZINEuvimdgZWzGh9s=; b=UwKHwlb1gHiwL2AQIEvX1V3vRDzvW12A+BkLGnnPkJX/+ykmUqsY9Id6FMBF6yjMWH RLCUd9DRM/OYxhK1xvFTCIyzG4CmkgEKv3/bmqH4CA/gIEg0ql0sjI4LuFLnjhkm51At RhrYitZ1G4nqPsL8MCFsLYdHIBNJXA/bvS8sU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095926; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender: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=0kPMf5STnJGXg/gr/+r2B0YzlEZINEuvimdgZWzGh9s=; b=vwPt9qzMpbJCes5Uw+FJC1ii6Yh5jtGmy3AvjEweQaSM+FMVRSivINzAF9ualLY7XB X34hms1B2KR3XbGxc8jsU41c85PzV02WGQUyGOd5yy1y8rLGNvJoj/H3u6kMNyRY68P8 FJ+ekiV+/GH20NpZqn1u9WM3FWc4L97JrI+NVOc5ruoK4j09B0ES5jhVVBGcAzCMwS9Q hnnxYAKTDLpv0u9aql7GmeLY/N1rZVfG+9ran6LD3OFSPQYSYKfmhpor2zXBtcDtZek1 KoG0/7xlqEtCU8tVc/E8o5LDOtqJVfAFcFLFADTsdrd9q2E+4q16qnDvPk4A3aaO2xR2 X8ZA== X-Gm-Message-State: AAQBX9eFV/Lp0XBCZBmUdVCXexvFxcKbpq0YJvVYbxBwEjaMuOB9No7e qxcl7vAhpou1Kf2b+tAl0Ii00lfM8FdpcsQ2 X-Google-Smtp-Source: AKy350ZbcAFqnQt15LPjOtzhKZPY4U+p8kiXWFTI/9+mGp9OY6znYO/85lgAOObjDlrTI3A2wEyz/w== X-Received: by 2002:a17:902:a502:b0:1a0:d6b:1211 with SMTP id s2-20020a170902a50200b001a00d6b1211mr6497991plq.6.1680095926694; Wed, 29 Mar 2023 06:18:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:1992:b0:237:7ef0:5b8 with SMTP id 18-20020a17090a199200b002377ef005b8ls2186067pji.3.-pod-canary-gmail; Wed, 29 Mar 2023 06:18:46 -0700 (PDT) X-Received: by 2002:a17:90b:3891:b0:237:3dfb:9095 with SMTP id mu17-20020a17090b389100b002373dfb9095mr21157640pjb.6.1680095925787; Wed, 29 Mar 2023 06:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680095925; cv=none; d=google.com; s=arc-20160816; b=CJe1V6oywkM2RBAnkV+JBFPNYKaadRgd7UBl9AtKVr3ULQEhQzMaNhe19cB0k1LBC/ ZRFHqCiAAyxzNK11uFQ5Ql5W5mCGF1P0cX9Zpz/YL/X4K3+K8Wlxq4wdX0+lUDhc7SWL j+6ro4jKdnpjwWypoeiruuC5W7+zctkm4xSgiyNQ7qqkawKm14Oc1TQAYgzMIZ7Ad3a+ jNeGLErHqa1u+3YuRHVTYUxRQBWrHUIaf6OGWZoYrf1EH5udGWKSaYkiMhoXkHeY/9CG EEUfJ596tWbn0IZ4h+aWQj+0+AU2xA84CkecvftRbyUujbu+o3ObI+e4O3QzNKmZPdxv a6bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ayYxgFJMhixN73Dm9Yf7ruaoOJe6G2KL+MHmxqG0S5Q=; b=wZpupWdntKaQ7WoP1ZUsRe1PicyTCaxh3f0ABJOGD4+AIJphwqMY3Dv2GGK85EjPjT XjaT0gtx6+TjN3PjZa6ODn17cR2iDpw0/OETKJqDaZyPKDL0uL7KqQCd2qr7exjM0ODS 8A7kYQLtJ6lOdKuwXV/Fe04nl7SzRZSk9a0iyk5ERO4w1Bywr4W9WwJDe17YCUoN5gFr ib5XuWd922niteq/tynZKuI4B0zyUdaOj166XAQYe+MvpwR7Uroa1jekGUH9sdW7pwjB X6oQ0f2NunAcf1byw9cOTFlhSUXRSKYPzv9mClpZX2LxJ066TtjizN/s9+E6Ytb3ZSIs HG9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Tkq5mhDm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id nk16-20020a17090b195000b0023d3857de45sor920503pjb.8.2023.03.29.06.18.45 for (Google Transport Security); Wed, 29 Mar 2023 06:18:45 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90b:1b49:b0:23d:1fc0:dd20 with SMTP id nv9-20020a17090b1b4900b0023d1fc0dd20mr20207025pjb.17.1680095925196; Wed, 29 Mar 2023 06:18:45 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a047:206d:4722:c4fa:e845]) by smtp.gmail.com with ESMTPSA id s16-20020a17090b071000b0023f5c867f82sm1400192pjz.41.2023.03.29.06.18.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:18:44 -0700 (PDT) From: Jagan Teki To: Dave Stevenson , Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sam Ravnborg , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Marek Vasut , linux-amarula , Jagan Teki Subject: [PATCH v7 09/12] arm64: dts: rockchip: a64: Add endpoint@0 to dsi_in_tcon0 Date: Wed, 29 Mar 2023 18:46:15 +0530 Message-Id: <20230329131615.1328366-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230329131615.1328366-1-jagan@amarulasolutions.com> References: <20230329131615.1328366-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Tkq5mhDm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The DSI downstream devices are likely to be Panel, Bridge and I2C-Configured Bridge. It is possible to connect all three devices using upstream OF-graph port or ports node however only Panel and Bridge are possible to connect via child node but not possible to connect I2C-Configured Bridge via child node since I2C-Configure bridges are child of I2C not upstream DSI hosts and it must represent them via port or ports with endpoint linking. Allwinner A64 DSI node already has a port so add endpoint 0 for input tcon so that the downstream DSI devices can use endpoint 1 to connect Panel or Bridge or I2C-Configured Bridge. An example of the I2C-Configured downstream bridge representation is, i2c1 { bridge@1b { compatible = "ti,dlpc3433"; ports { port@0 { reg = <0>; bridge_in_dsi: endpoint { remote-endpoint = <&dsi_out_bridge>; data-lanes = <1 2 3 4>; }; }; port@2 { reg = <2>; bridge_out_dmd: endpoint { remote-endpoint = <&dmd_out_bridge>; }; }; }; }; }; dsi { compatible = "allwinner,sun50i-a64-mipi-dsi"; port { dsi_in_tcon0: endpoint@0 { reg = <0>; remote-endpoint = ; }; dsi_out_bridge: endpoint@1 { reg = <1>; remote-endpoint = <&bridge_in_dsi>; }; }; }; Note that existing device bindings are untouched and still represent the downstream devices via child nodes since the sun6i-mipi-dsi host will migrate to a standardized single helper to lookup for a downstream device via child or OF-graph port or port node. Signed-off-by: Jagan Teki --- Changes for v7: - new patch arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 77b5349f6087..3ed566dc2172 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -1189,7 +1189,11 @@ dsi: dsi@1ca0000 { #size-cells = <0>; port { - dsi_in_tcon0: endpoint { + #address-cells = <1>; + #size-cells = <0>; + + dsi_in_tcon0: endpoint@0 { + reg = <0>; remote-endpoint = <&tcon0_out_dsi>; }; };