mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
ae67f5ffae
This commit removes the target-specific diag.sh script. This way, the generic one is used for the target, which uses DT-aliases to specify the LEDs used. Generic diag.sh allow to use different LEDs to indicate different states. Non-red status LEDs for indicating boot and a running system. Where possible, the red or orange LEDs are used to indicate failsafe mode and a running upgrade. Compile-tested: all target devices. Run-tested: CheckPoint L-50 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> [remove unrelated cosmetic changes, rename some labels, add pogo_e02] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
176 lines
3.3 KiB
Diff
176 lines
3.3 KiB
Diff
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/kirkwood-on100.dts
|
|
@@ -0,0 +1,162 @@
|
|
+/dts-v1/;
|
|
+
|
|
+#include "kirkwood.dtsi"
|
|
+#include "kirkwood-6282.dtsi"
|
|
+
|
|
+/ {
|
|
+ model = "Cisco Systems ON100";
|
|
+ compatible = "cisco,on100", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
|
+
|
|
+ memory@0 {
|
|
+ device_type = "memory";
|
|
+ reg = <0x00000000 0x20000000>;
|
|
+ };
|
|
+
|
|
+ aliases {
|
|
+ led-boot = &led_health_green;
|
|
+ led-failsafe = &led_health_red;
|
|
+ led-running = &led_health_green;
|
|
+ led-upgrade = &led_health_red;
|
|
+ serial0 = &uart0;
|
|
+ };
|
|
+
|
|
+ chosen {
|
|
+ bootargs = "console=ttyS0,115200n8 earlyprintk";
|
|
+ stdout-path = "serial0:115200n8";
|
|
+ };
|
|
+
|
|
+ gpio_keys {
|
|
+ compatible = "gpio-keys";
|
|
+ pinctrl-0 = <&pmx_btn_reset>;
|
|
+ pinctrl-names = "default";
|
|
+
|
|
+ reset {
|
|
+ label = "Reset Button";
|
|
+ linux,code = <KEY_RESTART>;
|
|
+ gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ gpio-leds {
|
|
+ compatible = "gpio-leds";
|
|
+ pinctrl-0 = < &pmx_led_health_r &pmx_led_health_g >;
|
|
+ pinctrl-names = "default";
|
|
+
|
|
+ led_health_green: health_green {
|
|
+ label = "on100:green:health";
|
|
+ gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ led_health_red: health_red {
|
|
+ label = "on100:red:health";
|
|
+ gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ health2_green {
|
|
+ label = "on100:green:health2";
|
|
+ gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ health2_red {
|
|
+ label = "on100:red:health2";
|
|
+ gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+ð0 {
|
|
+ status = "okay";
|
|
+
|
|
+ ethernet0-port@0 {
|
|
+ phy-handle = <ðphy0>;
|
|
+ phy-connection-type = "rgmii-id";
|
|
+ };
|
|
+};
|
|
+
|
|
+ð1 {
|
|
+ status = "okay";
|
|
+
|
|
+ ethernet1-port@0 {
|
|
+ phy-handle = <ðphy1>;
|
|
+ phy-connection-type = "rgmii-id";
|
|
+ };
|
|
+};
|
|
+
|
|
+&mdio {
|
|
+ status = "okay";
|
|
+
|
|
+ ethphy0: ethernet-phy@0 {
|
|
+ /* Marvell 88E1121R */
|
|
+ compatible = "ethernet-phy-id0141.0cb0",
|
|
+ "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <0>;
|
|
+ };
|
|
+
|
|
+ ethphy1: ethernet-phy@1 {
|
|
+ /* Marvell 88E1121R */
|
|
+ compatible = "ethernet-phy-id0141.0cb0",
|
|
+ "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <1>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&nand {
|
|
+ status = "okay";
|
|
+
|
|
+ partition@0 {
|
|
+ label = "u-boot";
|
|
+ reg = <0x00000000 0x000a0000>;
|
|
+ read-only;
|
|
+ };
|
|
+
|
|
+ partition@a0000 {
|
|
+ label = "u-boot environment";
|
|
+ reg = <0x000a0000 0x00020000>;
|
|
+ read-only;
|
|
+ };
|
|
+
|
|
+ partition@c0000 {
|
|
+ label = "kernel";
|
|
+ reg = <0x000c0000 0x00540000>;
|
|
+ };
|
|
+
|
|
+ partition@600000 {
|
|
+ label = "ubi";
|
|
+ reg = <0x00600000 0x1fa00000>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&pinctrl {
|
|
+ pmx_led_health_r: pmx-led-health-r {
|
|
+ marvell,pins = "mpp45";
|
|
+ marvell,function = "gpio";
|
|
+ };
|
|
+
|
|
+ pmx_led_health_g: pmx-led-health-g {
|
|
+ marvell,pins = "mpp44";
|
|
+ marvell,function = "gpio";
|
|
+ };
|
|
+
|
|
+ pmx_led_health2_r: pmx-led-health2-r {
|
|
+ marvell,pins = "mpp47";
|
|
+ marvell,function = "gpio";
|
|
+ };
|
|
+
|
|
+ pmx_led_health2_g: pmx-led-health2-g {
|
|
+ marvell,pins = "mpp46";
|
|
+ marvell,function = "gpio";
|
|
+ };
|
|
+
|
|
+ pmx_btn_reset: pmx-led-reset {
|
|
+ marvell,pins = "mpp31";
|
|
+ marvell,function = "gpio";
|
|
+ };
|
|
+};
|
|
+
|
|
+&sdio {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&uart0 {
|
|
+ status = "okay";
|
|
+};
|
|
--- a/arch/arm/boot/dts/Makefile
|
|
+++ b/arch/arm/boot/dts/Makefile
|
|
@@ -290,6 +290,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
|
|
kirkwood-nsa310b.dtb \
|
|
kirkwood-nsa320.dtb \
|
|
kirkwood-nsa325.dtb \
|
|
+ kirkwood-on100.dtb \
|
|
kirkwood-openblocks_a6.dtb \
|
|
kirkwood-openblocks_a7.dtb \
|
|
kirkwood-openrd-base.dtb \
|