remoteproc: k3_r5: Sync to upstreamed kernel DT property names
commit 468ec2f3ef upstream.
The K3 R5F remoteproc driver in U-Boot was upstreamed prior to the
equivalent remoteproc driver in the Linux kernel. Some of the DT
properties used in U-Boot got upstreamed using different names
in Linux kernel.
The modified property names include the R5F cluster mode configuration
property "lockstep-mode"; and three different individual R5F core config
properties - "atcm-enable", "btcm-enable" and "loczrama". The property
names were updated as follows:
lockstep-mode => ti,cluster-mode
atcm-enable => ti,atcm-enable
btcm-enable => ti,btcm-enable
loczrama => ti,loczrama
Update the K3 R5F remoteproc driver, the corresponding binding, and
all the existing usage in AM65x, J721E and J7200 dts files all at
once to use the new properties and to not break any bisectability.
Signed-off-by: Suman Anna <s-anna@ti.com>
[s-anna@ti.com: cherry-pick commit '468ec2f3ef8f' from v2021.04-rc2]
This commit is contained in:
parent
a27ee3c01e
commit
c118d25546
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
mcu_r5fss0: r5fss@41000000 {
|
mcu_r5fss0: r5fss@41000000 {
|
||||||
compatible = "ti,am654-r5fss";
|
compatible = "ti,am654-r5fss";
|
||||||
lockstep-mode = <0>;
|
ti,cluster-mode = <0>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
||||||
|
|
@ -59,9 +59,9 @@
|
||||||
ti,sci-dev-id = <159>;
|
ti,sci-dev-id = <159>;
|
||||||
ti,sci-proc-ids = <0x01 0xFF>;
|
ti,sci-proc-ids = <0x01 0xFF>;
|
||||||
resets = <&k3_reset 159 1>;
|
resets = <&k3_reset 159 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
mcu_r5fss0_core1: r5f@41400000 {
|
mcu_r5fss0_core1: r5f@41400000 {
|
||||||
|
|
@ -73,9 +73,9 @@
|
||||||
ti,sci-dev-id = <245>;
|
ti,sci-dev-id = <245>;
|
||||||
ti,sci-proc-ids = <0x02 0xFF>;
|
ti,sci-proc-ids = <0x02 0xFF>;
|
||||||
resets = <&k3_reset 245 1>;
|
resets = <&k3_reset 245 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,7 @@
|
||||||
|
|
||||||
main_r5fss0: r5fss@5c00000 {
|
main_r5fss0: r5fss@5c00000 {
|
||||||
compatible = "ti,j7200-r5fss";
|
compatible = "ti,j7200-r5fss";
|
||||||
lockstep-mode = <0>;
|
ti,cluster-mode = <0>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x5c00000 0x00 0x5c00000 0x20000>,
|
ranges = <0x5c00000 0x00 0x5c00000 0x20000>,
|
||||||
|
|
@ -383,9 +383,9 @@
|
||||||
ti,sci-proc-ids = <0x06 0xFF>;
|
ti,sci-proc-ids = <0x06 0xFF>;
|
||||||
resets = <&k3_reset 245 1>;
|
resets = <&k3_reset 245 1>;
|
||||||
firmware-name = "j7200-main-r5f0_0-fw";
|
firmware-name = "j7200-main-r5f0_0-fw";
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
main_r5fss0_core1: r5f@5d00000 {
|
main_r5fss0_core1: r5f@5d00000 {
|
||||||
|
|
@ -398,9 +398,9 @@
|
||||||
ti,sci-proc-ids = <0x07 0xFF>;
|
ti,sci-proc-ids = <0x07 0xFF>;
|
||||||
resets = <&k3_reset 246 1>;
|
resets = <&k3_reset 246 1>;
|
||||||
firmware-name = "j7200-main-r5f0_1-fw";
|
firmware-name = "j7200-main-r5f0_1-fw";
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -272,7 +272,7 @@
|
||||||
|
|
||||||
mcu_r5fss0: r5fss@41000000 {
|
mcu_r5fss0: r5fss@41000000 {
|
||||||
compatible = "ti,j7200-r5fss";
|
compatible = "ti,j7200-r5fss";
|
||||||
lockstep-mode = <1>;
|
ti,cluster-mode = <1>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
||||||
|
|
@ -289,9 +289,9 @@
|
||||||
ti,sci-proc-ids = <0x01 0xff>;
|
ti,sci-proc-ids = <0x01 0xff>;
|
||||||
resets = <&k3_reset 250 1>;
|
resets = <&k3_reset 250 1>;
|
||||||
firmware-name = "j7200-mcu-r5f0_0-fw";
|
firmware-name = "j7200-mcu-r5f0_0-fw";
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
mcu_r5fss0_core1: r5f@41400000 {
|
mcu_r5fss0_core1: r5f@41400000 {
|
||||||
|
|
@ -304,9 +304,9 @@
|
||||||
ti,sci-proc-ids = <0x02 0xff>;
|
ti,sci-proc-ids = <0x02 0xff>;
|
||||||
resets = <&k3_reset 251 1>;
|
resets = <&k3_reset 251 1>;
|
||||||
firmware-name = "j7200-mcu-r5f0_1-fw";
|
firmware-name = "j7200-mcu-r5f0_1-fw";
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -266,7 +266,7 @@
|
||||||
|
|
||||||
main_r5fss0: r5fss@5c00000 {
|
main_r5fss0: r5fss@5c00000 {
|
||||||
compatible = "ti,j721e-r5fss";
|
compatible = "ti,j721e-r5fss";
|
||||||
lockstep-mode = <0>;
|
ti,cluster-mode = <0>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x5c00000 0x00 0x5c00000 0x20000>,
|
ranges = <0x5c00000 0x00 0x5c00000 0x20000>,
|
||||||
|
|
@ -282,9 +282,9 @@
|
||||||
ti,sci-dev-id = <245>;
|
ti,sci-dev-id = <245>;
|
||||||
ti,sci-proc-ids = <0x06 0xFF>;
|
ti,sci-proc-ids = <0x06 0xFF>;
|
||||||
resets = <&k3_reset 245 1>;
|
resets = <&k3_reset 245 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
main_r5fss0_core1: r5f@5d00000 {
|
main_r5fss0_core1: r5f@5d00000 {
|
||||||
|
|
@ -296,15 +296,15 @@
|
||||||
ti,sci-dev-id = <246>;
|
ti,sci-dev-id = <246>;
|
||||||
ti,sci-proc-ids = <0x07 0xFF>;
|
ti,sci-proc-ids = <0x07 0xFF>;
|
||||||
resets = <&k3_reset 246 1>;
|
resets = <&k3_reset 246 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
main_r5fss1: r5fss@5e00000 {
|
main_r5fss1: r5fss@5e00000 {
|
||||||
compatible = "ti,j721e-r5fss";
|
compatible = "ti,j721e-r5fss";
|
||||||
lockstep-mode = <0>;
|
ti,cluster-mode = <0>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x5e00000 0x00 0x5e00000 0x20000>,
|
ranges = <0x5e00000 0x00 0x5e00000 0x20000>,
|
||||||
|
|
@ -320,9 +320,9 @@
|
||||||
ti,sci-dev-id = <247>;
|
ti,sci-dev-id = <247>;
|
||||||
ti,sci-proc-ids = <0x08 0xFF>;
|
ti,sci-proc-ids = <0x08 0xFF>;
|
||||||
resets = <&k3_reset 247 1>;
|
resets = <&k3_reset 247 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
main_r5fss1_core1: r5f@5f00000 {
|
main_r5fss1_core1: r5f@5f00000 {
|
||||||
|
|
@ -334,9 +334,9 @@
|
||||||
ti,sci-dev-id = <248>;
|
ti,sci-dev-id = <248>;
|
||||||
ti,sci-proc-ids = <0x09 0xFF>;
|
ti,sci-proc-ids = <0x09 0xFF>;
|
||||||
resets = <&k3_reset 248 1>;
|
resets = <&k3_reset 248 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
mcu_r5fss0: r5fss@41000000 {
|
mcu_r5fss0: r5fss@41000000 {
|
||||||
compatible = "ti,j721e-r5fss";
|
compatible = "ti,j721e-r5fss";
|
||||||
lockstep-mode = <1>;
|
ti,cluster-mode = <1>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
||||||
|
|
@ -113,9 +113,9 @@
|
||||||
ti,sci-dev-id = <250>;
|
ti,sci-dev-id = <250>;
|
||||||
ti,sci-proc-ids = <0x01 0xFF>;
|
ti,sci-proc-ids = <0x01 0xFF>;
|
||||||
resets = <&k3_reset 250 1>;
|
resets = <&k3_reset 250 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
mcu_r5fss0_core1: r5f@41400000 {
|
mcu_r5fss0_core1: r5f@41400000 {
|
||||||
|
|
@ -127,9 +127,9 @@
|
||||||
ti,sci-dev-id = <251>;
|
ti,sci-dev-id = <251>;
|
||||||
ti,sci-proc-ids = <0x02 0xFF>;
|
ti,sci-proc-ids = <0x02 0xFF>;
|
||||||
resets = <&k3_reset 251 1>;
|
resets = <&k3_reset 251 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ The following are the mandatory properties:
|
||||||
|
|
||||||
Optional properties:
|
Optional properties:
|
||||||
--------------------
|
--------------------
|
||||||
- lockstep-mode: Configuration Mode for the Dual R5F cores within the R5F
|
- ti,cluster-mode: Configuration Mode for the Dual R5F cores within the R5F
|
||||||
cluster. Should be either a value of 1 (LockStep mode) or
|
cluster. Should be either a value of 1 (LockStep mode) or
|
||||||
0 (Split mode), default is LockStep mode if omitted.
|
0 (Split mode), default is LockStep mode if omitted.
|
||||||
|
|
||||||
|
|
@ -88,15 +88,15 @@ Optional properties:
|
||||||
--------------------
|
--------------------
|
||||||
The following properties are optional properties for each of the R5F cores:
|
The following properties are optional properties for each of the R5F cores:
|
||||||
|
|
||||||
- atcm-enable: R5F core configuration mode dictating if ATCM should be
|
- ti,atcm-enable: R5F core configuration mode dictating if ATCM should be
|
||||||
enabled. Should be either a value of 1 (enabled) or
|
enabled. Should be either a value of 1 (enabled) or
|
||||||
0 (disabled), default is disabled if omitted. R5F view
|
0 (disabled), default is disabled if omitted. R5F view
|
||||||
of ATCM dictated by loczrama property.
|
of ATCM dictated by ti,loczrama property.
|
||||||
- btcm-enable: R5F core configuration mode dictating if BTCM should be
|
- ti,btcm-enable: R5F core configuration mode dictating if BTCM should be
|
||||||
enabled. Should be either a value of 1 (enabled) or
|
enabled. Should be either a value of 1 (enabled) or
|
||||||
0 (disabled), default is enabled if omitted. R5F view
|
0 (disabled), default is enabled if omitted. R5F view
|
||||||
of BTCM dictated by loczrama property.
|
of BTCM dictated by ti,loczrama property.
|
||||||
- loczrama: R5F core configuration mode dictating which TCM should
|
- ti,loczrama: R5F core configuration mode dictating which TCM should
|
||||||
appear at address 0 (from core's view). Should be either
|
appear at address 0 (from core's view). Should be either
|
||||||
a value of 1 (ATCM at 0x0) or 0 (BTCM at 0x0), default
|
a value of 1 (ATCM at 0x0) or 0 (BTCM at 0x0), default
|
||||||
value is 1 if omitted.
|
value is 1 if omitted.
|
||||||
|
|
@ -129,7 +129,7 @@ Example:
|
||||||
mcu_r5fss0: r5fss@41000000 {
|
mcu_r5fss0: r5fss@41000000 {
|
||||||
compatible = "ti,am654-r5fss";
|
compatible = "ti,am654-r5fss";
|
||||||
power-domains = <&k3_pds 129>;
|
power-domains = <&k3_pds 129>;
|
||||||
lockstep-mode = <1>;
|
ti,cluster-mode = <1>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
ranges = <0x41000000 0x00 0x41000000 0x20000>,
|
||||||
|
|
@ -144,9 +144,9 @@ Example:
|
||||||
ti,sci-dev-id = <159>;
|
ti,sci-dev-id = <159>;
|
||||||
ti,sci-proc-ids = <0x01 0xFF>;
|
ti,sci-proc-ids = <0x01 0xFF>;
|
||||||
resets = <&k3_reset 159 1>;
|
resets = <&k3_reset 159 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
mcu_r5f1: r5f@41400000 {
|
mcu_r5f1: r5f@41400000 {
|
||||||
|
|
@ -158,9 +158,9 @@ Example:
|
||||||
ti,sci-dev-id = <245>;
|
ti,sci-dev-id = <245>;
|
||||||
ti,sci-proc-ids = <0x02 0xFF>;
|
ti,sci-proc-ids = <0x02 0xFF>;
|
||||||
resets = <&k3_reset 245 1>;
|
resets = <&k3_reset 245 1>;
|
||||||
atcm-enable = <1>;
|
ti,atcm-enable = <1>;
|
||||||
btcm-enable = <1>;
|
ti,btcm-enable = <1>;
|
||||||
loczrama = <1>;
|
ti,loczrama = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -678,9 +678,9 @@ static int k3_r5f_of_to_priv(struct k3_r5f_core *core)
|
||||||
|
|
||||||
dev_dbg(core->dev, "%s\n", __func__);
|
dev_dbg(core->dev, "%s\n", __func__);
|
||||||
|
|
||||||
core->atcm_enable = dev_read_u32_default(core->dev, "atcm-enable", 0);
|
core->atcm_enable = dev_read_u32_default(core->dev, "ti,atcm-enable", 0);
|
||||||
core->btcm_enable = dev_read_u32_default(core->dev, "btcm-enable", 1);
|
core->btcm_enable = dev_read_u32_default(core->dev, "ti,btcm-enable", 1);
|
||||||
core->loczrama = dev_read_u32_default(core->dev, "loczrama", 1);
|
core->loczrama = dev_read_u32_default(core->dev, "ti,loczrama", 1);
|
||||||
|
|
||||||
ret = ti_sci_proc_of_to_priv(core->dev, &core->tsp);
|
ret = ti_sci_proc_of_to_priv(core->dev, &core->tsp);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
@ -875,7 +875,7 @@ static int k3_r5f_cluster_probe(struct udevice *dev)
|
||||||
|
|
||||||
dev_dbg(dev, "%s\n", __func__);
|
dev_dbg(dev, "%s\n", __func__);
|
||||||
|
|
||||||
cluster->mode = dev_read_u32_default(dev, "lockstep-mode",
|
cluster->mode = dev_read_u32_default(dev, "ti,cluster-mode",
|
||||||
CLUSTER_MODE_LOCKSTEP);
|
CLUSTER_MODE_LOCKSTEP);
|
||||||
|
|
||||||
if (device_get_child_count(dev) != 2) {
|
if (device_get_child_count(dev) != 2) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue