microchip,xec-espi-sram-bar

Description

Microchip XEC eSPI SRAM BARs

An SRAM BAR maps a region of EC SRAM into the eSPI Host memory address
space. The XEC eSPI controller implements two SRAM BARs. The driver
allocates the EC SRAM region for each enabled BAR, aligned on its size
as required by hardware. Applications obtain the EC buffer with
mchp_xec_espi_sram_bar_get().

Host address bits [47:32] of both BARs are set by the espi0
sram-bar-addr-high property.

Example:

  &espi0 {
      sram-bars {
          compatible = "microchip,xec-espi-sram-bar";
          #address-cells = <1>;
          #size-cells = <0>;

          sram_bar0: sram-bar@0 {
              reg = <0>;
              host-address = <0x20000000>;
              size = <1024>;
              access = "READ_WRITE";
          };
      };
  };

Properties

Top level properties

These property descriptions apply to “microchip,xec-espi-sram-bar” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

(None)

Child node properties

Name

Type

Details

reg

array

SRAM BAR index, 0 or 1.

This property is required.

See Important properties for more information.

host-address

int

Host memory address bits [31:0] of the region. Must be aligned
on the region size.

This property is required.

size

int

Region size in bytes. Power of two from 1 to 32768.

This property is required.

access

string

Host access to the region.

This property is required.

Legal values: READ_ONLY, WRITE_ONLY, READ_WRITE