This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Crypto module at 40900000

Part Number: AM625

I am using the ti-linux-5.10.y branch of git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git.  The board is a custom board with a HS-SE AM625.

The AM62x main device tree (arch/arm64/boot/dts/ti/k3-am62-main.dtsi) has the following for the crypto module:

crypto: crypto@40900000 {
  compatible = "ti,am62-sa3ul";
  reg = <0x00 0x40900000 0x00 0x1200>;
  power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>;
  #address-cells = <2>;
  #size-cells = <2>;
  ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;

  dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>, <&main_pktdma 0x7507 0>;
  dma-names = "tx", "rx1", "rx2";

Note the power domain.  At boot, attempts to start the driver fail because the power domain can not be enabled.

ti_sci_pd_power_on() tries to enable the domain named pd:70.  The results in a mailbox call by ti_sci_set_device_state() / ti_sci_do_xfer().  The mailbox call gets a response, but the flags are 0 which is a NACK.

Is that the right power domain for crypto?

If so, why can it not be enabled?

I note that crypto@40900000 for the AM62A (k3-am62a-main.dtsi) does not indicate any power domain.  Is one actually required for the AM625?

Other k3_pds power domains are being enabled through the mailbox without issue, such as pd:102 (main_i2c0) and pd:98 (main_mcan0).

Regards,
    Steve