diff options
author | Lars Povlsen <lars.povlsen@microsemi.com> | 2019-01-02 09:52:25 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2019-01-16 13:56:43 +0100 |
commit | 26ad3c43a71ead28f5643101107c3c137d21caf1 (patch) | |
tree | 6cc6e605fb61427e4e6c257d5bceb94173397baa /arch/mips/dts/ocelot_pcb123.dts | |
parent | 711f2dc08d7a9ad4f036adc72fcc840d64c1fbb1 (diff) | |
download | u-boot-26ad3c43a71ead28f5643101107c3c137d21caf1.tar.gz |
mips: ocelot: DT: Enable use of serial gpio
This enables the use of the MSCC serial GPIO driver on the MSCC
VCoreIII 'ocelot' SOC, and add gpio-leds nodes to the pcb123 and
pcb120 DT.
Signed-off-by: Lars Povlsen <lars.povlsen@microsemi.com>
Diffstat (limited to 'arch/mips/dts/ocelot_pcb123.dts')
-rw-r--r-- | arch/mips/dts/ocelot_pcb123.dts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/mips/dts/ocelot_pcb123.dts b/arch/mips/dts/ocelot_pcb123.dts index 17d8d326ce..c4cb7a1194 100644 --- a/arch/mips/dts/ocelot_pcb123.dts +++ b/arch/mips/dts/ocelot_pcb123.dts @@ -9,4 +9,29 @@ / { model = "Ocelot PCB123 Reference Board"; compatible = "mscc,ocelot-pcb123", "mscc,ocelot"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + gpio-leds { + compatible = "gpio-leds"; + + status_green { + label = "pcb123:green:status"; + gpios = <&sgpio 43 1>; /* p11.1 */ + default-state = "on"; + }; + + status_red { + label = "pcb123:red:status"; + gpios = <&sgpio 11 1>; /* p11.0 */ + default-state = "off"; + }; + }; +}; + +&sgpio { + status = "okay"; + mscc,sgpio-ports = <0x00FFFFFF>; }; |