From: Naresh Bhat naresh.bhat@linaro.org
The patch set will add ACPI probing for v2m_sysreg and allocate a LINA0006 platform ID. Also remove the defination under foundation-v8-acpi.dts file.
Naresh Bhat (3): v2m_sysreg: Add ACPI probing ACPI: Allocate platform ID for v2m_sysreg arm64: dts: Remove v2m_sysreg binding
arch/arm64/boot/dts/foundation-v8-acpi.dts | 6 +++++- drivers/acpi/acpi_platform.c | 1 + drivers/mfd/vexpress-sysreg.c | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-)
From: Naresh Bhat naresh.bhat@linaro.org
Add match table and pointers for ACPI probing into vexpress-sysreg driver.
Signed-off-by: Naresh Bhat naresh.bhat@linaro.org --- drivers/mfd/vexpress-sysreg.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c index 981bef4..134ad10 100644 --- a/drivers/mfd/vexpress-sysreg.c +++ b/drivers/mfd/vexpress-sysreg.c @@ -22,6 +22,9 @@ #include <linux/stat.h> #include <linux/timer.h> #include <linux/vexpress.h> +#ifdef CONFIG_ACPI +#include <linux/acpi.h> +#endif
#define SYS_ID 0x000 #define SYS_SW 0x004 @@ -507,6 +510,14 @@ static int vexpress_sysreg_probe(struct platform_device *pdev) return 0; }
+#ifdef CONFIG_ACPI +static const struct acpi_device_id vexpress_sysreg_acpi_match[] = { + { "LINA0006", }, + { } +}; +MODULE_DEVICE_TABLE(acpi, vexpress_sysreg_acpi_match); +#endif + static const struct of_device_id vexpress_sysreg_match[] = { { .compatible = "arm,vexpress-sysreg", }, {}, @@ -516,6 +527,7 @@ static struct platform_driver vexpress_sysreg_driver = { .driver = { .name = "vexpress-sysreg", .of_match_table = vexpress_sysreg_match, + .acpi_match_table = ACPI_PTR(vexpress_sysreg_acpi_match), }, .probe = vexpress_sysreg_probe, };
From: Naresh Bhat naresh.bhat@linaro.org
Allocate LINA0006 as platform ID for v2m_sysreg
Signed-off-by: Naresh Bhat naresh.bhat@linaro.org --- drivers/acpi/acpi_platform.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index c5eed01..1894df4 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c @@ -33,6 +33,7 @@ static const struct acpi_device_id acpi_platform_device_ids[] = { /* arm64 platform devices */ { "LINA0003" }, { "LINA0005" }, + { "LINA0006" },
{ } };
From: Naresh Bhat naresh.bhat@linaro.org
This binding has now been moved to DSDT so remove FDT.
Signed-off-by: Naresh Bhat naresh.bhat@linaro.org --- arch/arm64/boot/dts/foundation-v8-acpi.dts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/foundation-v8-acpi.dts b/arch/arm64/boot/dts/foundation-v8-acpi.dts index 2d9332c..cc608b4 100644 --- a/arch/arm64/boot/dts/foundation-v8-acpi.dts +++ b/arch/arm64/boot/dts/foundation-v8-acpi.dts @@ -186,11 +186,15 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0 3 0 0x200000>; - + + /* + * Removed for ACPI + * v2m_sysreg: sysreg@010000 { compatible = "arm,vexpress-sysreg"; reg = <0x010000 0x1000>; }; + */
v2m_serial0: uart@090000 { compatible = "arm,pl011", "arm,primecell";
Hi Naresh,
This does not look like it uses any form of bus implementation? Is this patch series a stop-gap to allow you to convert the bus architecture?
Also can you make sure that DTS and ASL changes are to both Foundation and RTSM models as LAVA currently only uses RTSM model to test.
Graeme
On Tue, Sep 10, 2013 at 08:47:59PM +0530, naresh.bhat@linaro.org wrote:
From: Naresh Bhat naresh.bhat@linaro.org
The patch set will add ACPI probing for v2m_sysreg and allocate a LINA0006 platform ID. Also remove the defination under foundation-v8-acpi.dts file.
Naresh Bhat (3): v2m_sysreg: Add ACPI probing ACPI: Allocate platform ID for v2m_sysreg arm64: dts: Remove v2m_sysreg binding
arch/arm64/boot/dts/foundation-v8-acpi.dts | 6 +++++- drivers/acpi/acpi_platform.c | 1 + drivers/mfd/vexpress-sysreg.c | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-)
-- 1.7.9.5
Linaro-acpi mailing list Linaro-acpi@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-acpi
Hi Graeme,
Yes, You are right. First it is required to do bus enumeration. Then the devices enumeration which are depend on that bus. I will re-work on it.
Thanks Naresh
On 10 September 2013 21:09, Graeme Gregory graeme.gregory@linaro.org wrote:
Hi Naresh,
This does not look like it uses any form of bus implementation? Is this patch series a stop-gap to allow you to convert the bus architecture?
Also can you make sure that DTS and ASL changes are to both Foundation and RTSM models as LAVA currently only uses RTSM model to test.
Graeme
On Tue, Sep 10, 2013 at 08:47:59PM +0530, naresh.bhat@linaro.org wrote:
From: Naresh Bhat naresh.bhat@linaro.org
The patch set will add ACPI probing for v2m_sysreg and allocate a LINA0006 platform ID. Also remove the defination under foundation-v8-acpi.dts file.
Naresh Bhat (3): v2m_sysreg: Add ACPI probing ACPI: Allocate platform ID for v2m_sysreg arm64: dts: Remove v2m_sysreg binding
arch/arm64/boot/dts/foundation-v8-acpi.dts | 6 +++++- drivers/acpi/acpi_platform.c | 1 + drivers/mfd/vexpress-sysreg.c | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-)
-- 1.7.9.5
Linaro-acpi mailing list Linaro-acpi@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-acpi