From patchwork Sat Sep 24 00:01:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 76902 Delivered-To: patches@linaro.org Received: by 10.140.106.72 with SMTP id d66csp111369qgf; Fri, 23 Sep 2016 17:01:16 -0700 (PDT) X-Received: by 10.66.19.197 with SMTP id h5mr16983689pae.142.1474675276162; Fri, 23 Sep 2016 17:01:16 -0700 (PDT) Return-Path: Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com. [2607:f8b0:400e:c03::22b]) by mx.google.com with ESMTPS id ex11si10173090pad.209.2016.09.23.17.01.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Sep 2016 17:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22b as permitted sender) client-ip=2607:f8b0:400e:c03::22b; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22b as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pa0-x22b.google.com with SMTP id qn7so27078297pac.3 for ; Fri, 23 Sep 2016 17:01:16 -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=LyjQVVOTrOY6VL+gYEtA/kxS3VNwQcl1O42oOoIXJSI=; b=X3Mr+ha2hTNzXOvu/GzJnpdMkSx3o1slAiVP5x/5B5JkGPAuyKcj73wf9Gc83F2YRn G7H9Wp1Xu7rF92Wc49Yn98HBgnsDaYBG9aCZCtsIWHmJk6NkYW7ThzI7HThbCIImzri/ RMo4MrUEBZoaD0KvDG/65ji7ziwDcnnZb9qB4= 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=LyjQVVOTrOY6VL+gYEtA/kxS3VNwQcl1O42oOoIXJSI=; b=I+9OJWO6qIgAFX9JVsCJvOAY4lssloz8wFccGHmJdLVP2FV7SvZn4yahjeDL3m+ovc t/SRBPvyRPlmJ0AY45sTnG7S9Xj+BDhhfh1uHINopic+a3rfJvanxJKFtWUjnz1yLnnb d434dBTRSmBWLetrV4PWNcdEFAiG65G5ZkipVY0wWzQCZ6iCIFZrBvwZ6KEOwH7PXYTR uxUM8ksOStZXHtCxjwveITF5pHkJesHIKILyAZBXZQpnwFA6byBG0JtrzjL8KSeklEZJ 8bUq5yn1EqyW8Hq1yBArLYU8p5gc07Cdry/NeBhb7VJHinzmfWxqB7IjuaCnLnwYmFdn NCbw== X-Gm-Message-State: AE9vXwOcZ2mKkuYIkegpe3r3O4BiQrUWD3nQGEGex6W2on8Hcg2S9ZkLdlT3oYFTh8SJ6vOo5Rg= X-Received: by 10.66.217.170 with SMTP id oz10mr17042213pac.61.1474675275902; Fri, 23 Sep 2016 17:01:15 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id s7sm13968272pfk.11.2016.09.23.17.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 17:01:15 -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: [RFC][PATCH 2/2 v2] arm: dts: qcom: apq8064-nexus7: Add DSI and panel nodes Date: Fri, 23 Sep 2016 17:01:05 -0700 Message-Id: <1474675265-24171-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474675265-24171-1-git-send-email-john.stultz@linaro.org> References: <1474675265-24171-1-git-send-email-john.stultz@linaro.org> Add DSI and panel nodes to get graphics up and running on the Nexus7. This still depends on the panel driver being present along with the rpmclk code. Feedback would be greatly appreciated! 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 --- v2: Integrated cleanups from Vinay and Archit arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 63 +++++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) -- 1.9.1 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..7637092 100644 --- a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +++ b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts @@ -99,6 +99,7 @@ l2 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-always-on; }; /* msm_otg-HSUSB_3p3 */ @@ -133,13 +134,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 +186,63 @@ }; }; + mdp@5100000 { + status = "okay"; + ports { + port@1 { + mdp_dsi1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + }; + }; + + dsi0: 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"; + + vddp-supply = <&pm8921_l17>; + iovcc-supply = <&pm8921_lvs7>; + + enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; + dcdc-en-gpios = <&pm8921_gpio 23 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>; + }; + }; + }; + }; + + dsi-phy@4700200 { + status = "okay"; + vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/ + }; + gsbi@16200000 { status = "okay"; qcom,mode = ;