Skip to content

Commit

Permalink
feat: adds rk3399-spi1-cs1-slb9670
Browse files Browse the repository at this point in the history
Add support for TPM module SLB9670 using spi1-cs1 on rk3399

Signed-off-by: Enrique Hernández Bello <[email protected]>
  • Loading branch information
ehbello committed Dec 11, 2024
1 parent eefe5d8 commit 08bfa16
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ dtb-$(CONFIG_CLK_RK3399) += \
rk3399-radxa-25w-poe.dtbo \
rk3399-rga-400.dtbo \
rk3399-spi-gpio-enc28j60.dtbo \
rk3399-spi1-cs1-slb9670.dtbo \
rk3399-spi1-enc28j60.dtbo \
rk3399-spi1-jedec-nor.dtbo \
rk3399-spi1-mcp2515-8mhz.dtbo \
Expand Down
28 changes: 28 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3399-spi1-cs1-slb9670.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/pinctrl/rockchip.h>

/ {
metadata {
title = "Enable Infineon SLB9670 Trusted Platform Module (TPM) on SPI1";
category = "misc";
compatible = "rockchip,rk3399";
exclusive = "GPIO1_B2", "GPIO4_D5";
description = "Enable Infineon SLB9670 Trusted Platform Module (TPM) on SPI1.\n Uses Pin 22 (GPIO4_D5) for CS.";
};
};

&spi1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
cs-gpios = <&gpio1 RK_PB2 RK_FUNC_GPIO>, <&gpio4 RK_PD5 RK_FUNC_GPIO>;

slb9670: slb9670@1 {
status = "okay";
compatible = "infineon,slb9670";
reg = <1>;
spi-max-frequency = <1000000>;
};
};

0 comments on commit 08bfa16

Please sign in to comment.