Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp920971lqh; Fri, 29 Mar 2024 00:46:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWZ7vdjoPueAJPFooUCyQrsqu8gqY91/h+NsW+Y/xFXtEKTbasMT3IUTZ9vJ6y5IqA9hb1RbL+jmhx4REezoF6eqBNamitt5o93w01AQ== X-Google-Smtp-Source: AGHT+IHaJFF4WHdlsKGybgAGmbn4FtnpdHC+RqiGKUXYoAfLsotiqbpm1+7OWAR20nuMjZgB6PpL X-Received: by 2002:a50:8a99:0:b0:56c:5a49:733 with SMTP id j25-20020a508a99000000b0056c5a490733mr872765edj.10.1711698403054; Fri, 29 Mar 2024 00:46:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711698403; cv=pass; d=google.com; s=arc-20160816; b=erYwPeIjILpeWGANHUexgtDF4pFmyM5P4a873bxJ/IoDwljIaCbCXIC+MrHAVXMChK DnjKDV9QEtH5luSR2CtsJ7rHYBlzz1023Ai8INsE4HiKu5EyzW77Rol2/3T0WtpiPgFY lhe1R8BOrqq4DOL/mz2sbR/VA5B5oqTbFZ9eGj3HwAmDezxDm21CAEZOd08YQKUSmdHe tAFoTnYem5tU4jXFhN0qasCLTevE94QjAz3LtTVQ5nnaOBBbpS+HMCPPtU5vch3KbB/x 56Y9QMUk/Ol7JfTijUM8dBAJYKWpChpZKxDyo/NmPe7p/TJQ5u8bOUCNwvPlZ49biw3C syjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=lcotkK4GO99SFGIIH8jXD+5kvmn1tNTmHBz7CWYrF30=; fh=8HogiFhNT0Bhc5vNnZk0BnOrey50w8sIbblrFH5Dz1Y=; b=Xo2NPIhwKljP8bX+YcpaydUN+ZgihJ/8OXD89WID67Wexp5r+jvU5HtZCe9p1QR2Fo JotwxmLGMKmFVrVNMN3V4AEcmzeOTYvdQjgydoSbEcy755b8W4BuoVwWQRJG39wceVcg dlrA/nsXGPH8oDciEQsiMIDDGoZgl7QV3UTylhUSPogvIPMOnswgYt2LyoK1v/LQk5bL GZaYDPSuLDyPUyiDfi/X22qTxaHKkEGFb8iqjXYd5H2DhFKLaquT99RleuiZlRQXA2o9 KJAIaGOsdjVLYKgoUDKEQ2Uwnz2CgW8OUdbqGn1jp46AFqIsFTv6ULq+dDYqEH+UJs/y ARBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="I91P/lLq"; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-124260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bl19-20020a056402211300b0056c498d772dsi1591105edb.200.2024.03.29.00.46.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="I91P/lLq"; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-124260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7522B1F22FFA for ; Fri, 29 Mar 2024 07:46:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1A4D47F48; Fri, 29 Mar 2024 07:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="I91P/lLq" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3153F4122D for ; Fri, 29 Mar 2024 07:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711698362; cv=none; b=LT5fwiWbrM0KPfQgHb5IXTVNlYcDATa17fjEXEZVhCsn1KfbpxmwTcQz3Vpmhod4V01vIJ0mj/4Qg7jTqD5UX7Lhd6vcs5DOMcRvW7P0g+l76AQ7wh+mRUX/sNbyALijSMG+pSNeNnSWrnjqqvJg38Z80gGZW1vLnVQu3BIDNP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711698362; c=relaxed/simple; bh=n21rq1fCcOmI3LogGCsxivAQaiA2nOT681cDr3he6c0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pvj7ogTV+aQsRZ0CS7boUsSQmX5sJUb1QH4ZFX5xhWmVbX1FnDh5cs8WYPQG7CPQ4OobF9DQ6ID3oFx/YpmSffATdwF/hs6fYKOA2pw0Iv8Cn4QyAnl9aF93cBocF8fOsFuSsunGne9B8dB+sjtHgcpf9E4aIGuDGs4T0y9VB4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=I91P/lLq; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a4751063318so219745266b.0 for ; Fri, 29 Mar 2024 00:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711698359; x=1712303159; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lcotkK4GO99SFGIIH8jXD+5kvmn1tNTmHBz7CWYrF30=; b=I91P/lLqOM6tmjHySPQ/xXKvsC/CtoEgiawiWFAqkVcGgKc1XShfsWkIfl4aM+ydiX Pzvpv40Wgzpaqg0KFE9kxutXawBhH6IDIpnJgCL+H2hQLnNJvhyQxcSj8ui46ami9sw8 5DL4DBIWkZvyhVbAOm/n40ZR19BOLjkaoc316yQ+92mXYzNFHZAZCJzmXQm4tKNqpt5Q iwdxHI7wvbsrg6kcfRXgv4kZPT8+n9zsrVEVJrusSkA93/gTPxPV8zMir6cCh6zxrEyj 9k6cWSHVoI1grlOjafzlVVtlfaX9G+lTgfWjK2NIFYRS2vgxUzQFZZUUThk8UTcazDLp EOMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711698359; x=1712303159; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lcotkK4GO99SFGIIH8jXD+5kvmn1tNTmHBz7CWYrF30=; b=A4p2c/1r65LWMn85HeIHX+xuA1bCFd6ekKyPXJ9M8ri/UGUf1rG9RHCE0KnkXr63uy aQGWel8Ql2HEHwy+7oymmLn+DPXNeJ1v1EyNZd6a9sY7VygBy2FvH8qp7MVhhj7EUcyB L4eQ6aain6eUJx3rwwp+Na6ZxJup84w4nuNPaiBx5mkV/RFp7lkMQL019X7QPe7dTnP6 SZFWerk4/LHiSdPkmM3OK52aouQo8gBTYZwefwQyXtNMWCWGjJZo6Rr/szyNWh2mXeBN sxU2c4LlwTtzMmm5Z0tl5dkVTs6+HBe7GvVBzv9l3GIRdG/z4KU3LltcolWQnkaxavjV Y2cw== X-Forwarded-Encrypted: i=1; AJvYcCWvJ5DXIBfn0Lh+pplWIh5Ko2JeuaLZih9XFoTl5tMymvMu+2jDAAhie4tsxidbSnEXT9K2haizHgDw6XURbJkXdTGr/v8Q4wN2hOJQ X-Gm-Message-State: AOJu0YwVD2qMl63A+en2UBMSGmAnbo6hZe+Bu8W/6oV73CgkM5Qac0yl y6AeLKNq2yZyzpHmOCQid3Gh1SKHPyfi9Zxa99xn9RcaZuW5NAOSjQxqvnFnI6k= X-Received: by 2002:a17:906:a88a:b0:a47:5265:9aac with SMTP id ha10-20020a170906a88a00b00a4752659aacmr859536ejb.55.1711698359536; Fri, 29 Mar 2024 00:45:59 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id l9-20020a1709060cc900b00a4e24d259edsm1382737ejh.167.2024.03.29.00.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:45:58 -0700 (PDT) From: Luca Weiss Date: Fri, 29 Mar 2024 08:45:56 +0100 Subject: [PATCH v2 3/3] arm64: dts: qcom: sm6350: Add DisplayPort controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240329-sm6350-dp-v2-3-e46dceb32ef5@fairphone.com> References: <20240329-sm6350-dp-v2-0-e46dceb32ef5@fairphone.com> In-Reply-To: <20240329-sm6350-dp-v2-0-e46dceb32ef5@fairphone.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , Krishna Manikandan , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Add the node for the DisplayPort controller found on the SM6350 SoC. Reviewed-by: Dmitry Baryshkov Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 88 ++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 24bcec3366ef..d7cf4b5ceea6 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -2033,6 +2033,14 @@ dpu_intf1_out: endpoint { remote-endpoint = <&mdss_dsi0_in>; }; }; + + port@2 { + reg = <2>; + + dpu_intf0_out: endpoint { + remote-endpoint = <&mdss_dp_in>; + }; + }; }; mdp_opp_table: opp-table { @@ -2070,6 +2078,86 @@ opp-560000000 { }; }; + mdss_dp: displayport-controller@ae90000 { + compatible = "qcom,sm6350-dp", "qcom,sm8350-dp"; + reg = <0 0xae90000 0 0x200>, + <0 0xae90200 0 0x200>, + <0 0xae90400 0 0x600>, + <0 0xae91000 0 0x400>, + <0 0xae91400 0 0x400>; + interrupt-parent = <&mdss>; + interrupts = <12>; + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_DP_AUX_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>; + clock-names = "core_iface", + "core_aux", + "ctrl_link", + "ctrl_link_iface", + "stream_pixel"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; + assigned-clock-parents = <&usb_1_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_1_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; + + phys = <&usb_1_qmpphy QMP_USB43DP_DP_PHY>; + phy-names = "dp"; + + #sound-dai-cells = <0>; + + operating-points-v2 = <&dp_opp_table>; + power-domains = <&rpmhpd SM6350_CX>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mdss_dp_in: endpoint { + remote-endpoint = <&dpu_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dp_out: endpoint { + }; + }; + }; + + dp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-160000000 { + opp-hz = /bits/ 64 <160000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-270000000 { + opp-hz = /bits/ 64 <270000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-810000000 { + opp-hz = /bits/ 64 <810000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; + mdss_dsi0: dsi@ae94000 { compatible = "qcom,sm6350-dsi-ctrl", "qcom,mdss-dsi-ctrl"; reg = <0 0x0ae94000 0 0x400>; -- 2.44.0