Skip to content

Commit

Permalink
ARM: dts: Move virtgpio under the firmware node
Browse files Browse the repository at this point in the history
In the 6.6 kernel, devices that use the raspberrypi firmware driver
should be children of the firmware node.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell authored and popcornmix committed Jun 17, 2024
1 parent b374c5e commit 479f598
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 30 deletions.
18 changes: 7 additions & 11 deletions arch/arm/boot/dts/broadcom/bcm2709-rpi-cm2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,6 @@ i2c_csi_dsi0: &i2c0 {
};
};

&soc {
virtgpio: virtgpio {
compatible = "brcm,bcm2835-virtgpio";
gpio-controller;
#gpio-cells = <2>;
firmware = <&firmware>;
status = "okay";
};

};

&firmware {
expgpio: expgpio {
compatible = "raspberrypi,firmware-gpio";
Expand All @@ -150,6 +139,13 @@ i2c_csi_dsi0: &i2c0 {
"NC";
status = "okay";
};

virtgpio: virtgpio {
compatible = "brcm,bcm2835-virtgpio";
gpio-controller;
#gpio-cells = <2>;
status = "okay";
};
};

&spi0 {
Expand Down
18 changes: 7 additions & 11 deletions arch/arm/boot/dts/broadcom/bcm2710-rpi-cm3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,6 @@ i2c_csi_dsi0: &i2c0 {
};
};

&soc {
virtgpio: virtgpio {
compatible = "brcm,bcm2835-virtgpio";
gpio-controller;
#gpio-cells = <2>;
firmware = <&firmware>;
status = "okay";
};

};

&firmware {
expgpio: expgpio {
compatible = "raspberrypi,firmware-gpio";
Expand All @@ -150,6 +139,13 @@ i2c_csi_dsi0: &i2c0 {
"NC";
status = "okay";
};

virtgpio: virtgpio {
compatible = "brcm,bcm2835-virtgpio";
gpio-controller;
#gpio-cells = <2>;
status = "okay";
};
};

&spi0 {
Expand Down
17 changes: 9 additions & 8 deletions arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,6 @@
soc {
/delete-node/ pixelvalve@7e807000;
/delete-node/ hdmi@7e902000;

virtgpio: virtgpio {
compatible = "brcm,bcm2835-virtgpio";
gpio-controller;
#gpio-cells = <2>;
firmware = <&firmware>;
status = "okay";
};
};
};

Expand All @@ -169,6 +161,15 @@
/delete-node/ wifi-pwrseq;
};

&firmware {
virtgpio: virtgpio {
compatible = "brcm,bcm2835-virtgpio";
gpio-controller;
#gpio-cells = <2>;
status = "okay";
};
};

&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;
Expand Down

0 comments on commit 479f598

Please sign in to comment.