From patchwork Tue Jun 4 13:49:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Gonzalez X-Patchwork-Id: 13685338 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 692E1EECF for ; Tue, 4 Jun 2024 13:50:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509057; cv=none; b=DBBABiV0b7sbHDMCuTtnlNkJrFGkdSwG66Rsp1FIlCwrA3NfLbYR+yrAI0gL8p+Ec64PJq13DNfbr0mH6W+1XeH3D26J+/s4PxaCO0BRoNYbNAHGUgNaiRPIt9s1i/UNBM8MssSTTzvyZUXaY4veOqCHP+/75h/Ut79IBap/5VM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509057; c=relaxed/simple; bh=lgQ9TISB+gx9SFm7r4RKRfj7kA6xLYET6ecz7rril+8=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=tptfYrTKgSlQcypM2/JCZIWv0Gb4SUR6UUVJCRuz/gGv6n3RWDR8J0qTVtMcf+SNneRhkX9EwIKJITUQcBOU7ReGCTx4pRhgbjMOuMXppdJvNEjeNm3u6cN/40izc8L6npIFMcwvjgaxYAjg9ZNZnnBPKgwTYRapDt5bB9UW/XA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=2IEtuynJ; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="2IEtuynJ" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4213b94b7e7so14300205e9.0 for ; Tue, 04 Jun 2024 06:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1717509054; x=1718113854; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=96Dvl82Hjo8efzNzsjm1jSvKrMhIPC8VaRY2If0PCPw=; b=2IEtuynJhki0EdTuS5fyPooil0RWHl+T+2Zu+ASvB1iOQZ/7geV6tjj7m4WYLXNKxH Bt2I/gCHeP2g1r3R56sQfyIzmgMisgFbz1xGxsX6wtcj3upLYFYbvUmW/QIxDqzV5jr3 fTISkrEJf2HdnkDVL3JiY+psP/+AkIiD0FX37VhBx4gTtCRsUsOMZacwfVeE7vYzd+Zh 54heT0G9PQDooELy3e/0s4lFPjyaQ5LnB7J84bwRvnCD152Wb7ITTCX/hz/nvONhEBbW MgrYPIHJmCnv+8y44NTTWNboCniYdIEuWRBxY36L72wucBNJRjW5UYOxlHITp960QmiU 2GTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717509054; x=1718113854; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=96Dvl82Hjo8efzNzsjm1jSvKrMhIPC8VaRY2If0PCPw=; b=MiaO6TMmTLnxPqsMXEpBvvBALByFhpoL/J5QUvEmwQhE5S0shLuZkRqrrOs4c0R6Ih Y/f0dkqKu+O8jhHBN9vBa6isx4YqQ5W7qf7udSTD5X3d3kidKO0KSCzwX4xZqJF5EArK xZ309OnDIfCENVOyoykx5YzuTruPGiGbw8cFsYS37Gxj6hs33/7zQALaTQdo9ljgSieh eSyLw1zTupeWELI+F8fW2o2CjT3YvL+Nh6eMlDI5Za/R0PavqsSah4l5cvInLB/yBmwX gTAFn94EnpjrrLgz3C+wefYIIrw38lnPaC094f3O1ux7rIrCoAmy7kUx20tnqz1YcVQ0 ZXPQ== X-Forwarded-Encrypted: i=1; AJvYcCWpK7oqc0YcC3NpobmKuh8DRvZnoX9lQjQM+GV7E36oTFx3sifx4lgaj1DhwGlBue6dgF629MQNjE8MSEK7bNInrCQcuGQLgKl/KBxXxA== X-Gm-Message-State: AOJu0Ywp4xovVkzoQsgvTx6K0huW4eng96YiVwVS7iERIgpHo+EWMF5r Y5xd6NKuiRjBX/Pvzo6T5lo2Kpz+CLjJJ1AB+Iwgprb1dkUCwi4EmO4XVpftBablrqn+rnCkMQn CUpE= X-Google-Smtp-Source: AGHT+IHiQS1qEab8CDh9QhUYvRIc9qMluklpij7Hsvm1tty61lkjVQR1crQTp7gzhBw6FTV42IpGwA== X-Received: by 2002:a05:600c:5487:b0:421:556f:5fb8 with SMTP id 5b1f17b1804b1-421556f6215mr2242405e9.0.1717509053947; Tue, 04 Jun 2024 06:50:53 -0700 (PDT) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42133227f8asm139569755e9.19.2024.06.04.06.50.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 06:50:53 -0700 (PDT) Message-ID: <648b2798-9302-4c6e-9ef2-e4318066d28f@freebox.fr> Date: Tue, 4 Jun 2024 15:49:24 +0200 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 4/4] arm64: dts: qcom: add HDMI nodes for msm8998 From: Marc Gonzalez To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Bjorn Andersson , Konrad Dybcio Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , MSM , DT , freedreno@lists.freedesktop.org, Arnaud Vrac , Pierre-Hugues Husson References: Content-Language: en-US In-Reply-To: From: Arnaud Vrac Port device nodes from vendor code. Signed-off-by: Arnaud Vrac Signed-off-by: Marc Gonzalez Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 99 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index ba5e873f0f35f..f65a76da61ea8 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -2785,7 +2785,7 @@ mmcc: clock-controller@c8c0000 { <&mdss_dsi0_phy 0>, <&mdss_dsi1_phy 1>, <&mdss_dsi1_phy 0>, - <0>, + <&hdmi_phy 0>, <0>, <0>, <&gcc GCC_MMSS_GPLL0_DIV_CLK>; @@ -2890,6 +2890,14 @@ dpu_intf2_out: endpoint { remote-endpoint = <&mdss_dsi1_in>; }; }; + + port@2 { + reg = <2>; + + dpu_intf3_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; }; }; @@ -3045,6 +3053,96 @@ mdss_dsi1_phy: phy@c996400 { status = "disabled"; }; + + hdmi: hdmi-tx@c9a0000 { + compatible = "qcom,hdmi-tx-8998"; + reg = <0x0c9a0000 0x50c>, + <0x00780000 0x6220>, + <0x0c9e0000 0x2c>; + reg-names = "core_physical", + "qfprom_physical", + "hdcp_physical"; + + interrupt-parent = <&mdss>; + interrupts = <8>; + + clocks = <&mmcc MDSS_MDP_CLK>, + <&mmcc MNOC_AHB_CLK>, + <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MISC_AHB_CLK>, + <&mmcc MDSS_HDMI_CLK>, + <&mmcc MDSS_HDMI_DP_AHB_CLK>, + <&mmcc MDSS_EXTPCLK_CLK>; + clock-names = + "mdp_core", + "mnoc", + "iface", + "bus", + "iface_mmss", + "core", + "alt_iface", + "extp"; + + phys = <&hdmi_phy>; + #sound-dai-cells = <1>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&hdmi_hpd_default + &hdmi_ddc_default + &hdmi_cec_default>; + pinctrl-1 = <&hdmi_hpd_sleep + &hdmi_ddc_default + &hdmi_cec_default>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hdmi_in: endpoint { + remote-endpoint = <&dpu_intf3_out>; + }; + }; + + port@1 { + reg = <1>; + hdmi_out: endpoint { + }; + }; + }; + }; + + hdmi_phy: hdmi-phy@c9a0600 { + compatible = "qcom,hdmi-phy-8998"; + reg = <0x0c9a0600 0x18b>, + <0x0c9a0a00 0x38>, + <0x0c9a0c00 0x38>, + <0x0c9a0e00 0x38>, + <0x0c9a1000 0x38>, + <0x0c9a1200 0x0e8>; + reg-names = "hdmi_pll", + "hdmi_tx_l0", + "hdmi_tx_l1", + "hdmi_tx_l2", + "hdmi_tx_l3", + "hdmi_phy"; + + #clock-cells = <0>; + #phy-cells = <0>; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&gcc GCC_HDMI_CLKREF_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", + "ref", + "xo"; + + status = "disabled"; + }; }; venus: video-codec@cc00000 {