All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Agner <stefan@agner.ch>
To: Anson Huang <anson.huang@nxp.com>
Cc: thierry.reding@gmail.com, robh+dt@kernel.org,
	mark.rutland@arm.com, shawnguo@kernel.org,
	s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, linux@armlinux.org.uk,
	otavio@ossystems.com.br,
	Leonard Crestez <leonard.crestez@nxp.com>,
	Robin Gong <yibin.gong@nxp.com>,
	jan.tuerk@emtrion.com, linux-pwm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, u.kleine-koenig@pengutronix.de,
	dl-linux-imx <linux-imx@nxp.com>
Subject: Re: [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding
Date: Mon, 18 Mar 2019 09:18:46 +0100	[thread overview]
Message-ID: <d1f8b006ad56e8ed4e9fb9137148d98b@agner.ch> (raw)
In-Reply-To: <1552894581-3391-2-git-send-email-Anson.Huang@nxp.com>

On 18.03.2019 08:41, Anson Huang wrote:
> Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> No changes.
> ---
>  Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> 
> diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> new file mode 100644
> index 0000000..d47b8fb
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> @@ -0,0 +1,19 @@
> +Freescale i.MX TPM PWM controller
> +
> +Required properties:
> +- compatible : Should be "fsl,imx-tpm-pwm".
> +- reg: Physical base address and length of the controller's registers.
> +- #pwm-cells: Should be 2. See pwm.txt in this directory for a
> description of the cells format.

It seems that the driver supports polarity. Can we use 3 cells so we can
specify the polarity in the device tree?

Also use 3 cells in the base device tree to enable other boards making
use of the polarity (arch/arm/boot/dts/imx7ulp.dtsi).

--
Stefan

> +- clocks : The clock provided by the SoC to drive the PWM.
> +- interrupts: The interrupt for the pwm controller.
> +
> +Example:
> +
> +pwm0: tpm@40250000 {
> +	compatible = "fsl,imx-tpm-pwm";
> +	reg = <0x40250000 0x1000>;
> +	assigned-clocks = <&clks IMX7ULP_CLK_LPTPM4>;
> +	assigned-clock-parents = <&clks IMX7ULP_CLK_SOSC_BUS_CLK>;
> +	clocks = <&clks IMX7ULP_CLK_LPTPM4>;
> +	#pwm-cells = <2>;
> +};

WARNING: multiple messages have this Message-ID (diff)
From: Stefan Agner <stefan@agner.ch>
To: Anson Huang <anson.huang@nxp.com>
Cc: mark.rutland@arm.com, linux-pwm@vger.kernel.org,
	Robin Gong <yibin.gong@nxp.com>,
	otavio@ossystems.com.br, devicetree@vger.kernel.org,
	festevam@gmail.com, s.hauer@pengutronix.de,
	jan.tuerk@emtrion.com, linux@armlinux.org.uk, robh+dt@kernel.org,
	linux-kernel@vger.kernel.org, thierry.reding@gmail.com,
	dl-linux-imx <linux-imx@nxp.com>,
	kernel@pengutronix.de, u.kleine-koenig@pengutronix.de,
	Leonard Crestez <leonard.crestez@nxp.com>,
	shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding
Date: Mon, 18 Mar 2019 09:18:46 +0100	[thread overview]
Message-ID: <d1f8b006ad56e8ed4e9fb9137148d98b@agner.ch> (raw)
In-Reply-To: <1552894581-3391-2-git-send-email-Anson.Huang@nxp.com>

On 18.03.2019 08:41, Anson Huang wrote:
> Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> No changes.
> ---
>  Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> 
> diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> new file mode 100644
> index 0000000..d47b8fb
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt
> @@ -0,0 +1,19 @@
> +Freescale i.MX TPM PWM controller
> +
> +Required properties:
> +- compatible : Should be "fsl,imx-tpm-pwm".
> +- reg: Physical base address and length of the controller's registers.
> +- #pwm-cells: Should be 2. See pwm.txt in this directory for a
> description of the cells format.

It seems that the driver supports polarity. Can we use 3 cells so we can
specify the polarity in the device tree?

Also use 3 cells in the base device tree to enable other boards making
use of the polarity (arch/arm/boot/dts/imx7ulp.dtsi).

--
Stefan

> +- clocks : The clock provided by the SoC to drive the PWM.
> +- interrupts: The interrupt for the pwm controller.
> +
> +Example:
> +
> +pwm0: tpm@40250000 {
> +	compatible = "fsl,imx-tpm-pwm";
> +	reg = <0x40250000 0x1000>;
> +	assigned-clocks = <&clks IMX7ULP_CLK_LPTPM4>;
> +	assigned-clock-parents = <&clks IMX7ULP_CLK_SOSC_BUS_CLK>;
> +	clocks = <&clks IMX7ULP_CLK_LPTPM4>;
> +	#pwm-cells = <2>;
> +};

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

  reply	other threads:[~2019-03-18  8:18 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18  7:41 [PATCH V5 0/5] Add i.MX7ULP EVK PWM backlight support Anson Huang
2019-03-18  7:41 ` Anson Huang
2019-03-18  7:41 ` Anson Huang
2019-03-18  7:41 ` [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  8:18   ` Stefan Agner [this message]
2019-03-18  8:18     ` Stefan Agner
2019-03-18  9:50     ` Anson Huang
2019-03-18  9:50       ` Anson Huang
2019-03-18  9:50       ` Anson Huang
2019-03-18  9:58   ` Thierry Reding
2019-03-18  9:58     ` Thierry Reding
2019-03-18  9:58     ` Thierry Reding
2019-03-18 10:09     ` Anson Huang
2019-03-18 10:09       ` Anson Huang
2019-03-18 10:09       ` Anson Huang
2019-03-18  7:41 ` [PATCH V5 2/5] pwm: Add i.MX TPM PWM driver support Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18 10:27   ` Thierry Reding
2019-03-18 10:27     ` Thierry Reding
2019-03-18 10:27     ` Thierry Reding
2019-03-18 11:33     ` Anson Huang
2019-03-18 11:33       ` Anson Huang
2019-03-18 11:33       ` Anson Huang
2019-03-18 15:30       ` Thierry Reding
2019-03-18 15:30         ` Thierry Reding
2019-03-18 15:30         ` Thierry Reding
2019-03-19  0:55         ` Anson Huang
2019-03-19  0:55           ` Anson Huang
2019-03-19  0:55           ` Anson Huang
2019-03-18  7:41 ` [PATCH V5 3/5] ARM: imx_v6_v7_defconfig: Add TPM PWM support by default Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  7:41 ` [PATCH V5 4/5] ARM: dts: imx7ulp: Add pwm0 support Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  7:41   ` Anson Huang
2019-03-18  7:42 ` [PATCH V5 5/5] ARM: dts: imx7ulp-evk: Add backlight support Anson Huang
2019-03-18  7:42   ` Anson Huang
2019-03-18  7:42   ` Anson Huang

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=d1f8b006ad56e8ed4e9fb9137148d98b@agner.ch \
    --to=stefan@agner.ch \
    --cc=anson.huang@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=jan.tuerk@emtrion.com \
    --cc=kernel@pengutronix.de \
    --cc=leonard.crestez@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=otavio@ossystems.com.br \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=yibin.gong@nxp.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.