Skip to content

Commit

Permalink
powerpc/83xx: Add MCU LEDs support for MPC837xRDB and MPC8315RDB boards
Browse files Browse the repository at this point in the history
There are two front-panel LEDs on MPC837xRDB and MPC8315RDB boards: PWR
and HDD. After adding appropriate nodes we can program these LEDs from
kernel and user space.

Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed May 17, 2010
1 parent 0aedc00 commit 6971df4
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/powerpc/boot/dts/mpc8315erdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,18 @@
0 0x00800000>;
};
};

leds {
compatible = "gpio-leds";

pwr {
gpios = <&mcu_pio 0 0>;
default-state = "on";
};

hdd {
gpios = <&mcu_pio 1 0>;
linux,default-trigger = "ide-disk";
};
};
};
14 changes: 14 additions & 0 deletions arch/powerpc/boot/dts/mpc8377_rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -486,4 +486,18 @@
0 0x00800000>;
};
};

leds {
compatible = "gpio-leds";

pwr {
gpios = <&mcu_pio 0 0>;
default-state = "on";
};

hdd {
gpios = <&mcu_pio 1 0>;
linux,default-trigger = "ide-disk";
};
};
};
14 changes: 14 additions & 0 deletions arch/powerpc/boot/dts/mpc8378_rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -470,4 +470,18 @@
0 0x00800000>;
};
};

leds {
compatible = "gpio-leds";

pwr {
gpios = <&mcu_pio 0 0>;
default-state = "on";
};

hdd {
gpios = <&mcu_pio 1 0>;
linux,default-trigger = "ide-disk";
};
};
};
14 changes: 14 additions & 0 deletions arch/powerpc/boot/dts/mpc8379_rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -436,4 +436,18 @@
compatible = "fsl,mpc8349-pci";
device_type = "pci";
};

leds {
compatible = "gpio-leds";

pwr {
gpios = <&mcu_pio 0 0>;
default-state = "on";
};

hdd {
gpios = <&mcu_pio 1 0>;
linux,default-trigger = "ide-disk";
};
};
};
1 change: 1 addition & 0 deletions arch/powerpc/platforms/83xx/mpc831x_rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static int __init mpc831x_rdb_probe(void)
static struct of_device_id __initdata of_bus_ids[] = {
{ .compatible = "simple-bus" },
{ .compatible = "gianfar" },
{ .compatible = "gpio-leds", },
{},
};

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/platforms/83xx/mpc837x_rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ static struct of_device_id mpc837x_ids[] = {
{ .compatible = "soc", },
{ .compatible = "simple-bus", },
{ .compatible = "gianfar", },
{ .compatible = "gpio-leds", },
{},
};

Expand Down

0 comments on commit 6971df4

Please sign in to comment.