powerpc: Update Warp to use leds-gpio driver
Now that leds-gpio is a proper OF platform driver, the Warp can use the leds-gpio driver rather than the old out-of-kernel driver. One side-effect is the leds-gpio driver always turns the leds off while the old driver left them alone. So we have to set them back to the correct settings. Signed-off-by: Sean MacLennan <smaclennan@pikatech.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
54c181935d
commit
805e324b7f
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Device Tree Source for PIKA Warp
|
||||
*
|
||||
* Copyright (c) 2008 PIKA Technologies
|
||||
* Copyright (c) 2008-2009 PIKA Technologies
|
||||
* Sean MacLennan <smaclennan@pikatech.com>
|
||||
*
|
||||
* This file is licensed under the terms of the GNU General Public
|
||||
@ -158,7 +158,7 @@
|
||||
|
||||
partition@0 {
|
||||
label = "splash";
|
||||
reg = <0x00000000 0x00020000>;
|
||||
reg = <0x00000000 0x00010000>;
|
||||
};
|
||||
partition@300000 {
|
||||
label = "fpga";
|
||||
@ -244,28 +244,27 @@
|
||||
};
|
||||
|
||||
GPIO0: gpio@ef600b00 {
|
||||
compatible = "ibm,gpio-440ep";
|
||||
compatible = "ibm,ppc4xx-gpio";
|
||||
reg = <0xef600b00 0x00000048>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
|
||||
GPIO1: gpio@ef600c00 {
|
||||
compatible = "ibm,gpio-440ep";
|
||||
compatible = "ibm,ppc4xx-gpio";
|
||||
reg = <0xef600c00 0x00000048>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
|
||||
led@31 {
|
||||
compatible = "linux,gpio-led";
|
||||
linux,name = ":green:";
|
||||
gpios = <&GPIO1 31 0>;
|
||||
};
|
||||
|
||||
led@30 {
|
||||
compatible = "linux,gpio-led";
|
||||
linux,name = ":red:";
|
||||
gpios = <&GPIO1 30 0>;
|
||||
power-leds {
|
||||
compatible = "gpio-leds";
|
||||
green {
|
||||
gpios = <&GPIO1 0 0>;
|
||||
default-state = "on";
|
||||
};
|
||||
red {
|
||||
gpios = <&GPIO1 1 0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user