From patchwork Wed Jan 30 11:04:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 157064 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5799115jaa; Wed, 30 Jan 2019 03:04:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN6cK6F9l0O2br/grNsqbCG4LEFpM40icH/UnCkOYpCZ/p5OW/cCj86jPOUoXD6AW/jRN5YW X-Received: by 2002:a17:902:e10a:: with SMTP id cc10mr30346178plb.165.1548846290498; Wed, 30 Jan 2019 03:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548846290; cv=none; d=google.com; s=arc-20160816; b=QS43rsRn1gDQBL7+X/JAE3HEfylQZ6cUb6+GJi7zn9pU2niCjju3VwdtCfnmrVV4Jj BSPDeXAKVkH/Oioj13JffZ5pMtz/0WLKVbg8KBFoP42i/tj50GBVKHLm8Li/6hjsMwpy FfCw59ulQD1AL9WpyEEVNekMtwRwNmto0jDhPJ4seqTEYX4+d6CQeuQqkprHrK1iIGUn A67F9/KWkHXPmFpM8z2dg91UWnveWdDe+/MoDub+yRjMvdjXT/CU+Kyd3cIq317muE5N 5wMHMOZ3EZyrlLIZLDpNzvIQq4vDNupM4it3UtwyE/3ZNDE2d04ND38whgbEjvbEe398 02Vg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zk7ukQ/wi6+kO+yJuF8Jy/OYQIA9+hoCg3pOYSfcHV0=; b=KzwivMD6sPzjOiD/MRivJzGp4vBBzCggoFX/JBz1zDUR2Qu/2O56yKtXJJRGhsAN9T Ak+2bJJqK9wJGVe/gw3VbvRxX4/EAnXig4gXyfY8oNia6IO0R2NRXMWRg/wspwDHlSk3 E2ofTMKyLx2NtJ3rPcLWPJCj3LFCmRDbdIGCSWtZvCBCuApKoW6TStccvZVtNj00/dre T5uWrjsc/q3nt7Fs067vwYX+KjSxZOaViKyT67XtU0ViV5oWEZqy8mLjPz0XFLyWBRWe cMuZ3UNpWkYQm/15hiigWuHVn1Sj9f/BrVS0sPTz8jkbwzNXnXETSqLoHXWXXVkiB2t8 TBBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RJJzBkP1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si1231849plj.244.2019.01.30.03.04.50; Wed, 30 Jan 2019 03:04:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RJJzBkP1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730682AbfA3LEt (ORCPT + 7 others); Wed, 30 Jan 2019 06:04:49 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55374 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730654AbfA3LEt (ORCPT ); Wed, 30 Jan 2019 06:04:49 -0500 Received: by mail-wm1-f66.google.com with SMTP id y139so20985441wmc.5 for ; Wed, 30 Jan 2019 03:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zk7ukQ/wi6+kO+yJuF8Jy/OYQIA9+hoCg3pOYSfcHV0=; b=RJJzBkP1VFrV1bGyq2WrgWESqwOHk+fdoCzkezB4562BomTI0ch1I7ui27c7NIhCf6 N9FMxKgx+m3SNqu/YuT4IPsISCAZAHz3AW/ApOhvRE+ESHBFVXAe6jhG6wig9KlWyEON jLU7lXET9W62N/NjbvPYC8S2OBrqIwd2Chzdo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zk7ukQ/wi6+kO+yJuF8Jy/OYQIA9+hoCg3pOYSfcHV0=; b=dz22PYVyCC5ErNXF+i8SK1lJkUiDdrgUfVTp8gtZw38Z5vC5RGljn2atkJcUn6IIwS bSvqfVf0T9cepuuMZPmD23/qDRs86qZ8Qg/E/778GMHaGHDe+TI+IvaVp4F7tFGp0MdT n9zDdLzsFBmk5gZ9b1queAfld4x0295AU03SipR2uKjoR/oRIRyME0jlTBacNQV0Tx/Q 8gbdzFxIsA5IpvrchNVnvBPposOLeqXI3imJa/L/fZgfFYG1Ly+oj2fj7Sj3lTi1h8T+ ISuSCeogiuhU51SJZ0fyMInZrpBVhyqWrulFtq91JCWWtSsfv8wcwp1dKafFu3jtL2gJ xlTw== X-Gm-Message-State: AJcUukfJlGDgtsZkKDpxHoAcSZOI4kBBAqEjelyYI3ws8Y6FmJKErfIU dI2cV3Kdyi9vYudi5sPXm7Z0VbMabYM= X-Received: by 2002:a1c:1f54:: with SMTP id f81mr26518104wmf.6.1548846287340; Wed, 30 Jan 2019 03:04:47 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w16sm1138208wrp.1.2019.01.30.03.04.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Jan 2019 03:04:46 -0800 (PST) From: Srinivas Kandagatla To: andy.gross@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Archit Taneja , Srinivas Kandagatla Subject: [PATCH v2 5/6] arm64: dts: apq8096-db820c: Add HDMI display support Date: Wed, 30 Jan 2019 11:04:36 +0000 Message-Id: <20190130110437.5424-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130110437.5424-1-srinivas.kandagatla@linaro.org> References: <20190130110437.5424-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Archit Taneja The APQ8096 DB820c platform provides HDMI output. The MDSS block on 8x96 supports a direct HDMI out. Populate the MDSS, MDP and HDMI DT nodes. Also, add the HDMI HPD and DDC pinctrl nodes with the bias and driver strength specified for this platform. Signed-off-by: Archit Taneja Signed-off-by: Srinivas Kandagatla --- .../boot/dts/qcom/apq8096-db820c-pins.dtsi | 52 +++++++++++++++++++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 27 ++++++++++ 2 files changed, 79 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi index 6a573875d45a..1c0d06f59d00 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi @@ -62,4 +62,56 @@ bias-disable; }; }; + + hdmi_hpd_active: hdmi_hpd_active { + mux { + pins = "gpio34"; + function = "hdmi_hot"; + }; + + config { + pins = "gpio34"; + bias-pull-down; + drive-strength = <16>; + }; + }; + + hdmi_hpd_suspend: hdmi_hpd_suspend { + mux { + pins = "gpio34"; + function = "hdmi_hot"; + }; + + config { + pins = "gpio34"; + bias-pull-down; + drive-strength = <2>; + }; + }; + + hdmi_ddc_active: hdmi_ddc_active { + mux { + pins = "gpio32", "gpio33"; + function = "hdmi_ddc"; + }; + + config { + pins = "gpio32", "gpio33"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + hdmi_ddc_suspend: hdmi_ddc_suspend { + mux { + pins = "gpio32", "gpio33"; + function = "hdmi_ddc"; + }; + + config { + pins = "gpio32", "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 6d50449fbcdf..1e78f0b47c89 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -452,6 +452,33 @@ perst-gpio = <&msmgpio 114 GPIO_ACTIVE_LOW>; }; }; + + mdss@900000 { + status = "okay"; + + mdp@901000 { + status = "okay"; + }; + + hdmi-phy@9a0600 { + status = "okay"; + + vddio-supply = <&pm8994_l12>; + vcca-supply = <&pm8994_l28>; + #phy-cells = <0>; + }; + + hdmi-tx@9a0000 { + status = "okay"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>; + pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>; + + core-vdda-supply = <&pm8994_l12>; + core-vcc-supply = <&pm8994_s4>; + }; + }; };