* [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node
@ 2020-12-09 12:03 ` Fabien Parent
0 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2020-12-09 12:03 UTC (permalink / raw)
To: Rob Herring, Matthias Brugger
Cc: Fabien Parent, devicetree, linux-arm-kernel, linux-mediatek,
linux-kernel
MT8183 SoC has 4 PWMs. Add the pwm node in order to support them.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
V2: rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 5b782a4769e7..a0004bd9f9c2 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -667,6 +667,20 @@ pwm0: pwm@1100e000 {
clock-names = "main", "mm";
};
+ pwm1: pwm@11006000 {
+ compatible = "mediatek,mt8183-pwm";
+ reg = <0 0x11006000 0 0x1000>;
+ #pwm-cells = <2>;
+ clocks = <&infracfg CLK_INFRA_PWM>,
+ <&infracfg CLK_INFRA_PWM_HCLK>,
+ <&infracfg CLK_INFRA_PWM1>,
+ <&infracfg CLK_INFRA_PWM2>,
+ <&infracfg CLK_INFRA_PWM3>,
+ <&infracfg CLK_INFRA_PWM4>;
+ clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
+ "pwm4";
+ };
+
i2c3: i2c@1100f000 {
compatible = "mediatek,mt8183-i2c";
reg = <0 0x1100f000 0 0x1000>,
--
2.29.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node
@ 2020-12-09 12:03 ` Fabien Parent
0 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2020-12-09 12:03 UTC (permalink / raw)
To: Rob Herring, Matthias Brugger
Cc: Fabien Parent, linux-mediatek, linux-kernel, linux-arm-kernel,
devicetree
MT8183 SoC has 4 PWMs. Add the pwm node in order to support them.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
V2: rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 5b782a4769e7..a0004bd9f9c2 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -667,6 +667,20 @@ pwm0: pwm@1100e000 {
clock-names = "main", "mm";
};
+ pwm1: pwm@11006000 {
+ compatible = "mediatek,mt8183-pwm";
+ reg = <0 0x11006000 0 0x1000>;
+ #pwm-cells = <2>;
+ clocks = <&infracfg CLK_INFRA_PWM>,
+ <&infracfg CLK_INFRA_PWM_HCLK>,
+ <&infracfg CLK_INFRA_PWM1>,
+ <&infracfg CLK_INFRA_PWM2>,
+ <&infracfg CLK_INFRA_PWM3>,
+ <&infracfg CLK_INFRA_PWM4>;
+ clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
+ "pwm4";
+ };
+
i2c3: i2c@1100f000 {
compatible = "mediatek,mt8183-i2c";
reg = <0 0x1100f000 0 0x1000>,
--
2.29.2
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node
@ 2020-12-09 12:03 ` Fabien Parent
0 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2020-12-09 12:03 UTC (permalink / raw)
To: Rob Herring, Matthias Brugger
Cc: Fabien Parent, linux-mediatek, linux-kernel, linux-arm-kernel,
devicetree
MT8183 SoC has 4 PWMs. Add the pwm node in order to support them.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
V2: rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 5b782a4769e7..a0004bd9f9c2 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -667,6 +667,20 @@ pwm0: pwm@1100e000 {
clock-names = "main", "mm";
};
+ pwm1: pwm@11006000 {
+ compatible = "mediatek,mt8183-pwm";
+ reg = <0 0x11006000 0 0x1000>;
+ #pwm-cells = <2>;
+ clocks = <&infracfg CLK_INFRA_PWM>,
+ <&infracfg CLK_INFRA_PWM_HCLK>,
+ <&infracfg CLK_INFRA_PWM1>,
+ <&infracfg CLK_INFRA_PWM2>,
+ <&infracfg CLK_INFRA_PWM3>,
+ <&infracfg CLK_INFRA_PWM4>;
+ clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
+ "pwm4";
+ };
+
i2c3: i2c@1100f000 {
compatible = "mediatek,mt8183-i2c";
reg = <0 0x1100f000 0 0x1000>,
--
2.29.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support
2020-12-09 12:03 ` Fabien Parent
(?)
@ 2020-12-09 12:03 ` Fabien Parent
-1 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2020-12-09 12:03 UTC (permalink / raw)
To: Rob Herring, Matthias Brugger
Cc: Fabien Parent, devicetree, linux-arm-kernel, linux-mediatek,
linux-kernel
Enable the pwm driver and set the pinctrl for PWM A line.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
V2:
* rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
* rename the pio node and labels to match the coding standard of this dts
arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
index cba2d8933e79..3249c959f76f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -344,6 +344,12 @@ pins_spi{
bias-disable;
};
};
+
+ pwm_pins_1: pwm1 {
+ pins_pwm {
+ pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+ };
+ };
};
&spi0 {
@@ -392,3 +398,9 @@ &spi5 {
&uart0 {
status = "okay";
};
+
+&pwm1 {
+ status = "okay";
+ pinctrl-0 = <&pwm_pins_1>;
+ pinctrl-names = "default";
+};
--
2.29.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support
@ 2020-12-09 12:03 ` Fabien Parent
0 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2020-12-09 12:03 UTC (permalink / raw)
To: Rob Herring, Matthias Brugger
Cc: Fabien Parent, linux-mediatek, linux-kernel, linux-arm-kernel,
devicetree
Enable the pwm driver and set the pinctrl for PWM A line.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
V2:
* rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
* rename the pio node and labels to match the coding standard of this dts
arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
index cba2d8933e79..3249c959f76f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -344,6 +344,12 @@ pins_spi{
bias-disable;
};
};
+
+ pwm_pins_1: pwm1 {
+ pins_pwm {
+ pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+ };
+ };
};
&spi0 {
@@ -392,3 +398,9 @@ &spi5 {
&uart0 {
status = "okay";
};
+
+&pwm1 {
+ status = "okay";
+ pinctrl-0 = <&pwm_pins_1>;
+ pinctrl-names = "default";
+};
--
2.29.2
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support
@ 2020-12-09 12:03 ` Fabien Parent
0 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2020-12-09 12:03 UTC (permalink / raw)
To: Rob Herring, Matthias Brugger
Cc: Fabien Parent, linux-mediatek, linux-kernel, linux-arm-kernel,
devicetree
Enable the pwm driver and set the pinctrl for PWM A line.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
V2:
* rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
* rename the pio node and labels to match the coding standard of this dts
arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
index cba2d8933e79..3249c959f76f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -344,6 +344,12 @@ pins_spi{
bias-disable;
};
};
+
+ pwm_pins_1: pwm1 {
+ pins_pwm {
+ pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+ };
+ };
};
&spi0 {
@@ -392,3 +398,9 @@ &spi5 {
&uart0 {
status = "okay";
};
+
+&pwm1 {
+ status = "okay";
+ pinctrl-0 = <&pwm_pins_1>;
+ pinctrl-names = "default";
+};
--
2.29.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node
2020-12-09 12:03 ` Fabien Parent
@ 2021-01-29 16:12 ` Matthias Brugger
-1 siblings, 0 replies; 10+ messages in thread
From: Matthias Brugger @ 2021-01-29 16:12 UTC (permalink / raw)
To: Fabien Parent, Rob Herring
Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel
On 09/12/2020 13:03, Fabien Parent wrote:
> MT8183 SoC has 4 PWMs. Add the pwm node in order to support them.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
Applied to v5.11-next/dts64
Thanks
> ---
>
> V2: rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
>
> arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> index 5b782a4769e7..a0004bd9f9c2 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> @@ -667,6 +667,20 @@ pwm0: pwm@1100e000 {
> clock-names = "main", "mm";
> };
>
> + pwm1: pwm@11006000 {
> + compatible = "mediatek,mt8183-pwm";
> + reg = <0 0x11006000 0 0x1000>;
> + #pwm-cells = <2>;
> + clocks = <&infracfg CLK_INFRA_PWM>,
> + <&infracfg CLK_INFRA_PWM_HCLK>,
> + <&infracfg CLK_INFRA_PWM1>,
> + <&infracfg CLK_INFRA_PWM2>,
> + <&infracfg CLK_INFRA_PWM3>,
> + <&infracfg CLK_INFRA_PWM4>;
> + clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
> + "pwm4";
> + };
> +
> i2c3: i2c@1100f000 {
> compatible = "mediatek,mt8183-i2c";
> reg = <0 0x1100f000 0 0x1000>,
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node
@ 2021-01-29 16:12 ` Matthias Brugger
0 siblings, 0 replies; 10+ messages in thread
From: Matthias Brugger @ 2021-01-29 16:12 UTC (permalink / raw)
To: Fabien Parent, Rob Herring
Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel
On 09/12/2020 13:03, Fabien Parent wrote:
> MT8183 SoC has 4 PWMs. Add the pwm node in order to support them.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
Applied to v5.11-next/dts64
Thanks
> ---
>
> V2: rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
>
> arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> index 5b782a4769e7..a0004bd9f9c2 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> @@ -667,6 +667,20 @@ pwm0: pwm@1100e000 {
> clock-names = "main", "mm";
> };
>
> + pwm1: pwm@11006000 {
> + compatible = "mediatek,mt8183-pwm";
> + reg = <0 0x11006000 0 0x1000>;
> + #pwm-cells = <2>;
> + clocks = <&infracfg CLK_INFRA_PWM>,
> + <&infracfg CLK_INFRA_PWM_HCLK>,
> + <&infracfg CLK_INFRA_PWM1>,
> + <&infracfg CLK_INFRA_PWM2>,
> + <&infracfg CLK_INFRA_PWM3>,
> + <&infracfg CLK_INFRA_PWM4>;
> + clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
> + "pwm4";
> + };
> +
> i2c3: i2c@1100f000 {
> compatible = "mediatek,mt8183-i2c";
> reg = <0 0x1100f000 0 0x1000>,
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support
2020-12-09 12:03 ` Fabien Parent
@ 2021-01-29 16:12 ` Matthias Brugger
-1 siblings, 0 replies; 10+ messages in thread
From: Matthias Brugger @ 2021-01-29 16:12 UTC (permalink / raw)
To: Fabien Parent, Rob Herring
Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel
On 09/12/2020 13:03, Fabien Parent wrote:
> Enable the pwm driver and set the pinctrl for PWM A line.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
Applied to v5.11-next/dts64
Thanks
> ---
>
> V2:
> * rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
> * rename the pio node and labels to match the coding standard of this dts
>
> arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
> index cba2d8933e79..3249c959f76f 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
> @@ -344,6 +344,12 @@ pins_spi{
> bias-disable;
> };
> };
> +
> + pwm_pins_1: pwm1 {
> + pins_pwm {
> + pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
> + };
> + };
> };
>
> &spi0 {
> @@ -392,3 +398,9 @@ &spi5 {
> &uart0 {
> status = "okay";
> };
> +
> +&pwm1 {
> + status = "okay";
> + pinctrl-0 = <&pwm_pins_1>;
> + pinctrl-names = "default";
> +};
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support
@ 2021-01-29 16:12 ` Matthias Brugger
0 siblings, 0 replies; 10+ messages in thread
From: Matthias Brugger @ 2021-01-29 16:12 UTC (permalink / raw)
To: Fabien Parent, Rob Herring
Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel
On 09/12/2020 13:03, Fabien Parent wrote:
> Enable the pwm driver and set the pinctrl for PWM A line.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
Applied to v5.11-next/dts64
Thanks
> ---
>
> V2:
> * rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
> * rename the pio node and labels to match the coding standard of this dts
>
> arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
> index cba2d8933e79..3249c959f76f 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
> @@ -344,6 +344,12 @@ pins_spi{
> bias-disable;
> };
> };
> +
> + pwm_pins_1: pwm1 {
> + pins_pwm {
> + pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
> + };
> + };
> };
>
> &spi0 {
> @@ -392,3 +398,9 @@ &spi5 {
> &uart0 {
> status = "okay";
> };
> +
> +&pwm1 {
> + status = "okay";
> + pinctrl-0 = <&pwm_pins_1>;
> + pinctrl-names = "default";
> +};
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-01-29 16:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 12:03 [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node Fabien Parent
2020-12-09 12:03 ` Fabien Parent
2020-12-09 12:03 ` Fabien Parent
2020-12-09 12:03 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support Fabien Parent
2020-12-09 12:03 ` Fabien Parent
2020-12-09 12:03 ` Fabien Parent
2021-01-29 16:12 ` Matthias Brugger
2021-01-29 16:12 ` Matthias Brugger
2021-01-29 16:12 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node Matthias Brugger
2021-01-29 16:12 ` Matthias Brugger
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.