From patchwork Fri Oct 21 14:33:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 9389361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E164B607D0 for ; Fri, 21 Oct 2016 14:33:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D34922A25F for ; Fri, 21 Oct 2016 14:33:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C822F2A261; Fri, 21 Oct 2016 14:33:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BA812A25F for ; Fri, 21 Oct 2016 14:33:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932934AbcJUOdf (ORCPT ); Fri, 21 Oct 2016 10:33:35 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:34400 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932814AbcJUOdf (ORCPT ); Fri, 21 Oct 2016 10:33:35 -0400 Received: by mail-it0-f66.google.com with SMTP id e203so11375928itc.1 for ; Fri, 21 Oct 2016 07:33:35 -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=PAe5EUm9NX+oNeJ63QF4dyKfG1dhrFHjzm3Y6y/hK9A=; b=w7ODViWjl6ZBQYyzvuJkBNcxPogqZy1GCTnRAOg8foKMnjnZ6IZCWqRmEi//1MaGVo RMub5TRr27yJ7M/pINsXkv4nrpDKscGDNsiujqBuNXatiK58APNnH+WYH3UsjGn648V8 QZ5SSVA9Bbnwn1z0OWoAvaki8foB5Lqk++oW30RAWCTkU2DrdGW9wgokVtNsxkmWSsom GKJdm2C8tyGY3G6w+mbB4Zxd6OR0WMbzD6qwTTuUVeJXv/VEyAhi7LwmGhPWeGhQKGtG bZvbE6+m4GbzH3C4ZmuLmhYNaKN5QPoYMFLQWPd8QXwrJdHO/5v+sFwbOhjxuw6pLInp w7lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PAe5EUm9NX+oNeJ63QF4dyKfG1dhrFHjzm3Y6y/hK9A=; b=HTzo3E70zyJdO9QTAF8so7jOpsZnSI+LnaUEiOCcgO2+jmoxA9/JQTKmF6RP7Y3c9X F3AP93lJNIPJQoFWExrygbBr1nghhyAgI9gE5xSg3fHtCDrJE6pwqwVNJD5A8IJG8eWL 5ie4kdTN2cxAo6yL3L4ooPg0eipX7GF7/x2x8LrVsEwnf7c+Q6lkL/MyZ3w/PFIpoueR +wglufMVRuLlmyjQiLjd784Osvpg7v4EA4BziQu3nWzTvvMcrSfGToPFeCMYoGD8yH8K qPtQAG5FTsU18Iti2qawqjCed/eiCk+9cPWEgATzZLrDo+7xYtB8MsoJ/ymfrLYJ0lj0 VSZA== X-Gm-Message-State: AA6/9RkRD5y7fhii6eo1Jj1NBSMEjYkjOC8MaJiV6nlUp3fhq0emGWWn9yd82GG3Gz4f3g== X-Received: by 10.36.127.20 with SMTP id r20mr14814275itc.16.1477060414460; Fri, 21 Oct 2016 07:33:34 -0700 (PDT) Received: from logic-VirtualBox.logicpd.com (66-162-60-14.static.twtelecom.net. [66.162.60.14]) by smtp.gmail.com with ESMTPSA id t141sm7477272ita.0.2016.10.21.07.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Oct 2016 07:33:33 -0700 (PDT) From: aford173@gmail.com To: linux-omap@vger.kernel.org, tony@atomide.com Cc: adam.ford@logicpd.com, Adam Ford Subject: [PATCH] ARM: OMAP3: DTS: Fix backlight regulator binding on torpedo and SOM-LV Date: Fri, 21 Oct 2016 09:33:23 -0500 Message-Id: <1477060403-3278-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Adam Ford The backlight bindings require a regulator. If one is missing, the system generates an warning. This patch creates a dummy regulator for the backlight to eliminate this warning. Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts index da85984..9276070 100644 --- a/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts +++ b/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts @@ -144,6 +144,12 @@ }; }; + backlight_reg: backlight_reg { + regulator-name = "backlight-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; @@ -151,6 +157,7 @@ pwms = <&twl_pwm 0 5000000>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; default-brightness-level = <7>; + power-supply = <&backlight_reg>; enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */ }; }; diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts index 08cce17..8741c47 100644 --- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts +++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts @@ -177,6 +177,12 @@ }; }; + backlight_reg: backlight_reg { + regulator-name = "backlight-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; @@ -184,6 +190,7 @@ pwms = <&pwm10 0 5000000 0>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; default-brightness-level = <7>; + power-supply = <&backlight_reg>; enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */ }; };