[PATCH v7 5/5] arm64: tegra: Add Tegra Security Engine DT nodes

2024-04-03 Thread Akhil R
Add device tree nodes for Tegra AES and HASH engines. Signed-off-by: Akhil R --- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 78cbfdd98dd1

[PATCH v7 4/5] arm64: defconfig: Enable Tegra Security Engine

2024-04-03 Thread Akhil R
Enable Tegra Security Engine which can accelerate various AES and HASH algorithms on supported hardware. Signed-off-by: Akhil R --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2c30d617e180

[PATCH v7 3/5] crypto: tegra: Add Tegra Security Engine driver

2024-04-03 Thread Akhil R
and both uses the host1x bus. Additionally, it provides hardware-assisted key protection for up to 15 symmetric keys which it can use for the cipher operations. Signed-off-by: Akhil R --- MAINTAINERS |5 + drivers/crypto/Kconfig |8 + drivers/crypto

[PATCH v7 2/5] gpu: host1x: Add Tegra SE to SID table

2024-04-03 Thread Akhil R
Add Tegra Security Engine details to the SID table in host1x driver. These entries are required to be in place to configure the stream ID for SE. Register writes to stream ID registers fail otherwise. Signed-off-by: Akhil R Acked-by: Mikko Perttunen --- drivers/gpu/host1x/dev.c | 24

[PATCH v7 0/5] Add Tegra Security Engine driver

2024-04-03 Thread Akhil R
tible in driver and device trees. * Remove extra new lines and symbols in binding doc. v1->v2: * Update probe errors with 'dev_err_probe'. * Clean up function prototypes and redundant prints. * Remove readl/writel wrappers. * Fix test bot warnings. Akhil R (5): dt-bindings: crypto: Add Tegra Sec

[PATCH v7 1/5] dt-bindings: crypto: Add Tegra Security Engine

2024-04-03 Thread Akhil R
Add DT binding document for Tegra Security Engine. The AES and HASH algorithms are handled independently by separate engines within the Security Engine. These engines are registered as two separate crypto engine drivers. Signed-off-by: Akhil R Reviewed-by: Krzysztof Kozlowski --- .../crypto

RE: [PATCH v6 3/5] crypto: tegra: Add Tegra Security Engine driver

2024-04-02 Thread Akhil R
> On Tue, Mar 19, 2024 at 01:53:04PM +0530, Akhil R wrote: > > > > +struct tegra_sha_reqctx { > > + struct ahash_request fallback_req; > > This doesn't work because ahash_request is dynamically sized. > So you'll end up clobbering the rest of the struct if a

RE: [PATCH v6 3/5] crypto: tegra: Add Tegra Security Engine driver

2024-04-02 Thread Akhil R
> > > > + .alg.skcipher.op.do_one_request = tegra_aes_do_one_req, > > + .alg.skcipher.base = { > > + .init = tegra_aes_cra_init, > > + .exit = tegra_aes_cra_exit, > > + .setkey = tegra_aes_setkey, > > +

[PATCH v6 5/5] arm64: tegra: Add Tegra Security Engine DT nodes

2024-03-19 Thread Akhil R
Add device tree nodes for Tegra AES and HASH engines. Signed-off-by: Akhil R --- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 78cbfdd98dd1

[PATCH v6 4/5] arm64: defconfig: Enable Tegra Security Engine

2024-03-19 Thread Akhil R
Enable Tegra Security Engine which can accelerate various AES and HASH algorithms on supported hardware. Signed-off-by: Akhil R --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2c30d617e180

[PATCH v6 3/5] crypto: tegra: Add Tegra Security Engine driver

2024-03-19 Thread Akhil R
and both uses the host1x bus. Additionally, it provides hardware-assisted key protection for up to 15 symmetric keys which it can use for the cipher operations. Signed-off-by: Akhil R --- MAINTAINERS |5 + drivers/crypto/Kconfig |8 + drivers/crypto

[PATCH v6 2/5] gpu: host1x: Add Tegra SE to SID table

2024-03-19 Thread Akhil R
Add Tegra Security Engine details to the SID table in host1x driver. These entries are required to be in place to configure the stream ID for SE. Register writes to stream ID registers fail otherwise. Signed-off-by: Akhil R Acked-by: Mikko Perttunen --- drivers/gpu/host1x/dev.c | 24

[PATCH v6 1/5] dt-bindings: crypto: Add Tegra Security Engine

2024-03-19 Thread Akhil R
Add DT binding document for Tegra Security Engine. The AES and HASH algorithms are handled independently by separate engines within the Security Engine. These engines are registered as two separate crypto engine drivers. Signed-off-by: Akhil R Reviewed-by: Krzysztof Kozlowski --- .../crypto

[PATCH v6 0/5] Add Tegra Security Engine driver

2024-03-19 Thread Akhil R
be'. * Clean up function prototypes and redundant prints. * Remove readl/writel wrappers. * Fix test bot warnings. Akhil R (5): dt-bindings: crypto: Add Tegra Security Engine gpu: host1x: Add Tegra SE to SID table crypto: tegra: Add Tegra Security Engine driver arm64: defconfig: Enable Tegra

[PATCH v2] i2c: tegra: use i2c_timings for bus clock freq

2021-12-09 Thread Akhil R
Use i2c_timings struct and corresponding methods to get bus clock frequency Signed-off-by: Akhil R Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko --- drivers/i2c/busses/i2c-tegra.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) v1->v2: Added temp

[PATCH 0/2] Add SMBus features to Tegra I2C

2021-12-09 Thread Akhil R
Add support for SMBus Alert and SMBus block read functions to i2c-tegra driver Akhil R (2): dt-bindings: i2c: tegra: Add SMBus feature properties i2c: tegra: Add SMBus block read and SMBus alert functions .../devicetree/bindings/i2c/nvidia,tegra20-i2c.txt | 4 ++ drivers/i2c/busses/i2c

[PATCH] i2c: tegra: use i2c_timings for bus clock freq

2021-12-09 Thread Akhil R
Use i2c_timings struct and corresponding methods to get bus clock frequency Signed-off-by: Akhil R --- drivers/i2c/busses/i2c-tegra.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) The patch is in response to the discussion in a previous patch to use i2c_timings

