Received: by 10.213.65.68 with SMTP id h4csp471743imn; Fri, 23 Mar 2018 08:29:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELt+4ozjJ3picdlP74XNMIZOo7gHOO3Jjv35807XXVVQd7MxOvRxncTuH3AA/HNJ+kvUafjB X-Received: by 2002:a17:902:e81:: with SMTP id 1-v6mr3392139plx.158.1521818993581; Fri, 23 Mar 2018 08:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521818993; cv=none; d=google.com; s=arc-20160816; b=Q7Tju1xfGubV7kyZelF+8cunIdn1GG9lWQ+B8CGd6eMyH7WBYWsMksPWAQ1bBJPeui dqoYekBV204mY64Fe/3DFQoQm12iaQlwDi7b8Dv3UJq7+rZoiozsHUdgBw167YJQQMlB 2UUfRe3/8JxkXlvuMKQt0/V+xK8Qcs9NL9Is0EMA2KBhbUcTbQLKHgI6QCcMs7ovmz8z xOivUSKnJr5lE7NxMtZpfp1ecf04IDjjRHbtaR4nYurfGA+3vbwWHarSupHtrdpV+JSD ITTpZe80DcguEJDKMNAfyJgv56WSeupbfmQ22mVsVLuMLqqDMq+BIWDNwUtyArCCLw5S lZxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=YR7sadsQkNKiz6HYloY8D5kkZh8x+XU9+DgxyJ66gpI=; b=YPpOIM3aqDTBYTOuIYil3JErRErJjTDFDXAaR4Vk7H3+NrZlwFBRXmr1lTuTxmcDi4 xPt9OFHjdJOO/uLJ98Le5UoCayD9jZN59DvayBz/p+2UbThjJwscObyzU+lgUrf8fY26 Xj10KtES6S0Q+n7H0Bb4Towj+w6JaqGawCBDxcUZYSkybDkq7EgZDAURMa5ZvzK8srkJ Dp4zqc1bkiCD1ZWRCYgviVzqpr88bzf9zBd9xTphKYptl0RMMXUO9SNidNA/tNz2prz3 /ZNZLcGGjzbKPbD6bH5hlzjzrM+3cvrt4wNDR4NqJIbvOfT102Ww0sxTU7tSPMRwCElg oXrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si6206410pgq.64.2018.03.23.08.29.09; Fri, 23 Mar 2018 08:29:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751908AbeCWPXB (ORCPT + 99 others); Fri, 23 Mar 2018 11:23:01 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:54796 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751553AbeCWPW7 (ORCPT ); Fri, 23 Mar 2018 11:22:59 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w2NFJsYG013522; Fri, 23 Mar 2018 16:22:28 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2gv6748qhx-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Mar 2018 16:22:28 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2524D51; Fri, 23 Mar 2018 15:22:28 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E9CC52CC2; Fri, 23 Mar 2018 15:22:27 +0000 (GMT) Received: from [10.48.0.167] (10.75.127.44) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 23 Mar 2018 16:22:27 +0100 Subject: Re: [RESEND PATCH 2/3] pwm: stm32: LPTimer: use 3 cells xlate To: , CC: , , , , , , , , References: <1519392965-28235-1-git-send-email-fabrice.gasnier@st.com> <1519392965-28235-3-git-send-email-fabrice.gasnier@st.com> From: Fabrice Gasnier Message-ID: Date: Fri, 23 Mar 2018 16:22:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519392965-28235-3-git-send-email-fabrice.gasnier@st.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG8NODE2.st.com (10.75.127.23) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-23_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2018 02:36 PM, Fabrice Gasnier wrote: > From: Gerald Baeza > > STM32 Low-Power Timer supports generic 3 cells pwm to encode > PWM number, period and polarity. > > Signed-off-by: Gerald Baeza > Signed-off-by: Fabrice Gasnier > --- > drivers/pwm/pwm-stm32-lp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pwm/pwm-stm32-lp.c b/drivers/pwm/pwm-stm32-lp.c > index 1ac9e43..346b7bd 100644 > --- a/drivers/pwm/pwm-stm32-lp.c > +++ b/drivers/pwm/pwm-stm32-lp.c > @@ -203,6 +203,8 @@ static int stm32_pwm_lp_probe(struct platform_device *pdev) > priv->chip.dev = &pdev->dev; > priv->chip.ops = &stm32_pwm_lp_ops; > priv->chip.npwm = 1; > + priv->chip.of_xlate = of_pwm_xlate_with_flags; > + priv->chip.of_pwm_n_cells = 3; > > ret = pwmchip_add(&priv->chip); > if (ret < 0) > Hi Thierry, all, Gentle ping for driver review since DT Bindings has been reviewed by Rob. Many thanks in advance, Regards, Fabrice