Skip to content

Commit 754c947

Browse files
Peter UjfalusiMarc Zyngier
authored andcommitted
firmware: ti_sci: Add RM mapping table for am654
Add the resource mapping table for AM654 SoC as defined in http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am6x/resasg_types.html Introduce a new compatible for AM654 "ti,am654-sci" for using this resource map table. Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Nishanth Menon <nm@ti.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 997b001 commit 754c947

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

Documentation/devicetree/bindings/arm/keystone/ti,sci.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ relationship between the TI-SCI parent node to the child node.
2424

2525
Required properties:
2626
-------------------
27-
- compatible: should be "ti,k2g-sci"
27+
- compatible: should be "ti,k2g-sci" for TI 66AK2G SoC
28+
should be "ti,am654-sci" for for TI AM654 SoC
2829
- mbox-names:
2930
"rx" - Mailbox corresponding to receive path
3031
"tx" - Mailbox corresponding to transmit path

drivers/firmware/ti_sci.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,10 +2282,33 @@ static const struct ti_sci_desc ti_sci_pmmc_k2g_desc = {
22822282
/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
22832283
.max_msgs = 20,
22842284
.max_msg_size = 64,
2285+
.rm_type_map = NULL,
2286+
};
2287+
2288+
static struct ti_sci_rm_type_map ti_sci_am654_rm_type_map[] = {
2289+
{.dev_id = 56, .type = 0x00b}, /* GIC_IRQ */
2290+
{.dev_id = 179, .type = 0x000}, /* MAIN_NAV_UDMASS_IA0 */
2291+
{.dev_id = 187, .type = 0x009}, /* MAIN_NAV_RA */
2292+
{.dev_id = 188, .type = 0x006}, /* MAIN_NAV_UDMAP */
2293+
{.dev_id = 194, .type = 0x007}, /* MCU_NAV_UDMAP */
2294+
{.dev_id = 195, .type = 0x00a}, /* MCU_NAV_RA */
2295+
{.dev_id = 0, .type = 0x000}, /* end of table */
2296+
};
2297+
2298+
/* Description for AM654 */
2299+
static const struct ti_sci_desc ti_sci_pmmc_am654_desc = {
2300+
.default_host_id = 12,
2301+
/* Conservative duration */
2302+
.max_rx_timeout_ms = 10000,
2303+
/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
2304+
.max_msgs = 20,
2305+
.max_msg_size = 60,
2306+
.rm_type_map = ti_sci_am654_rm_type_map,
22852307
};
22862308

22872309
static const struct of_device_id ti_sci_of_match[] = {
22882310
{.compatible = "ti,k2g-sci", .data = &ti_sci_pmmc_k2g_desc},
2311+
{.compatible = "ti,am654-sci", .data = &ti_sci_pmmc_am654_desc},
22892312
{ /* Sentinel */ },
22902313
};
22912314
MODULE_DEVICE_TABLE(of, ti_sci_of_match);

0 commit comments

Comments
 (0)