* [PATCH v2 1/2] dt-bindings: pwm: amlogic: Document C3 PWM
2024-09-14 5:48 [PATCH v2 0/2] Add support for Amlogic C3 PWM Kelvin Zhang via B4 Relay
@ 2024-09-14 5:48 ` Kelvin Zhang via B4 Relay
2024-09-14 5:48 ` [PATCH v2 2/2] arm64: dts: amlogic: Add Amlogic " Kelvin Zhang via B4 Relay
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Kelvin Zhang via B4 Relay @ 2024-09-14 5:48 UTC (permalink / raw)
To: Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiner Kallweit, Neil Armstrong, Kevin Hilman,
Jerome Brunet, Martin Blumenstingl
Cc: linux-pwm, devicetree, linux-kernel, linux-arm-kernel,
linux-amlogic, Kelvin Zhang, Krzysztof Kozlowski
From: Kelvin Zhang <kelvin.zhang@amlogic.com>
Document amlogic,c3-pwm compatible, which falls back to the meson-s4-pwm
group.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
---
Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
index e021cf59421a..cc3ebd4deeb6 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
@@ -39,6 +39,7 @@ properties:
- amlogic,meson-s4-pwm
- items:
- enum:
+ - amlogic,c3-pwm
- amlogic,meson-a1-pwm
- const: amlogic,meson-s4-pwm
- items:
--
2.37.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v2 2/2] arm64: dts: amlogic: Add Amlogic C3 PWM
2024-09-14 5:48 [PATCH v2 0/2] Add support for Amlogic C3 PWM Kelvin Zhang via B4 Relay
2024-09-14 5:48 ` [PATCH v2 1/2] dt-bindings: pwm: amlogic: Document " Kelvin Zhang via B4 Relay
@ 2024-09-14 5:48 ` Kelvin Zhang via B4 Relay
2024-10-09 7:57 ` Neil Armstrong
2024-10-09 7:41 ` [PATCH v2 0/2] Add support for " Uwe Kleine-König
2024-10-09 7:58 ` (subset) " Neil Armstrong
3 siblings, 1 reply; 6+ messages in thread
From: Kelvin Zhang via B4 Relay @ 2024-09-14 5:48 UTC (permalink / raw)
To: Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiner Kallweit, Neil Armstrong, Kevin Hilman,
Jerome Brunet, Martin Blumenstingl
Cc: linux-pwm, devicetree, linux-kernel, linux-arm-kernel,
linux-amlogic, Kelvin Zhang
From: Kelvin Zhang <kelvin.zhang@amlogic.com>
Add device nodes for PWM_AB, PWM_CD, PWM_EF, PWM_GH, PWM_IJ, PWM_KL
and PWM_MN, along with the GPIO pin configurations for each channel.
Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
---
arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 364 ++++++++++++++++++++++++++++
1 file changed, 364 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
index d0cda759c25d..fd0e557eba06 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
@@ -410,6 +410,300 @@ mux {
drive-strength-microamp = <4000>;
};
};
+
+ pwm_a_pins1: pwm-a-pins1 {
+ mux {
+ groups = "pwm_a";
+ function = "pwm_a";
+ };
+ };
+
+ pwm_b_pins1: pwm-b-pins1 {
+ mux {
+ groups = "pwm_b";
+ function = "pwm_b";
+ };
+ };
+
+ pwm_c_pins1: pwm-c-pins1 {
+ mux {
+ groups = "pwm_c";
+ function = "pwm_c";
+ };
+ };
+
+ pwm_d_pins1: pwm-d-pins1 {
+ mux {
+ groups = "pwm_d";
+ function = "pwm_d";
+ };
+ };
+
+ pwm_e_pins1: pwm-e-pins1 {
+ mux {
+ groups = "pwm_e";
+ function = "pwm_e";
+ };
+ };
+
+ pwm_f_pins1: pwm-f-pins1 {
+ mux {
+ groups = "pwm_f";
+ function = "pwm_f";
+ };
+ };
+
+ pwm_g_pins1: pwm-g-pins1 {
+ mux {
+ groups = "pwm_g_b";
+ function = "pwm_g";
+ };
+ };
+
+ pwm_g_pins2: pwm-g-pins2 {
+ mux {
+ groups = "pwm_g_c";
+ function = "pwm_g";
+ };
+ };
+
+ pwm_g_pins3: pwm-g-pins3 {
+ mux {
+ groups = "pwm_g_d";
+ function = "pwm_g";
+ };
+ };
+
+ pwm_g_pins4: pwm-g-pins4 {
+ mux {
+ groups = "pwm_g_x0";
+ function = "pwm_g";
+ };
+ };
+
+ pwm_g_pins5: pwm-g-pins5 {
+ mux {
+ groups = "pwm_g_x8";
+ function = "pwm_g";
+ };
+ };
+
+ pwm_h_pins1: pwm-h-pins1 {
+ mux {
+ groups = "pwm_h_b";
+ function = "pwm_h";
+ };
+ };
+
+ pwm_h_pins2: pwm-h-pins2 {
+ mux {
+ groups = "pwm_h_c";
+ function = "pwm_h";
+ };
+ };
+
+ pwm_h_pins3: pwm-h-pins3 {
+ mux {
+ groups = "pwm_h_d";
+ function = "pwm_h";
+ };
+ };
+
+ pwm_h_pins4: pwm-h-pins4 {
+ mux {
+ groups = "pwm_h_x1";
+ function = "pwm_h";
+ };
+ };
+
+ pwm_h_pins5: pwm-h-pins5 {
+ mux {
+ groups = "pwm_h_x9";
+ function = "pwm_h";
+ };
+ };
+
+ pwm_i_pins1: pwm-i-pins1 {
+ mux {
+ groups = "pwm_i_b";
+ function = "pwm_i";
+ };
+ };
+
+ pwm_i_pins2: pwm-i-pins2 {
+ mux {
+ groups = "pwm_i_c";
+ function = "pwm_i";
+ };
+ };
+
+ pwm_i_pins3: pwm-i-pins3 {
+ mux {
+ groups = "pwm_i_d";
+ function = "pwm_i";
+ };
+ };
+
+ pwm_i_pins4: pwm-i-pins4 {
+ mux {
+ groups = "pwm_i_x2";
+ function = "pwm_i";
+ };
+ };
+
+ pwm_i_pins5: pwm-i-pins5 {
+ mux {
+ groups = "pwm_i_x10";
+ function = "pwm_i";
+ };
+ };
+
+ pwm_j_pins1: pwm-j-pins1 {
+ mux {
+ groups = "pwm_j_c";
+ function = "pwm_j";
+ };
+ };
+
+ pwm_j_pins2: pwm-j-pins2 {
+ mux {
+ groups = "pwm_j_d";
+ function = "pwm_j";
+ };
+ };
+
+ pwm_j_pins3: pwm-j-pins3 {
+ mux {
+ groups = "pwm_j_b";
+ function = "pwm_j";
+ };
+ };
+
+ pwm_j_pins4: pwm-j-pins4 {
+ mux {
+ groups = "pwm_j_x3";
+ function = "pwm_j";
+ };
+ };
+
+ pwm_j_pins5: pwm-j-pins5 {
+ mux {
+ groups = "pwm_j_x12";
+ function = "pwm_j";
+ };
+ };
+
+ pwm_k_pins1: pwm-k-pins1 {
+ mux {
+ groups = "pwm_k_c";
+ function = "pwm_k";
+ };
+ };
+
+ pwm_k_pins2: pwm-k-pins2 {
+ mux {
+ groups = "pwm_k_d";
+ function = "pwm_k";
+ };
+ };
+
+ pwm_k_pins3: pwm-k-pins3 {
+ mux {
+ groups = "pwm_k_b";
+ function = "pwm_k";
+ };
+ };
+
+ pwm_k_pins4: pwm-k-pins4 {
+ mux {
+ groups = "pwm_k_x4";
+ function = "pwm_k";
+ };
+ };
+
+ pwm_k_pins5: pwm-k-pins5 {
+ mux {
+ groups = "pwm_k_x13";
+ function = "pwm_k";
+ };
+ };
+
+ pwm_l_pins1: pwm-l-pins1 {
+ mux {
+ groups = "pwm_l_c";
+ function = "pwm_l";
+ };
+ };
+
+ pwm_l_pins2: pwm-l-pins2 {
+ mux {
+ groups = "pwm_l_x";
+ function = "pwm_l";
+ };
+ };
+
+ pwm_l_pins3: pwm-l-pins3 {
+ mux {
+ groups = "pwm_l_b";
+ function = "pwm_l";
+ };
+ };
+
+ pwm_l_pins4: pwm-l-pins4 {
+ mux {
+ groups = "pwm_l_a";
+ function = "pwm_l";
+ };
+ };
+
+ pwm_m_pins1: pwm-m-pins1 {
+ mux {
+ groups = "pwm_m_c";
+ function = "pwm_m";
+ };
+ };
+
+ pwm_m_pins2: pwm-m-pins2 {
+ mux {
+ groups = "pwm_m_x";
+ function = "pwm_m";
+ };
+ };
+
+ pwm_m_pins3: pwm-m-pins3 {
+ mux {
+ groups = "pwm_m_a";
+ function = "pwm_m";
+ };
+ };
+
+ pwm_m_pins4: pwm-m-pins4 {
+ mux {
+ groups = "pwm_m_b";
+ function = "pwm_m";
+ };
+ };
+
+ pwm_n_pins1: pwm-n-pins1 {
+ mux {
+ groups = "pwm_n_x";
+ function = "pwm_n";
+ };
+ };
+
+ pwm_n_pins2: pwm-n-pins2 {
+ mux {
+ groups = "pwm_n_a";
+ function = "pwm_n";
+ };
+ };
+
+ pwm_n_pins3: pwm-n-pins3 {
+ mux {
+ groups = "pwm_n_b";
+ function = "pwm_n";
+ };
+ };
};
gpio_intc: interrupt-controller@4080 {
@@ -490,6 +784,16 @@ spicc1: spi@52000 {
status = "disabled";
};
+ pwm_mn: pwm@54000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 54000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_M>,
+ <&clkc_periphs CLKID_PWM_N>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
spifc: spi@56000 {
compatible = "amlogic,a1-spifc";
reg = <0x0 0x56000 0x0 0x290>;
@@ -499,6 +803,66 @@ spifc: spi@56000 {
status = "disabled";
};
+ pwm_ab: pwm@58000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 0x58000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_A>,
+ <&clkc_periphs CLKID_PWM_B>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
+ pwm_cd: pwm@5a000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 0x5a000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_C>,
+ <&clkc_periphs CLKID_PWM_D>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
+ pwm_ef: pwm@5c000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 0x5c000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_E>,
+ <&clkc_periphs CLKID_PWM_F>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
+ pwm_gh: pwm@5e000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 0x5e000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_G>,
+ <&clkc_periphs CLKID_PWM_H>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
+ pwm_ij: pwm@60000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 0x60000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_I>,
+ <&clkc_periphs CLKID_PWM_J>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
+ pwm_kl: pwm@62000 {
+ compatible = "amlogic,c3-pwm",
+ "amlogic,meson-s4-pwm";
+ reg = <0x0 0x62000 0x0 0x24>;
+ clocks = <&clkc_periphs CLKID_PWM_K>,
+ <&clkc_periphs CLKID_PWM_L>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
i2c0: i2c@66000 {
compatible = "amlogic,meson-axg-i2c";
reg = <0x0 0x66000 0x0 0x24>;
--
2.37.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v2 2/2] arm64: dts: amlogic: Add Amlogic C3 PWM
2024-09-14 5:48 ` [PATCH v2 2/2] arm64: dts: amlogic: Add Amlogic " Kelvin Zhang via B4 Relay
@ 2024-10-09 7:57 ` Neil Armstrong
0 siblings, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2024-10-09 7:57 UTC (permalink / raw)
To: kelvin.zhang, Uwe Kleine-König, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Heiner Kallweit, Kevin Hilman,
Jerome Brunet, Martin Blumenstingl
Cc: linux-pwm, devicetree, linux-kernel, linux-arm-kernel,
linux-amlogic
On 14/09/2024 07:48, Kelvin Zhang via B4 Relay wrote:
> From: Kelvin Zhang <kelvin.zhang@amlogic.com>
>
> Add device nodes for PWM_AB, PWM_CD, PWM_EF, PWM_GH, PWM_IJ, PWM_KL
> and PWM_MN, along with the GPIO pin configurations for each channel.
>
> Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
> ---
> arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 364 ++++++++++++++++++++++++++++
> 1 file changed, 364 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
> index d0cda759c25d..fd0e557eba06 100644
> --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
> @@ -410,6 +410,300 @@ mux {
> drive-strength-microamp = <4000>;
> };
> };
> +
> + pwm_a_pins1: pwm-a-pins1 {
> + mux {
> + groups = "pwm_a";
> + function = "pwm_a";
> + };
> + };
> +
> + pwm_b_pins1: pwm-b-pins1 {
> + mux {
> + groups = "pwm_b";
> + function = "pwm_b";
> + };
> + };
> +
> + pwm_c_pins1: pwm-c-pins1 {
> + mux {
> + groups = "pwm_c";
> + function = "pwm_c";
> + };
> + };
> +
> + pwm_d_pins1: pwm-d-pins1 {
> + mux {
> + groups = "pwm_d";
> + function = "pwm_d";
> + };
> + };
> +
> + pwm_e_pins1: pwm-e-pins1 {
> + mux {
> + groups = "pwm_e";
> + function = "pwm_e";
> + };
> + };
> +
> + pwm_f_pins1: pwm-f-pins1 {
> + mux {
> + groups = "pwm_f";
> + function = "pwm_f";
> + };
> + };
> +
> + pwm_g_pins1: pwm-g-pins1 {
> + mux {
> + groups = "pwm_g_b";
> + function = "pwm_g";
> + };
> + };
> +
> + pwm_g_pins2: pwm-g-pins2 {
> + mux {
> + groups = "pwm_g_c";
> + function = "pwm_g";
> + };
> + };
> +
> + pwm_g_pins3: pwm-g-pins3 {
> + mux {
> + groups = "pwm_g_d";
> + function = "pwm_g";
> + };
> + };
> +
> + pwm_g_pins4: pwm-g-pins4 {
> + mux {
> + groups = "pwm_g_x0";
> + function = "pwm_g";
> + };
> + };
> +
> + pwm_g_pins5: pwm-g-pins5 {
> + mux {
> + groups = "pwm_g_x8";
> + function = "pwm_g";
> + };
> + };
> +
> + pwm_h_pins1: pwm-h-pins1 {
> + mux {
> + groups = "pwm_h_b";
> + function = "pwm_h";
> + };
> + };
> +
> + pwm_h_pins2: pwm-h-pins2 {
> + mux {
> + groups = "pwm_h_c";
> + function = "pwm_h";
> + };
> + };
> +
> + pwm_h_pins3: pwm-h-pins3 {
> + mux {
> + groups = "pwm_h_d";
> + function = "pwm_h";
> + };
> + };
> +
> + pwm_h_pins4: pwm-h-pins4 {
> + mux {
> + groups = "pwm_h_x1";
> + function = "pwm_h";
> + };
> + };
> +
> + pwm_h_pins5: pwm-h-pins5 {
> + mux {
> + groups = "pwm_h_x9";
> + function = "pwm_h";
> + };
> + };
> +
> + pwm_i_pins1: pwm-i-pins1 {
> + mux {
> + groups = "pwm_i_b";
> + function = "pwm_i";
> + };
> + };
> +
> + pwm_i_pins2: pwm-i-pins2 {
> + mux {
> + groups = "pwm_i_c";
> + function = "pwm_i";
> + };
> + };
> +
> + pwm_i_pins3: pwm-i-pins3 {
> + mux {
> + groups = "pwm_i_d";
> + function = "pwm_i";
> + };
> + };
> +
> + pwm_i_pins4: pwm-i-pins4 {
> + mux {
> + groups = "pwm_i_x2";
> + function = "pwm_i";
> + };
> + };
> +
> + pwm_i_pins5: pwm-i-pins5 {
> + mux {
> + groups = "pwm_i_x10";
> + function = "pwm_i";
> + };
> + };
> +
> + pwm_j_pins1: pwm-j-pins1 {
> + mux {
> + groups = "pwm_j_c";
> + function = "pwm_j";
> + };
> + };
> +
> + pwm_j_pins2: pwm-j-pins2 {
> + mux {
> + groups = "pwm_j_d";
> + function = "pwm_j";
> + };
> + };
> +
> + pwm_j_pins3: pwm-j-pins3 {
> + mux {
> + groups = "pwm_j_b";
> + function = "pwm_j";
> + };
> + };
> +
> + pwm_j_pins4: pwm-j-pins4 {
> + mux {
> + groups = "pwm_j_x3";
> + function = "pwm_j";
> + };
> + };
> +
> + pwm_j_pins5: pwm-j-pins5 {
> + mux {
> + groups = "pwm_j_x12";
> + function = "pwm_j";
> + };
> + };
> +
> + pwm_k_pins1: pwm-k-pins1 {
> + mux {
> + groups = "pwm_k_c";
> + function = "pwm_k";
> + };
> + };
> +
> + pwm_k_pins2: pwm-k-pins2 {
> + mux {
> + groups = "pwm_k_d";
> + function = "pwm_k";
> + };
> + };
> +
> + pwm_k_pins3: pwm-k-pins3 {
> + mux {
> + groups = "pwm_k_b";
> + function = "pwm_k";
> + };
> + };
> +
> + pwm_k_pins4: pwm-k-pins4 {
> + mux {
> + groups = "pwm_k_x4";
> + function = "pwm_k";
> + };
> + };
> +
> + pwm_k_pins5: pwm-k-pins5 {
> + mux {
> + groups = "pwm_k_x13";
> + function = "pwm_k";
> + };
> + };
> +
> + pwm_l_pins1: pwm-l-pins1 {
> + mux {
> + groups = "pwm_l_c";
> + function = "pwm_l";
> + };
> + };
> +
> + pwm_l_pins2: pwm-l-pins2 {
> + mux {
> + groups = "pwm_l_x";
> + function = "pwm_l";
> + };
> + };
> +
> + pwm_l_pins3: pwm-l-pins3 {
> + mux {
> + groups = "pwm_l_b";
> + function = "pwm_l";
> + };
> + };
> +
> + pwm_l_pins4: pwm-l-pins4 {
> + mux {
> + groups = "pwm_l_a";
> + function = "pwm_l";
> + };
> + };
> +
> + pwm_m_pins1: pwm-m-pins1 {
> + mux {
> + groups = "pwm_m_c";
> + function = "pwm_m";
> + };
> + };
> +
> + pwm_m_pins2: pwm-m-pins2 {
> + mux {
> + groups = "pwm_m_x";
> + function = "pwm_m";
> + };
> + };
> +
> + pwm_m_pins3: pwm-m-pins3 {
> + mux {
> + groups = "pwm_m_a";
> + function = "pwm_m";
> + };
> + };
> +
> + pwm_m_pins4: pwm-m-pins4 {
> + mux {
> + groups = "pwm_m_b";
> + function = "pwm_m";
> + };
> + };
> +
> + pwm_n_pins1: pwm-n-pins1 {
> + mux {
> + groups = "pwm_n_x";
> + function = "pwm_n";
> + };
> + };
> +
> + pwm_n_pins2: pwm-n-pins2 {
> + mux {
> + groups = "pwm_n_a";
> + function = "pwm_n";
> + };
> + };
> +
> + pwm_n_pins3: pwm-n-pins3 {
> + mux {
> + groups = "pwm_n_b";
> + function = "pwm_n";
> + };
> + };
> };
>
> gpio_intc: interrupt-controller@4080 {
> @@ -490,6 +784,16 @@ spicc1: spi@52000 {
> status = "disabled";
> };
>
> + pwm_mn: pwm@54000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 54000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_M>,
> + <&clkc_periphs CLKID_PWM_N>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> spifc: spi@56000 {
> compatible = "amlogic,a1-spifc";
> reg = <0x0 0x56000 0x0 0x290>;
> @@ -499,6 +803,66 @@ spifc: spi@56000 {
> status = "disabled";
> };
>
> + pwm_ab: pwm@58000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 0x58000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_A>,
> + <&clkc_periphs CLKID_PWM_B>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> + pwm_cd: pwm@5a000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 0x5a000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_C>,
> + <&clkc_periphs CLKID_PWM_D>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> + pwm_ef: pwm@5c000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 0x5c000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_E>,
> + <&clkc_periphs CLKID_PWM_F>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> + pwm_gh: pwm@5e000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 0x5e000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_G>,
> + <&clkc_periphs CLKID_PWM_H>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> + pwm_ij: pwm@60000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 0x60000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_I>,
> + <&clkc_periphs CLKID_PWM_J>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> + pwm_kl: pwm@62000 {
> + compatible = "amlogic,c3-pwm",
> + "amlogic,meson-s4-pwm";
> + reg = <0x0 0x62000 0x0 0x24>;
> + clocks = <&clkc_periphs CLKID_PWM_K>,
> + <&clkc_periphs CLKID_PWM_L>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> i2c0: i2c@66000 {
> compatible = "amlogic,meson-axg-i2c";
> reg = <0x0 0x66000 0x0 0x24>;
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/2] Add support for Amlogic C3 PWM
2024-09-14 5:48 [PATCH v2 0/2] Add support for Amlogic C3 PWM Kelvin Zhang via B4 Relay
2024-09-14 5:48 ` [PATCH v2 1/2] dt-bindings: pwm: amlogic: Document " Kelvin Zhang via B4 Relay
2024-09-14 5:48 ` [PATCH v2 2/2] arm64: dts: amlogic: Add Amlogic " Kelvin Zhang via B4 Relay
@ 2024-10-09 7:41 ` Uwe Kleine-König
2024-10-09 7:58 ` (subset) " Neil Armstrong
3 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2024-10-09 7:41 UTC (permalink / raw)
To: kelvin.zhang
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiner Kallweit,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
linux-pwm, devicetree, linux-kernel, linux-arm-kernel,
linux-amlogic, Krzysztof Kozlowski
[-- Attachment #1: Type: text/plain, Size: 980 bytes --]
On Sat, Sep 14, 2024 at 01:48:57PM +0800, Kelvin Zhang via B4 Relay wrote:
> Add support for Amlogic C3 PWM, including the DT binding document and DTS.
>
> Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
> ---
> Changes in v2:
> - Rebase this patchset due to recent upstream changes.
> - Link to v1: https://lore.kernel.org/r/20240906-c3-pwm-v1-0-acaf17fad247@amlogic.com
>
> ---
> Kelvin Zhang (2):
> dt-bindings: pwm: amlogic: Document C3 PWM
> arm64: dts: amlogic: Add Amlogic C3 PWM
>
> .../devicetree/bindings/pwm/pwm-amlogic.yaml | 1 +
> arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 364 +++++++++++++++++++++
> 2 files changed, 365 insertions(+)
> ---
> base-commit: 5acd9952f95fb4b7da6d09a3be39195a80845eb6
> change-id: 20240906-c3-pwm-d17072517826
Applied patch #1 to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
. I guess patch #2 will go in via arm-soc?
Thanks
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (subset) [PATCH v2 0/2] Add support for Amlogic C3 PWM
2024-09-14 5:48 [PATCH v2 0/2] Add support for Amlogic C3 PWM Kelvin Zhang via B4 Relay
` (2 preceding siblings ...)
2024-10-09 7:41 ` [PATCH v2 0/2] Add support for " Uwe Kleine-König
@ 2024-10-09 7:58 ` Neil Armstrong
3 siblings, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2024-10-09 7:58 UTC (permalink / raw)
To: Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiner Kallweit, Kevin Hilman, Jerome Brunet,
Martin Blumenstingl, Kelvin Zhang
Cc: linux-pwm, devicetree, linux-kernel, linux-arm-kernel,
linux-amlogic, Krzysztof Kozlowski
Hi,
On Sat, 14 Sep 2024 13:48:57 +0800, Kelvin Zhang wrote:
> Add support for Amlogic C3 PWM, including the DT binding document and DTS.
>
>
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.13/arm64-dt)
[2/2] arm64: dts: amlogic: Add Amlogic C3 PWM
https://git.kernel.org/amlogic/c/be90cd4bd422e8ae235f534a2fa46d40dae0816b
These changes has been applied on the intermediate git tree [1].
The v6.13/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
--
Neil
^ permalink raw reply [flat|nested] 6+ messages in thread