From patchwork Wed Jun 18 15:26:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32144 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B0AD0206A0 for ; Wed, 18 Jun 2014 15:27:11 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf2997895pdb.4 for ; Wed, 18 Jun 2014 08:27:10 -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:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-disposition; bh=aCWY2UlYqsDoj4eo5ensG+qMzPltJVKqXa3gHJ6NgPc=; b=Sz+2zz5ryHZYHQeH/YhqmBddSlPJ7L7ijJRe0OK6LxcYlcMLc43mmjzfQMnX4+F2aB u+2JfTsmsDcju+TDFVH31hnV22Bn8SdbJZf+G7M6lNnKz34WBP3FpRqYvXGcGzQ3JRW+ 1oG1lX+qFinsMJa3dqE4Jhk/qBFg1yTc9eWW6gnNcqOkjsmPFal8pRMsCW3+d+oPNtrg fBKQpXg533hcTah1FxUbUqfLm5f4lqvHWXnYGpePIrjrsNCMTkLoTGRX1BQagEoT6KXI w1aEJJUUdet+k1PimXjQv6O3gRtM0+X0yx1ARUjTgKiquvmSwJ3X4R5JFtbcy/jeWk1B mOXw== X-Gm-Message-State: ALoCoQk+OkH+rGlkweIigznEizhWMqbPuxd1k1fj5UBLKfmWst6LlI+49o3r3xvnZV28RxGk2QWp X-Received: by 10.66.122.101 with SMTP id lr5mr1041582pab.19.1403105230895; Wed, 18 Jun 2014 08:27:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.8 with SMTP id y8ls167107qgy.11.gmail; Wed, 18 Jun 2014 08:27:10 -0700 (PDT) X-Received: by 10.58.74.201 with SMTP id w9mr984071vev.56.1403105230771; Wed, 18 Jun 2014 08:27:10 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id zc15si1020344vdb.79.2014.06.18.08.27.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 08:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db12so977872veb.7 for ; Wed, 18 Jun 2014 08:27:10 -0700 (PDT) X-Received: by 10.58.29.234 with SMTP id n10mr1941498veh.16.1403105230668; Wed, 18 Jun 2014 08:27:10 -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.221.54.6 with SMTP id vs6csp293391vcb; Wed, 18 Jun 2014 08:27:10 -0700 (PDT) X-Received: by 10.68.174.33 with SMTP id bp1mr3514461pbc.74.1403105229887; Wed, 18 Jun 2014 08:27:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id td3si2566553pab.128.2014.06.18.08.27.09; Wed, 18 Jun 2014 08:27:09 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752809AbaFRP1G (ORCPT + 5 others); Wed, 18 Jun 2014 11:27:06 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:48592 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752614AbaFRP1D (ORCPT ); Wed, 18 Jun 2014 11:27:03 -0400 Received: by mail-ie0-f169.google.com with SMTP id at1so865364iec.28 for ; Wed, 18 Jun 2014 08:27:03 -0700 (PDT) X-Received: by 10.42.107.68 with SMTP id c4mr3217368icp.60.1403105223006; Wed, 18 Jun 2014 08:27:03 -0700 (PDT) Received: from lee--X1 (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id l9sm7562079igx.7.2014.06.18.08.27.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Jun 2014 08:27:02 -0700 (PDT) Date: Wed, 18 Jun 2014 16:26:56 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, thierry.reding@gmail.com, linux-pwm@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com, srinivas.kandagatla@gmail.com, devicetree@vger.kernel.org, ajitpal.singh@st.com Subject: [PATCH v2 1/7] ARM: stih407: Add DT nodes for for PWM Message-ID: <20140618152656.GE15956@lee--X1> References: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 In-Reply-To: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) smtp.mail=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: , Content-Disposition: inline ARM: stih407: Add DT nodes for for PWM Supply top level nodes for the STiH407 based development boards. The Pinctrl configuration has already been applied, so the only missing piece of the DT puzzle is for a board's DTB to enable the nodes. Signed-off-by: Lee Jones --- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi index 4f9024f..e9766a4 100644 --- a/arch/arm/boot/dts/stih407.dtsi +++ b/arch/arm/boot/dts/stih407.dtsi @@ -259,5 +259,32 @@ status = "disabled"; }; + + /* COMMS PWM Module */ + pwm0: pwm@9810000 { + compatible = "st,sti-pwm"; + status = "disabled"; + #pwm-cells = <2>; + reg = <0x9810000 0x68>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0_chan0_default>; + clock-names = "pwm"; + clocks = <&clk_sysin>; + }; + + /* SBC PWM Module */ + pwm1: pwm@9510000 { + compatible = "st,sti-pwm"; + status = "disabled"; + #pwm-cells = <2>; + reg = <0x9510000 0x68>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1_chan0_default + &pinctrl_pwm1_chan1_default + &pinctrl_pwm1_chan2_default + &pinctrl_pwm1_chan3_default>; + clock-names = "pwm"; + clocks = <&clk_sysin>; + }; }; };