Darren Stevens wrote:Hello Christoph
Finally got to compile a working version from this, not sure what was wrong with my previous builds...
I've tested on my X5000, all working good so far, in fact my Soundblaster live sound card seem to like the changes and works without patching the kernel. (Nice)
Not sure when I'll get chance to test on X1000 though.
Regards
Darren
Darren Stevens wrote:Hello Christoph
Update: I found the following in my dmesg, think it points to an of-by-one error in the pfn selection:
Feb 9 19:47:00 Cyrus kernel: [ 0.000000] Top of RAM: 0x200000000, Total RAM: 0x200000000
Feb 9 19:47:00 Cyrus kernel: [ 0.000000] Memory hole size: 0MB
Feb 9 19:47:00 Cyrus kernel: [ 0.000000] Zone ranges:
Feb 9 19:47:00 Cyrus kernel: [ 0.000000] DMA [mem 0x0000000000000000-0x000000007fffefff]
Feb 9 19:47:00 Cyrus kernel: [ 0.000000] Normal [mem 0x000000007ffff000-0x00000001ffffffff]
I had a quick look but couldn't see where though.
Regards
Darren
Darren Stevens wrote:The Cyrus board from Varisys has power-off and reset functions attached
to gpio pins. Add the required device-tree bindings.
Signed-off-by: Darren Stevens <darren@stevens-zone.net>
- Code: Select all
diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
index c603390..15e8440 100644
--- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
+++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
@@ -71,6 +71,17 @@
reg = <0x6f>;
};
};
+
+ gpio-poweroff {
+ compatible = "gpio-poweroff";
+ gpios = <&gpio0 3 1>;
+ };
+
+ gpio-restart {
+ compatible = "gpio-restart";
+ gpios = <&gpio0 2 1>;
+ };
+
};
rio: rapidio@ffe0c0000 {
Darren Stevens wrote:The disk activity LED on the Cyrus board is attached to a gpio pin,
add the required device-tree node for the kernel driver to use.
Signed-off-by: Darren Stevens <darren@stevens-zone.net>
- Code: Select all
diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
index 15e8440..348cfdb 100644
--- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
+++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
@@ -82,6 +82,15 @@
gpios = <&gpio0 2 1>;
};
+ leds {
+ compatible = "gpio-leds";
+
+ hdd {
+ label = "Disk Activity";
+ gpios = <&gpio0 5 0>;
+ linux,default-trigger = "disk-activity";
+ };
+ };
};
rio: rapidio@ffe0c0000 {
Link to the thread: use generic DMA mapping code in powerpc V4