-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds rk3399-spi1-cs-gpio-slb9670
Add support for TPM module SLB9670 using spi1-gpio on rk3399 Signed-off-by: Enrique Hernández Bello <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
arch/arm64/boot/dts/rockchip/overlays/rk3399-spi1-cs-gpio-slb9670.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/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_B0", "GPIO1_A7", "GPIO1_B1", "GPIO4_D5", "spi1"; | ||
description = "Enable Infineon SLB9670 Trusted Platform Module (TPM) on SPI1. | ||
Uses Pin 22 (GPIO4_D5) for CS."; | ||
}; | ||
}; | ||
|
||
&spi1 { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
num-cs = <1>; | ||
cs-gpios = <&gpio4 RK_PD5 RK_FUNC_GPIO>; | ||
pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx>; | ||
|
||
slb9670: slb9670@0 { | ||
status = "okay"; | ||
compatible = "infineon,slb9670"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&disable_spi1_hw_cs0>; | ||
gpio1-b2 { | ||
disable_spi1_hw_cs0: disable-spi1-hw-cs0 { | ||
rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; | ||
}; | ||
}; | ||
}; |