Skip to content

Commit

Permalink
BCM270x_DT: Add bcm2708-fb device
Browse files Browse the repository at this point in the history
Add bcm2708-fb to Device Tree and don't add the
platform device when booting in DT mode.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
  • Loading branch information
notro committed May 18, 2015
1 parent 8e4daae commit 61021b5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
Expand Up @@ -49,6 +49,10 @@
bus-width = <4>;
};

&fb {
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/bcm2708-rpi-b.dts
Expand Up @@ -49,6 +49,10 @@
bus-width = <4>;
};

&fb {
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2708_common.dtsi
Expand Up @@ -109,6 +109,11 @@
leds: leds {
compatible = "gpio-leds";
};

fb: fb {
compatible = "brcm,bcm2708-fb";
status = "disabled";
};
};

clocks {
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/bcm2709-rpi-2-b.dts
Expand Up @@ -49,6 +49,10 @@
bus-width = <4>;
};

&fb {
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-bcm2708/bcm2708.c
Expand Up @@ -928,7 +928,7 @@ void __init bcm2708_init(void)
bcm_register_device_dt(&w1_device);
#endif
bcm_register_device(&bcm2708_systemtimer_device);
bcm_register_device(&bcm2708_fb_device);
bcm_register_device_dt(&bcm2708_fb_device);
bcm_register_device(&bcm2708_usb_device);
bcm_register_device(&bcm2708_uart1_device);
bcm_register_device(&bcm2708_powerman_device);
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-bcm2709/bcm2709.c
Expand Up @@ -951,7 +951,7 @@ void __init bcm2709_init(void)
#ifdef SYSTEM_TIMER
bcm_register_device(&bcm2708_systemtimer_device);
#endif
bcm_register_device(&bcm2708_fb_device);
bcm_register_device_dt(&bcm2708_fb_device);
bcm_register_device(&bcm2708_usb_device);
bcm_register_device(&bcm2708_uart1_device);
bcm_register_device(&bcm2708_powerman_device);
Expand Down

0 comments on commit 61021b5

Please sign in to comment.