From patchwork Wed Nov 27 15:39:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Denis Carikli X-Patchwork-Id: 3248801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E2A20C045B for ; Wed, 27 Nov 2013 15:41:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A66BD205D4 for ; Wed, 27 Nov 2013 15:41:12 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A86320444 for ; Wed, 27 Nov 2013 15:41:11 +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 1VlhEM-0001yD-Kb; Wed, 27 Nov 2013 15:40:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlhED-0007mb-8r; Wed, 27 Nov 2013 15:40:37 +0000 Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlhDw-0007j0-Bw for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2013 15:40:23 +0000 Received: from denis-N73SV.local.eukrea.com (unknown [88.170.243.169]) by smtp3-g21.free.fr (Postfix) with ESMTP id E17F5A6381; Wed, 27 Nov 2013 16:39:52 +0100 (CET) From: Denis Carikli To: Thierry Reding Subject: =?UTF-8?q?=5BPATCH=202/3=5D=20ARM=3A=20dts=3A=20mbimxsd53=20Add=20backlight=20and=20LCD=20regulator=2E?= Date: Wed, 27 Nov 2013 16:39:30 +0100 Message-Id: <1385566771-366-2-git-send-email-denis@eukrea.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1385566771-366-1-git-send-email-denis@eukrea.com> References: <1385566771-366-1-git-send-email-denis@eukrea.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131127_104021_113173_8C9D6AA2 X-CRM114-Status: GOOD ( 11.65 ) X-Spam-Score: -1.2 (-) Cc: linux-pwm@vger.kernel.org, Samuel Ortiz , devicetree@vger.kernel.org, Rob Herring , Denis Carikli , Grant Likely , Shawn Guo , Lee Jones , 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: , 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 Cc: Thierry Reding Cc: Grant Likely Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-pwm@vger.kernel.org Cc: Samuel Ortiz Cc: Lee Jones Cc: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Denis Carikli --- arch/arm/boot/dts/imx53-eukrea-cpuimx53.dtsi | 7 +++ .../imx53-eukrea-mbimxsd53-baseboard-cmo-qvga.dts | 64 ++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 arch/arm/boot/dts/imx53-eukrea-mbimxsd53-baseboard-cmo-qvga.dts diff --git a/arch/arm/boot/dts/imx53-eukrea-cpuimx53.dtsi b/arch/arm/boot/dts/imx53-eukrea-cpuimx53.dtsi index cb40cf3..bad044f 100644 --- a/arch/arm/boot/dts/imx53-eukrea-cpuimx53.dtsi +++ b/arch/arm/boot/dts/imx53-eukrea-cpuimx53.dtsi @@ -35,6 +35,13 @@ pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; + pmic: mc34708@8 { + compatible = "fsl,mc34708"; + reg = <0x8>; + interrupt-parent = <&gpio4>; + interrupts = <28 0x4>; + }; + pcf8563@51 { compatible = "nxp,pcf8563"; reg = <0x51>; diff --git a/arch/arm/boot/dts/imx53-eukrea-mbimxsd53-baseboard-cmo-qvga.dts b/arch/arm/boot/dts/imx53-eukrea-mbimxsd53-baseboard-cmo-qvga.dts new file mode 100644 index 0000000..b9eceae --- /dev/null +++ b/arch/arm/boot/dts/imx53-eukrea-mbimxsd53-baseboard-cmo-qvga.dts @@ -0,0 +1,64 @@ +/* + * Copyright 2013 EukrĂ©a Electromatique + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "imx53-eukrea-mbimxsd53-baseboard.dts" + +/ { + backlight { + compatible = "pwm-backlight"; + power-supply = <®_lvds_backlight_3v3>; + pwms = <&mc13xxx_pwm 0 16000>; + brightness-levels = <0 8 16 32 64 128 255>; + default-brightness-level = <7>; + }; + + mc13xxx_pwm: pwm { + compatible = "fsl,mc34708-pwm"; + mfd = <&pmic>; + #pwm-cells = <2>; + }; + + reg_lvds_backlight_3v3: lvds-backlight-en { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_lvds_backlight>; + regulator-name = "lvds-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio4 4 0>; + enable-active-high; + }; + + reg_lcd_3v3: lcd-en { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_lcd_3v3>; + regulator-name = "lcd-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio4 20 0>; + enable-active-high; + }; +}; + +&iomuxc { + imx53-eukrea { + pinctrl_reg_lcd_3v3: reg_lcd_3v3grp { + fsl,pins = ; + }; + + pinctrl_reg_lvds_backlight: reg_lvds_backlightgrp { + fsl,pins = ; + }; + }; +};