# CONFIG_32BIT is not set CONFIG_64BIT=y # CONFIG_AR7 is not set # CONFIG_ARCH_HAS_ILOG2_U32 is not set # CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_ARCH_POPULATES_NODE_MAP=y # CONFIG_ARCH_SUPPORTS_MSI is not set CONFIG_ARCH_SUPPORTS_OPROFILE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y # CONFIG_ARPD is not set # CONFIG_BCM47XX is not set # CONFIG_BCM63XX is not set # CONFIG_BINARY_PRINTF is not set CONFIG_BINFMT_ELF32=y CONFIG_BITREVERSE=y CONFIG_BLOCK_COMPAT=y CONFIG_BOOT_ELF32=y CONFIG_BROADCOM_PHY=y # CONFIG_BSD_PROCESS_ACCT is not set # CONFIG_CAVIUM_OCTEON_REFERENCE_BOARD is not set # CONFIG_CAVIUM_OCTEON_SIMULATOR is not set CONFIG_CEVT_SB1250=y CONFIG_CFE=y CONFIG_CMDLINE="rootfstype=squashfs,jffs2 noinitrd console=duart0,115200" CONFIG_COMPAT=y # CONFIG_COMPUTONE is not set CONFIG_CONNECTOR=m CONFIG_CPU_BIG_ENDIAN=y # CONFIG_CPU_CAVIUM_OCTEON is not set CONFIG_CPU_HAS_LLSC=y CONFIG_CPU_HAS_PREFETCH=y CONFIG_CPU_HAS_SYNC=y # CONFIG_CPU_LITTLE_ENDIAN is not set # CONFIG_CPU_LOONGSON2 is not set # CONFIG_CPU_MIPS32_R1 is not set # CONFIG_CPU_MIPS32_R2 is not set # CONFIG_CPU_MIPS64_R1 is not set # CONFIG_CPU_MIPS64_R2 is not set # CONFIG_CPU_NEVADA is not set # CONFIG_CPU_R10000 is not set # CONFIG_CPU_R3000 is not set # CONFIG_CPU_R4300 is not set # CONFIG_CPU_R4X00 is not set # CONFIG_CPU_R5000 is not set # CONFIG_CPU_R5432 is not set # CONFIG_CPU_R5500 is not set # CONFIG_CPU_R6000 is not set # CONFIG_CPU_R8000 is not set # CONFIG_CPU_RM7000 is not set # CONFIG_CPU_RM9000 is not set # CONFIG_CPU_SB1_PASS_1 is not set # CONFIG_CPU_SB1_PASS_2_112x is not set # CONFIG_CPU_SB1_PASS_2_1250 is not set # CONFIG_CPU_SB1_PASS_2_2 is not set CONFIG_CPU_SB1_PASS_3=y # CONFIG_CPU_SB1_PASS_4 is not set CONFIG_CPU_SB1=y CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y CONFIG_CPU_SUPPORTS_HIGHMEM=y # CONFIG_CPU_TX39XX is not set # CONFIG_CPU_TX49XX is not set # CONFIG_CPU_VR41XX is not set CONFIG_CSRC_SB1250=y # CONFIG_CYCLADES is not set CONFIG_DECOMPRESS_LZMA=y CONFIG_DEVPORT=y # CONFIG_DIGIEPCA is not set # CONFIG_DM9000 is not set CONFIG_DMA_COHERENT=y CONFIG_EARLY_PRINTK=y CONFIG_FW_LOADER=m CONFIG_GENERIC_CLOCKEVENTS_BUILD=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CMOS_UPDATE=y CONFIG_GENERIC_FIND_LAST_BIT=y CONFIG_GENERIC_FIND_NEXT_BIT=y CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y CONFIG_HAVE_ARCH_KGDB=y # CONFIG_HAVE_GENERIC_DMA_COHERENT is not set CONFIG_HAVE_IDE=y CONFIG_HAVE_MLOCK=y CONFIG_HAVE_OPROFILE=y CONFIG_HAVE_SYSCALL_WRAPPERS=y CONFIG_HW_HAS_PCI=y CONFIG_HWMON_DEBUG_CHIP=y CONFIG_HWMON=y CONFIG_HW_RANDOM=m # CONFIG_HZ_100 is not set CONFIG_HZ=250 CONFIG_HZ_250=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_HELPER_AUTO=y CONFIG_I2C_SIBYTE=y CONFIG_I2C=y CONFIG_INITRAMFS_ROOT_GID=0 CONFIG_INITRAMFS_ROOT_UID=0 CONFIG_INITRAMFS_SOURCE="../../root" CONFIG_INPUT=m # CONFIG_IP_ROUTE_VERBOSE is not set CONFIG_IRQ_CPU=y # CONFIG_ISI is not set # CONFIG_LEMOTE_FULONG is not set CONFIG_LOG_BUF_SHIFT=15 # CONFIG_MACH_ALCHEMY is not set # CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_JAZZ is not set # CONFIG_MACH_LOONGSON is not set # CONFIG_MACH_TX39XX is not set # CONFIG_MACH_TX49XX is not set # CONFIG_MACH_VR41XX is not set # CONFIG_MIKROTIK_RB532 is not set CONFIG_MINI_FO=m CONFIG_MIPS32_COMPAT=y # CONFIG_MIPS32_N32 is not set CONFIG_MIPS32_O32=y # CONFIG_MIPS_COBALT is not set CONFIG_MIPS_L1_CACHE_SHIFT=5 # CONFIG_MIPS_MACHINE is not set # CONFIG_MIPS_MALTA is not set CONFIG_MIPS_MT_DISABLED=y # CONFIG_MIPS_MT_SMP is not set # CONFIG_MIPS_MT_SMTC is not set # CONFIG_MIPS_SIM is not set CONFIG_MIPS=y # CONFIG_MOXA_INTELLIO is not set # CONFIG_MOXA_SMARTIO is not set CONFIG_MTD_PHYSMAP=y # CONFIG_N_HDLC is not set # CONFIG_NO_IOPORT is not set # CONFIG_NXP_STB220 is not set # CONFIG_NXP_STB225 is not set CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_PCI=y CONFIG_PCI_DOMAINS=y CONFIG_PHYLIB=y CONFIG_PHYS_ADDR_T_64BIT=y # CONFIG_PMC_MSP is not set # CONFIG_PMC_YOSEMITE is not set # CONFIG_PNX8550_JBS is not set # CONFIG_PNX8550_STB810 is not set # CONFIG_PROBE_INITRD_HEADER is not set # CONFIG_PROC_KCORE is not set # CONFIG_RIO is not set # CONFIG_RISCOM8 is not set # CONFIG_ROCKETPORT is not set CONFIG_RTC_CLASS=y # CONFIG_RTC_DRV_CMOS is not set # CONFIG_RTC_DRV_M41T80_WDT is not set CONFIG_RTC_DRV_M41T80=y CONFIG_SB1250_MAC=y # CONFIG_SB1_CERR_STALL is not set # CONFIG_SB1_CEX_ALWAYS_FATAL is not set # CONFIG_SB1XXX_CORELIS is not set CONFIG_SCHED_OMIT_FRAME_POINTER=y # CONFIG_SCSI_DMA is not set CONFIG_SENSORS_LM90=y # CONFIG_SERIAL_8250 is not set CONFIG_SERIAL_NONSTANDARD=y CONFIG_SERIAL_SB1250_DUART_CONSOLE=y CONFIG_SERIAL_SB1250_DUART=y # CONFIG_SGI_IP22 is not set # CONFIG_SGI_IP27 is not set # CONFIG_SGI_IP28 is not set # CONFIG_SGI_IP32 is not set CONFIG_SIBYTE_BCM1125H=y CONFIG_SIBYTE_BCM112X=y # CONFIG_SIBYTE_BIGSUR is not set # CONFIG_SIBYTE_BUS_WATCHER is not set # CONFIG_SIBYTE_CARMEL is not set # CONFIG_SIBYTE_CFE_CONSOLE is not set # CONFIG_SIBYTE_CRHINE is not set # CONFIG_SIBYTE_CRHONE is not set # CONFIG_SIBYTE_DMA_PAGEOPS is not set CONFIG_SIBYTE_ENABLE_LDT_IF_PCI=y CONFIG_SIBYTE_HAS_LDT=y CONFIG_SIBYTE_HAS_ZBUS_PROFILING=y # CONFIG_SIBYTE_LITTLESUR is not set CONFIG_SIBYTE_RHONE=y CONFIG_SIBYTE_SB1xxx_SOC=y # CONFIG_SIBYTE_SENTOSA is not set # CONFIG_SIBYTE_SWARM is not set # CONFIG_SIBYTE_TBPROF is not set # CONFIG_SLOW_WORK is not set # CONFIG_SPECIALIX is not set # CONFIG_STALDRV is not set CONFIG_SWAP_IO_SPACE=y # CONFIG_SX is not set # CONFIG_SYNCLINK_GT is not set # CONFIG_SYNCLINKMP is not set CONFIG_SYS_HAS_CPU_SB1=y CONFIG_SYS_HAS_EARLY_PRINTK=y CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y CONFIG_SYS_SUPPORTS_ARBIT_HZ=y CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y CONFIG_SYSVIPC_COMPAT=y # CONFIG_TC35815 is not set CONFIG_TRACING_SUPPORT=y # CONFIG_WATCHDOG is not set CONFIG_WEAK_ORDERING=y # CONFIG_WLAN_80211 is not set CONFIG_ZONE_DMA_FLAG=0 d='n57' href='#n57'>57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
/dts-v1/;

