xref: /freebsd/sys/contrib/device-tree/Bindings/security/tpm/st33zp24-spi.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* STMicroelectronics SAS. ST33ZP24 TPM SoC
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: Should be "st,st33zp24-spi".
5*c66ec88fSEmmanuel Vadot- spi-max-frequency: Maximum SPI frequency (<= 10000000).
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotOptional ST33ZP24 Properties:
8*c66ec88fSEmmanuel Vadot- interrupts: GPIO interrupt to which the chip is connected
9*c66ec88fSEmmanuel Vadot- lpcpd-gpios: Output GPIO pin used for ST33ZP24 power management D1/D2 state.
10*c66ec88fSEmmanuel VadotIf set, power must be present when the platform is going into sleep/hibernate mode.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotOptional SoC Specific Properties:
13*c66ec88fSEmmanuel Vadot- pinctrl-names: Contains only one value - "default".
14*c66ec88fSEmmanuel Vadot- pintctrl-0: Specifies the pin control groups used for this controller.
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample (for ARM-based BeagleBoard xM with ST33ZP24 on SPI4):
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot&mcspi4 {
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot        st33zp24@0 {
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot                compatible = "st,st33zp24-spi";
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot                spi-max-frequency = <10000000>;
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot                interrupt-parent = <&gpio5>;
28*c66ec88fSEmmanuel Vadot                interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot                lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
31*c66ec88fSEmmanuel Vadot        };
32*c66ec88fSEmmanuel Vadot};
33