Linux-Devicetree Archive on lore.kernel.org
 help / color / Atom feed
* [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer
@ 2020-02-14 16:00 richard.gong
  2020-02-14 16:00 ` [PATCHv1 1/7] dt-bindings: fpga: add compatible value to Stratix10 SoC FPGA manager binding richard.gong
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Add a compatible property value so we can reuse Intel Stratix10 FPGA
manager and service layer drivers on Intel Agilex SoC platform. 

Richard Gong (7):
  dt-bindings: fpga: add compatible value to Stratix10 SoC FPGA manager
    binding
  arm64: dts: agilex: correct FPGA manager driver's compatible value
  fpga: stratix10-soc: add compatible property value for intel agilex
  dt-bindings, firmware: add compatible value Intel Stratix10 service
    layer binding
  arm64: dts: agilex: correct service layer driver's compatible value
  firmware: stratix10-svc: add the compatible value for intel agilex
  firmware: intel_stratix10_service: add depend on agilex

 Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt    | 2 +-
 .../devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt         | 3 ++-
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi                         | 4 ++--
 drivers/firmware/Kconfig                                              | 2 +-
 drivers/firmware/stratix10-svc.c                                      | 1 +
 drivers/fpga/stratix10-soc.c                                          | 3 ++-
 6 files changed, 9 insertions(+), 6 deletions(-)

-- 
2.7.4


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

* [PATCHv1 1/7] dt-bindings: fpga: add compatible value to Stratix10 SoC FPGA manager binding
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
@ 2020-02-14 16:00 ` richard.gong
  2020-02-14 16:00 ` [PATCHv1 2/7] arm64: dts: agilex: correct FPGA manager driver's compatible value richard.gong
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Add a compatible property value to Stratix10 SoC FPGA manager binding file

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 .../devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt b/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt
index 6e03f79..0f87413 100644
--- a/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt
+++ b/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt
@@ -4,7 +4,8 @@ Required properties:
 The fpga_mgr node has the following mandatory property, must be located under
 firmware/svc node.
 
-- compatible : should contain "intel,stratix10-soc-fpga-mgr"
+- compatible : should contain "intel,stratix10-soc-fpga-mgr" or
+	       "intel,agilex-soc-fpga-mgr"
 
 Example:
 
-- 
2.7.4


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

* [PATCHv1 2/7] arm64: dts: agilex: correct FPGA manager driver's compatible value
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
  2020-02-14 16:00 ` [PATCHv1 1/7] dt-bindings: fpga: add compatible value to Stratix10 SoC FPGA manager binding richard.gong
@ 2020-02-14 16:00 ` richard.gong
  2020-02-14 16:00 ` [PATCHv1 3/7] fpga: stratix10-soc: add compatible property value for intel agilex richard.gong
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Correct the compatible property value for FPGA manager driver on
Intel Agilex SoC platform.

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
index e1d357e..8c29853 100644
--- a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
+++ b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
@@ -544,7 +544,7 @@
 				memory-region = <&service_reserved>;
 
 				fpga_mgr: fpga-mgr {
-					compatible = "intel,stratix10-soc-fpga-mgr";
+					compatible = "intel,agilex-soc-fpga-mgr";
 				};
 			};
 		};
-- 
2.7.4


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

* [PATCHv1 3/7] fpga: stratix10-soc: add compatible property value for intel agilex
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
  2020-02-14 16:00 ` [PATCHv1 1/7] dt-bindings: fpga: add compatible value to Stratix10 SoC FPGA manager binding richard.gong
  2020-02-14 16:00 ` [PATCHv1 2/7] arm64: dts: agilex: correct FPGA manager driver's compatible value richard.gong
@ 2020-02-14 16:00 ` richard.gong
  2020-02-14 16:00 ` [PATCHv1 4/7] dt-bindings, firmware: add compatible value Intel Stratix10 service layer binding richard.gong
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Add compatible property value so we can reuse FPGA manager driver on
Intel Agilex SoC platform.

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 drivers/fpga/stratix10-soc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c
index 215d337..bac93d0 100644
--- a/drivers/fpga/stratix10-soc.c
+++ b/drivers/fpga/stratix10-soc.c
@@ -482,7 +482,8 @@ static int s10_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id s10_of_match[] = {
-	{ .compatible = "intel,stratix10-soc-fpga-mgr", },
+	{.compatible = "intel,stratix10-soc-fpga-mgr"},
+	{.compatible = "intel,agilex-soc-fpga-mgr"},
 	{},
 };
 
-- 
2.7.4


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

* [PATCHv1 4/7] dt-bindings, firmware: add compatible value Intel Stratix10 service layer binding
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
                   ` (2 preceding siblings ...)
  2020-02-14 16:00 ` [PATCHv1 3/7] fpga: stratix10-soc: add compatible property value for intel agilex richard.gong
@ 2020-02-14 16:00 ` richard.gong
  2020-02-14 16:00 ` [PATCHv1 5/7] arm64: dts: agilex: correct service layer driver's compatible value richard.gong
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

A a compatible property value to Intel Stratix10 service layer binding

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt b/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt
index 1fa6606..6eff1af 100644
--- a/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt
+++ b/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt
@@ -23,7 +23,7 @@ Required properties:
 The svc node has the following mandatory properties, must be located under
 the firmware node.
 
