From patchwork Wed Mar 22 13:29:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 9638859 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 4A8466020B for ; Wed, 22 Mar 2017 13:31:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CB87283F3 for ; Wed, 22 Mar 2017 13:31:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3196628460; Wed, 22 Mar 2017 13:31:17 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 DBF76283F3 for ; Wed, 22 Mar 2017 13:31:16 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=o6uL6acScAQKSqKYg0ULQN44Am6KoGQhuK4gMqUEgmY=; b=Vo5VNnx7m5Bz8J 7wSuX3GeZvgWDVarJhueK+/+6PB1y5e+/BHdOIjWNyVzwTmgqgwXgYAdUzcXglcX1robujuKPlbdm iz4LNJbIsSC+FsdQGvoLZmTMBoD5O/QIRXzwcyQH1ZX88zX+OLln9fHDBZgmTRuY3zdyAMpOQfo9n dXbXG745TWexBtSwBNMgdQplziciIAV60lyCxjcP1cD+lo9FCCDCLxIyTlYd5q9JaK4fFZ8S8IfM+ i7W/yyNzBnbg1RmIU/W9jhfaO5shl2zDymMFhDJuo3GtquuYdwItCh0Xh1RR6STKI84nuxUT7y9q+ OjWeKDkpAizR3RgIpOMA==; 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 1cqgM7-0001Ro-Ug; Wed, 22 Mar 2017 13:31:15 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqgL9-0007lM-8O for linux-arm-kernel@lists.infradead.org; Wed, 22 Mar 2017 13:30:18 +0000 X-IronPort-AV: E=Sophos;i="5.36,205,1486450800"; d="scan'208";a="358514" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA; 22 Mar 2017 06:29:55 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.76.4) by chn-sv-exch06.mchp-main.com (10.10.76.107) with Microsoft SMTP Server id 14.3.181.6; Wed, 22 Mar 2017 06:29:54 -0700 From: Claudiu Beznea To: , , , , , , , Subject: [PATCH v3 2/2] drivers: pwm: pwm-atmel: enable PWM on sama5d2 Date: Wed, 22 Mar 2017 15:29:35 +0200 Message-ID: <1490189375-20384-3-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490189375-20384-1-git-send-email-claudiu.beznea@microchip.com> References: <1490189375-20384-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170322_063015_787841_8A2C397D X-CRM114-Status: GOOD ( 10.11 ) 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, devicetree@vger.kernel.org, tudor.ambarus@microchip.com, linux-kernel@vger.kernel.org, andrei.pistirica@microchip.com, linux-arm-kernel@lists.infradead.org, eugen.hristev@microchip.com, Claudiu Beznea , cristian.birsan@microchip.com 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 sama5d2 can use the same atmel_pwm_data as sama5d3. Signed-off-by: Claudiu Beznea Acked-by: Rob Herring Reviewed-by: Boris Brezillon --- Changes since v2: - the variable name used to initialize the .data member of the of_device_id was renamed to atmel_pwm_regs_v2 to be consistent with the approach from the first patch from this series Documentation/devicetree/bindings/pwm/atmel-pwm.txt | 1 + drivers/pwm/pwm-atmel.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt index 02331b9..c8c831d 100644 --- a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt +++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt @@ -4,6 +4,7 @@ Required properties: - compatible: should be one of: - "atmel,at91sam9rl-pwm" - "atmel,sama5d3-pwm" + - "atmel,sama5d2-pwm" - reg: physical base address and length of the controller's registers - #pwm-cells: Should be 3. See pwm.txt in this directory for a description of the cells format. diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index f147154..530d7dc 100644 --- a/drivers/pwm/pwm-atmel.c +++ b/drivers/pwm/pwm-atmel.c @@ -312,6 +312,9 @@ static const struct of_device_id atmel_pwm_dt_ids[] = { .compatible = "atmel,sama5d3-pwm", .data = &atmel_pwm_regs_v2, }, { + .compatible = "atmel,sama5d2-pwm", + .data = &atmel_pwm_regs_v2, + }, { /* sentinel */ }, };