From patchwork Mon Aug 22 15:36:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9293751 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C23B608A7 for ; Mon, 22 Aug 2016 15:38:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ECDD286BE for ; Mon, 22 Aug 2016 15:38:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4366428A33; Mon, 22 Aug 2016 15:38:53 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 02F62286BE for ; Mon, 22 Aug 2016 15:38:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bbrJE-00039R-No; Mon, 22 Aug 2016 15:38:44 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bbrHi-0002Gm-4I for linux-amlogic@lists.infradead.org; Mon, 22 Aug 2016 15:37:15 +0000 Received: by mail-wm0-x22e.google.com with SMTP id f65so126081398wmi.0 for ; Mon, 22 Aug 2016 08:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1oBnOCnYOd+42fXPN/3I2Ydkf1+aEWXGX7HHaKkCU8k=; b=wjvRQS9W7GF0IClgJ2C05wbuOEApvob+qx9GUjmdnRp5ewfvr1gcOodFhJGg3EaXiU KiMSimQb4zN8sz3DZZdFwBvFgQ7mdiiEK6Q8zMF7W74jKuWmCyM1TUmC8++wqJUJY2Rn FNJluVO2eMs3lZJ0uVnbHEObOu1xduX0ekliPuQEeHt/DRisAyZsJB0YIQJeyTA33DDu ElP8DEV/Kwk13s4bdik6xDOTUQtPTKa39gRGJ0hLK1wJEDPHqgdpBKaP/jyw1qpNjW3e o6K2LQg/JtnHRXMvjTuHa/didWxxC2LOEoh7uEMD8DCNHAiCddcZi6Gg+gHDMpZ1/1Hl aBvA== 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=1oBnOCnYOd+42fXPN/3I2Ydkf1+aEWXGX7HHaKkCU8k=; b=QmV4FzlMHx562e2VAska6rBmGDJq8AVcd936SMM+eDZs5peoqkPwiWn934yKlGMMG7 pzqPUwF+pJyYt0J/jaYSO/Q5dj41psaJi3O6ZkH9V9iG7Gv4T2nXe/9c3lPAW1ag/a5Y vgg2WcqmtLtTkV90CRz7fSMJh5W+f6tZ+0gE3Ozpz5JZjNL1glCgcSVOotBJ+SM7rq7V OCGpqEGJyqSRhTUx7DiEiDtR1BAX6kzqOfkAt+W23AISx+n04lMPPlXr+rQwUDgZvmRW hyVImAOh4nz0/uJvQ+jt2NMTtGEBsOPQnmHaGz92c4soKg7Scoe/jTxYgPpKlTqma+48 3qSg== X-Gm-Message-State: AEkooutf4rac10YpBEM4fm7ZktbDmRwCJVzLJ1niwLNu233Jj37hN0FOZPMmPdl7MK86AXtJ X-Received: by 10.194.184.148 with SMTP id eu20mr20386962wjc.137.1471880208207; Mon, 22 Aug 2016 08:36:48 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bw9sm24744239wjc.33.2016.08.22.08.36.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 08:36:47 -0700 (PDT) From: Neil Armstrong To: thierry.reding@gmail.com, carlo@caione.org, khilman@baylibre.com, devicetree@vger.kernel.org Subject: [PATCH v3 2/4] dt-bindings: pwm: Add bindings for Meson PWM Controller Date: Mon, 22 Aug 2016 17:36:31 +0200 Message-Id: <1471880193-21879-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471880193-21879-1-git-send-email-narmstrong@baylibre.com> References: <1471880193-21879-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_083710_467207_28C454D3 X-CRM114-Status: GOOD ( 10.86 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add bindings for the Amlogic PWM Controller in Meson8b and GXBB SoCs. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/pwm/pwm-meson.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-meson.txt diff --git a/Documentation/devicetree/bindings/pwm/pwm-meson.txt b/Documentation/devicetree/bindings/pwm/pwm-meson.txt new file mode 100644 index 0000000..e06aed0 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-meson.txt @@ -0,0 +1,21 @@ +Amlogic Meson PWM Controller +================================= + +Required properties: +- compatible: Shall contain "amlogic,meson8b-pwm" or "amlogic,meson-gxbb-pwm". +- #pwm-cells: Should be 3. See pwm.txt in this directory for a description of + the cells format. + +Optional properties: +- clocks: Could contain one or two parents clocks phandle for each of the two pwm channels. +- clock-names: Could contain at least the "clkin0" and/or "clkin1" names. + +Example: +pwm_ab: pwm@8550 { + compatible = "amlogic,meson-gxbb-pwm"; + reg = <0x0 0x08550 0x0 0x10>; + #pwm-cells = <3>; + status = "disabled"; + clocks = <&xtal>, <&xtal>; + clock-names = "clkin0", "clkin1"; +}