From patchwork Thu Feb 16 20:27:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylvain Lemieux X-Patchwork-Id: 9578337 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 D3A2960209 for ; Thu, 16 Feb 2017 20:28:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C718D2866B for ; Thu, 16 Feb 2017 20:28:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBC592866F; Thu, 16 Feb 2017 20:28:28 +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=-0.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 4F2C02866B for ; Thu, 16 Feb 2017 20:28:28 +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:References: In-Reply-To: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:List-Owner; bh=zb64fE/2vQAHigZZGPU18BBXBXmJ/b1FIsfFjAFop5I=; b=T6n41G6V5lIlSRLyAzyH8bY/Fz wMcNAsVI4vIvEiuTJbb4Q2ROAGJhAyihprVXdgr6nQGSNmHqtAJcXasbvKJOzajOpj1Yw6+Q/v0iB Or9fn7PiByybWJ0+LZrTiHRUPue+aN/YyaoUbTpz2My41zKgxHxGnSL+ARPLf3QdqqlDqIKvhmSav puSOye4FidWWV59114BpUYFCzcFYBZ/uenpgCnBJ6jJY19YXh0SwlnvcTdaWZ0MRCOQNHhGEYqrs2 l2ze3CGhLz49304D+Pjhkfml4ZJuDk1ByX/TuaKvB/50Slf8zkAoF9Ofmmso2MfRnPnb3/vnTNnMI misU8vtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ceSfB-0000Zu-KZ; Thu, 16 Feb 2017 20:28:25 +0000 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceSf7-0000WZ-GG for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 20:28:23 +0000 Received: by mail-it0-x242.google.com with SMTP id g67so796195itb.3 for ; Thu, 16 Feb 2017 12:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VhclGwlp21S6CdmervGUbcxmPZSHcGAgKd0oMwlK3LI=; b=GIqGkOeP+t5yy43BYT5oGZ0g8k54RFiQPmq67ylFyRLtN337H0EVWf4OfNuTkLqZaj 5csfz2dRjkDP1TuXBY4vObuREl86sKzJ29I3dAPKqkjOqJukdm9tKah6LrGYtuncbMe6 1+y7hjV/Z0R+OSyT5nCKsqqxcU30uUS/P4M+oVUoO7t8fFN7miOsBXah/PRN1ySGawae B3R8lb7p8H2HpXshd/yp4yya8yQcWDEbmPzz+C1xQdh9T0uojNIQAdBS1v6D4jYKTiIo S80BwOrrPrORx0aJt1dppjgLBuzjGIkhGAYdQG0vXETyMMT/rRw3kKHjsSNQIU0kFLKt XlBQ== 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:in-reply-to :references; bh=VhclGwlp21S6CdmervGUbcxmPZSHcGAgKd0oMwlK3LI=; b=LIzbfvUXd+KqitdZBGaFGNnADKg5lHZkT7po2y0OslAAdiLnv3dTxO/r5u9+NWe5t0 Hs6FKbjRI3E3LG4lW0N9ovvVn56tqhYT61a71RYGyZqmKy2K7uVHL9r92XyZoRi4qhx/ Dk9uAExuqOWbGf8CSkxya3QLE0FBgnM2FjKnw/G7jvKZTMJHOBqdkCPp5IfJFrdY9Ud3 p8217JJ6MqIwQAhN8UR19HLF9qhk1CUB4+ZRRq2tvGs2z1PIr8C+AzWtmWWFHsBPlyqi GhV7X6a6+bJ1TXj1yg84ZSdmsL8wgWvPYMXw/OXbXqqVKOc/i/b+5CrX6shV056svnGS /70w== X-Gm-Message-State: AMke39kZuD13swTs4o8NgDQR3UgkNrzE62f19QdouWNmwSgmStoSREQBVV3VjV2bzw+NPg== X-Received: by 10.36.196.86 with SMTP id v83mr3927048itf.64.1487276880236; Thu, 16 Feb 2017 12:28:00 -0800 (PST) Received: from CABRO3AP00510.localdomain ([74.51.240.241]) by smtp.gmail.com with ESMTPSA id j19sm4684528iti.3.2017.02.16.12.27.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 12:27:59 -0800 (PST) From: slemieux.tyco@gmail.com To: thierry.reding@gmail.com, robh+dt@kernel.org, vz@mleia.com Subject: [RESEND PATCH 1/3] dt: pwm: lpc32xx: add description of clocks and #pwm-cells properties Date: Thu, 16 Feb 2017 15:27:47 -0500 Message-Id: <20170216202749.20653-2-slemieux.tyco@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170216202749.20653-1-slemieux.tyco@gmail.com> References: <20170216202749.20653-1-slemieux.tyco@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_122821_659989_4A678EB1 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. 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: linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org 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 From: Vladimir Zapolskiy NXP LPC32xx SoCs have two simple independent PWM controllers with a single output each, in this case there is no need to specify PWM channel argument on client side, one cell for setting PWM output frequency is sufficient. Another added to the description property 'clocks' has a standard meaning of a controller supply clock, in the LPC32xx User's Manual the clock is denoted as PWM1_CLK or PWM2_CLK clock. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Sylvain Lemieux Acked-by: Rob Herring --- Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt b/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt index 74b5bc5dd19a..523d79662861 100644 --- a/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt +++ b/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt @@ -3,15 +3,22 @@ LPC32XX PWM controller Required properties: - compatible: should be "nxp,lpc3220-pwm" - reg: physical base address and length of the controller's registers +- clocks: clock phandle and clock specifier pair +- #pwm-cells: should be 1, the cell is used to specify the period in + nanoseconds. Examples: pwm@4005c000 { compatible = "nxp,lpc3220-pwm"; reg = <0x4005c000 0x4>; + clocks = <&clk LPC32XX_CLK_PWM1>; + #pwm-cells = <1>; }; pwm@4005c004 { compatible = "nxp,lpc3220-pwm"; reg = <0x4005c004 0x4>; + clocks = <&clk LPC32XX_CLK_PWM2>; + #pwm-cells = <1>; };