Fix below backtraces by adding unique name for each gpu nodes.
sysfs: cannot create duplicate filename '/bus/platform/devices/
2200000.gpu'
CPU: 0 PID: 1 Comm: swapper/0 Not tainted
4.19.17-03233-g8d8ad8d43f2c-dirty #3
Hardware name: Freescale i.MX6 SoloLite (Device Tree)
[<
80112890>] (unwind_backtrace) from [<
8010dc64>] (show_stack+0x10/0x14)
[<
8010dc64>] (show_stack) from [<
80b97fd4>] (dump_stack+0x88/0x9c)
[<
80b97fd4>] (dump_stack) from [<
802ecad4>] (sysfs_warn_dup+0x5c/0x68)
[<
802ecad4>] (sysfs_warn_dup) from [<
802ece60>] (sysfs_do_create_link_sd+0xc8/0xcc)
[<
802ece60>] (sysfs_do_create_link_sd) from [<
805d5db4>] (bus_add_device+0x78/0x130)
[<
805d5db4>] (bus_add_device) from [<
805d2a18>] (device_add+0x320/0x638)
[<
805d2a18>] (device_add) from [<
808b249c>] (of_platform_device_create_pdata+0x90/0xb8)
[<
808b249c>] (of_platform_device_create_pdata) from [<
808b2680>] (of_platform_bus_create+0x1b0/0x348)
[<
808b2680>] (of_platform_bus_create) from [<
808b26f0>] (of_platform_bus_create+0x220/0x348)
[<
808b26f0>] (of_platform_bus_create) from [<
808b29c4>] (of_platform_populate+0x80/0x108)
[<
808b29c4>] (of_platform_populate) from [<
8110c404>] (imx6sl_init_machine+0x30/0xd0)
[<
8110c404>] (imx6sl_init_machine) from [<
81103de8>] (customize_machine+0x20/0x30)
[<
81103de8>] (customize_machine) from [<
80102e9c>] (do_one_initcall+0x54/0x314)
[<
80102e9c>] (do_one_initcall) from [<
811011d8>] (kernel_init_freeable+0x360/0x3f0)
[<
811011d8>] (kernel_init_freeable) from [<
80bac9d8>] (kernel_init+0x8/0x114)
[<
80bac9d8>] (kernel_init) from [<
801010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xa80b5fb0 to 0xa80b5ff8)
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
status = "disabled";
};
- gpu: gpu@02200000 {
+ gpu: gpu@2200000 {
compatible = "fsl,imx6sl-gpu", "fsl,imx6q-gpu";
reg = <0x02200000 0x4000>, <0x02204000 0x4000>,
<0x80000000 0x0>, <0x0 0x8000000>;
};
};
- gpu_2d: gpu@2200000 {
+ gpu_2d: gpu2d@2200000 {
compatible = "vivante,gc";
reg = <0x02200000 0x4000>;
interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&pd_pu>;
};
- gpu_vg: gpu@2204000 {
+ gpu_vg: gpuvg@2204000 {
compatible = "vivante,gc";
reg = <0x02204000 0x4000>;
interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;