Skip to content

Commit 57a48a2

Browse files
jan-kiszkaMani-Sadhasivam
authored andcommitted
dt-bindings: PCI: ti,am65: Extend for use with PVU
The Peripheral Virtualization Unit (PVU) on the AM65 SoC is capable of restricting DMA from PCIe devices to specific regions of host memory. Add the optional property "memory-regions" to point to such regions of memory when PVU is used. Since the PVU deals with system physical addresses, utilizing the PVU with PCIe devices also requires setting up the VMAP registers to map the Requester ID of the PCIe device to the CBA Virtual ID, which in turn is mapped to the system physical address. Hence, describe the VMAP registers which are optional unless the PVU shall be used for PCIe. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Li Hua Qian <[email protected]> [mani: Expanded PVU in description] Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 6dd0ca9 commit 57a48a2

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ properties:
2020
- ti,keystone-pcie
2121

2222
reg:
23-
maxItems: 4
23+
minItems: 4
24+
maxItems: 6
2425

2526
reg-names:
27+
minItems: 4
2628
items:
2729
- const: app
2830
- const: dbics
2931
- const: config
3032
- const: atu
33+
- const: vmap_lp
34+
- const: vmap_hp
3135

3236
interrupts:
3337
maxItems: 1
@@ -69,6 +73,15 @@ properties:
6973
items:
7074
pattern: '^pcie-phy[0-1]$'
7175

76+
memory-region:
77+
maxItems: 1
78+
description: |
79+
phandle to a restricted DMA pool to be used for all devices behind
80+
this controller. The regions should be defined according to
81+
reserved-memory/shared-dma-pool.yaml.
82+
Note that enforcement via the PVU will only be available to
83+
ti,am654-pcie-rc devices.
84+
7285
required:
7386
- compatible
7487
- reg
@@ -89,6 +102,13 @@ then:
89102
- power-domains
90103
- msi-map
91104
- num-viewport
105+
else:
106+
properties:
107+
reg:
108+
maxItems: 4
109+
110+
reg-names:
111+
maxItems: 4
92112

93113
unevaluatedProperties: false
94114

@@ -104,8 +124,10 @@ examples:
104124
reg = <0x5500000 0x1000>,
105125
<0x5501000 0x1000>,
106126
<0x10000000 0x2000>,
107-
<0x5506000 0x1000>;
108-
reg-names = "app", "dbics", "config", "atu";
127+
<0x5506000 0x1000>,
128+
<0x2900000 0x1000>,
129+
<0x2908000 0x1000>;
130+
reg-names = "app", "dbics", "config", "atu", "vmap_lp", "vmap_hp";
109131
power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>;
110132
#address-cells = <3>;
111133
#size-cells = <2>;

0 commit comments

Comments
 (0)