Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1605967rwn; Thu, 15 Sep 2022 19:54:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DuFF7mWkj32LBSFRQBLQ4igN0bsTiLGd4YfhPVUH0Cxkr+9FGSo4IHVGDP8WfF307+jri X-Received: by 2002:a63:6685:0:b0:439:869c:e16d with SMTP id a127-20020a636685000000b00439869ce16dmr2598337pgc.19.1663296862020; Thu, 15 Sep 2022 19:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663296862; cv=none; d=google.com; s=arc-20160816; b=lA40q0XnnwUZuoQE4jmv1NwcWjdppEp74Nf2C6AtyhT5Du1Jbw87gun5QmnBzR8ro9 6t4ooepCJGMKDgyvEMm9Uw/KRFUaacYcyS5iO2pVitqqkVUNVn4uPg9FqZP6IWIwzUJ2 xZ4UFgpSJhXkvjhxvUF8Kua8tGbX/1BN8Gc9k/3+EkMS3uiP/b/NdJX9zsgEVut75OkT 40mR9H15YkID7PzLcxEdoORbpqQsi0pa6rGk9rY6xuSF2TyYFtgaAvGRrTp2FIfKNkTZ 4d9xVc3FW/EMiQaI3PTZDvsHy9njHn6z2rm8NwiQabJ+Js2Z46ntXQGN9En620794v/4 UNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=o4SwcYmQeEsPhNZNiOlAz3LSIKt52BQiCkN0gMjK+lM=; b=NwI+4wwIH3tLeK5KZkJlCg3wi9VAGXhrck3CraJGjrt32TE4w+r/lQhOUIMlGHgCQF tQ+TtCHPTPokrJ0Iugw5lHgrbd86MryPxKbaO9vV2CRyENx8H8wyGslEHx+y7cS2Xa35 mz7eolRZE3yU4zb3LA4xVwavyEt/4NmLCmQ0NscfhUvA2CCehPQEOAknnT5QmBc1qPeG 5lOR2+W2dCVN0MoBSNCLnEcSWMnTr4wHyM9vGiCf+B3efgKJ6HZlogIoxgquh6rpvlT2 CveXQYOKBu17bXtVvOkYNeEr/bxgT3MRhBeYGKcF8nDbtVbKc49I9FLg3cAKrLSlzQny ZW4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GjhWbedZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170902ccc700b001769fce8c2fsi7621995ple.485.2022.09.15.19.54.10; Thu, 15 Sep 2022 19:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GjhWbedZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbiIPCvX (ORCPT + 99 others); Thu, 15 Sep 2022 22:51:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbiIPCvO (ORCPT ); Thu, 15 Sep 2022 22:51:14 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9CC498A71; Thu, 15 Sep 2022 19:51:08 -0700 (PDT) X-UUID: 98d6e13a38484344b6306fc1dd2ee21a-20220916 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=o4SwcYmQeEsPhNZNiOlAz3LSIKt52BQiCkN0gMjK+lM=; b=GjhWbedZDVF/70SBb29RJFIaXfiDZxyenGtPssYc3Lu3Mqu3YnwMgnWXewr849KjU9uPONu33kLjX5zsbEczi35zZd465teaPvjxVvBwW9FnwXHeGZItqd2dVxRe8hR5o/LBfJVgJeV8C/sosZ1HID7cAmQG4LsW3egXXgewtmo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:0bbf3912-1f5c-4fe3-80df-5f368f312e3f,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.11,REQID:0bbf3912-1f5c-4fe3-80df-5f368f312e3f,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:39a5ff1,CLOUDID:d65bd65d-5ed4-4e28-8b00-66ed9f042fbd,B ulkID:220916105103D597RE6C,BulkQuantity:0,Recheck:0,SF:28|17|19|48,TC:nil, Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 98d6e13a38484344b6306fc1dd2ee21a-20220916 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 211661015; Fri, 16 Sep 2022 10:51:02 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Fri, 16 Sep 2022 10:51:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 16 Sep 2022 10:51:01 +0800 From: Bo-Chen Chen To: , , CC: , , , , , , Bo-Chen Chen Subject: [PATCH v3 4/4] arm64: dts: mediatek: cherry: Add edptx and dptx support Date: Fri, 16 Sep 2022 10:50:59 +0800 Message-ID: <20220916025059.16673-5-rex-bc.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220916025059.16673-1-rex-bc.chen@mediatek.com> References: <20220916025059.16673-1-rex-bc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In cherry projects, we use edptx as the internal display interface and use dptx as the external display interface. To support this, we need to add more properties. - Add pinctrls for edptx and dptx. - Add ports for edptx and dptx. The port connections for the internal and external display: dp-intf0 -> edptx -> panel dp-intf1 -> dptx The edptx endpoint is kept empty for now, as the panel addition will come in a later commit. Signed-off-by: Bo-Chen Chen Reviewed-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt8195-cherry.dtsi | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 303dc32c64dc..560103e29017 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -125,6 +125,7 @@ port { dp_intf0_out: endpoint { + remote-endpoint = <&edp_in>; }; }; }; @@ -134,6 +135,59 @@ port { dp_intf1_out: endpoint { + remote-endpoint = <&dptx_in>; + }; + }; +}; + +&edp_tx { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&edptx_pins_default>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + edp_in: endpoint { + remote-endpoint = <&dp_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + edp_out: endpoint { + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&dp_tx { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&dptx_pin>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dptx_in: endpoint { + remote-endpoint = <&dp_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + dptx_out: endpoint { + data-lanes = <0 1 2 3>; + }; }; }; }; @@ -497,6 +551,20 @@ }; }; + edptx_pins_default: edptx-default-pins { + pins-cmd-dat { + pinmux = ; + bias-pull-up; + }; + }; + + dptx_pin: dptx-default-pins { + pins-cmd-dat { + pinmux = ; + bias-pull-up; + }; + }; + i2c0_pins: i2c0-default-pins { pins-bus { pinmux = , -- 2.18.0