From patchwork Thu Dec 19 15:59:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 3382771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3ABC09F314 for ; Thu, 19 Dec 2013 16:01:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A015020632 for ; Thu, 19 Dec 2013 16:01:40 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 077E6206B8 for ; Thu, 19 Dec 2013 16:01:39 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vtg2X-0002qP-Qe; Thu, 19 Dec 2013 16:01:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vtg2V-0005x4-3X; Thu, 19 Dec 2013 16:01:31 +0000 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vtg2R-0005tI-1A for linux-arm-kernel@lists.infradead.org; Thu, 19 Dec 2013 16:01:27 +0000 Received: by mail-bk0-f43.google.com with SMTP id mz12so780549bkb.30 for ; Thu, 19 Dec 2013 08:01:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=djhF9UwX1++kwf5DPQ55nq6aX7VOc9bGjgVKQBkHjr4=; b=bswv4hfdgiYuEb1CzY+9XDb1UA8DpSVGkldQ97Rk+Kx0NH/yD6oguxCOOkkwjTm9Kh s7cKfFsjZJVwdtBploL46XHA849Fpci9crEJa8+ojOaLNaucM5gLsPI5NHUQfWWfOlYQ +gV9YnFaVHHGJ+smLgbZ6bj67q8cBHVc3LEowTuZ9OUZl23XDXAqXonEDVMlcX7hjl6d JqZfYGbaQF3yt0YydY1NIVCVcUVohZ/0yf61kK7AEIEyy5IlGalrK8scLDihzHjCowOL Fpfgk6jtQuEvRZx3vXzQBHWHgBCMTJRaCelp3wEuw7n9ewmLNHtErSTQ08xm3AxjBkQc 64lw== X-Received: by 10.204.229.139 with SMTP id ji11mr1824597bkb.4.1387468865559; Thu, 19 Dec 2013 08:01:05 -0800 (PST) Received: from localhost (port-10467.pppoe.wtnet.de. [84.46.41.12]) by mx.google.com with ESMTPSA id d5sm3931676bkc.9.2013.12.19.08.01.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2013 08:01:04 -0800 (PST) From: Thierry Reding To: Stephen Warren Subject: [PATCH 01/10] ARM: tegra: Enable LVDS on Harmony Date: Thu, 19 Dec 2013 16:59:25 +0100 Message-Id: <1387468774-14216-2-git-send-email-treding@nvidia.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1387468774-14216-1-git-send-email-treding@nvidia.com> References: <1387468774-14216-1-git-send-email-treding@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131219_110127_195276_FA8FB471 X-CRM114-Status: GOOD ( 10.54 ) X-Spam-Score: -2.0 (--) Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add backlight and panel nodes for the Harmony TFT LCD panel. Signed-off-by: Thierry Reding --- Changes in v2: - no longer set panel regulator always-on, fixed in driver - update commit message - remove backlight-boot-off property for now arch/arm/boot/dts/tegra20-harmony.dts | 36 +++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-harmony.dts b/arch/arm/boot/dts/tegra20-harmony.dts index 6145f26a0ec5..3fb1f50f6d46 100644 --- a/arch/arm/boot/dts/tegra20-harmony.dts +++ b/arch/arm/boot/dts/tegra20-harmony.dts @@ -17,6 +17,14 @@ }; host1x@50000000 { + dc@54200000 { + rgb { + status = "okay"; + + nvidia,panel = <&panel>; + }; + }; + hdmi@54280000 { status = "okay"; @@ -261,6 +269,10 @@ status = "okay"; }; + pwm: pwm@7000a000 { + status = "okay"; + }; + i2c@7000c000 { status = "okay"; clock-frequency = <400000>; @@ -606,6 +618,17 @@ bus-width = <8>; }; + backlight: backlight { + compatible = "pwm-backlight"; + + enable-gpios = <&gpio TEGRA_GPIO(B, 5) GPIO_ACTIVE_HIGH>; + power-supply = <&vdd_bl_reg>; + pwms = <&pwm 0 5000000>; + + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + }; + clocks { compatible = "simple-bus"; #address-cells = <1>; @@ -630,6 +653,15 @@ }; }; + panel: panel { + compatible = "auo,b101aw03", "simple-panel"; + + power-supply = <&vdd_pnl_reg>; + enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>; + + backlight = <&backlight>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; @@ -673,7 +705,7 @@ enable-active-high; }; - regulator@4 { + vdd_pnl_reg: regulator@4 { compatible = "regulator-fixed"; reg = <4>; regulator-name = "vdd_pnl"; @@ -683,7 +715,7 @@ enable-active-high; }; - regulator@5 { + vdd_bl_reg: regulator@5 { compatible = "regulator-fixed"; reg = <5>; regulator-name = "vdd_bl";