powerpc/85xx: add ngPIXIS FPGA device tree node to the P1022DS board
PATCH 1/2 powerpc/85xx: add ngPIXIS FPGA device tree node to the P1022DS board
The device tree for Freescale's P1022DS reference board is missing the node for the ngPIXIS FPGA.
--- arch/powerpc/boot/dts/p1022ds.dts | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/p1022ds.dts +9 -0
@@ -148,6 +148,15 @@ label = "reserved-nand"; }; }; + + board-control@3,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "fsl,fpga-pixis"; + reg = <3 0 0x30>; + interrupt-parent = <&mpic>; + interrupts = <8 8>; + }; }; soc@fffe00000 {
Signature · 1 line
1.7.2.2
PATCH 2/2 powerpc/85xx: add DIU support to the Freecale P1022DS reference board
The Freescale P1022DS has an on-chip video controller called the DIU, and a driver for this device already exists. Update the platform file for the P1022DS reference board to enable the driver, and update the defconfig for Freescale MPC85xx boards to add the driver.
---
The following patch is a pre-requisite for this patch:
powerpc/85xx: add ngPIXIS FPGA device tree node to the P1022DS board
arch/powerpc/configs/mpc85xx_defconfig | 3 + arch/powerpc/configs/mpc85xx_smp_defconfig | 3 + arch/powerpc/platforms/85xx/p1022_ds.c | 213 +++++++++++++++++++++++++++- 3 files changed, 217 insertions(+), 2 deletions(-)
arch/powerpc/configs/mpc85xx_defconfig +3 -0
@@ -124,6 +124,9 @@ CONFIG_I2C_CPM=m CONFIG_I2C_MPC=y # CONFIG_HWMON is not set CONFIG_VIDEO_OUTPUT_CONTROL=y +CONFIG_FB=y +CONFIG_FB_FSL_DIU=y +# CONFIG_VGA_CONSOLE is not set CONFIG_SOUND=y CONFIG_SND=y # CONFIG_SND_SUPPORT_OLD_API is not set
arch/powerpc/configs/mpc85xx_smp_defconfig +3 -0
@@ -126,6 +126,9 @@ CONFIG_I2C_CPM=m CONFIG_I2C_MPC=y # CONFIG_HWMON is not set CONFIG_VIDEO_OUTPUT_CONTROL=y +CONFIG_FB=y +CONFIG_FB_FSL_DIU=y +# CONFIG_VGA_CONSOLE is not set CONFIG_SOUND=y CONFIG_SND=y # CONFIG_SND_SUPPORT_OLD_API is not set
arch/powerpc/platforms/85xx/p1022_ds.c +211 -2
239 lines not on this page · raw message
Signature · 1 line
1.7.2.2
Re: [PATCH 2/2] powerpc/85xx: add DIU support to the Freecale P1022DS reference board
arch/powerpc/platforms/85xx/p1022_ds.c line 141
Quoted 11 lines · Timur Tabi
arch/powerpc/platforms/85xx/p1022_ds.c +11
-0+static void p1022ds_set_monitor_port (int monitor_port) +{ +struct device_node *pixis_node; +u8 __iomem *brdcfg1; + + pixis_node =of_find_compatible_node (NULL ,NULL ,"fsl,fpga-pixis" ); +if (!pixis_node) { +pr_err ("p1022ds: missing ngPIXIS node\n" ); +return ; + } +
update based on change to compatible in .dts
- k
Quoted 1 line · Timur Tabi
The device tree for Freescale's P1022DS reference board is missing the =
node
=
Quoted 8 lines
for the ngPIXIS FPGA.
=20Signed-off-by Timur Tabi <[email protected]>---
arch/powerpc/boot/dts/p1022ds.dts| 9 +++++++++1 files changed, 9 insertions(+), 0 deletions(-)=20
= renamed from arch/powerpc/boot/dts/p1022ds.dts +0
-0
b/arch/powerpc/boot/dts/p1022ds.dts
arch/powerpc/boot/dts/p1022ds.dts line 154
Quoted 11 lines
index 8bcb10b..e61b42d 100644
arch/powerpc/boot/dts/p1022ds.dts +4
-0@@ -148,6 +148,15 @@ label =3D "reserved-nand"; }; }; + + board-control@3,0 { + #address-cells =3D <1>; + #size-cells =3D <1>;
these aren't need if we don't have a child node.
arch/powerpc/boot/dts/p1022ds.dts line 155
Quoted 1 line
arch/powerpc/boot/dts/p1022ds.dts +1
-0+ compatible =3D "fsl,fpga-pixis";
lets make this "fsl,p1022ds-pixis"
arch/powerpc/boot/dts/p1022ds.dts line 158
Quoted 3 lines
arch/powerpc/boot/dts/p1022ds.dts +3
-0+ reg =3D <3 0 0x30>; + interrupt-parent =3D <&mpic>; + interrupts =3D <8 8>;
what do we think about adding a comment about what this interrupt is for
Quoted 12 lines
arch/powerpc/boot/dts/p1022ds.dts +1
-0+ }; };=20
soc@fffe00000 {--=20
1.7.2.2
=20
=20
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev