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

Commit 05f5507f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Ralf Baechle
Browse files

MIPS: OCTEON: add GPIO LED support for DSR-1000N



DSR-1000N board has two GPIO LEDs next to USB ports. Add support for them.

[ralf@linux-mips.org: Resolved conflict due to the moving of the DTS files
into vendor subdirectories.]

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9624/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f8fd30eb
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -587,4 +587,16 @@
		usbn = &usbn;
		usbn = &usbn;
		led0 = &led0;
		led0 = &led0;
	};
	};

	dsr1000n-leds {
		compatible = "gpio-leds";
		usb1 {
			label = "usb1";
			gpios = <&gpio 9 1>; /* Active low */
		};
		usb2 {
			label = "usb2";
			gpios = <&gpio 10 1>; /* Active low */
		};
	};
 };
 };
+7 −0
Original line number Original line Diff line number Diff line
@@ -958,6 +958,13 @@ int __init octeon_prune_device_tree(void)
		}
		}
	}
	}


	if (octeon_bootinfo->board_type != CVMX_BOARD_TYPE_CUST_DSR1000N) {
		int dsr1000n_leds = fdt_path_offset(initial_boot_params,
						    "/dsr1000n-leds");
		if (dsr1000n_leds >= 0)
			fdt_nop_node(initial_boot_params, dsr1000n_leds);
	}

	return 0;
	return 0;
}
}