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: 361542 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1F58B14007F for ; Thu, 19 Jun 2014 01:27:44 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751925AbaFRP1F (ORCPT ); Wed, 18 Jun 2014 11:27:05 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:41090 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbaFRP1D (ORCPT ); Wed, 18 Jun 2014 11:27:03 -0400 Received: by mail-ig0-f169.google.com with SMTP id a13so6347178igq.0 for ; Wed, 18 Jun 2014 08:27:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=RqKgi0wAt/+q0yvTy9nOXki4z9g3mGkrok8lceoI6nI=; b=jYevKsQ4btV6bwZjIhyCPwAaf5fiTjx5HCFXioMDYbWoFYes0bq2iqoAzmkRwgXCLh LAAFkhW7AdLwv7ItblRss8cA2J4Aie7Z7ZKZtOXfuE9k3gb/nIUgFNWX9QRCjhPjM6CS wZWTtT8j6iG/JHOn8T7sdObM1nLmlfPBGkPCY7IESeGX7RE4IDjDp6M2TIro7zeX21iA bUHEur6LlEoTO3Vt91F00jCrID7D5zymqsLHtUAjlFmqxK2aE9ZyVEOEKbtnoKx/jjoq rW6fxkVw4lNNti0S+eT53ETKyd//uGLnv1mcmGY2psuZ+Kv5Wsl2VO5E1g+igZXb3FYc 7KUg== X-Gm-Message-State: ALoCoQmrZJETn7ZDyaddcIuC9jdhlRf7bAkvozwedHervuvX6ItQ+otLmqIBJ5oTrd47r5sqa0pM 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 Content-Disposition: inline In-Reply-To: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org 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-pwm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; }; };