From patchwork Tue Nov 27 14:09:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Havelange X-Patchwork-Id: 10700603 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B05715A7 for ; Tue, 27 Nov 2018 14:10:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4397B2B1FE for ; Tue, 27 Nov 2018 14:10:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 313722B41A; Tue, 27 Nov 2018 14:10:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B50FE2B1FE for ; Tue, 27 Nov 2018 14:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=JUvKFkJPCjq/TnQFWSFaK7lkVCg28Q9I1wbyvXvT1Eo=; b=s1M IuSlY/g12DvR10m5XHrjG8RDHmFD/GEH+A5Z+ZvVrZanXAn+UD64s5t3eLDm3WfLrvzOugHy4rHco JxXpqliVgJKDn5f3HtOhzmmfRDSrpoCduW7oqGhXU6C4ytILB0NbjPkmukbJKe/s10lF+wlPyv561 lR/At4I0bBIF/PnbvMxLF/q2J+E5KQgkwfItGG/MgUVnO+fUFClhaPEXvH2IXJM8HYdClE1p7R5So SjtNyO9TMnZuRtsfEnr28G5LDvh5wLCozKcyNXKJsL6eBY6Bga46MrfCetFBMnhYVZ1MzKu1OTM5p PlgGla//PKpMa5NeMDRHjHr7Mzyw1Fw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRe3s-0008Fq-EP; Tue, 27 Nov 2018 14:10:00 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRe3p-0008EJ-31 for linux-arm-kernel@lists.infradead.org; Tue, 27 Nov 2018 14:09:59 +0000 Received: by mail-ed1-x542.google.com with SMTP id b3so19124054ede.1 for ; Tue, 27 Nov 2018 06:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=7VSz57nUqDMmDPEyDsdeLB0RSfnPmbsNu7//avC1qTg=; b=TXCFJnDyoyCPnMF/PR4JElzZte+nXzwieLTl3GuW0OonU/LKRk8WXq2o04W0V4IWn+ u9pZ0TS030IVPB+lmhobAEACAQQP04uskh5EzNMNaS7AuPLZ7tWD96jYDTpxTIyZHfAj nqo/gR4RNj/Dg+52WY6lmleXsqpiR0FMkNdHpvjcjqf0hkwH6YzQT111rY/kY5MeBcqO n16D1ni0wBjt2MWVeO39FOXeE4H4nwbmBF6Moth2JSdsAo2FKzC8+mjoEHfIBtT8vjdx ar/QYHu3nRFiUKevU0cm+ENoUpuB25Ww9GBEJ70GWcjcD3Ow+0o5xiv0uukxvj0WRfe8 9I6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7VSz57nUqDMmDPEyDsdeLB0RSfnPmbsNu7//avC1qTg=; b=nXAjz/aj5/fw9Ek3iKRK/WBf3/aczPw7nNYK+TtcuOaJwHUoglm3mDugdjX5Xq1YTK 9XCXxQC7IgWgApALvy9AfJbRGGkxtmfx5RpZzhSGX/ROR8honfJKzzohOqHQsCdheqFu vts+UtXH8XMedRxlaK7M/Koc/gvSjU3MzfgKnECc/aSJHJ2wvsCknOunHW5EEPqbW5Xy 7l+4ZRLjYJg0iJKnIRn/ybMHIx85ek1Pw1oiexZDBhViAswcIOye2y+Cs6CNkRfX+Fk0 uzlvfm9NOSPL/2SluB1NP/18bDOHWuZ3In9yd/cvqOcvxnvShpilDmFi8itJw1l6P8zq sAtw== X-Gm-Message-State: AGRZ1gL//KUqMP+JP7NUl66ZMfTF1rJ0eyewv8Be2b2MH9wKJYN7pZJX dbmfwGPkm9VwlnMhjUxEwcQdeQ== X-Google-Smtp-Source: AJdET5dEbxJiNBVm6qvd3W8X2V8CVV/xuv7JHMktmN922Vkb6x9F7nqWh68WewCAw/3PH3AL4x9ffg== X-Received: by 2002:a17:906:22ca:: with SMTP id q10-v6mr23715876eja.66.1543327793808; Tue, 27 Nov 2018 06:09:53 -0800 (PST) Received: from ph-ThinkPad-E560.local.ess-mail.com (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id z2sm1021147edd.4.2018.11.27.06.09.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 06:09:53 -0800 (PST) From: Patrick Havelange To: Shawn Guo , Li Yang , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thierry Reding , linux-pwm@vger.kernel.org Subject: [PATCH 1/1] ARM: dts: ls1021a: add nodes for PWMs Date: Tue, 27 Nov 2018 15:09:44 +0100 Message-Id: <20181127140944.31018-1-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181127_060957_278554_BC49001A X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: matthew.weber@rockwellcollins.com, Patrick Havelange MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The LS1021A has 8 possible PWMs, so adding them (disabled by default) Signed-off-by: Patrick Havelange --- arch/arm/boot/dts/ls1021a.dtsi | 96 ++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index bdd6e66a79ad..d3014da9a66b 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -525,6 +525,102 @@ status = "disabled"; }; + pwm0: pwm@29d0000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x29d0000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm1: pwm@29e0000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x29e0000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm2: pwm@29f0000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x29f0000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm3: pwm@2a00000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x2a00000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm4: pwm@2a10000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x2a10000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm5: pwm@2a20000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x2a20000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm6: pwm@2a30000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x2a30000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + + pwm7: pwm@2a40000 { + compatible = "fsl,vf610-ftm-pwm"; + #pwm-cells = <3>; + reg = <0x0 0x2a40000 0x0 0x10000>; + clock-names = "ftm_sys", "ftm_ext", + "ftm_fix", "ftm_cnt_clk_en"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>, + <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + status = "disabled"; + }; + wdog0: watchdog@2ad0000 { compatible = "fsl,imx21-wdt"; reg = <0x0 0x2ad0000 0x0 0x10000>;