[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/10] hw/arm/virt: Fix devicetree warnings about the GPIO node
From: |
Jean-Philippe Brucker |
Subject: |
[PATCH 08/10] hw/arm/virt: Fix devicetree warnings about the GPIO node |
Date: |
Wed, 24 Aug 2022 16:51:12 +0100 |
The GPIO devicetree node is missing "interrupt-controller" and
"#interrupt-cells" properties:
pl061@9030000: 'interrupt-controller' is a required property
From schema: linux/Documentation/devicetree/bindings/gpio/pl061-gpio.yaml
pl061@9030000: '#interrupt-cells' is a required property
From schema: linux/Documentation/devicetree/bindings/gpio/pl061-gpio.yaml
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
---
hw/arm/virt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 952af37935..779eb5ea31 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1012,6 +1012,8 @@ static void create_gpio_devices(const VirtMachineState
*vms, int gpio,
qemu_fdt_setprop_cell(ms->fdt, nodename, "clocks", vms->clock_phandle);
qemu_fdt_setprop_string(ms->fdt, nodename, "clock-names", "apb_pclk");
qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", phandle);
+ qemu_fdt_setprop_cell(ms->fdt, nodename, "#interrupt-cells", 2);
+ qemu_fdt_setprop(ms->fdt, nodename, "interrupt-controller", NULL, 0);
if (gpio != VIRT_GPIO) {
/* Mark as not usable by the normal world */
--
2.37.1
- [PATCH 07/10] hw/arm/virt: Fix devicetree warnings about node names, (continued)
- [PATCH 07/10] hw/arm/virt: Fix devicetree warnings about node names, Jean-Philippe Brucker, 2022/08/24
- [PATCH 03/10] hw/arm/virt: Fix devicetree warnings about the GIC node, Jean-Philippe Brucker, 2022/08/24
- [PATCH 04/10] hw/arm/virt: Use "msi-map" devicetree property for PCI, Jean-Philippe Brucker, 2022/08/24
- [PATCH 05/10] hw/arm/virt: Fix devicetree warning about the timer node, Jean-Philippe Brucker, 2022/08/24
- [PATCH 10/10] hw/arm/virt: Fix devicetree warnings about the virtio-iommu node, Jean-Philippe Brucker, 2022/08/24
- [PATCH 09/10] hw/arm/virt: Fix devicetree warnings about the SMMU node, Jean-Philippe Brucker, 2022/08/24
- [PATCH 08/10] hw/arm/virt: Fix devicetree warnings about the GPIO node,
Jean-Philippe Brucker <=