From patchwork Wed May 7 12:56:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 4127561 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 BC7439F23C for ; Wed, 7 May 2014 12:57:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E36A720212 for ; Wed, 7 May 2014 12:57:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E7C8201FB for ; Wed, 7 May 2014 12:57:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750900AbaEGM5a (ORCPT ); Wed, 7 May 2014 08:57:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:42608 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932243AbaEGM53 (ORCPT ); Wed, 7 May 2014 08:57:29 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5700EK4FZQKXA0@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 07 May 2014 21:57:26 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 39.D8.09952.6BD2A635; Wed, 07 May 2014 21:57:26 +0900 (KST) X-AuditID: cbfee690-b7fcd6d0000026e0-16-536a2db64566 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 5D.2A.25708.6BD2A635; Wed, 07 May 2014 21:57:26 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5700JLVFZ1U020@mmp1.samsung.com>; Wed, 07 May 2014 21:57:26 +0900 (KST) From: Ajay Kumar To: linux-samsung-soc@vger.kernel.org Cc: ajaynumb@gmail.com, kgene.kim@samsung.com, tomasz.figa@gmail.com, joshi@samsung.com, prashanth.g@samsung.com, Ajay Kumar , Olof Johansson Subject: [PATCH] ARM: dts: enable pwm backlight on exynos5250-snow Date: Wed, 07 May 2014 18:26:11 +0530 Message-id: <1399467371-12242-1-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWyRsSkRnebblawQdc1dYsD7w+yWGx4s5DZ 4vuuL+wWvQuuslnMOL+PyeLU9c9sFqsOb2C3WLXrD6MDh8fOWXfZPa6caGL16NuyitHj8ya5 AJYoLpuU1JzMstQifbsErown9yMLmvgrmpY8ZW1gnMvTxcjJISFgItFy6DEbhC0mceHeeiCb i0NIYCmjxJe+q6wwRX/fPWCCSCxilFjwfAeUM4FJYsWLfewgVWwC2hLbpt9kAbFFBFQlPrct YAcpYhbYwyixaS7EDmEBJ4mVm3uZQWwWoKLpa88ygti8Ah4Se6Z8AVrHAbROQWLOJBuIze3s Ek0vGSHKBSS+TT7EAlEiK7HpADNEiaTEwRU3WCYwCi5gZFjFKJpakFxQnJReZKJXnJhbXJqX rpecn7uJERi0p/89m7CD8d4B60OMyUDjJjJLiSbnA4M+ryTe0NjMyMLUxNTYyNzSjDRhJXFe tUdJQUIC6YklqdmpqQWpRfFFpTmpxYcYmTg4pRoYmze0lGi7FFyovtQRnHF/tsxmgeBNqc/c bqyUEPSSEU5cXn+AdXl82kIunsOy7edqEpet5pJK87+UPPfY4n1GnzZcO/bomUVuxbUZTikc X57EKvk1pZgtfdaxbnfVtlhDH3afW9X8x5Z5i1ZO6Ljx8pNzEoftz3sstVsDfDbY+zxdsqHZ TP67EktxRqKhFnNRcSIAVnfwjnACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNIsWRmVeSWpSXmKPExsVy+t9jAd1tulnBBg135C0OvD/IYrHhzUJm i++7vrBb9C64ymYx4/w+JotT1z+zWaw6vIHdYtWuP4wOHB47Z91l97hyoonVo2/LKkaPz5vk AliiGhhtMlITU1KLFFLzkvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4Du UFIoS8wpBQoFJBYXK+nbYZoQGuKmawHTGKHrGxIE12NkgAYS1jBmPLkfWdDEX9G05ClrA+Nc ni5GTg4JAROJv+8eMEHYYhIX7q1n62Lk4hASWMQoseD5DiYIZwKTxIoX+9hBqtgEtCW2Tb/J AmKLCKhKfG5bwA5SxCywh1Fi09zHbCAJYQEniZWbe5lBbBagoulrzzKC2LwCHhJ7pnxh7WLk AFqnIDFnks0ERu4FjAyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MYKj4pn0DsZVDRaHGAU4 GJV4eC3eZgQLsSaWFVfmHmKU4GBWEuF9pZkVLMSbklhZlVqUH19UmpNafIgxGWj5RGYp0eR8 YMTmlcQbGpuYmxqbWppYmJhZkiasJM57sNU6UEggPbEkNTs1tSC1CGYLEwenVAOj+h7h7GZX x68BL1yMl4btkat5L5x/b/YXnxwtyZlaXn1RarmfMlct1s3Id3Hx8dawyTSZXvdyUsSulRkN QqqXX91qv/B7syEvy3tOgxVzdxWIRJc/bExhrvv8oHmpc4Gbw88e2R/7WDaenpTvkib283/y E1e5oucufGtF3mYw1NcwdjRPSVBiKc5INNRiLipOBACTWzAWzgIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board. Signed-off-by: Olof Johansson Signed-off-by: Ajay Kumar --- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi index 9a49e68..2a4680c 100644 --- a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi @@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + i2c7_bus: i2c7-bus { samsung,pins = "gpb2-2", "gpb2-3"; samsung,pin-function = <3>; diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 1ce1088..9fcd3e8 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -206,4 +206,9 @@ clock-frequency = <24000000>; }; }; + + backlight { + status = "okay"; + }; + }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 3742331..89a9955 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -593,6 +593,16 @@ clock-names = "timers"; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 1000000 0>; + brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; + default-brightness-level = <7>; + pinctrl-0 = <&backlight_pwm>; + pinctrl-names = "default"; + status = "disabled"; + }; + amba { #address-cells = <1>; #size-cells = <1>;