From patchwork Sun Jul 10 09:24:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9222447 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 28A3E604DB for ; Sun, 10 Jul 2016 09:25:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15A841FF8F for ; Sun, 10 Jul 2016 09:25:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08D41264FB; Sun, 10 Jul 2016 09:25:03 +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 93B331FF8F for ; Sun, 10 Jul 2016 09:25:02 +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 1bMAyz-0007zJ-Gq; Sun, 10 Jul 2016 09:25:01 +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 1bMAyZ-0007an-P8 for linux-amlogic@lists.infradead.org; Sun, 10 Jul 2016 09:24:37 +0000 Received: by mail-wm0-x22e.google.com with SMTP id o80so15504743wme.1 for ; Sun, 10 Jul 2016 02:24:15 -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=f9qaqPyLQPwOmBWuXqBXRviKPNFUcISXkNij2Oe1rP0=; b=qNTRef2DSvT3IGFRsjnMoDapthnpk98TG5WD8VXRJg6r5yr+pIYcg4o3rnNRVSoFxn En4PPyr+lpwRfC58WO4m8RJsaa6crQyQqmZxNtJW/s2oOktbXHm49+4aeA4h7s5Va0Rf DcOLia0mjU5QrtYMR72RFEICzb9LgUoAB6VX7T2R1yCqVPYCe+oSUk8KPk5j0aoWfdGz L1hArRLuyD1V9GQp48LM2atxfJlZENB8WP3ELmx3epEUeDOjd75EKwI4eN/glX3X7K1R XgblzPuKZAOrlRanzY0hxJp5kQcfm1q7bGA+BQ6DHB1rfGKvXpTOOJptaNXMVcl4xeXl FyPw== 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=f9qaqPyLQPwOmBWuXqBXRviKPNFUcISXkNij2Oe1rP0=; b=gsz6OODWcXLXnlQyVrFFZTHcQVBRsnO9NBQL35IcDZCoJcL4LSuCtBCAKNc+ATQ1EO 9ho9hdda9AT08vIS4mh5Rk5FaXnI9JNkFzACC2JrpNoTB9963oz6o2scUFDFXyCXhDXY 0yGIBWIC6xJLNPFFSe/qFRGhF6sE1ju3FxUeer5+A1AM8Xsz5H38cwWXGwL1eL7p+Og/ GopXCWLQ1wlP+VHZzVMHUnM7GHjhb6G2roAEntzrWP1CYIQhogpkVwAOHHlk4CBJ1PAS albI7S5hb2T+cNuF/L879oRNQp15zED0P54PI1j1Wd6ri1zbs0mDP6pxUaJUn5CQPwFE RK4g== X-Gm-Message-State: ALyK8tK4DXuI9jEEsEDfSUr4SJ7CaSupFykEb7DtMHYK0w0WcANwbZYG0/7X289k1oEtnJik X-Received: by 10.28.182.68 with SMTP id g65mr6640549wmf.12.1468142653888; Sun, 10 Jul 2016 02:24:13 -0700 (PDT) Received: from localhost.localdomain (home.amouriers.starnux.net. [82.228.250.61]) by smtp.gmail.com with ESMTPSA id f196sm12004304wmg.15.2016.07.10.02.24.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jul 2016 02:24:13 -0700 (PDT) From: Neil Armstrong To: thierry.reding@gmail.com, carlo@caione.org, khilman@baylibre.com Subject: [PATCH v2 2/4] dt-bindings: pwm: Add bindings for Meson PWM Controller Date: Sun, 10 Jul 2016 11:24:03 +0200 Message-Id: <1468142645-4360-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468142645-4360-1-git-send-email-narmstrong@baylibre.com> References: <1468142645-4360-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160710_022436_070353_6A3C54A0 X-CRM114-Status: GOOD ( 11.26 ) 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"; +}