Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6971df4f authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Kumar Gala
Browse files

powerpc/83xx: Add MCU LEDs support for MPC837xRDB and MPC8315RDB boards



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: default avatarAnton Vorontsov <avorontsov@mvista.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 0aedc008
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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", },
	{},
};

Loading