[PATCH 2/2] i2c: tegra: Add SMBus block read and SMBus alert functions

2021-12-09 Thread Akhil R
external gpio interrupt. Signed-off-by: Akhil R --- drivers/i2c/busses/i2c-tegra.c | 54 +- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index a5be8f0..3b70013 100644

[PATCH 1/2] dt-bindings: i2c: tegra: Add SMBus feature properties

2021-12-09 Thread Akhil R
Tegra I2C can use a gpio as an smbus-alert. Document the usage of the same. Signed-off-by: Akhil R --- Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt b

[PATCH v4] i2c: tegra: Add the ACPI support

2021-11-25 Thread Akhil R
Add support for the ACPI based device registration so that the driver can be also enabled through ACPI table. This does not include the ACPI support for Tegra VI and DVC I2C. Signed-off-by: Akhil R --- drivers/i2c/busses/i2c-tegra.c | 52 -- 1 file

[PATCH v3] i2c: tegra: Add the ACPI support

2021-11-25 Thread Akhil R
Add support for the ACPI based device registration so that the driver can be also enabled through ACPI table. This does not include the ACPI support for Tegra VI and DVC I2C. Signed-off-by: Akhil R --- drivers/i2c/busses/i2c-tegra.c | 52 -- 1 file

RE: [PATCH v2] i2c: tegra: Add ACPI support

2021-11-24 Thread Akhil R
> 24.11.2021 10:18, Akhil R пишет: > >> *i2c_dev) > >>> i2c_dev->is_vi = true; } > >> How are you going to differentiate the VI I2C from a non-VI? This > >> doesn't look right. > > This patch adds the ACPI support to only non-

RE: [PATCH v2] i2c: tegra: Add ACPI support

2021-11-23 Thread Akhil R
> 23.11.2021 10:15, Akhil R пишет: > > Add support for ACPI based device registration so that the driver can > > be also enabled through ACPI table. > > > > Signed-off-by: Akhil R > > --- > > drivers/i2c/busses/i2c-tegra.c | 52 > > +

[PATCH v2] i2c: tegra: Add ACPI support

2021-11-22 Thread Akhil R
Add support for ACPI based device registration so that the driver can be also enabled through ACPI table. Signed-off-by: Akhil R --- drivers/i2c/busses/i2c-tegra.c | 52 -- 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/drivers/i2c/busses

RE: [PATCH] i2c: tegra: Add ACPI support

2021-11-19 Thread Akhil R
> > > On Fri, Nov 19, 2021 at 3:37 PM Akhil R wrote: > > > > Add support for ACPI based device registration so that the driver can > > be also enabled through ACPI table. > > the ACPI > > ... > > > + if (has_acpi_companion(i2c_dev