-- compatible: "intel,stratix10-svc"
+- compatible: "intel,stratix10-svc" or "intel,agilex-svc"
 - method: smc or hvc
         smc - Secure Monitor Call
         hvc - Hypervisor Call
-- 
2.7.4


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

* [PATCHv1 5/7] arm64: dts: agilex: correct service layer driver's compatible value
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
                   ` (3 preceding siblings ...)
  2020-02-14 16:00 ` [PATCHv1 4/7] dt-bindings, firmware: add compatible value Intel Stratix10 service layer binding richard.gong
@ 2020-02-14 16:00 ` richard.gong
  2020-02-14 16:00 ` [PATCHv1 6/7] firmware: stratix10-svc: add the compatible value for intel agilex richard.gong
  2020-02-14 16:00 ` [PATCHv1 7/7] firmware: intel_stratix10_service: add depend on agilex richard.gong
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Correct the compatible property value for Intel Service Layer driver
on Intel Agilex SoC platform.

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
index 8c29853..d48218c 100644
--- a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
+++ b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
@@ -539,7 +539,7 @@
 
 		firmware {
 			svc {
-				compatible = "intel,stratix10-svc";
+				compatible = "intel,agilex-svc";
 				method = "smc";
 				memory-region = <&service_reserved>;
 
-- 
2.7.4


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

* [PATCHv1 6/7] firmware: stratix10-svc: add the compatible value for intel agilex
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
                   ` (4 preceding siblings ...)
  2020-02-14 16:00 ` [PATCHv1 5/7] arm64: dts: agilex: correct service layer driver's compatible value richard.gong
@ 2020-02-14 16:00 ` richard.gong
  2020-02-14 16:00 ` [PATCHv1 7/7] firmware: intel_stratix10_service: add depend on agilex richard.gong
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Add the compatible property value so we can reuse Intel Stratix10
Service Layer driver on Intel Agilex SoC platform.

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 drivers/firmware/stratix10-svc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/stratix10-svc.c b/drivers/firmware/stratix10-svc.c
index 7ffb42b..d5f0769 100644
--- a/drivers/firmware/stratix10-svc.c
+++ b/drivers/firmware/stratix10-svc.c
@@ -966,6 +966,7 @@ EXPORT_SYMBOL_GPL(stratix10_svc_free_memory);
 
 static const struct of_device_id stratix10_svc_drv_match[] = {
 	{.compatible = "intel,stratix10-svc"},
+	{.compatible = "intel,agilex-svc"},
 	{},
 };
 
-- 
2.7.4


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

* [PATCHv1 7/7] firmware: intel_stratix10_service: add depend on agilex
  2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
                   ` (5 preceding siblings ...)
  2020-02-14 16:00 ` [PATCHv1 6/7] firmware: stratix10-svc: add the compatible value for intel agilex richard.gong
@ 2020-02-14 16:00 ` richard.gong
  6 siblings, 0 replies; 8+ messages in thread
From: richard.gong @ 2020-02-14 16:00 UTC (permalink / raw)
  To: gregkh, mdf, robh+dt, mark.rutland, dinguyen
  Cc: linux-fpga, devicetree, linux-kernel, richard.gong, Richard Gong

From: Richard Gong <richard.gong@intel.com>

Add depend on Agilex for Intel Agilex SoC platform.

Signed-off-by: Richard Gong <richard.gong@intel.com>
---
 drivers/firmware/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index ea869ad..8007d4a 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -206,7 +206,7 @@ config FW_CFG_SYSFS_CMDLINE
 
 config INTEL_STRATIX10_SERVICE
 	tristate "Intel Stratix10 Service Layer"
-	depends on ARCH_STRATIX10 && HAVE_ARM_SMCCC
+	depends on (ARCH_STRATIX10 || ARCH_AGILEX) && HAVE_ARM_SMCCC
 	default n
 	help
 	  Intel Stratix10 service layer runs at privileged exception level,
-- 
2.7.4


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

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-14 16:00 [PATCHv1 0/7] Add compatible value to Intel Stratix10 FPGA manager and service layer richard.gong
2020-02-14 16:00 ` [PATCHv1 1/7] dt-bindings: fpga: add compatible value to Stratix10 SoC FPGA manager binding richard.gong
2020-02-14 16:00 ` [PATCHv1 2/7] arm64: dts: agilex: correct FPGA manager driver's compatible value richard.gong
2020-02-14 16:00 ` [PATCHv1 3/7] fpga: stratix10-soc: add compatible property value for intel agilex richard.gong
2020-02-14 16:00 ` [PATCHv1 4/7] dt-bindings, firmware: add compatible value Intel Stratix10 service layer binding richard.gong
2020-02-14 16:00 ` [PATCHv1 5/7] arm64: dts: agilex: correct service layer driver's compatible value richard.gong
2020-02-14 16:00 ` [PATCHv1 6/7] firmware: stratix10-svc: add the compatible value for intel agilex richard.gong
2020-02-14 16:00 ` [PATCHv1 7/7] firmware: intel_stratix10_service: add depend on agilex richard.gong

Linux-Devicetree Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-devicetree/0 linux-devicetree/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-devicetree linux-devicetree/ https://lore.kernel.org/linux-devicetree \
		devicetree@vger.kernel.org
	public-inbox-index linux-devicetree

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-devicetree


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git