From patchwork Wed Jun 18 14:52:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 361538 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 C1D22140080 for ; Thu, 19 Jun 2014 00:55:28 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751257AbaFROxI (ORCPT ); Wed, 18 Jun 2014 10:53:08 -0400 Received: from mail-ie0-f170.google.com ([209.85.223.170]:34978 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbaFROxH (ORCPT ); Wed, 18 Jun 2014 10:53:07 -0400 Received: by mail-ie0-f170.google.com with SMTP id tr6so806137ieb.29 for ; Wed, 18 Jun 2014 07:53:06 -0700 (PDT) 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=jfH7sCqlZI2jMNpJJFzcRvQAFNB0eqDzyHTOFyXy+HE=; b=jee3lhHCn43o5lQV/ZP6nqM7FCodG9NXRtKZgeA6W11OR/TogIrw4E3FJqJz8J3sQB n3prd3TAYj30FFAicZniwRSJmg9J+nFeZXSNE+CicXlIqMCY4KjL6+kDN1Eb9MD0aGW9 vBzhZUcCMJNh4xbwnqoWgg0/TWvbJG9wYB/qkbRJylD2RvF88qadcjeE+UbBFqJrKEiS rPVwtLxOzU35Gl6gFQ7o6rWtqRbPWTYP9i5oZC4Z2nxgfBPN2TeH41wvLu22xbm/4cpB PIJ1b7bBpfWtDCNofQMvNGYp+allf2+pRUYiNEItbss5bzGzsaSrgUtpkjFB9eQCBEbs rOzQ== X-Gm-Message-State: ALoCoQmwt3T6mkILa9/6o0qfBSeQoasQi4ELihR+PZc7ubsgnj2bN2F/0eVN+TB7glMnx93v0Jci X-Received: by 10.50.153.11 with SMTP id vc11mr5195148igb.24.1403103186513; Wed, 18 Jun 2014 07:53:06 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id t16sm38979351igr.14.2014.06.18.07.53.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:53:06 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, 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 1/7] ARM: stih407: Add DT nodes for for PWM Date: Wed, 18 Jun 2014 15:52:46 +0100 Message-Id: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org 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 Acked-by: Peter Griffin --- arch/arm/boot/dts/stih407.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi index 4f9024f..6b43ba2 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>; + }; }; };