summaryrefslogtreecommitdiff
path: root/arch/mips/dts/luton_pcb091.dts
diff options
context:
space:
mode:
authorLars Povlsen <lars.povlsen@microsemi.com>2019-01-02 09:52:23 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-01-16 13:56:43 +0100
commit738f2b148d78098df959e89fa467d63a4e4358c5 (patch)
treee94d9f1fb88de1ef09d3e156649ca7a354e9a0dc /arch/mips/dts/luton_pcb091.dts
parent2a48c15d2e4d43d6fbac427d03ef73f41d8708ae (diff)
mips: luton: DT: Enable use of serial gpio
This enables the use of the MSCC serial GPIO driver, and add gpio-leds nodes to the 'luton' pcb090 and pcb091 DT. Signed-off-by: Lars Povlsen <lars.povlsen@microsemi.com>
Diffstat (limited to 'arch/mips/dts/luton_pcb091.dts')
-rw-r--r--arch/mips/dts/luton_pcb091.dts27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/mips/dts/luton_pcb091.dts b/arch/mips/dts/luton_pcb091.dts
index 74f9274c21..bf638b2bc7 100644
--- a/arch/mips/dts/luton_pcb091.dts
+++ b/arch/mips/dts/luton_pcb091.dts
@@ -18,6 +18,33 @@
chosen {
stdout-path = "serial0:115200n8";
};
+
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ top_dimmer {
+ label = "pcb091:top:dimmer";
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
+ status_green {
+ label = "pcb091:green:status";
+ gpios = <&sgpio 26 GPIO_ACTIVE_HIGH>; /* p26.0 */
+ default-state = "on";
+ };
+
+ status_red {
+ label = "pcb091:red:status";
+ gpios = <&sgpio 58 GPIO_ACTIVE_HIGH>; /* p26.1 */
+ default-state = "off";
+ };
+ };
+};
+
+&sgpio {
+ status = "okay";
+ mscc,sgpio-ports = <0xFFF000FF>;
};
&uart0 {