From patchwork Wed Sep 23 19:37:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime COQUELIN X-Patchwork-Id: 54077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 2BDBB22E14 for ; Wed, 23 Sep 2015 19:38:45 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf30260991wic.3 for ; Wed, 23 Sep 2015 12:38:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=tmMxVJVu/0a+FOrLsas/yWaAb9Hoj/yrcwm0Q/XxEuk=; b=FrBH4Mfy0S4QKnqu7EMLKXTwqRiQc+7lGBy2/O8o3KVGphszO1hiL5SQqG+9Dl9lOP OVGecG30gssvxvKG8o4Oa3eVw6RTZSWuPvkdJYhATf+AeGmHd3VxohpxUcr/9iy+UVcO zHSRxJ2zEdD8ZEMKqQZ7ySPrbxqpcEM42JuyY3TqMPXUFmTtFhcZcCtptxoFAqZV3cym GMnGgYV99Z7xfwfJjZpgIM6ZU0EEkFOId0yJgWxnPzZfmumS67h+nl5QNovbjsyZuX68 TAw4djhetR3F+8TmxVmBi+FoBIPqJL9jfpEa2kPj1ksP6+2AAhT6ffEX9ILZ/h1l95c+ iW0w== X-Gm-Message-State: ALoCoQlbneiyI0J1oDoEVz6Q+xuny+U0dnqn8K0N6xF53AYc+zR3CumAktG36woR71bWi6lCKjo5 X-Received: by 10.112.63.165 with SMTP id h5mr5681135lbs.18.1443037124242; Wed, 23 Sep 2015 12:38:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.134 with SMTP id s6ls58966las.58.gmail; Wed, 23 Sep 2015 12:38:43 -0700 (PDT) X-Received: by 10.25.26.146 with SMTP id a140mr4387588lfa.31.1443037123981; Wed, 23 Sep 2015 12:38:43 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id e78si3949465lfg.157.2015.09.23.12.38.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2015 12:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lagj9 with SMTP id j9so63560640lag.2 for ; Wed, 23 Sep 2015 12:38:43 -0700 (PDT) X-Received: by 10.152.23.199 with SMTP id o7mr10344951laf.76.1443037123519; Wed, 23 Sep 2015 12:38:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp50011lbq; Wed, 23 Sep 2015 12:38:42 -0700 (PDT) X-Received: by 10.66.157.137 with SMTP id wm9mr40125822pab.30.1443037120376; Wed, 23 Sep 2015 12:38:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id om6si12719937pbb.143.2015.09.23.12.38.40; Wed, 23 Sep 2015 12:38:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751869AbbIWTij (ORCPT + 7 others); Wed, 23 Sep 2015 15:38:39 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:45373 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752059AbbIWTij (ORCPT ); Wed, 23 Sep 2015 15:38:39 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.14.5/8.14.5) with SMTP id t8NJXSeg015235; Wed, 23 Sep 2015 21:37:40 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 1x2xrtj2h4-1 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 23 Sep 2015 21:37:40 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B3C4531; Wed, 23 Sep 2015 19:37:22 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 39F822B63; Wed, 23 Sep 2015 19:37:39 +0000 (GMT) Received: from localhost (10.251.16.185) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 23 Sep 2015 21:37:38 +0200 From: Maxime Coquelin To: , , Rob Herring CC: , , , Subject: [PATCH 1/3] ARM: dts: stih407: Enable PWM nodes only board level Date: Wed, 23 Sep 2015 21:37:27 +0200 Message-ID: <1443037049-6167-2-git-send-email-maxime.coquelin@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443037049-6167-1-git-send-email-maxime.coquelin@st.com> References: <1443037049-6167-1-git-send-email-maxime.coquelin@st.com> MIME-Version: 1.0 X-Originating-IP: [10.251.16.185] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151, 1.0.33, 0.0.0000 definitions=2015-09-23_09:2015-09-23, 2015-09-23, 1970-01-01 signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxime.coquelin@st.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The PWM may not be used on some boards, so enable them only the board file. Signed-off-by: Maxime Coquelin --- arch/arm/boot/dts/stih407-family.dtsi | 6 ++++-- arch/arm/boot/dts/stihxxx-b2120.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index ae05277..9975e8f 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -585,7 +585,6 @@ /* COMMS PWM Module */ pwm0: pwm@9810000 { compatible = "st,sti-pwm"; - status = "okay"; #pwm-cells = <2>; reg = <0x9810000 0x68>; pinctrl-names = "default"; @@ -593,12 +592,13 @@ clock-names = "pwm"; clocks = <&clk_sysin>; st,pwm-num-chan = <1>; + + status = "disabled"; }; /* SBC PWM Module */ pwm1: pwm@9510000 { compatible = "st,sti-pwm"; - status = "okay"; #pwm-cells = <2>; reg = <0x9510000 0x68>; pinctrl-names = "default"; @@ -609,6 +609,8 @@ clock-names = "pwm"; clocks = <&clk_sysin>; st,pwm-num-chan = <4>; + + status = "disabled"; }; }; }; diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi index f589fe4..ab029f7 100644 --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi @@ -27,6 +27,14 @@ }; }; + pwm0: pwm@9810000 { + status = "okay"; + }; + + pwm1: pwm@9510000 { + status = "okay"; + }; + i2c@9842000 { status = "okay"; };