Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755533Ab2F2NXU (ORCPT ); Fri, 29 Jun 2012 09:23:20 -0400 Received: from hqemgate03.nvidia.com ([216.228.121.140]:14375 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753401Ab2F2NXT (ORCPT ); Fri, 29 Jun 2012 09:23:19 -0400 X-PGP-Universal: processed; by hqnvupgp05.nvidia.com on Fri, 29 Jun 2012 06:23:18 -0700 From: Alexandre Courbot To: Stephen Warren CC: , , Alexandre Courbot Subject: [PATCH] arm: tegra: add Ventana backlight device Date: Fri, 29 Jun 2012 22:24:59 +0900 Message-ID: <1340976299-27601-1-git-send-email-acourbot@nvidia.com> X-Mailer: git-send-email 1.7.11.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1406 Lines: 47 Add the backlight device to the Ventana device tree. Signed-off-by: Alexandre Courbot --- arch/arm/boot/dts/tegra20-ventana.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-ventana.dts b/arch/arm/boot/dts/tegra20-ventana.dts index be90544..27616f7 100644 --- a/arch/arm/boot/dts/tegra20-ventana.dts +++ b/arch/arm/boot/dts/tegra20-ventana.dts @@ -317,6 +317,27 @@ bus-width = <8>; }; + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 2 5000000>; + + brightness-levels = <0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 255>; + default-brightness-level = <12>; + power-supply = <&backlight_reg>; + enable-gpios = <&gpio 28 0>; + }; + + backlight_reg: fixedregulator@176 { + compatible = "regulator-fixed"; + regulator-name = "backlight_regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio 176 0>; + startup-delay-us = <0>; + enable-active-high; + regulator-boot-off; + }; + sound { compatible = "nvidia,tegra-audio-wm8903-ventana", "nvidia,tegra-audio-wm8903"; -- 1.7.11.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/