From patchwork Wed Jun 18 15:28:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32145 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8A73206A0 for ; Wed, 18 Jun 2014 15:28:39 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id t59sf3330434yho.10 for ; Wed, 18 Jun 2014 08:28:39 -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=+o4UAM2b2J2x+VZ/A0+iUL3rtGq01Xn1ZpVGw6kzRMU=; b=QZ4kYgPM9DYiMs2pzK28EbeNhda3yPn7sT+A15WwWbEaFPI0ThQsFu2ilAv8YRtKE/ tWEjBILHHZYeDr1GPTvUB+U2Z18BbHY0U8AR2Ad+eSWrIV6PB95kILmKCrLbQue1H59T hI2HjHWqNKciBxuHu9bUHz2aOwthwiEtnzVcPSzwUR0ID0yjsZel+h7HG9GmPhb8PLjo 5hZC+MjAovijccfHWycMnJ8Ja60Prqqzq1sK3pf1kVCdodPCEl6KTFYw7Z8K3gU/2d1y 0y/eEHVCwJy85p9qQry9Cy8VEN6PA0h7wKP21goR/huoLYrub2Evrb3rt94UendRd+zm K4IA== X-Gm-Message-State: ALoCoQmgQKe40PKNLKOaNubv4yNnEeqHxGK7fHojlG5CDMiZ2Aqb3BcVl6eWzzA9PNGvbQ+Rd+in X-Received: by 10.236.17.132 with SMTP id j4mr3503098yhj.52.1403105319710; Wed, 18 Jun 2014 08:28:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.244 with SMTP id u107ls166488qge.52.gmail; Wed, 18 Jun 2014 08:28:39 -0700 (PDT) X-Received: by 10.221.40.193 with SMTP id tr1mr1853062vcb.31.1403105319621; Wed, 18 Jun 2014 08:28:39 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id tf2si1025346vcb.77.2014.06.18.08.28.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 08:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id sa20so982692veb.24 for ; Wed, 18 Jun 2014 08:28:39 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr1950808vcb.0.1403105319524; Wed, 18 Jun 2014 08:28:39 -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 vs6csp293475vcb; Wed, 18 Jun 2014 08:28:39 -0700 (PDT) X-Received: by 10.66.231.237 with SMTP id tj13mr3465113pac.136.1403105318809; Wed, 18 Jun 2014 08:28:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id in2si2507871pbc.229.2014.06.18.08.28.38; Wed, 18 Jun 2014 08:28:38 -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 S1753151AbaFRP2e (ORCPT + 6 others); Wed, 18 Jun 2014 11:28:34 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:34770 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753095AbaFRP2b (ORCPT ); Wed, 18 Jun 2014 11:28:31 -0400 Received: by mail-ie0-f181.google.com with SMTP id y20so847010ier.12 for ; Wed, 18 Jun 2014 08:28:31 -0700 (PDT) X-Received: by 10.42.11.74 with SMTP id t10mr2974073ict.27.1403105310945; Wed, 18 Jun 2014 08:28:30 -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 aw9sm7568294igc.9.2014.06.18.08.28.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Jun 2014 08:28:30 -0700 (PDT) Date: Wed, 18 Jun 2014 16:28:24 +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 3/7] ARM: stih416: Add DT nodes for PWM Message-ID: <20140618152824.GF15956@lee--X1> References: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> <1403103172-19856-3-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 In-Reply-To: <1403103172-19856-3-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.179 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: stih416: Add DT nodes for PWM Supply top level nodes for the STiH416 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/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 06473c5..f95e469 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi @@ -102,7 +102,7 @@ interrupts = <0 210 0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sbc_serial1>; - clocks = <&clk_sysin>; + clocks = <&clk_sysin>; }; i2c@fed40000 { @@ -236,5 +236,45 @@ resets = <&powerdown STIH416_KEYSCAN_POWERDOWN>, <&softreset STIH416_KEYSCAN_SOFTRESET>; }; + + /* SAS PWM Module */ + pwm0: pwm@fed10000 { + compatible = "st,sti-pwm"; + status = "disabled"; + #pwm-cells = <2>; + reg = <0xfed10000 0x68>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0_chan0_default + &pinctrl_pwm0_chan1_default + &pinctrl_pwm0_chan2_default + &pinctrl_pwm0_chan3_default>; + + clock-names = "pwm"; + clocks = <&clk_sysin>; + }; + + /* SBC PWM Module */ + pwm1: pwm@fe510000 { + compatible = "st,sti-pwm"; + status = "disabled"; + #pwm-cells = <2>; + reg = <0xfe510000 0x68>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1_chan0_default + /* + * Shared with SBC_OBS_NOTRST. Don't + * enable unless you really know what + * you're doing. + * + * &pinctrl_pwm1_chan1_default + */ + &pinctrl_pwm1_chan2_default + &pinctrl_pwm1_chan3_default>; + + clock-names = "pwm"; + clocks = <&clk_sysin>; + }; }; };