#include "rt5350.dtsi"

#include <dt-bindings/input/input.h>

/ {
	compatible = "DIR-610-A1", "ralink,rt5350-soc";
	model = "D-Link DIR-610 A1";

	gpio-leds {
		compatible = "gpio-leds";

		status {
			label = "dir-610-a1:green:status";
			gpios = <&gpio0 9 1>;
		};

		wps {
			label = "dir-610-a1:green:wps";
			gpios = <&gpio0 13 1>;
		};
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <20>;

		reset {
			label = "reset";
			gpios = <&gpio0 10 1>;
			linux,code = <KEY_RESTART>;
		};

		wps {
			label = "wps";
			gpios = <&gpio0 0 1>;
			linux,code = <KEY_WPS_BUTTON>;
		};
	};
};

&spi0 {
	status = "okay";

	m25p80@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <10000000>;

		partition@0 {
			label = "u-boot";
			reg = <0x0 0x30000>;
			read-only;
		};

		devdata: partition@30000 {
			label = "devdata";
			reg = <0x30000 0x10000>;
			read-only;
		};

		factory: partition@40000 {
			label = "factory";
			reg = <0x40000 0x10000>;
			read-only;
		};

		partition@50000 {
			label = "firmware";
			reg = <0x50000 0x3b0000>;
		};
	};
};

&pinctrl {
	state_default: pinctrl0 {
		gpio {
			ralink,group = "i2c", "jtag", "uartf";
			ralink,function = "gpio";
		};
	};
};

&ethernet {
	mtd-mac-address = <&devdata 0x4004>;
};

&esw {
	status = "okay";
	mediatek,portmap = <0x2f>;
	mediatek,led_polarity = <0x17>;
};

&wmac {
	status = "okay";
	ralink,led-polarity = <1>;
	ralink,mtd-eeprom = <&devdata 0x4000>;
};