All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Gasnier <fabrice.gasnier@st.com>
To: <thierry.reding@gmail.com>, <robh+dt@kernel.org>,
	<alexandre.torgue@st.com>
Cc: <mark.rutland@arm.com>, <linux@armlinux.org.uk>,
	<mcoquelin.stm32@gmail.com>, <fabrice.gasnier@st.com>,
	<devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <linux-pwm@vger.kernel.org>,
	<benjamin.gaignard@st.com>,
	<linux-stm32@st-md-mailman.stormreply.com>
Subject: [PATCH 2/5] pwm: stm32: use 3 cells ->of_xlate()
Date: Wed, 19 Jun 2019 11:52:02 +0200	[thread overview]
Message-ID: <1560937925-8990-3-git-send-email-fabrice.gasnier@st.com> (raw)
In-Reply-To: <1560937925-8990-1-git-send-email-fabrice.gasnier@st.com>

STM32 Timers support generic 3 cells PWM to encode PWM number, period and
polarity.

Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
 drivers/pwm/pwm-stm32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c
index 4f84255..740e2de 100644
--- a/drivers/pwm/pwm-stm32.c
+++ b/drivers/pwm/pwm-stm32.c
@@ -608,6 +608,8 @@ static int stm32_pwm_probe(struct platform_device *pdev)
 	priv->regmap = ddata->regmap;
 	priv->clk = ddata->clk;
 	priv->max_arr = ddata->max_arr;
+	priv->chip.of_xlate = of_pwm_xlate_with_flags;
+	priv->chip.of_pwm_n_cells = 3;
 
 	if (!priv->regmap || !priv->clk)
 		return -EINVAL;
-- 
2.7.4


WARNING: multiple messages have this Message-ID (diff)
From: Fabrice Gasnier <fabrice.gasnier@st.com>
To: thierry.reding@gmail.com, robh+dt@kernel.org, alexandre.torgue@st.com
Cc: mark.rutland@arm.com, linux@armlinux.org.uk,
	mcoquelin.stm32@gmail.com, fabrice.gasnier@st.com,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org,
	benjamin.gaignard@st.com,
	linux-stm32@st-md-mailman.stormreply.com
Subject: [PATCH 2/5] pwm: stm32: use 3 cells ->of_xlate()
Date: Wed, 19 Jun 2019 11:52:02 +0200	[thread overview]
Message-ID: <1560937925-8990-3-git-send-email-fabrice.gasnier@st.com> (raw)
In-Reply-To: <1560937925-8990-1-git-send-email-fabrice.gasnier@st.com>

STM32 Timers support generic 3 cells PWM to encode PWM number, period and
polarity.

Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
 drivers/pwm/pwm-stm32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c
index 4f84255..740e2de 100644
--- a/drivers/pwm/pwm-stm32.c
+++ b/drivers/pwm/pwm-stm32.c
@@ -608,6 +608,8 @@ static int stm32_pwm_probe(struct platform_device *pdev)
 	priv->regmap = ddata->regmap;
 	priv->clk = ddata->clk;
 	priv->max_arr = ddata->max_arr;
+	priv->chip.of_xlate = of_pwm_xlate_with_flags;
+	priv->chip.of_pwm_n_cells = 3;
 
 	if (!priv->regmap || !priv->clk)
 		return -EINVAL;
-- 
2.7.4

WARNING: multiple messages have this Message-ID (diff)
From: Fabrice Gasnier <fabrice.gasnier@st.com>
To: <thierry.reding@gmail.com>, <robh+dt@kernel.org>,
	<alexandre.torgue@st.com>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
	benjamin.gaignard@st.com, linux-pwm@vger.kernel.org,
	linux@armlinux.org.uk, linux-kernel@vger.kernel.org,
	mcoquelin.stm32@gmail.com, fabrice.gasnier@st.com,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] pwm: stm32: use 3 cells ->of_xlate()
Date: Wed, 19 Jun 2019 11:52:02 +0200	[thread overview]
Message-ID: <1560937925-8990-3-git-send-email-fabrice.gasnier@st.com> (raw)
In-Reply-To: <1560937925-8990-1-git-send-email-fabrice.gasnier@st.com>

STM32 Timers support generic 3 cells PWM to encode PWM number, period and
polarity.

Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
 drivers/pwm/pwm-stm32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c
index 4f84255..740e2de 100644
--- a/drivers/pwm/pwm-stm32.c
+++ b/drivers/pwm/pwm-stm32.c
@@ -608,6 +608,8 @@ static int stm32_pwm_probe(struct platform_device *pdev)
 	priv->regmap = ddata->regmap;
 	priv->clk = ddata->clk;
 	priv->max_arr = ddata->max_arr;
+	priv->chip.of_xlate = of_pwm_xlate_with_flags;
+	priv->chip.of_pwm_n_cells = 3;
 
 	if (!priv->regmap || !priv->clk)
 		return -EINVAL;
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-06-19  9:52 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-19  9:52 [PATCH 0/5] Add missing pwm-cells to STM32 timers PWM Fabrice Gasnier
2019-06-19  9:52 ` Fabrice Gasnier
2019-06-19  9:52 ` Fabrice Gasnier
2019-06-19  9:52 ` [PATCH 1/5] dt-bindings: pwm-stm32: add #pwm-cells Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-07-09 20:04   ` Rob Herring
2019-07-09 20:04     ` Rob Herring
2019-07-09 20:04     ` Rob Herring
2019-06-19  9:52 ` Fabrice Gasnier [this message]
2019-06-19  9:52   ` [PATCH 2/5] pwm: stm32: use 3 cells ->of_xlate() Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19 11:42   ` Benjamin GAIGNARD
2019-06-19 11:42     ` Benjamin GAIGNARD
2019-06-19 11:42     ` Benjamin GAIGNARD
2019-06-19  9:52 ` [PATCH 3/5] ARM: dts: stm32: add pwm cells to stm32mp157c Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19  9:52 ` [PATCH 4/5] ARM: dts: stm32: add pwm cells to stm32f429 Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19  9:52 ` [PATCH 5/5] ARM: dts: stm32: add pwm cells to stm32f746 Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-06-19  9:52   ` Fabrice Gasnier
2019-07-29  7:22 ` [PATCH 0/5] Add missing pwm-cells to STM32 timers PWM Alexandre Torgue
2019-07-29  7:22   ` Alexandre Torgue
2019-07-29  7:22   ` Alexandre Torgue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1560937925-8990-3-git-send-email-fabrice.gasnier@st.com \
    --to=fabrice.gasnier@st.com \
    --cc=alexandre.torgue@st.com \
    --cc=benjamin.gaignard@st.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.