From patchwork Mon Jul 27 07:55:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 247156 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4582830ilg; Mon, 27 Jul 2020 00:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlg2zFmmSrKhsM6CoJWqWSwrEn3NsOB8yHYRI2cM7tYyKr2OdGAcbxAn/4z5RK5cDoMnb3 X-Received: by 2002:a17:906:410c:: with SMTP id j12mr19575303ejk.284.1595836544628; Mon, 27 Jul 2020 00:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595836544; cv=none; d=google.com; s=arc-20160816; b=PjgvmzcxnRc6PFrum/MN7tglZ0wf28Mm8+EVd6ToUNKdYNrWzqRl2FiTAdta0OJmjP c3lOtPc/QOTsd9ePl76yPQbZNbXqnDVKw81YVXBfnjkMEUz83A1Cg3wKzlz9yV6geyeF qRlv1y8h2KGwekwKXoCEJX2q2P4elmHxZRScYCG9O/v6+erarhsHavp1/czQ/5UwpEr2 +/YrGr9jBPwF38zftekVY4GLCzALW+81jFp7o4AqeAPD0KHqKzd9l1ORMQuzCjXGKSKs B1asczz4AREXdVOJ7j5ImZnklHwVDGPp57UuefyfQLDivRLcK9afS06i5imH7++PRPQb bBtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=i94w7P5tPLYtq2409ecS+BpyDvnVNESfi/3fkfsU4Us=; b=dqyZ/3lbTdmB/eC+LbD4o6AUy0Nmkn5NL27SeZOk3MyV2a17/lITT3W4YR+kdnYlbO a4ImzRHHFn8ihzLpA3PV4lr6400JNXTzcYTQJcfNjx8RPZ7ca8hKImMBt4RgkrXuzBSV nX2e/FBNvEm5Rao4/ZUmzmCxgsK3kwYKi9tZI8Iup/68jiFS7bMtskoc9QFzbhrXtG5y Ja8LPwWojPFBBGk/RpOLFAfrkOVizqa95gqlEfYempWgmJV1a2PfOn2axlbHIFR8SjL9 1SE3h5RaLnmmxmbZvVoesV7yPIQFPWW+78f8meMJB1f9g5ELUoGou4IA+OiggXY2Kzp+ xxOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fcx2rUQX; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si5011907ejb.556.2020.07.27.00.55.44; Mon, 27 Jul 2020 00:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fcx2rUQX; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbgG0Hzn (ORCPT + 15 others); Mon, 27 Jul 2020 03:55:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:42592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbgG0Hzn (ORCPT ); Mon, 27 Jul 2020 03:55:43 -0400 Received: from localhost.localdomain (unknown [122.171.202.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A0AA320672; Mon, 27 Jul 2020 07:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595836542; bh=klIYZ3z3AZ82e3hAd5ya/zhpvWBojtO3/DLyBwGwpHA=; h=From:To:Cc:Subject:Date:From; b=fcx2rUQXA8HJhCYavhUebUtAby8I1DMdXZV1YYeNYIHbB0QCfO6xAo1G/ywddtxcg Nsb55Ip7/oiqwz13Z/c0TKnTV5QC1NrfucD90T1VuptwznRdQ95njxQYlBxi7iOPRj /rMVqBb5ldQ+YVYhCunj7CYj+uootpc6l3akxsEE= From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Vinod Koul Subject: [PATCH] arm64: dts: qcom: sdm845-db845c: Add hdmi bridge nodes Date: Mon, 27 Jul 2020 13:25:32 +0530 Message-Id: <20200727075532.1932134-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bjorn Andersson Enable MDSS and DSI and add the LT9611 HDMI bridge. Also add the HDMI audio nodes. Signed-off-by: Bjorn Andersson Co-developed-by: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index c00797bd3b07..a2a98680ccf5 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -74,6 +74,17 @@ bt { }; }; + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <<9611_out>; + }; + }; + }; + lt9611_1v8: lt9611-vdd18-regulator { compatible = "regulator-fixed"; regulator-name = "LT9611_1V8"; @@ -382,6 +393,25 @@ &cdsp_pas { firmware-name = "qcom/sdm845/cdsp.mdt"; }; +&dsi0 { + status = "okay"; + vdda-supply = <&vreg_l26a_1p2>; + + ports { + port@1 { + endpoint { + remote-endpoint = <<9611_a>; + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&dsi0_phy { + status = "okay"; + vdds-supply = <&vreg_l1a_0p875>; +}; + &gcc { protected-clocks = , , @@ -395,6 +425,48 @@ zap-shader { }; }; +&i2c10 { + status = "okay"; + clock-frequency = <400000>; + + lt9611_codec: hdmi-bridge@3b { + compatible = "lontium,lt9611"; + reg = <0x3b>; + #sound-dai-cells = <1>; + + interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>; + + reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>; + + vdd-supply = <<9611_1v8>; + vcc-supply = <<9611_3v3>; + + pinctrl-names = "default"; + pinctrl-0 = <<9611_irq_pin>, <&dsi_sw_sel>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + lt9611_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + + port@1 { + reg = <1>; + + lt9611_a: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; +}; + &i2c11 { /* On Low speed expansion */ label = "LS-I2C1"; @@ -407,6 +479,14 @@ &i2c14 { status = "okay"; }; +&mdss { + status = "okay"; +}; + +&mdss_mdp { + status = "okay"; +}; + &mss_pil { status = "okay"; firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn"; @@ -612,6 +692,21 @@ cpu { }; }; + hdmi-dai-link { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afedai QUATERNARY_MI2S_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <<9611_codec 0>; + }; + }; + slim-dai-link { link-name = "SLIM Playback"; cpu { @@ -686,6 +781,21 @@ mclk3 { }; }; + dsi_sw_sel: dsi-sw-sel { + pins = "gpio120"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + output-high; + }; + + lt9611_irq_pin: lt9611-irq { + pins = "gpio84"; + function = "gpio"; + bias-disable; + }; + pcie0_default_state: pcie0-default { clkreq { pins = "gpio36"; @@ -943,6 +1053,14 @@ pinmux { }; }; +&qup_i2c10_default { + pinconf { + pins = "gpio55", "gpio56"; + drive-strength = <2>; + bias-disable; + }; +}; + &qup_uart6_default { pinmux { pins = "gpio45", "gpio46", "gpio47", "gpio48";