devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* devicetree for Turris Omnia is missing i2c frequency for atsha204a
@ 2024-05-11 20:09 m95d
  2024-05-15  8:41 ` atmel sha: i2c bus speed under multiplexer (WAS: devicetree for Turris Omnia is missing i2c frequency for atsha204a) Marek Behún
  0 siblings, 1 reply; 2+ messages in thread
From: m95d @ 2024-05-11 20:09 UTC (permalink / raw)
  To: devicetree

Hello.

Booting kernel v6.6 I get these errors in dmesg:

atmel-sha204a 6-0064: failed to read clock-frequency property
atmel-sha204a: probe of 6-0064 failed with error -22

I'm attaching a patch to fix it.
It adds 1MHz clock frequency to the i2c devicetree node where atsha204a is connected. This is the max. supported frequency according to the atmel sha204a specs sheet.
Tested. Works.

Thank you.

diff --git a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
index 7b755bb4e4e7..64caabc81585 100644
--- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
+++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
@@ -378,6 +378,7 @@ i2c@5 {
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <5>;
+			clock-frequency = <1000000>;
 
 			/* ATSHA204A-MAHDA-T crypto module */
 			crypto@64 {

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-15  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-11 20:09 devicetree for Turris Omnia is missing i2c frequency for atsha204a m95d
2024-05-15  8:41 ` atmel sha: i2c bus speed under multiplexer (WAS: devicetree for Turris Omnia is missing i2c frequency for atsha204a) Marek Behún

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).