From patchwork Wed Sep 7 23:32:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 9320219 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4B4A60B16 for ; Wed, 7 Sep 2016 23:32:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFBB129428 for ; Wed, 7 Sep 2016 23:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD94829431; Wed, 7 Sep 2016 23:32:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38D362943B for ; Wed, 7 Sep 2016 23:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750976AbcIGXc4 (ORCPT ); Wed, 7 Sep 2016 19:32:56 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35714 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbcIGXcz (ORCPT ); Wed, 7 Sep 2016 19:32:55 -0400 Received: by mail-pf0-f172.google.com with SMTP id w87so11287216pfk.2 for ; Wed, 07 Sep 2016 16:32:54 -0700 (PDT) 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; bh=XK8JIqH+TBW1ETJ8VhwpGfglO7VjKUmebiK9IYPTrMQ=; b=ZBVBkerLquTe4PbMA8859ymGXLkoXDv7xkV2nfvTxyQaCyMpqdzorZDGBVV5ADC99r eIUukFZt2jLNO00pmcQz9XmrxcVQAmt33yAq6hKDCrIy0W3iL2o7e18e2IEv5nFzk3DJ MTwydBfhDIQ9v0HMpGUbENBWbhRx8iLZSLsrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XK8JIqH+TBW1ETJ8VhwpGfglO7VjKUmebiK9IYPTrMQ=; b=fsW58imVgRvT1jsFfx/5JbhtHrYTxHvzuqyTokszu4k5GboLw71ClI4aubggDLHR16 FgZSZttJLpTTMrN7OitB55stIFkc9DJVy4DPdeKKXdLFG2LkA/cM2BvsBK8tl3/H3WW5 5kMnsEpN50R2+JhOrdg8qUKASAn/k6W+PoJ2BKfAlW4JE2l5DFShRK/uMZWBmxomFJfq 7rET14Sqv1aXKOSa3DnLU03wV+oyjezB9B+hLY+74+A62ZjJlZzaAHKemlQ7Yz+52BTM Bxat66Po1KyNA4Gl752Nfpj6tjy6ftdjoawiP09NsymnQhPVQM0UxFimGMqnoPAkMjpU 7AGg== X-Gm-Message-State: AE9vXwPUsHwGxNu+Sd37fuHslkuzJ5Mhpp28Rz4Jey34+IgCR2YYKv3ZcfLI2fQ2tQjY8vaT X-Received: by 10.98.32.78 with SMTP id g75mr8356655pfg.103.1473291174432; Wed, 07 Sep 2016 16:32:54 -0700 (PDT) Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id d5sm51346019pfc.4.2016.09.07.16.32.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 16:32:53 -0700 (PDT) From: John Stultz To: Archit Taneja Cc: John Stultz , vinay simha , andy.gross@linaro.org, robdclark@gmail.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 6/4] arm: dts: qcom: apq8064-nexus7: Add DSI and panel nodes Date: Wed, 7 Sep 2016 16:32:47 -0700 Message-Id: <1473291167-8658-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473291167-8658-1-git-send-email-john.stultz@linaro.org> References: <1472737015-29382-1-git-send-email-architt@codeaurora.org> <1473291167-8658-1-git-send-email-john.stultz@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Tagging on to Archit's patchset here. Add DSI and panel nodes to get graphics up and running on the Nexus7. This still depends on the panel driver being present (currently under review) along with the rpmclk code. Feedback would be appreciated here! Cc: Archit Taneja Cc: vinay simha Cc: andy.gross@linaro.org Cc: robdclark@gmail.com Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: John Stultz --- arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 78 +++++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts index ff856c3..e25a764 100644 --- a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +++ b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts @@ -27,6 +27,18 @@ regulator-boot-on; }; + vcc_1p8v: regulator-fixed@2 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_1p8v"; + regulator-type = "voltage"; + startup-delay-us = <0>; + gpio = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; + gpio-keys { compatible = "gpio-keys"; volume_up { @@ -99,6 +111,7 @@ l2 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-always-on; }; /* msm_otg-HSUSB_3p3 */ @@ -133,13 +146,14 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; bias-pull-down; + regulator-always-on; }; /* pwm_power for backlight */ l17 { regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3600000>; - bias-pull-down; + regulator-max-microvolt = <3000000>; + regulator-always-on; }; /* camera, qdsp6 */ @@ -184,6 +198,66 @@ }; }; + mdp@5100000 { + status = "okay"; + ports { + port@1 { + mdp_dsi1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + }; + }; + + dsi0: qcom,mdss_dsi@4700000 { + status = "okay"; + vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 to 4*/ + vdd-supply = <&pm8921_l8>; + vddio-supply = <&pm8921_lvs7>; + avdd-supply = <&pm8921_l11>; + vcss-supply = <&ext_3p3v>; + + panel@0 { + reg = <0>; + compatible = "jdi,lt070me05000"; + + pinctrl-names = "default"; + pinctrl-0 = <&dsi_panel_pinctrl>; + + vddp-supply = <&pm8921_l17>; + dcdc_en-supply = <&pm8921_lvs7>; + vcc-supply = <&vcc_1p8v>; + + reset-gpios = <&tlmm_pinmux 54 0>; + enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + ports { + port@0 { + dsi0_in: endpoint { + remote-endpoint = <&mdp_dsi1_out>; + }; + }; + + port@1 { + dsi0_out: endpoint { + remote-endpoint = <&panel_in>; + data-lanes = <0 1 2 3>; + }; + }; + }; + }; + + mdp_dsi_phy0: qcom,mdss_dsi_phy@4700200 { + status = "okay"; + vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/ + }; + gsbi@16200000 { status = "okay"; qcom,mode = ;