From patchwork Wed Sep 2 14:48:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 7112691 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 013FDBEEC1 for ; Wed, 2 Sep 2015 14:49:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D8C12061C for ; Wed, 2 Sep 2015 14:48:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 24ED82054C for ; Wed, 2 Sep 2015 14:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754845AbbIBOsm (ORCPT ); Wed, 2 Sep 2015 10:48:42 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35329 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754663AbbIBOsk (ORCPT ); Wed, 2 Sep 2015 10:48:40 -0400 Received: by pacfv12 with SMTP id fv12so14175629pac.2; Wed, 02 Sep 2015 07:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=c+Q2C/fN6PIFUmtv4J8ZvdoL0Oxcfs32a8aCOZII6rA=; b=uXeLhR6xzaMH3AUh+KfGcS+uSuroNa/uLMlgAOOXd1AmrgQ8TQ7obDXhMKqf9Xwdvu shlSyR0d5Cr1pl85P8Qejaw5sQetjDGQDJQdsRhsxKKp1l4CE8VgrO9e8CjJ0KpcmWAM MOLsRfje98k2UOVbDkQKgu5PiWIyx+emUrqDsadZyg6kjPH/c+4OpjtEKv/YXepuDEkU E5VyuLqJwBAJDnJhN5/K9U+lVvY6ZbEZixagodDGF3i/0knfVObu6IG8aQiAcAhJ7AK7 2aJL5Y46hq3tjBZ5SJe+DBpKTHze7uR+CL+LW9WohcXLN8A9LHhwFjQUqf8Gy/D6c+YT +sAw== X-Received: by 10.66.140.70 with SMTP id re6mr57457172pab.31.1441205320153; Wed, 02 Sep 2015 07:48:40 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by smtp.gmail.com with ESMTPSA id hs11sm21987599pdb.12.2015.09.02.07.48.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Sep 2015 07:48:39 -0700 (PDT) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ARM: dts: Fix LEDs on exynos5422-odroidxu3 Date: Wed, 2 Sep 2015 23:48:08 +0900 Message-Id: <1441205288-22047-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 The LEDs on Odroid XU3 family boards could not properly probe because PWM outputs were reduced only to PWM for fan. Fix this to: - Odroid XU3 and XU3-Lite: 4 outputs (although the PWM for MIPI probably is redundant because board does not have MIPI connector available); - Odroid XU4: 2 outputs. This fixes warnings on dmesg: [ 4.838712] samsung-pwm 12dd0000.pwm: tried to request PWM channel 1 without output [ 4.838725] leds_pwm pwmleds: unable to request PWM for green:mmc0: -22 [ 4.838767] leds_pwm: probe of pwmleds failed with error -22 Signed-off-by: Krzysztof Kozlowski --- Patch depends/is rebased on latest DTS for Odroid XU4 board: - http://www.spinics.net/lists/arm-kernel/msg442474.html - http://www.spinics.net/lists/arm-kernel/msg442475.html --- arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 1 - arch/arm/boot/dts/exynos5422-odroidxu3.dts | 1 - arch/arm/boot/dts/exynos5422-odroidxu4.dts | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts index 379cd61178ee..b1b36081f343 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts @@ -63,7 +63,6 @@ */ pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; pinctrl-names = "default"; - samsung,pwm-outputs = <0>; status = "okay"; }; diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index c7509690131d..0c0bbdbfd85f 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -94,7 +94,6 @@ */ pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; pinctrl-names = "default"; - samsung,pwm-outputs = <0>; status = "okay"; }; diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts b/arch/arm/boot/dts/exynos5422-odroidxu4.dts index dae0ddc25bdc..2faf88627a48 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts @@ -39,7 +39,7 @@ */ pinctrl-0 = <&pwm0_out &pwm2_out>; pinctrl-names = "default"; - samsung,pwm-outputs = <0>; + samsung,pwm-outputs = <0>, <2>; status = "okay"; };