From patchwork Tue Jul 28 12:54:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 51595 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 4DE6220323 for ; Tue, 28 Jul 2015 12:54:50 +0000 (UTC) Received: by lbcjf8 with SMTP id jf8sf37732523lbc.0 for ; Tue, 28 Jul 2015 05:54:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=axAePRw8oTgGrtDt9RNwU0dFYgiyS6NLuGQ7qDQ+0+A=; b=TzV3Wk278j8fdEfWhweRPfAW0AQzJOPPygd+3kJxCRHijBvMawDJsXE5KYx1LbCcnW OjMVU5I+BkAud5zW9uXgRZ1fWvcy7NVzraHPfqwO51W97whSWP610FwY/5xwfYeouGI1 IoV9lQFHs6Ms4reHIQeP7D7dHuo90bafSi8AOtA4S6rSOj9Jz2c55yc0BSJzmFvAl/op 703QyEQNVya9teT0YaRB9aA+iFM2N0fckGfdURUwZuNwneI/COil/zXaqHHaCeIHUEV7 Sb/8svJPOTnGwNvaEmstNsJG58267Yce/FK80lTQOBLczhHiZjsskSvGCgh1tsSZrn1X 9wDw== X-Gm-Message-State: ALoCoQluftzsShnmqEdrC0Y4J/khk9gteGeAXsp7Bso2AWPNN6LvTDM4LB7dvbF12Y69jhLYXsKX X-Received: by 10.112.142.97 with SMTP id rv1mr2067780lbb.12.1438088089225; Tue, 28 Jul 2015 05:54:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.163 with SMTP id c3ls656702laa.98.gmail; Tue, 28 Jul 2015 05:54:48 -0700 (PDT) X-Received: by 10.152.42.144 with SMTP id o16mr32417206lal.46.1438088088898; Tue, 28 Jul 2015 05:54:48 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id u8si18245827laz.114.2015.07.28.05.54.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 05:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laah7 with SMTP id h7so67953621laa.0 for ; Tue, 28 Jul 2015 05:54:48 -0700 (PDT) X-Received: by 10.112.166.2 with SMTP id zc2mr32437445lbb.29.1438088088698; Tue, 28 Jul 2015 05:54:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp2122327lba; Tue, 28 Jul 2015 05:54:47 -0700 (PDT) X-Received: by 10.182.210.165 with SMTP id mv5mr33414655obc.82.1438088087114; Tue, 28 Jul 2015 05:54:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iv9si765345pac.228.2015.07.28.05.54.46; Tue, 28 Jul 2015 05:54:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932276AbbG1Myo (ORCPT + 28 others); Tue, 28 Jul 2015 08:54:44 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:38125 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932247AbbG1Myl (ORCPT ); Tue, 28 Jul 2015 08:54:41 -0400 Received: by wibxm9 with SMTP id xm9so159316531wib.1 for ; Tue, 28 Jul 2015 05:54:40 -0700 (PDT) X-Received: by 10.180.90.81 with SMTP id bu17mr34243253wib.35.1438088079899; Tue, 28 Jul 2015 05:54:39 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-147-3-201.as13285.net. [78.147.3.201]) by smtp.gmail.com with ESMTPSA id dz4sm18903847wib.17.2015.07.28.05.54.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jul 2015 05:54:39 -0700 (PDT) From: Srinivas Kandagatla To: agross@codeaurora.org, linux-arm-msm@vger.kernel.org Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Rob Clark Subject: [PATCH v1 7/7] ARM: dts: ifc6410: add inforce LVDS panel support Date: Tue, 28 Jul 2015 13:54:36 +0100 Message-Id: <1438088076-17606-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438087956-17307-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1438087956-17307-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds LVDS panel for IFC6410. Signed-off-by: Rob Clark [Rob Clark: WIP patch] Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 1ab71f1..3bdac02 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -63,6 +63,12 @@ qcom,switch-mode-frequency = <3200000>; }; + pm8921_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + bias-pull-down; + }; + pm8921_l3: l3 { regulator-min-microvolt = <3050000>; regulator-max-microvolt = <3300000>; @@ -96,6 +102,10 @@ pm8921_lvs1: lvs1 { bias-pull-down; }; + + pm8921_lvs7: lvs7 { + bias-pull-down; + }; }; }; @@ -119,6 +129,41 @@ mdp: qcom,mdp@5100000 { status = "okay"; + qcom,lvds-panel = <&panel>; + lvds-vccs-3p3v-supply = <&ext_3p3v>; + lvds-pll-vdda-supply = <&pm8921_l2>; + lvds-vdda-supply = <&pm8921_lvs7>; + }; + + panel_3p3v: panel_3p3v { + compatible = "regulator-fixed"; + pinctrl-0 = <&disp_en_gpios>; + pinctrl-names = "default"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "panel_en_3p3v"; + regulator-type = "voltage"; + startup-delay-us = <0>; + gpio = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; + + backlight: backlight{ + pinctrl-0 = <&pwm_bl_gpios>; + pinctrl-names = "default"; + compatible = "gpio-backlight"; + gpios = <&pm8921_gpio 26 GPIO_ACTIVE_HIGH>; + default-on; + }; + + panel: auo,b101xtn01 { + status = "okay"; + compatible = "auo,b101xtn01"; + + ddc-i2c-bus = <&i2c3>; + backlight = <&backlight>; + power-supply = <&panel_3p3v>; }; gsbi3: gsbi@16200000 { @@ -235,6 +280,27 @@ pm8921_gpio: gpio@150 { pinctrl-names = "default"; pinctrl-0 = <&wlan_default_gpios>; + + pwm_bl_gpios: pwm-bl-gpios { + pios { + pins = "gpio26"; + bias-disable; + function = "normal"; + qcom,drive-strength = ; + power-source = ; + }; + }; + + disp_en_gpios: disp-en-gpios { + pios { + pins = "gpio36"; + bias-disable; + function = "normal"; + qcom,drive-strength = ; + power-source = ; + }; + }; + wlan_default_gpios: wlan-gpios { pios { pins = "gpio43";