crypto: atmel-ecc - add support for atecc608b
PATCH 1/2 crypto: atmel-ecc - add support for atecc608b
Tested on hardware with an ATECC608B at 0x60. The device binds successfully, passes the driver's sanity check, and registers the ecdh-nist-p256 KPP algorithm.
The hardware ECDH path was also exercised using a minimal KPP test module, covering private key generation, public key derivation, and shared secret computation.
--- drivers/crypto/atmel-ecc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/crypto/atmel-ecc.c +3 -0
@@ -371,6 +371,8 @@ static void atmel_ecc_remove(struct i2c_client *client)static const struct of_device_id atmel_ecc_dt_ids[] = { { .compatible ="atmel,atecc508a" , + }, { + .compatible ="atmel,atecc608b" , }, {/* sentinel */ }
@@ -380,6 +382,7 @@ MODULE_DEVICE_TABLE(of, atmel_ecc_dt_ids);static const struct i2c_device_id atmel_ecc_id[] = { {"atecc508a" }, + {"atecc608b" }, { } };MODULE_DEVICE_TABLE (i2c, atmel_ecc_id);
PATCH 2/2 dt-bindings: trivial-devices: add atmel,atecc608b
Add entry for ATECC608B. Update the ATECC508A comment for consistency.
--- Documentation/devicetree/bindings/trivial-devices.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/trivial-devices.yaml +3 -1
@@ -63,8 +63,10 @@ properties: - arduino,unoq-mcu # Temperature monitoring of Astera Labs PT5161L PCIe retimer - asteralabs,pt5161l - # i2c h/w elliptic curve crypto module + # ATECC508A - i2c h/w elliptic curve crypto module - atmel,atecc508a + # ATECC608B - i2c h/w elliptic curve crypto module + - atmel,atecc608b # ATSHA204 - i2c h/w symmetric crypto module - atmel,atsha204 # ATSHA204A - i2c h/w symmetric crypto module
Re: [PATCH 2/2] dt-bindings: trivial-devices: add atmel,atecc608b
Quoted 7 lines · Thorsten Blum
Add entry for ATECC608B. Update the ATECC508A comment for consistency.
Signed-off-by Thorsten Blum <[email protected]>--- Documentation/devicetree/bindings/trivial-devices.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Herbert Xu
maintainerQuoted 4 lines · Thorsten Blum
Tested on hardware with an ATECC608B at
0x60. The device binds successfully, passes the driver's sanity check, and registers the ecdh-nist-p256 KPP algorithm.
Quoted 8 lines
The hardware ECDH path was also exercised using a minimal KPP test module, covering private key generation, public key derivation, and shared secret computation.
Signed-off-by Thorsten Blum <[email protected]>--- drivers/crypto/atmel-ecc.c | 3 +++ 1 file changed, 3 insertions(+)
Is there supposed to be a 2/2 or should I apply this patch on its own?
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Quoted 9 lines · Herbert Xu
Quoted 8 lines · Thorsten Blum
Tested on hardware with an ATECC608B at
0x60. The device binds successfully, passes the driver's sanity check, and registers the ecdh-nist-p256 KPP algorithm.The hardware ECDH path was also exercised using a minimal KPP test module, covering private key generation, public key derivation, and shared secret computation.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Thorsten Blum <[email protected]>--- drivers/crypto/atmel-ecc.c | 3 +++ 1 file changed, 3 insertions(+)Is there supposed to be a 2/2 or should I apply this patch on its own?
Patch 2/2 is here:
https://lore.kernel.org/lkml/[email protected]/
Thanks,
Thorsten
Herbert Xu
maintainerQuoted 4 lines · Thorsten Blum
Patch 2/2 is here:
Please repost 2/2 to linux-crypto with Rob's ack.
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt