From patchwork Mon Jan 10 15:27:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12708918 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 1077FC433EF for ; Mon, 10 Jan 2022 15:29:08 +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=IMCGe1pTUEAhpOL47zjXYtL35KG9xhZEZ6t5CutjcVM=; b=WHjcpJGwxizezy cN/MVp6Xo/yL3RvLUX/1kgvS6xka48OABckdnhXsFoL5dDAxYYEJr3DPZrtnK8y8WR3spOcTwLaqI OlQuqEjRsw7ACJazXK88GIGKEDnNZi2Zb5+PKE4USMQRkp4jkPz21yB/y/YVHeAnha0y3YjKmGbM0 VhD7fcC3O3o9Fwo+t+M8u5lPvS73U1czlf6pr4JxtwqI3U/YsBfc5masbcNjKt4I/VW1DaYHkK0h6 oSZ/RAH2SY8RvBxYkhY1ucTcica0jTsqlPQUSjn6C40NYVVG95wRRyCrihGmruW3YqYw4IlKa5e/a acDuG9WX+AS7yw0WXHvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6waA-00C3iC-PH; Mon, 10 Jan 2022 15:27:38 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6wa6-00C3g3-Fe for linux-arm-kernel@lists.infradead.org; Mon, 10 Jan 2022 15:27:35 +0000 Received: by mail-pl1-x631.google.com with SMTP id q14so12340378plx.4 for ; Mon, 10 Jan 2022 07:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ilyruNHVzTxTe7086aSJ2h9UOBiRtTM3eY0ivIZkoYs=; b=NRgOtCK60mwtXnz3wuka4Zp8oRE3IFGFFH2YrWAjxCrX/A8JXG6uHgFzud0G4qrjro KJBcLy/sFQxjp5AOu8co1FFaZEoKAhgyvzNlYCFwqcOlv/KD7YjgyoJ3BDUbKqHBTib9 E3cPLKSvhVzduvHDmFhvtuWV++EQX1Yt326fU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ilyruNHVzTxTe7086aSJ2h9UOBiRtTM3eY0ivIZkoYs=; b=PFZkSq/KKzZbrCxpLJxYD5CErPT4uYNmnITM1t+ZP5CZ5bAI2YJxuume0aQ+zRuPsn AOuO+e5M1X28c+AMx4BbqpL+RIRjgqenybrh+ndGocT1L1xbZ+aJeZOsPn+7DQuNcx4U QOcuo5QgQGlDvJ+/TSn8vJZVglbJ4zjm6k1M1uiZlqWLoQJZPb6kh4yr/PcCO7sICq9P 4N4q98wKNH8ddCv6EbpE30xTIEzWlT/v+V/sv2ql7YN59WL7XGAthLAwwSkrk2qsqePa lkOVvsZhYtZomrvnuESyOE3n+RR8SHUY2XC6plo/wAQqOeO7oL+6/hOnCYnOhjov22PX Nfsw== X-Gm-Message-State: AOAM533skXzcTM/ZEkoEzURlyt3qugLdAAQHLoJuqfr8ZaBCmpfnKqdu p93DzKkBrCBiDX9/qusTsxuajabMbndNMg== X-Google-Smtp-Source: ABdhPJz/yk/VdSzb9E1TQdRW//AUrLNkhnDnuI0tgqS5VuhUuhGIi2kzGL2xzUar+X5xusbEM8v4sA== X-Received: by 2002:a63:10c:: with SMTP id 12mr215928pgb.67.1641828450764; Mon, 10 Jan 2022 07:27:30 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:98b9:3ff7:5eda:a7cc]) by smtp.gmail.com with ESMTPSA id s207sm6087638pgs.74.2022.01.10.07.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jan 2022 07:27:30 -0800 (PST) From: Jagan Teki To: Rob Herring , Krzysztof Kozlowski , Marek Szyprowski , Andrzej Hajda Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/2] arm64: dts: exynos: Link DSI panel at port@1 for TM2 board Date: Mon, 10 Jan 2022 20:57:13 +0530 Message-Id: <20220110152714.58220-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_072734_546595_3EAE3DB0 X-CRM114-Status: GOOD ( 12.85 ) 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 TM2 board DSI pipeline has input from MIC and output to s6e3ha2 panel. The existing pipeline has child nodes of ports, panel and MIC is remote-endpoint reference of port@0 of ports.  Adding panel as another child node to DSI is unconventional as pipeline has ports child. However it can be true if MIC is added inside port node like this. dsi { compatible = "samsung,exynos5433-mipi-dsi"; #address-cells = <1>; #size-cells = <0>; port { dsi_to_mic: endpoint { remote-endpoint = <&mic_to_dsi>; }; }; panel@0 { compatible = "samsung,s6e3hf2"; reg = <0>; vdd3-supply = <&ldo27_reg>; vci-supply = <&ldo28_reg>; reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>; enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>; }; }; The above pipeline is proper but it requires the DSI input MIC pipeline to update. This patch is trying to add panel at port@1 so-that the entire pipeline before to panel output is untouched. Reported-by: Marek Szyprowski Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index aca01709fd29..e13210c8d7e0 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -53,6 +53,16 @@ &cmu_disp { }; &dsi { + ports { + port@1 { + reg = <1>; + + dsi_out_panel: endpoint { + remote-endpoint = <&dsi_in_panel>; + }; + }; + }; + panel@0 { compatible = "samsung,s6e3ha2"; reg = <0>; @@ -60,6 +70,12 @@ panel@0 { vci-supply = <&ldo28_reg>; reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>; enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>; + + port { + dsi_in_panel: endpoint { + remote-endpoint = <&dsi_out_panel>; + }; + }; }; }; From patchwork Mon Jan 10 15:27:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12708919 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 5A818C433F5 for ; Mon, 10 Jan 2022 15:29:09 +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=ntx1Pxtk79e5ljDTVUZnhVB/HvlkyGF7Oglqy7PD9hM=; b=WEu0Rekj4oYaoQ 0aPi+mBqJs7UXRB0YQZnF0ZUV0TblJNTvuV64ZCEBp9aE9mrGPnljgzRXw8/Cxxr7PTHyPo+wGo/b gDMtDsyImo/Dk4woAd3DAoZwHaQI5B3S9PMr77KSm+9EV7gURxLPcIh/qFxw783y7H+JT+TwGGcMc YAYHkHklFZD0k+y+2q2Va8xuSxMQgpjZq93u0mPcBM3t/sC9q0DWW8PSUOBh0f4uyDsfR8PEIeAhP oNewGLckIUK1SP/gxeoT0MJU816LO3HZNeq3FggI+aFkSWfssnUAuWo9QZw/nxBakZv+3Gi0jilxv DyO5hvvFKaDhLTTG6kvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6waK-00C3kI-D5; Mon, 10 Jan 2022 15:27:48 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6wa7-00C3hD-I9 for linux-arm-kernel@lists.infradead.org; Mon, 10 Jan 2022 15:27:36 +0000 Received: by mail-pj1-x1033.google.com with SMTP id b1-20020a17090a990100b001b14bd47532so369400pjp.0 for ; Mon, 10 Jan 2022 07:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GWnNxTMfFecLV6thOlvHXz2pzzBbjvSm6gRGLnOvDek=; b=adAwyqYKiqQBR3iAnuPrl9HsqSWVMAyCNeCwcsMEiGf+khhIBKSq8bewnZ66ztUuoZ kg2LQ6xQp+84sx22whoT3dhvjvA/gYkacf+09iRso4uvkjQqKF5FT/uVGZQrT6e1PhTx Ifoi+F79/4dQ5J4UYwa4I5tLitw3iXtSWHOEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GWnNxTMfFecLV6thOlvHXz2pzzBbjvSm6gRGLnOvDek=; b=LtCVlYy1ej0CmoQi9ZIhj2EhQk1iMGg08g7FWUlekX0eZPg+AREvn1rcQci09ubtfC 3l6QGO1cTny2utQ+ld/NkMRFPDM2S2Kmfofykd0swrWKKZ0KzvITEGpwfSIl4e07Xs6T iumlaRT3Qu76L962KYPUIIqaPwAoktCfF+Fujphz5NZoUpkci3NpL19ZaV1AiYhd0x3V Q++CPojJS97vXdwsandND6jJfCJgN7HuBlrJ5WA0J7aB05rPsfggfCuyOJeru3Ns4rWY ZFKS+jyZRP5wGN4ElmGxYpDdsH84prwx6/w+xzoPZSXQGvMrk9ONv9GamvTZqTAGBiS8 GmMw== X-Gm-Message-State: AOAM533P1P26QL96mmnCiQpcGlEXR7rmDaSDJHA9b4d8sIqycuK+bw1x zvf2CsJTggTxgtJHs0apIxOSZQ== X-Google-Smtp-Source: ABdhPJyGkqB1MMZcJH39JIEqJL53oJGtqzofu3A1NFxvUUWWVTks1ciDaeNRghX0Dvi5cWxbTfNBkw== X-Received: by 2002:a17:902:d484:b0:149:95f1:fcd8 with SMTP id c4-20020a170902d48400b0014995f1fcd8mr56861404plg.41.1641828454447; Mon, 10 Jan 2022 07:27:34 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:98b9:3ff7:5eda:a7cc]) by smtp.gmail.com with ESMTPSA id s207sm6087638pgs.74.2022.01.10.07.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jan 2022 07:27:34 -0800 (PST) From: Jagan Teki To: Rob Herring , Krzysztof Kozlowski , Marek Szyprowski , Andrzej Hajda Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/2] arm64: dts: exynos: Link DSI panel at port@1 for TM2E board Date: Mon, 10 Jan 2022 20:57:14 +0530 Message-Id: <20220110152714.58220-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220110152714.58220-1-jagan@amarulasolutions.com> References: <20220110152714.58220-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_072735_623884_E421EB27 X-CRM114-Status: GOOD ( 13.64 ) 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 TM2E board DSI pipeline has input from MIC and output to s6e3ha2 panel. The existing pipeline has child nodes of ports, panel and MIC is remote-endpoint reference of port@0 of ports.  Adding panel as another child node to DSI is unconventional as pipeline has ports child. However it can be true if MIC is added inside port node like this. dsi { compatible = "samsung,exynos5433-mipi-dsi"; #address-cells = <1>; #size-cells = <0>; port { dsi_to_mic: endpoint { remote-endpoint = <&mic_to_dsi>; }; }; panel@0 { compatible = "samsung,s6e3hf2"; reg = <0>; vdd3-supply = <&ldo27_reg>; vci-supply = <&ldo28_reg>; reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>; enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>; }; }; The above pipeline is proper but it requires the DSI input MIC pipeline to update. This patch is trying to add panel at port@1 so-that the entire pipeline before to panel output is untouched. Reported-by: Marek Szyprowski Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts index 22d26460f3dd..09418fe30353 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts @@ -51,6 +51,16 @@ &cmu_disp { }; &dsi { + ports { + port@1 { + reg = <1>; + + dsi_out_panel: endpoint { + remote-endpoint = <&dsi_in_panel>; + }; + }; + }; + panel@0 { compatible = "samsung,s6e3hf2"; reg = <0>; @@ -58,6 +68,12 @@ panel@0 { vci-supply = <&ldo28_reg>; reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>; enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>; + + port { + dsi_in_panel: endpoint { + remote-endpoint = <&dsi_out_panel>; + }; + }; }; };