From patchwork Fri Jun 17 14:29:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9184133 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 7EA59608A2 for ; Fri, 17 Jun 2016 14:30:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 770F428399 for ; Fri, 17 Jun 2016 14:30:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BF21283A4; Fri, 17 Jun 2016 14:30:35 +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 23C3527248 for ; Fri, 17 Jun 2016 14:30:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bDun3-000303-1j; Fri, 17 Jun 2016 14:30:33 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bDumk-0001eT-Tu for linux-amlogic@lists.infradead.org; Fri, 17 Jun 2016 14:30:16 +0000 Received: by mail-wm0-x22c.google.com with SMTP id m124so2121685wme.1 for ; Fri, 17 Jun 2016 07:29:54 -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=Trma1w8UNIP4gP+DHHjggUFyinQSIhN156nXcQ+XfZRhpmCkdiWijdNK0qspUP1MZN 8/9oU3hDiQlnsTcPgxtDtmlXxkiC3zHyt36cjsnQTrunfBAqyo2sdGiLmcHYWkJnjDRK zEPAvuEN//rKsMX3scb8UQBwCPyj2QvhAkKfcVXb135zNHCu6YdhfPoAJxYVjGZZyg7a q7F84+JAyrCLyvxqIT4bayYJ8FG1q/blTOZKJECgMOPvbxYAvvnfWKh3dPWHTGPG6lvU ZU6HBpVy/YTyeJll2yMj+P2O+cF1OmgFfV5rL079Wk3xtrXVgCVJpSeaPlxPiTdPfE3F 7zgQ== 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=TAtA1QM6v0M1H7olA0FqDylI0gyB8oZJv+uedXf35080KIhGStgqnRb30J3drUBVYY fIrYtiKVNTVMVmbzPUeJHwoXWKF+kWGpbsd1pSQhYyBZnHHpyzCQZwxgQO6p7/nRmDCc BT8QK0LlCwUz2A5IpGPf3zwNU/27OunXn5X5VrbJZ1GEXT11w2n1LDffBn2pDByTddN2 kd78kz00VmqeCilyGdv/NdHvAdMALRdxH6p91PmNSpev5931DCnEBTmaL62JZAs4Rlxx PtcwctNr3w9HtcBqa0tukQ8zchnDKSF0/qL8aH7G7ygZcXKcrae2CoCkJbpnAgLMzMcd S/jg== X-Gm-Message-State: ALyK8tIpANCgRGa0YEPFsWrMAIwnl0WQKv1IGT2CToQwCa9aNtHtrzURFMZXmVA05irIbz3m X-Received: by 10.194.234.103 with SMTP id ud7mr2626500wjc.39.1466173792870; Fri, 17 Jun 2016 07:29:52 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u64sm20407562wmd.8.2016.06.17.07.29.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jun 2016 07:29:52 -0700 (PDT) From: Neil Armstrong To: thierry.reding@gmail.com, carlo@caione.org, khilman@baylibre.com Subject: [PATCH 2/4] dt-bindings: pwm: Add bindings for Meson PWM Controller Date: Fri, 17 Jun 2016 16:29:42 +0200 Message-Id: <1466173784-15625-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466173784-15625-1-git-send-email-narmstrong@baylibre.com> References: <1466173784-15625-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160617_073015_237245_6B01FCA7 X-CRM114-Status: GOOD ( 11.38 ) 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"; +}