arm64: dts: imx8mm-verdin: update CAN clock to 40MHz
Subsystems (2)
PATCH 1/1 arm64: dts: imx8mm-verdin: update CAN clock to 40MHz
Update SPI CAN controller clock to match current hardware design.
--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +3 -3
@@ -32,10 +32,10 @@ backlight: backlight { }; /* Fixed clock dedicated to SPI CAN controller */ - clk20m: oscillator { + clk40m: oscillator { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <20000000>; + clock-frequency = <40000000>; }; gpio-keys {
@@ -194,7 +194,7 @@ &ecspi3 { can1: can@0 { compatible = "microchip,mcp251xfd"; - clocks = <&clk20m>; + clocks = <&clk40m>; interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_FALLING>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_can1_int>;
Signature · 1 line
2.34.1
Quoted 3 lines · Andrejs Cainikovs
Update SPI CAN controller clock to match current hardware design.
Signed-off-by Andrejs Cainikovs <[email protected]>
Quoted 31 lines
---
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 6 +++---1 file changed, 3 insertions(+), 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mm- renamed from arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0
verdin.dtsi
index0d84d29e70f1..d309bc0ab8f6100644arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -32,10 +32,10 @@ backlight: backlight { };
/* Fixed clock dedicated to SPI CAN controller */ - clk20m: oscillator {
+ clk40m: oscillator {
compatible = "fixed-clock"; #clock-cells = <0>;
- clock-frequency = <20000000>;
+ clock-frequency = <40000000>;
};
gpio-keys {arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -194,7 +194,7 @@ &ecspi3 {
can1: can@0 {
compatible = "microchip,mcp251xfd";
- clocks = <&clk20m>;
+ clocks = <&clk40m>;
interrupts-extended = <&gpio1 6IRQ_TYPE_EDGE_FALLING>; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_can1_int>;
Hello Shawn, just a ping on this.
Francesco
Quoted 36 lines · Andrejs Cainikovs
Update SPI CAN controller clock to match current hardware design.
Signed-off-by Andrejs Cainikovs <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +3
-3@@ -32,10 +32,10 @@ backlight: backlight { }; /* Fixed clock dedicated to SPI CAN controller */ - clk20m: oscillator { + clk40m: oscillator { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <20000000>; + clock-frequency = <40000000>; }; gpio-keys {@@ -194,7 +194,7 @@ &ecspi3 { can1: can@0 { compatible = "microchip,mcp251xfd"; - clocks = <&clk20m>; + clocks = <&clk40m>; interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_FALLING>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_can1_int>;Signature · 1 line
2.34.1
Quoted 28 lines · Francesco Dolcini
Hello Shawn, just a ping on this.
Francesco
Quoted 23 lines · Andrejs Cainikovs
Update SPI CAN controller clock to match current hardware design.
Signed-off-by Andrejs Cainikovs <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +2
-2@@ -32,10 +32,10 @@ backlight: backlight { }; /* Fixed clock dedicated to SPI CAN controller */ - clk20m: oscillator { + clk40m: oscillator { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <20000000>; + clock-frequency = <40000000>; };
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi &ecspi3 { · line 198
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +1
-1gpio-keys {@@ -194,7 +194,7 @@ &ecspi3 { can1: can@0 { compatible = "microchip,mcp251xfd"; - clocks = <&clk20m>; + clocks = <&clk40m>; interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_FALLING>;
You don't want to use an edge triggered interrupt with the mcp251xfd chip. You will be losing interrupts, better use IRQ_TYPE_LEVEL_LOW.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 43 lines · Marc Kleine-Budde
Quoted 30 lines · Francesco Dolcini
Hello Shawn, just a ping on this.
Francesco
Quoted 25 lines · Andrejs Cainikovs
Update SPI CAN controller clock to match current hardware design.
Signed-off-by Andrejs Cainikovs <[email protected]>---
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 6 +++---1 file changed, 3 insertions(+), 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -32,10 +32,10 @@ backlight: backlight { };
/* Fixed clock dedicated to SPI CAN controller */ - clk20m: oscillator {
+ clk40m: oscillator {
compatible = "fixed-clock"; #clock-cells = <0>;
- clock-frequency = <20000000>;
+ clock-frequency = <40000000>;
};
gpio-keys {Quoted 8 lines
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -194,7 +194,7 @@ &ecspi3 {
can1: can@0 {
compatible = "microchip,mcp251xfd"; - clocks = <&clk20m>;
+ clocks = <&clk40m>; interrupts-extended = <&gpio1 6IRQ_TYPE_EDGE_FALLING>;You don't want to use an edge triggered interrupt with the mcp251xfd chip. You will be losing interrupts, better use
IRQ_TYPE_LEVEL_LOW.
Quoted 3 lines
regards,
Marc
Hi Marc,
This particular change is not about interrupts. But thanks for a hint, I'll make sure this is addressed.
Best regards,
Andrejs Cainikovs.
Quoted 11 lines · Andrejs Cainikovs
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
can1: can@0 {
compatible = "microchip,mcp251xfd"; - clocks = <&clk20m>;
+ clocks = <&clk40m>; interrupts-extended = <&gpio1 6IRQ_TYPE_EDGE_FALLING>;You don't want to use an edge triggered interrupt with the mcp251xfd chip. You will be losing interrupts, better use
IRQ_TYPE_LEVEL_LOW.This particular change is not about interrupts.
Sure, I just noticed it.
Quoted 1 line
But thanks for a hint, I'll make sure this is addressed.
Thanks,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |