From patchwork Tue May 17 19:48:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 9114901 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3C4D5BF29F for ; Tue, 17 May 2016 19:50:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C6DF2022A for ; Tue, 17 May 2016 19:50:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8D72720166 for ; Tue, 17 May 2016 19:50:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbcEQTuW (ORCPT ); Tue, 17 May 2016 15:50:22 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36722 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbcEQTs4 (ORCPT ); Tue, 17 May 2016 15:48:56 -0400 Received: by mail-wm0-f67.google.com with SMTP id w143so7310217wmw.3; Tue, 17 May 2016 12:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=5tqrat9FA0p37bnr1g8cc17U+PWBXeKF0PF6xJJKT+M=; b=h9T11zI00f8YfYXxWXv9E2HR1f3asm85NHt/l11fBk6T70iMfgkF18SzVzQG65e2gv SRYgU4p1P1t/JtGojFvk3nQTUyvumuFl+aq/04Rw6cAs4FpT8/krD/huREz4PaS5I985 aEbhzYUmGGUPe0Rw2NkJXuRB/fkSm/0HyTvjvEoRMtHfQa/dpNjaed27j2LSV2DLvLph 5GFZ/Kp/2cr8352MuhDSCB87whS4H5zOnhRGsZLDsbS0igZnOipSjLpI486Lm1Mc6bfL Q78Bpi1o4myHYYY6/H+u7KIDvEx6zKl3Lol8c8/KKRTKcIV9mZUNIaHPEVdtYyWGftGD 3vBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=5tqrat9FA0p37bnr1g8cc17U+PWBXeKF0PF6xJJKT+M=; b=Ob9fbnZVlz5nPbVbSWeu1GHEZWNMYySLELxNuvQUeXz7jGM8uFaDYVCkmqKqlixghU 3VkQDZpLYWwRKv1asS+HoodSCljiGXT3PgBKZHsnCdv9CVB/X7M1/VYnn1ZW6AeTmJ9b vKio9YUZlkOAU44VUShBsGr2QDD3qAuz+pHddpTfc2S+uuh8HHFrVjdK4Ayq3IDeGG1U 1e6iCDputoD5unGy22qGha6BB0VTcix/k+4z3acIzQS2oNgwDcFdDu8P20hpzgQk0QLP BRoGE8qRbb0eBiuHXhVuB0KhKZqCC9ysNoq09WpP20SlqQUyJa3bnVve5Db1XcPdAali E9rQ== X-Gm-Message-State: AOPr4FXOPQu+tVEXWDYHxbXAaTmL+otQuFV13oMzR46gaSixSxVtJaUJOLAQb9cRu6Fhsg== X-Received: by 10.194.23.33 with SMTP id j1mr3453774wjf.160.1463514535076; Tue, 17 May 2016 12:48:55 -0700 (PDT) Received: from localhost.localdomain (109-230-32-166.dynamic.orange.sk. [109.230.32.166]) by smtp.gmail.com with ESMTPSA id a63sm5216573wmh.11.2016.05.17.12.48.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 May 2016 12:48:54 -0700 (PDT) From: Marek Belisko To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@armlinux.org.uk Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hns@goldelico.com, Marek Belisko Subject: [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support Date: Tue, 17 May 2016 21:48:47 +0200 Message-Id: <1463514531-7235-2-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1463514531-7235-1-git-send-email-marek@goldelico.com> References: <1463514531-7235-1-git-send-email-marek@goldelico.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 Define pwm backlight node which is using dmtimer pwm. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index ab9fb8f..cef8b23 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -100,6 +100,22 @@ }; }; + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm11 0 2000000 0>; + pwm-names = "backlight"; + brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>; + default-brightness-level = <9>; /* => 90 */ + pinctrl-names = "default"; + pinctrl-0 = <&backlight_pins>; + }; + + pwm11: dmtimer-pwm@11 { + compatible = "ti,omap-dmtimer-pwm"; + ti,timers = <&timer11>; + #pwm-cells = <3>; + }; + hsusb2_phy: hsusb2_phy { compatible = "usb-nop-xceiv"; reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; @@ -190,6 +206,12 @@ >; }; + backlight_pins: backlight_pins_pimnux { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3) /* gpt11/gpio57 */ + >; + }; + dss_dpi_pins: pinmux_dss_dpi_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */