From patchwork Wed Jun 18 14:52:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 361535 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 71B0E140080 for ; Thu, 19 Jun 2014 00:54:49 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419AbaFROxP (ORCPT ); Wed, 18 Jun 2014 10:53:15 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:38558 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751361AbaFROxN (ORCPT ); Wed, 18 Jun 2014 10:53:13 -0400 Received: by mail-ig0-f172.google.com with SMTP id hn18so2305000igb.17 for ; Wed, 18 Jun 2014 07:53:12 -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:in-reply-to :references; bh=NG6Yiw6catEZG2XD/GYPwcssXyARbjFW/l0ICWg9EEw=; b=b7hB9qavAqzOcceTeJ5VNtW9kvgjMvcvcBb/rsmyy+6xypaHX+CeGANcydxC/s04Xn m1NrQTjCrosVL+uQOWcdWW2dD7GisJpmReKLFjtv6KLt34DnRT4SzLB10Z0LKmwx/THx ySYGwWy0FTo+smpJWZWItOXG1V0sjooWKN8hv3jzjIZ1lokA8EqvtpkhGlDztf2jJqZE G8RS55emUZ1AD9dGSHx+QxRwqwRxsar6T1g/5XHSufSWD7vpJUi4GPUktsMPO1bcSBXO STb9O7t5tYKzex/wPMUZNsED4YuvJk7y85lMfbtMYGkONk45lHd5PRxpwIWKdSP9I+pc Y7Cw== X-Gm-Message-State: ALoCoQnczGbk47mFbdS/wXBCv4evEAl3tp8fOKbz3sv0DoRjEsEJDQeJsZHnre7+RDUTe+S5ef9F X-Received: by 10.50.143.8 with SMTP id sa8mr5487684igb.29.1403103192425; Wed, 18 Jun 2014 07:53:12 -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.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:53:12 -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 3/7] ARM: stih416: Add DT nodes for PWM Date: Wed, 18 Jun 2014 15:52:48 +0100 Message-Id: <1403103172-19856-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> References: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> 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 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 --- arch/arm/boot/dts/stih416.dtsi | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 06473c5..8af159e 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi @@ -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>; + }; }; };