All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-19 12:33 ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP needs firmware which differs between platforms and SoCs. Add a new
property "firmware-name" to allow the DT to specify the platform/board specific
path to this firmware file.

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Base on remoteproc/linux.git, rproc-next (58b7c856519f)

changes since v2:$
- use rproc_of_parse_firmware instead of of_property_read_string
changes since v1:
- fix a misspelled word in commit title

Allen-KH Cheng (2):
  dt-bindings: remoteproc: mediatek: add firmware-name property
  remoteproc: mediatek: allow reading firmware-name from DT

 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
 drivers/remoteproc/mtk_scp.c                              | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

* [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-19 12:33 ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP needs firmware which differs between platforms and SoCs. Add a new
property "firmware-name" to allow the DT to specify the platform/board specific
path to this firmware file.

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Base on remoteproc/linux.git, rproc-next (58b7c856519f)

changes since v2:$
- use rproc_of_parse_firmware instead of of_property_read_string
changes since v1:
- fix a misspelled word in commit title

Allen-KH Cheng (2):
  dt-bindings: remoteproc: mediatek: add firmware-name property
  remoteproc: mediatek: allow reading firmware-name from DT

 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
 drivers/remoteproc/mtk_scp.c                              | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.18.0


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-19 12:33 ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP needs firmware which differs between platforms and SoCs. Add a new
property "firmware-name" to allow the DT to specify the platform/board specific
path to this firmware file.

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Base on remoteproc/linux.git, rproc-next (58b7c856519f)

changes since v2:$
- use rproc_of_parse_firmware instead of of_property_read_string
changes since v1:
- fix a misspelled word in commit title

Allen-KH Cheng (2):
  dt-bindings: remoteproc: mediatek: add firmware-name property
  remoteproc: mediatek: allow reading firmware-name from DT

 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
 drivers/remoteproc/mtk_scp.c                              | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property
  2022-04-19 12:33 ` Allen-KH Cheng
  (?)
@ 2022-04-19 12:33   ` Allen-KH Cheng
  -1 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP needs firmware which differs between other platforms and SoCs.
Add a new property "firmware-name" to allow the DT to specify the
platform/board specific path to this firmware file.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
index 5b693a2d049c..a20effa836f1 100644
--- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
@@ -42,6 +42,13 @@ properties:
   clock-names:
     const: main
 
+  firmware-name:
+    $ref: /schemas/types.yaml#/definitions/string
+    description:
+      If present, name (or relative path) of the file within the
+      firmware search path containing the firmware image used when
+      initializing SCP.
+
 required:
   - compatible
   - reg
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property
@ 2022-04-19 12:33   ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP needs firmware which differs between other platforms and SoCs.
Add a new property "firmware-name" to allow the DT to specify the
platform/board specific path to this firmware file.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
index 5b693a2d049c..a20effa836f1 100644
--- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
@@ -42,6 +42,13 @@ properties:
   clock-names:
     const: main
 
+  firmware-name:
+    $ref: /schemas/types.yaml#/definitions/string
+    description:
+      If present, name (or relative path) of the file within the
+      firmware search path containing the firmware image used when
+      initializing SCP.
+
 required:
   - compatible
   - reg
-- 
2.18.0


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property
@ 2022-04-19 12:33   ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP needs firmware which differs between other platforms and SoCs.
Add a new property "firmware-name" to allow the DT to specify the
platform/board specific path to this firmware file.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
index 5b693a2d049c..a20effa836f1 100644
--- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
@@ -42,6 +42,13 @@ properties:
   clock-names:
     const: main
 
+  firmware-name:
+    $ref: /schemas/types.yaml#/definitions/string
+    description:
+      If present, name (or relative path) of the file within the
+      firmware search path containing the firmware image used when
+      initializing SCP.
+
 required:
   - compatible
   - reg
-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
  2022-04-19 12:33 ` Allen-KH Cheng
  (?)
@ 2022-04-19 12:33   ` Allen-KH Cheng
  -1 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP firmware blob differs between platforms and SoCs. We add
support in the SCP driver for reading the path of firmware file from
DT in order to allow these files to live in a generic file system
(or linux-firmware).

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 drivers/remoteproc/mtk_scp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c
index 621174ea7fd6..47b2a40e1b4a 100644
--- a/drivers/remoteproc/mtk_scp.c
+++ b/drivers/remoteproc/mtk_scp.c
@@ -809,9 +809,13 @@ static int scp_probe(struct platform_device *pdev)
 	struct mtk_scp *scp;
 	struct rproc *rproc;
 	struct resource *res;
-	char *fw_name = "scp.img";
+	const char *fw_name = "scp.img";
 	int ret, i;
 
+	ret = rproc_of_parse_firmware(dev, 0, &fw_name);
+	if (ret < 0 && ret != -EINVAL)
+		return ret;
+
 	rproc = devm_rproc_alloc(dev, np->name, &scp_ops, fw_name, sizeof(*scp));
 	if (!rproc)
 		return dev_err_probe(dev, -ENOMEM, "unable to allocate remoteproc\n");
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
@ 2022-04-19 12:33   ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP firmware blob differs between platforms and SoCs. We add
support in the SCP driver for reading the path of firmware file from
DT in order to allow these files to live in a generic file system
(or linux-firmware).

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 drivers/remoteproc/mtk_scp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c
index 621174ea7fd6..47b2a40e1b4a 100644
--- a/drivers/remoteproc/mtk_scp.c
+++ b/drivers/remoteproc/mtk_scp.c
@@ -809,9 +809,13 @@ static int scp_probe(struct platform_device *pdev)
 	struct mtk_scp *scp;
 	struct rproc *rproc;
 	struct resource *res;
-	char *fw_name = "scp.img";
+	const char *fw_name = "scp.img";
 	int ret, i;
 
+	ret = rproc_of_parse_firmware(dev, 0, &fw_name);
+	if (ret < 0 && ret != -EINVAL)
+		return ret;
+
 	rproc = devm_rproc_alloc(dev, np->name, &scp_ops, fw_name, sizeof(*scp));
 	if (!rproc)
 		return dev_err_probe(dev, -ENOMEM, "unable to allocate remoteproc\n");
-- 
2.18.0


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
@ 2022-04-19 12:33   ` Allen-KH Cheng
  0 siblings, 0 replies; 24+ messages in thread
From: Allen-KH Cheng @ 2022-04-19 12:33 UTC (permalink / raw)
  To: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc,
	Allen-KH Cheng

The SCP firmware blob differs between platforms and SoCs. We add
support in the SCP driver for reading the path of firmware file from
DT in order to allow these files to live in a generic file system
(or linux-firmware).

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 drivers/remoteproc/mtk_scp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c
index 621174ea7fd6..47b2a40e1b4a 100644
--- a/drivers/remoteproc/mtk_scp.c
+++ b/drivers/remoteproc/mtk_scp.c
@@ -809,9 +809,13 @@ static int scp_probe(struct platform_device *pdev)
 	struct mtk_scp *scp;
 	struct rproc *rproc;
 	struct resource *res;
-	char *fw_name = "scp.img";
+	const char *fw_name = "scp.img";
 	int ret, i;
 
+	ret = rproc_of_parse_firmware(dev, 0, &fw_name);
+	if (ret < 0 && ret != -EINVAL)
+		return ret;
+
 	rproc = devm_rproc_alloc(dev, np->name, &scp_ops, fw_name, sizeof(*scp));
 	if (!rproc)
 		return dev_err_probe(dev, -ENOMEM, "unable to allocate remoteproc\n");
-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
  2022-04-19 12:33   ` Allen-KH Cheng
  (?)
@ 2022-04-21  6:23     ` Rex-BC Chen
  -1 siblings, 0 replies; 24+ messages in thread
From: Rex-BC Chen @ 2022-04-21  6:23 UTC (permalink / raw)
  To: Allen-KH Cheng, Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, 2022-04-19 at 20:33 +0800, Allen-KH Cheng wrote:
> The SCP firmware blob differs between platforms and SoCs. We add
> support in the SCP driver for reading the path of firmware file from
> DT in order to allow these files to live in a generic file system
> (or linux-firmware).
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> ---

Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
@ 2022-04-21  6:23     ` Rex-BC Chen
  0 siblings, 0 replies; 24+ messages in thread
From: Rex-BC Chen @ 2022-04-21  6:23 UTC (permalink / raw)
  To: Allen-KH Cheng, Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, 2022-04-19 at 20:33 +0800, Allen-KH Cheng wrote:
> The SCP firmware blob differs between platforms and SoCs. We add
> support in the SCP driver for reading the path of firmware file from
> DT in order to allow these files to live in a generic file system
> (or linux-firmware).
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> ---

Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
@ 2022-04-21  6:23     ` Rex-BC Chen
  0 siblings, 0 replies; 24+ messages in thread
From: Rex-BC Chen @ 2022-04-21  6:23 UTC (permalink / raw)
  To: Allen-KH Cheng, Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, 2022-04-19 at 20:33 +0800, Allen-KH Cheng wrote:
> The SCP firmware blob differs between platforms and SoCs. We add
> support in the SCP driver for reading the path of firmware file from
> DT in order to allow these files to live in a generic file system
> (or linux-firmware).
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> ---

Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
  2022-04-19 12:33   ` Allen-KH Cheng
  (?)
@ 2022-04-21 10:12     ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 24+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-04-21 10:12 UTC (permalink / raw)
  To: Allen-KH Cheng, Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

Il 19/04/22 14:33, Allen-KH Cheng ha scritto:
> The SCP firmware blob differs between platforms and SoCs. We add
> support in the SCP driver for reading the path of firmware file from
> DT in order to allow these files to live in a generic file system
> (or linux-firmware).
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
@ 2022-04-21 10:12     ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 24+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-04-21 10:12 UTC (permalink / raw)
  To: Allen-KH Cheng, Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

Il 19/04/22 14:33, Allen-KH Cheng ha scritto:
> The SCP firmware blob differs between platforms and SoCs. We add
> support in the SCP driver for reading the path of firmware file from
> DT in order to allow these files to live in a generic file system
> (or linux-firmware).
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT
@ 2022-04-21 10:12     ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 24+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-04-21 10:12 UTC (permalink / raw)
  To: Allen-KH Cheng, Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Matthias Brugger
  Cc: Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

Il 19/04/22 14:33, Allen-KH Cheng ha scritto:
> The SCP firmware blob differs between platforms and SoCs. We add
> support in the SCP driver for reading the path of firmware file from
> DT in order to allow these files to live in a generic file system
> (or linux-firmware).
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
  2022-04-19 12:33 ` Allen-KH Cheng
  (?)
@ 2022-04-21 16:21   ` Mathieu Poirier
  -1 siblings, 0 replies; 24+ messages in thread
From: Mathieu Poirier @ 2022-04-21 16:21 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Ohad Ben-Cohen, Bjorn Andersson, Rob Herring, Matthias Brugger,
	Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, Apr 19, 2022 at 08:33:29PM +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between platforms and SoCs. Add a new
> property "firmware-name" to allow the DT to specify the platform/board specific
> path to this firmware file.
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Base on remoteproc/linux.git, rproc-next (58b7c856519f)

I'm good with this patchset but I'll wait before applying to give Rob the time
to review it.

Thanks,
Mathieu

> 
> changes since v2:$
> - use rproc_of_parse_firmware instead of of_property_read_string
> changes since v1:
> - fix a misspelled word in commit title
> 
> Allen-KH Cheng (2):
>   dt-bindings: remoteproc: mediatek: add firmware-name property
>   remoteproc: mediatek: allow reading firmware-name from DT
> 
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  drivers/remoteproc/mtk_scp.c                              | 6 +++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> -- 
> 2.18.0
> 

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-21 16:21   ` Mathieu Poirier
  0 siblings, 0 replies; 24+ messages in thread
From: Mathieu Poirier @ 2022-04-21 16:21 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Ohad Ben-Cohen, Bjorn Andersson, Rob Herring, Matthias Brugger,
	Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, Apr 19, 2022 at 08:33:29PM +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between platforms and SoCs. Add a new
> property "firmware-name" to allow the DT to specify the platform/board specific
> path to this firmware file.
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Base on remoteproc/linux.git, rproc-next (58b7c856519f)

I'm good with this patchset but I'll wait before applying to give Rob the time
to review it.

Thanks,
Mathieu

> 
> changes since v2:$
> - use rproc_of_parse_firmware instead of of_property_read_string
> changes since v1:
> - fix a misspelled word in commit title
> 
> Allen-KH Cheng (2):
>   dt-bindings: remoteproc: mediatek: add firmware-name property
>   remoteproc: mediatek: allow reading firmware-name from DT
> 
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  drivers/remoteproc/mtk_scp.c                              | 6 +++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> -- 
> 2.18.0
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-21 16:21   ` Mathieu Poirier
  0 siblings, 0 replies; 24+ messages in thread
From: Mathieu Poirier @ 2022-04-21 16:21 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Ohad Ben-Cohen, Bjorn Andersson, Rob Herring, Matthias Brugger,
	Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, Apr 19, 2022 at 08:33:29PM +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between platforms and SoCs. Add a new
> property "firmware-name" to allow the DT to specify the platform/board specific
> path to this firmware file.
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Base on remoteproc/linux.git, rproc-next (58b7c856519f)

I'm good with this patchset but I'll wait before applying to give Rob the time
to review it.

Thanks,
Mathieu

> 
> changes since v2:$
> - use rproc_of_parse_firmware instead of of_property_read_string
> changes since v1:
> - fix a misspelled word in commit title
> 
> Allen-KH Cheng (2):
>   dt-bindings: remoteproc: mediatek: add firmware-name property
>   remoteproc: mediatek: allow reading firmware-name from DT
> 
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  drivers/remoteproc/mtk_scp.c                              | 6 +++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> -- 
> 2.18.0
> 

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property
  2022-04-19 12:33   ` Allen-KH Cheng
  (?)
@ 2022-04-26  0:28     ` Rob Herring
  -1 siblings, 0 replies; 24+ messages in thread
From: Rob Herring @ 2022-04-26  0:28 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Matthias Brugger, linux-remoteproc, Hsin-Yi Wang, Ohad Ben-Cohen,
	linux-arm-kernel, Bjorn Andersson,
	Project_Global_Chrome_Upstream_Group, linux-kernel, Rob Herring,
	devicetree, linux-mediatek, Mathieu Poirier

On Tue, 19 Apr 2022 20:33:30 +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between other platforms and SoCs.
> Add a new property "firmware-name" to allow the DT to specify the
> platform/board specific path to this firmware file.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property
@ 2022-04-26  0:28     ` Rob Herring
  0 siblings, 0 replies; 24+ messages in thread
From: Rob Herring @ 2022-04-26  0:28 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Matthias Brugger, linux-remoteproc, Hsin-Yi Wang, Ohad Ben-Cohen,
	linux-arm-kernel, Bjorn Andersson,
	Project_Global_Chrome_Upstream_Group, linux-kernel, Rob Herring,
	devicetree, linux-mediatek, Mathieu Poirier

On Tue, 19 Apr 2022 20:33:30 +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between other platforms and SoCs.
> Add a new property "firmware-name" to allow the DT to specify the
> platform/board specific path to this firmware file.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property
@ 2022-04-26  0:28     ` Rob Herring
  0 siblings, 0 replies; 24+ messages in thread
From: Rob Herring @ 2022-04-26  0:28 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Matthias Brugger, linux-remoteproc, Hsin-Yi Wang, Ohad Ben-Cohen,
	linux-arm-kernel, Bjorn Andersson,
	Project_Global_Chrome_Upstream_Group, linux-kernel, Rob Herring,
	devicetree, linux-mediatek, Mathieu Poirier

On Tue, 19 Apr 2022 20:33:30 +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between other platforms and SoCs.
> Add a new property "firmware-name" to allow the DT to specify the
> platform/board specific path to this firmware file.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
  2022-04-19 12:33 ` Allen-KH Cheng
  (?)
@ 2022-04-26 16:57   ` Mathieu Poirier
  -1 siblings, 0 replies; 24+ messages in thread
From: Mathieu Poirier @ 2022-04-26 16:57 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Ohad Ben-Cohen, Bjorn Andersson, Rob Herring, Matthias Brugger,
	Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, Apr 19, 2022 at 08:33:29PM +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between platforms and SoCs. Add a new
> property "firmware-name" to allow the DT to specify the platform/board specific
> path to this firmware file.
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Base on remoteproc/linux.git, rproc-next (58b7c856519f)
> 
> changes since v2:$
> - use rproc_of_parse_firmware instead of of_property_read_string
> changes since v1:
> - fix a misspelled word in commit title
> 
> Allen-KH Cheng (2):
>   dt-bindings: remoteproc: mediatek: add firmware-name property
>   remoteproc: mediatek: allow reading firmware-name from DT
> 
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  drivers/remoteproc/mtk_scp.c                              | 6 +++++-

I have applied this set.

Thanks,
Mathieu

>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> -- 
> 2.18.0
> 

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-26 16:57   ` Mathieu Poirier
  0 siblings, 0 replies; 24+ messages in thread
From: Mathieu Poirier @ 2022-04-26 16:57 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Ohad Ben-Cohen, Bjorn Andersson, Rob Herring, Matthias Brugger,
	Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, Apr 19, 2022 at 08:33:29PM +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between platforms and SoCs. Add a new
> property "firmware-name" to allow the DT to specify the platform/board specific
> path to this firmware file.
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Base on remoteproc/linux.git, rproc-next (58b7c856519f)
> 
> changes since v2:$
> - use rproc_of_parse_firmware instead of of_property_read_string
> changes since v1:
> - fix a misspelled word in commit title
> 
> Allen-KH Cheng (2):
>   dt-bindings: remoteproc: mediatek: add firmware-name property
>   remoteproc: mediatek: allow reading firmware-name from DT
> 
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  drivers/remoteproc/mtk_scp.c                              | 6 +++++-

I have applied this set.

Thanks,
Mathieu

>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> -- 
> 2.18.0
> 

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names
@ 2022-04-26 16:57   ` Mathieu Poirier
  0 siblings, 0 replies; 24+ messages in thread
From: Mathieu Poirier @ 2022-04-26 16:57 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Ohad Ben-Cohen, Bjorn Andersson, Rob Herring, Matthias Brugger,
	Hsin-Yi Wang, Project_Global_Chrome_Upstream_Group, linux-kernel,
	devicetree, linux-mediatek, linux-arm-kernel, linux-remoteproc

On Tue, Apr 19, 2022 at 08:33:29PM +0800, Allen-KH Cheng wrote:
> The SCP needs firmware which differs between platforms and SoCs. Add a new
> property "firmware-name" to allow the DT to specify the platform/board specific
> path to this firmware file.
> 
> The firmware-name property is optional and the code falls back to the
> old filename if the property isn't present.
> 
> Base on remoteproc/linux.git, rproc-next (58b7c856519f)
> 
> changes since v2:$
> - use rproc_of_parse_firmware instead of of_property_read_string
> changes since v1:
> - fix a misspelled word in commit title
> 
> Allen-KH Cheng (2):
>   dt-bindings: remoteproc: mediatek: add firmware-name property
>   remoteproc: mediatek: allow reading firmware-name from DT
> 
>  Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 7 +++++++
>  drivers/remoteproc/mtk_scp.c                              | 6 +++++-

I have applied this set.

Thanks,
Mathieu

>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> -- 
> 2.18.0
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2022-04-26 16:58 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 12:33 [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names Allen-KH Cheng
2022-04-19 12:33 ` Allen-KH Cheng
2022-04-19 12:33 ` Allen-KH Cheng
2022-04-19 12:33 ` [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: add firmware-name property Allen-KH Cheng
2022-04-19 12:33   ` Allen-KH Cheng
2022-04-19 12:33   ` Allen-KH Cheng
2022-04-26  0:28   ` Rob Herring
2022-04-26  0:28     ` Rob Herring
2022-04-26  0:28     ` Rob Herring
2022-04-19 12:33 ` [PATCH v3 2/2] remoteproc: mediatek: allow reading firmware-name from DT Allen-KH Cheng
2022-04-19 12:33   ` Allen-KH Cheng
2022-04-19 12:33   ` Allen-KH Cheng
2022-04-21  6:23   ` Rex-BC Chen
2022-04-21  6:23     ` Rex-BC Chen
2022-04-21  6:23     ` Rex-BC Chen
2022-04-21 10:12   ` AngeloGioacchino Del Regno
2022-04-21 10:12     ` AngeloGioacchino Del Regno
2022-04-21 10:12     ` AngeloGioacchino Del Regno
2022-04-21 16:21 ` [PATCH v3 0/2] remoteproc: mediatek: allow different SCP firmware names Mathieu Poirier
2022-04-21 16:21   ` Mathieu Poirier
2022-04-21 16:21   ` Mathieu Poirier
2022-04-26 16:57 ` Mathieu Poirier
2022-04-26 16:57   ` Mathieu Poirier
2022-04-26 16:57   ` Mathieu Poirier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.