lantiq: copy target to kernel 5.4
Duplicate kernel 4.19 config and patches for kernel 5.4. Duplicate the devicetree source files as well, they need kernel 5.4 specific adjustments. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
		
							
								
								
									
										25
									
								
								target/linux/lantiq/ase/config-5.4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								target/linux/lantiq/ase/config-5.4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | |||||||
|  | CONFIG_ADM6996_PHY=y | ||||||
|  | CONFIG_CPU_MIPS32_R1=y | ||||||
|  | # CONFIG_CPU_MIPS32_R2 is not set | ||||||
|  | CONFIG_CPU_MIPSR1=y | ||||||
|  | CONFIG_CRC16=y | ||||||
|  | CONFIG_CRYPTO_ACOMP2=y | ||||||
|  | CONFIG_CRYPTO_DEFLATE=y | ||||||
|  | CONFIG_FIRMWARE_MEMMAP=y | ||||||
|  | CONFIG_GPIO_GENERIC=y | ||||||
|  | CONFIG_GPIO_GENERIC_PLATFORM=y | ||||||
|  | # CONFIG_ISDN is not set | ||||||
|  | # CONFIG_LBDAF is not set | ||||||
|  | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||||||
|  | CONFIG_MIPS_FPU_EMULATOR=y | ||||||
|  | CONFIG_NLS=y | ||||||
|  | # CONFIG_PSB6970_PHY is not set | ||||||
|  | # CONFIG_RTL8366_SMI is not set | ||||||
|  | CONFIG_SOC_AMAZON_SE=y | ||||||
|  | # CONFIG_SOC_XWAY is not set | ||||||
|  | CONFIG_USB=y | ||||||
|  | CONFIG_USB_COMMON=y | ||||||
|  | # CONFIG_USB_EHCI_HCD is not set | ||||||
|  | CONFIG_USB_SUPPORT=y | ||||||
|  | CONFIG_ZLIB_DEFLATE=y | ||||||
|  | CONFIG_ZLIB_INFLATE=y | ||||||
							
								
								
									
										223
									
								
								target/linux/lantiq/config-5.4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										223
									
								
								target/linux/lantiq/config-5.4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,223 @@ | |||||||
|  | CONFIG_ARCH_BINFMT_ELF_STATE=y | ||||||
|  | CONFIG_ARCH_CLOCKSOURCE_DATA=y | ||||||
|  | CONFIG_ARCH_DISCARD_MEMBLOCK=y | ||||||
|  | CONFIG_ARCH_HAS_ELF_RANDOMIZE=y | ||||||
|  | CONFIG_ARCH_HAS_RESET_CONTROLLER=y | ||||||
|  | CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y | ||||||
|  | CONFIG_ARCH_HIBERNATION_POSSIBLE=y | ||||||
|  | CONFIG_ARCH_MMAP_RND_BITS_MAX=15 | ||||||
|  | CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 | ||||||
|  | CONFIG_ARCH_SUPPORTS_UPROBES=y | ||||||
|  | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||||||
|  | CONFIG_ARCH_USE_BUILTIN_BSWAP=y | ||||||
|  | CONFIG_ARCH_USE_QUEUED_RWLOCKS=y | ||||||
|  | CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y | ||||||
|  | CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y | ||||||
|  | CONFIG_CEVT_R4K=y | ||||||
|  | CONFIG_CLKDEV_LOOKUP=y | ||||||
|  | CONFIG_CLONE_BACKWARDS=y | ||||||
|  | CONFIG_CPU_BIG_ENDIAN=y | ||||||
|  | CONFIG_CPU_GENERIC_DUMP_TLB=y | ||||||
|  | CONFIG_CPU_HAS_PREFETCH=y | ||||||
|  | CONFIG_CPU_HAS_RIXI=y | ||||||
|  | CONFIG_CPU_HAS_SYNC=y | ||||||
|  | CONFIG_CPU_MIPS32=y | ||||||
|  | # CONFIG_CPU_MIPS32_R1 is not set | ||||||
|  | CONFIG_CPU_MIPS32_R2=y | ||||||
|  | CONFIG_CPU_MIPSR2=y | ||||||
|  | CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y | ||||||
|  | CONFIG_CPU_R4K_CACHE_TLB=y | ||||||
|  | CONFIG_CPU_R4K_FPU=y | ||||||
|  | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | ||||||
|  | CONFIG_CPU_SUPPORTS_HIGHMEM=y | ||||||
|  | CONFIG_CPU_SUPPORTS_MSA=y | ||||||
|  | CONFIG_CRYPTO_HASH=y | ||||||
|  | CONFIG_CRYPTO_HASH2=y | ||||||
|  | CONFIG_CRYPTO_RNG2=y | ||||||
|  | CONFIG_CRYPTO_WORKQUEUE=y | ||||||
|  | CONFIG_CSRC_R4K=y | ||||||
|  | CONFIG_DMA_DIRECT_OPS=y | ||||||
|  | CONFIG_DMA_NONCOHERENT=y | ||||||
|  | CONFIG_DMA_NONCOHERENT_CACHE_SYNC=y | ||||||
|  | CONFIG_DMA_NONCOHERENT_MMAP=y | ||||||
|  | CONFIG_DMA_NONCOHERENT_OPS=y | ||||||
|  | CONFIG_DTC=y | ||||||
|  | # CONFIG_DT_EASY50712 is not set | ||||||
|  | CONFIG_EARLY_PRINTK=y | ||||||
|  | CONFIG_ETHERNET_PACKET_MANGLE=y | ||||||
|  | CONFIG_FIXED_PHY=y | ||||||
|  | CONFIG_GENERIC_ATOMIC64=y | ||||||
|  | CONFIG_GENERIC_CLOCKEVENTS=y | ||||||
|  | CONFIG_GENERIC_CMOS_UPDATE=y | ||||||
|  | CONFIG_GENERIC_CPU_AUTOPROBE=y | ||||||
|  | CONFIG_GENERIC_IRQ_CHIP=y | ||||||
|  | CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y | ||||||
|  | CONFIG_GENERIC_IRQ_IPI=y | ||||||
|  | CONFIG_GENERIC_IRQ_SHOW=y | ||||||
|  | CONFIG_GENERIC_LIB_ASHLDI3=y | ||||||
|  | CONFIG_GENERIC_LIB_ASHRDI3=y | ||||||
|  | CONFIG_GENERIC_LIB_CMPDI2=y | ||||||
|  | CONFIG_GENERIC_LIB_LSHRDI3=y | ||||||
|  | CONFIG_GENERIC_LIB_UCMPDI2=y | ||||||
|  | CONFIG_GENERIC_PCI_IOMAP=y | ||||||
|  | CONFIG_GENERIC_PHY=y | ||||||
|  | CONFIG_GENERIC_SCHED_CLOCK=y | ||||||
|  | CONFIG_GENERIC_SMP_IDLE_THREAD=y | ||||||
|  | CONFIG_GENERIC_TIME_VSYSCALL=y | ||||||
|  | CONFIG_GPIOLIB=y | ||||||
|  | CONFIG_GPIO_MM_LANTIQ=y | ||||||
|  | CONFIG_GPIO_STP_XWAY=y | ||||||
|  | CONFIG_GPIO_SYSFS=y | ||||||
|  | CONFIG_HANDLE_DOMAIN_IRQ=y | ||||||
|  | CONFIG_HARDWARE_WATCHPOINTS=y | ||||||
|  | CONFIG_HAS_DMA=y | ||||||
|  | CONFIG_HAS_IOMEM=y | ||||||
|  | CONFIG_HAS_IOPORT_MAP=y | ||||||
|  | CONFIG_HAVE_ARCH_COMPILER_H=y | ||||||
|  | CONFIG_HAVE_ARCH_JUMP_LABEL=y | ||||||
|  | CONFIG_HAVE_ARCH_KGDB=y | ||||||
|  | CONFIG_HAVE_ARCH_SECCOMP_FILTER=y | ||||||
|  | CONFIG_HAVE_ARCH_TRACEHOOK=y | ||||||
|  | CONFIG_HAVE_CBPF_JIT=y | ||||||
|  | CONFIG_HAVE_CLK=y | ||||||
|  | CONFIG_HAVE_CONTEXT_TRACKING=y | ||||||
|  | CONFIG_HAVE_COPY_THREAD_TLS=y | ||||||
|  | CONFIG_HAVE_C_RECORDMCOUNT=y | ||||||
|  | CONFIG_HAVE_DEBUG_KMEMLEAK=y | ||||||
|  | CONFIG_HAVE_DEBUG_STACKOVERFLOW=y | ||||||
|  | CONFIG_HAVE_DMA_CONTIGUOUS=y | ||||||
|  | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||||||
|  | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | ||||||
|  | CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y | ||||||
|  | CONFIG_HAVE_FUNCTION_TRACER=y | ||||||
|  | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||||||
|  | CONFIG_HAVE_IDE=y | ||||||
|  | CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y | ||||||
|  | CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y | ||||||
|  | CONFIG_HAVE_KVM=y | ||||||
|  | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||||||
|  | CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y | ||||||
|  | CONFIG_HAVE_MEMBLOCK=y | ||||||
|  | CONFIG_HAVE_MEMBLOCK_NODE_MAP=y | ||||||
|  | CONFIG_HAVE_MOD_ARCH_SPECIFIC=y | ||||||
|  | CONFIG_HAVE_NET_DSA=y | ||||||
|  | CONFIG_HAVE_OPROFILE=y | ||||||
|  | CONFIG_HAVE_PERF_EVENTS=y | ||||||
|  | CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y | ||||||
|  | CONFIG_HAVE_RSEQ=y | ||||||
|  | CONFIG_HAVE_SYSCALL_TRACEPOINTS=y | ||||||
|  | CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y | ||||||
|  | CONFIG_HW_HAS_PCI=y | ||||||
|  | CONFIG_HW_RANDOM=y | ||||||
|  | CONFIG_HZ=250 | ||||||
|  | # CONFIG_HZ_100 is not set | ||||||
|  | CONFIG_HZ_250=y | ||||||
|  | CONFIG_HZ_PERIODIC=y | ||||||
|  | CONFIG_INITRAMFS_SOURCE="" | ||||||
|  | CONFIG_IRQCHIP=y | ||||||
|  | CONFIG_IRQ_DOMAIN=y | ||||||
|  | CONFIG_IRQ_DOMAIN_HIERARCHY=y | ||||||
|  | CONFIG_IRQ_FORCED_THREADING=y | ||||||
|  | CONFIG_IRQ_MIPS_CPU=y | ||||||
|  | CONFIG_IRQ_WORK=y | ||||||
|  | CONFIG_LANTIQ=y | ||||||
|  | CONFIG_LANTIQ_DT_NONE=y | ||||||
|  | CONFIG_LANTIQ_ETOP=y | ||||||
|  | CONFIG_LANTIQ_WDT=y | ||||||
|  | # CONFIG_LANTIQ_XRX200 is not set | ||||||
|  | CONFIG_LEDS_GPIO=y | ||||||
|  | CONFIG_LIBFDT=y | ||||||
|  | CONFIG_LOCK_DEBUGGING_SUPPORT=y | ||||||
|  | CONFIG_MDIO_BUS=y | ||||||
|  | CONFIG_MDIO_DEVICE=y | ||||||
|  | CONFIG_MEMFD_CREATE=y | ||||||
|  | CONFIG_MFD_CORE=y | ||||||
|  | CONFIG_MFD_SYSCON=y | ||||||
|  | CONFIG_MIGRATION=y | ||||||
|  | CONFIG_MIPS=y | ||||||
|  | CONFIG_MIPS_ASID_BITS=8 | ||||||
|  | CONFIG_MIPS_ASID_SHIFT=0 | ||||||
|  | CONFIG_MIPS_CBPF_JIT=y | ||||||
|  | CONFIG_MIPS_CLOCK_VSYSCALL=y | ||||||
|  | # CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set | ||||||
|  | # CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set | ||||||
|  | CONFIG_MIPS_CMDLINE_FROM_DTB=y | ||||||
|  | # CONFIG_MIPS_ELF_APPENDED_DTB is not set | ||||||
|  | CONFIG_MIPS_L1_CACHE_SHIFT=5 | ||||||
|  | # CONFIG_MIPS_MT_SMP is not set | ||||||
|  | # CONFIG_MIPS_NO_APPENDED_DTB is not set | ||||||
|  | CONFIG_MIPS_RAW_APPENDED_DTB=y | ||||||
|  | CONFIG_MIPS_SPRAM=y | ||||||
|  | # CONFIG_MIPS_VPE_LOADER is not set | ||||||
|  | CONFIG_MODULES_USE_ELF_REL=y | ||||||
|  | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||||||
|  | CONFIG_MTD_CFI_GEOMETRY=y | ||||||
|  | CONFIG_MTD_CMDLINE_PARTS=y | ||||||
|  | CONFIG_MTD_JEDECPROBE=y | ||||||
|  | CONFIG_MTD_LANTIQ=y | ||||||
|  | CONFIG_MTD_M25P80=y | ||||||
|  | CONFIG_MTD_SPI_NOR=y | ||||||
|  | CONFIG_MTD_SPLIT_BRNIMAGE_FW=y | ||||||
|  | CONFIG_MTD_SPLIT_EVA_FW=y | ||||||
|  | CONFIG_MTD_SPLIT_FIRMWARE=y | ||||||
|  | CONFIG_MTD_SPLIT_TPLINK_FW=y | ||||||
|  | CONFIG_MTD_SPLIT_UIMAGE_FW=y | ||||||
|  | CONFIG_NEED_DMA_MAP_STATE=y | ||||||
|  | CONFIG_NEED_PER_CPU_KM=y | ||||||
|  | CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y | ||||||
|  | CONFIG_NVMEM=y | ||||||
|  | CONFIG_OF=y | ||||||
|  | CONFIG_OF_ADDRESS=y | ||||||
|  | CONFIG_OF_EARLY_FLATTREE=y | ||||||
|  | CONFIG_OF_FLATTREE=y | ||||||
|  | CONFIG_OF_GPIO=y | ||||||
|  | CONFIG_OF_IRQ=y | ||||||
|  | CONFIG_OF_KOBJ=y | ||||||
|  | CONFIG_OF_MDIO=y | ||||||
|  | CONFIG_OF_NET=y | ||||||
|  | CONFIG_PCI_DRIVERS_LEGACY=y | ||||||
|  | CONFIG_PERF_USE_VMALLOC=y | ||||||
|  | CONFIG_PGTABLE_LEVELS=2 | ||||||
|  | CONFIG_PHYLIB=y | ||||||
|  | CONFIG_PHY_LANTIQ_RCU_USB2=y | ||||||
|  | CONFIG_PINCTRL=y | ||||||
|  | CONFIG_PINCTRL_LANTIQ=y | ||||||
|  | # CONFIG_PINCTRL_SINGLE is not set | ||||||
|  | CONFIG_PINCTRL_XWAY=y | ||||||
|  | CONFIG_POWER_RESET=y | ||||||
|  | CONFIG_POWER_RESET_SYSCON=y | ||||||
|  | CONFIG_PSB6970_PHY=y | ||||||
|  | CONFIG_REGMAP=y | ||||||
|  | CONFIG_REGMAP_MMIO=y | ||||||
|  | CONFIG_RESET_CONTROLLER=y | ||||||
|  | CONFIG_RESET_LANTIQ=y | ||||||
|  | CONFIG_RTL8366RB_PHY=y | ||||||
|  | CONFIG_RTL8366_SMI=y | ||||||
|  | # CONFIG_SERIAL_8250 is not set | ||||||
|  | CONFIG_SERIAL_LANTIQ=y | ||||||
|  | # CONFIG_SOC_AMAZON_SE is not set | ||||||
|  | # CONFIG_SOC_FALCON is not set | ||||||
|  | CONFIG_SOC_TYPE_XWAY=y | ||||||
|  | CONFIG_SOC_XWAY=y | ||||||
|  | CONFIG_SPI=y | ||||||
|  | CONFIG_SPI_LANTIQ_SSC=y | ||||||
|  | CONFIG_SPI_MASTER=y | ||||||
|  | CONFIG_SPI_MEM=y | ||||||
|  | CONFIG_SRCU=y | ||||||
|  | CONFIG_SWAP_IO_SPACE=y | ||||||
|  | CONFIG_SWCONFIG=y | ||||||
|  | CONFIG_SWPHY=y | ||||||
|  | CONFIG_SYSCTL_EXCEPTION_TRACE=y | ||||||
|  | CONFIG_SYS_HAS_CPU_MIPS32_R1=y | ||||||
|  | CONFIG_SYS_HAS_CPU_MIPS32_R2=y | ||||||
|  | CONFIG_SYS_HAS_EARLY_PRINTK=y | ||||||
|  | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y | ||||||
|  | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||||||
|  | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | ||||||
|  | CONFIG_SYS_SUPPORTS_MIPS16=y | ||||||
|  | CONFIG_SYS_SUPPORTS_MULTITHREADING=y | ||||||
|  | CONFIG_SYS_SUPPORTS_VPE_LOADER=y | ||||||
|  | CONFIG_TICK_CPU_ACCOUNTING=y | ||||||
|  | CONFIG_TINY_SRCU=y | ||||||
|  | CONFIG_USE_OF=y | ||||||
|  | # CONFIG_XRX200_PHY_FW is not set | ||||||
							
								
								
									
										12
									
								
								target/linux/lantiq/falcon/config-5.4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								target/linux/lantiq/falcon/config-5.4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | # CONFIG_MFD_CORE is not set | ||||||
|  | CONFIG_MTD_NAND=y | ||||||
|  | CONFIG_MTD_NAND_ECC=y | ||||||
|  | CONFIG_MTD_SPLIT_FIRMWARE_NAME="linux" | ||||||
|  | CONFIG_PINCTRL_FALCON=y | ||||||
|  | # CONFIG_PSB6970_PHY is not set | ||||||
|  | # CONFIG_RESET_LANTIQ is not set | ||||||
|  | # CONFIG_RTL8366_SMI is not set | ||||||
|  | CONFIG_SOC_FALCON=y | ||||||
|  | # CONFIG_SOC_TYPE_XWAY is not set | ||||||
|  | # CONFIG_SOC_XWAY is not set | ||||||
|  | CONFIG_SPI_FALCON=y | ||||||
| @@ -0,0 +1,247 @@ | |||||||
|  | #include <dt-bindings/gpio/gpio.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	#address-cells = <1>; | ||||||
|  | 	#size-cells = <1>; | ||||||
|  | 	compatible = "lantiq,xway", "lantiq,ase"; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		serial0 = &asc1; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		stdout-path = "serial0:115200n8"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	cpus { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		cpu@0 { | ||||||
|  | 			compatible = "mips,mips4Kc"; | ||||||
|  | 			reg = <0>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	reboot { | ||||||
|  | 		compatible = "syscon-reboot"; | ||||||
|  |  | ||||||
|  | 		regmap = <&rcu0>; | ||||||
|  | 		offset = <0x10>; | ||||||
|  | 		mask = <0x40000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	biu@1f800000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,biu", "simple-bus"; | ||||||
|  | 		reg = <0x1f800000 0x800000>; | ||||||
|  | 		ranges = <0x0 0x1f800000 0x7fffff>; | ||||||
|  |  | ||||||
|  | 		icu0: icu@80200 { | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			interrupt-controller; | ||||||
|  | 			compatible = "lantiq,icu"; | ||||||
|  | 			reg = <0x80200 0x28 | ||||||
|  | 				0x80228 0x28 | ||||||
|  | 				0x80250 0x28 | ||||||
|  | 				0x80278 0x28 | ||||||
|  | 				0x802a0 0x28>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		watchdog@803f0 { | ||||||
|  | 			compatible = "lantiq,wdt"; | ||||||
|  | 			reg = <0x803f0 0x10>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	sram@1f000000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,sram", "simple-bus"; | ||||||
|  | 		reg = <0x1f000000 0x800000>; | ||||||
|  | 		ranges = <0x0 0x1f000000 0x7fffff>; | ||||||
|  |  | ||||||
|  | 		eiu0: eiu@101000 { | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			interrupt-controller; | ||||||
|  | 			compatible = "lantiq,eiu-xway"; | ||||||
|  | 			reg = <0x101000 0x1000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			lantiq,eiu-irqs = <29 30 31>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		pmu0: pmu@102000 { | ||||||
|  | 			compatible = "lantiq,pmu-xway"; | ||||||
|  | 			reg = <0x102000 0x1000>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		cgu0: cgu@103000 { | ||||||
|  | 			compatible = "lantiq,cgu-xway"; | ||||||
|  | 			reg = <0x103000 0x1000>; | ||||||
|  | 			#clock-cells = <1>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		rcu0: rcu@203000 { | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  | 			compatible = "lantiq,ase-rcu", "simple-mfd", "syscon"; | ||||||
|  | 			reg = <0x203000 0x1000>; | ||||||
|  | 			ranges = <0x0 0x203000 0x100>; | ||||||
|  | 			big-endian; | ||||||
|  |  | ||||||
|  | 			reset: reset-controller@10 { | ||||||
|  | 				compatible = "lantiq,danube-reset"; | ||||||
|  | 				reg = <0x10 4>, <0x14 4>; | ||||||
|  |  | ||||||
|  | 				#reset-cells = <2>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			usb_phy: usb2-phy@18 { | ||||||
|  | 				compatible = "lantiq,ase-usb2-phy"; | ||||||
|  | 				reg = <0x18 4>; | ||||||
|  | 				status = "disabled"; | ||||||
|  |  | ||||||
|  | 				resets = <&reset 4 4>; | ||||||
|  | 				reset-names = "ctrl"; | ||||||
|  | 				#phy-cells = <0>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	fpi@10000000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,fpi", "simple-bus"; | ||||||
|  | 		ranges = <0x0 0x10000000 0xeefffff>; | ||||||
|  | 		reg = <0x10000000 0xef00000>; | ||||||
|  |  | ||||||
|  | 		localbus: localbus@0 { | ||||||
|  | 			#address-cells = <2>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  | 			ranges = <0 0 0x0 0x3ffffff /* addrsel0 */ | ||||||
|  | 				1 0 0x4000000 0x4000010>; /* addsel1 */ | ||||||
|  | 			compatible = "lantiq,localbus", "simple-bus"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		spi: spi@e100800 { | ||||||
|  | 			compatible = "lantiq,ase-spi"; | ||||||
|  | 			reg = <0xe100800 0x100>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <24 25 26>; | ||||||
|  | 			interrupt-names = "spi_rx", "spi_tx", "spi_err", | ||||||
|  | 					"spi_frm"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <0>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  | 			pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gptu@e100a00 { | ||||||
|  | 			compatible = "lantiq,gptu-xway"; | ||||||
|  | 			reg = <0xe100a00 0x100>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <33 34 35 36 37 38>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gpio: pinmux@e100b10 { | ||||||
|  | 			compatible = "lantiq,ase-pinctrl"; | ||||||
|  | 			#gpio-cells = <2>; | ||||||
|  | 			gpio-controller; | ||||||
|  | 			reg = <0xe100b10 0xa0>; | ||||||
|  |  | ||||||
|  | 			asc_pins: asc-pins { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "asc"; | ||||||
|  | 					lantiq,function = "asc"; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			mdio_pins: mdio { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "mdio"; | ||||||
|  | 					lantiq,function = "mdio"; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			spi_pins: spi { | ||||||
|  | 				mux-0 { | ||||||
|  | 					lantiq,groups = "spi_di"; | ||||||
|  | 					lantiq,function = "spi"; | ||||||
|  | 				}; | ||||||
|  | 				mux-1 { | ||||||
|  | 					lantiq,groups = "spi_do", "spi_clk"; | ||||||
|  | 					lantiq,function = "spi"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			spi_cs4_pins: spi-cs4 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "spi_cs4"; | ||||||
|  | 					lantiq,function = "spi"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		asc1: serial@e100c00 { | ||||||
|  | 			compatible = "lantiq,asc"; | ||||||
|  | 			reg = <0xe100c00 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <72 74 75>; | ||||||
|  | 			pinctrl-0 = <&asc_pins>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		mei@e116000 { | ||||||
|  | 			compatible = "lantiq,mei-xway"; | ||||||
|  | 			reg = <0xe116000 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <81>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		usb: usb@e101000 { | ||||||
|  | 			compatible = "lantiq,ase-usb"; | ||||||
|  | 			reg = <0xe101000 0x1000 | ||||||
|  | 				0xe120000 0x3f000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <39>; | ||||||
|  | 			dr_mode = "host"; | ||||||
|  | 			phys = <&usb_phy>; | ||||||
|  | 			phy-names = "usb2-phy"; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		dma0: dma@e104100 { | ||||||
|  | 			compatible = "lantiq,dma-xway"; | ||||||
|  | 			reg = <0xe104100 0x800>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		ebu0: ebu@e105300 { | ||||||
|  | 			compatible = "lantiq,ebu-xway"; | ||||||
|  | 			reg = <0xe105300 0x100>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		ppe@e234000 { | ||||||
|  | 			compatible = "lantiq,ppe-ase"; | ||||||
|  | 			reg = <0xe234000 0x40000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <85>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gsw: etop@e180000 { | ||||||
|  | 			compatible = "lantiq,etop-xway"; | ||||||
|  | 			reg = <0xe180000 0x40000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <105 109>; | ||||||
|  | 			pinctrl-0 = <&mdio_pins>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	adsl { | ||||||
|  | 		compatible = "lantiq,adsl-ase"; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,111 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "amazonse.dtsi" | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "allnet,all0333cj", "lantiq,xway", "lantiq,ase"; | ||||||
|  | 	model = "Allnet ALL0333CJ DSL Modem"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  |  | ||||||
|  | 		aliases { | ||||||
|  | 			led-boot = &power; | ||||||
|  | 			led-failsafe = &power; | ||||||
|  | 			led-running = &power; | ||||||
|  | 			led-upgrade = &power; | ||||||
|  |  | ||||||
|  | 			led-dsl = &dsl; | ||||||
|  | 			led-internet = &online_green; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x1000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  |  | ||||||
|  | 		/* power led: red=off, green=on */ | ||||||
|  | 		power: power { | ||||||
|  | 			label = "all0333cj:green:power"; | ||||||
|  | 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		lan: lan { | ||||||
|  | 			label = "all0333cj:green:lan"; | ||||||
|  | 			gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		dsl: dsl { | ||||||
|  | 			label = "all0333cj:green:dsl"; | ||||||
|  | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		online_green: online { | ||||||
|  | 			label = "all0333cj:green:online"; | ||||||
|  | 			gpios = <&gpio 12 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		online_red { | ||||||
|  | 			label = "all0333cj:red:online"; | ||||||
|  | 			gpios = <&gpio 4 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		keys_in { | ||||||
|  | 			lantiq,pins = "io0",/* "io25", */"io29"; | ||||||
|  | 			lantiq,pull = <2>; | ||||||
|  | 			lantiq,open-drain = <1>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "mii"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x400000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				label = "uboot"; | ||||||
|  | 				reg = <0x00000 0x10000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@10000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x10000 0x3ef200>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@3ff200 { | ||||||
|  | 				label = "uboot_env"; | ||||||
|  | 				reg = <0x3ff200 0xc00>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@3ffe00 { | ||||||
|  | 				label = "dummy_bits"; | ||||||
|  | 				reg = <0x3ffe00 0x200>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,153 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "amazonse.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase"; | ||||||
|  | 	model = "Netgear DGN1000B"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power; | ||||||
|  | 		led-failsafe = &power; | ||||||
|  | 		led-running = &power; | ||||||
|  | 		led-upgrade = &power; | ||||||
|  |  | ||||||
|  | 		led-dsl = &dsl; | ||||||
|  | 		led-internet = &online_green; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x1000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 0 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 		rfkill { | ||||||
|  | 			label = "rfkill"; | ||||||
|  | 			gpios = <&gpio 25 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RFKILL>; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "wps"; | ||||||
|  | 			gpios = <&gpio 29 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  | 		dsl: dsl { | ||||||
|  | 			label = "dgn1000b:green:dsl"; | ||||||
|  | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "on"; | ||||||
|  | 		}; | ||||||
|  | 		online_green: online { | ||||||
|  | 			label = "dgn1000b:green:online"; | ||||||
|  | 			gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "on"; | ||||||
|  | 		}; | ||||||
|  | 		online2 { | ||||||
|  | 			label = "dgn1000b:red:online"; | ||||||
|  | 			gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "on"; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "dgn1000b:green:wps"; | ||||||
|  | 			gpios = <&gpio 4 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "on"; | ||||||
|  | 		}; | ||||||
|  | 		power: power { | ||||||
|  | 			label = "dgn1000b:green:power"; | ||||||
|  | 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		/* | ||||||
|  | 			power red is missing | ||||||
|  | 		*/ | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		keys_in { | ||||||
|  | 			lantiq,pins = "io0",/* "io25", */"io29"; | ||||||
|  | 			lantiq,pull = <2>; | ||||||
|  | 			lantiq,open-drain = <1>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "mii"; | ||||||
|  | 	mac-address = [ 00 11 22 33 44 55 ]; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &spi { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	flash@1 { | ||||||
|  | 		compatible = "jedec,spi-nor"; | ||||||
|  | 		reg = <1>; | ||||||
|  | 		spi-max-frequency = <5000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				reg = <0x0 0x20000>; | ||||||
|  | 				label = "SPI (RO) U-Boot Image"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@20000 { | ||||||
|  | 				reg = <0x20000 0x10000>; | ||||||
|  | 				label = "ENV_MAC"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@30000 { | ||||||
|  | 				reg = <0x30000 0x10000>; | ||||||
|  | 				label = "DPF"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@40000 { | ||||||
|  | 				reg = <0x40000 0x10000>; | ||||||
|  | 				label = "NVRAM"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@500000 { | ||||||
|  | 				reg = <0x50000 0x003a0000>; | ||||||
|  | 				label = "kernel"; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
							
								
								
									
										422
									
								
								target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9.dtsi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										422
									
								
								target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9.dtsi
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,422 @@ | |||||||
|  | #include <dt-bindings/gpio/gpio.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	#address-cells = <1>; | ||||||
|  | 	#size-cells = <1>; | ||||||
|  | 	compatible = "lantiq,xway", "lantiq,ar9"; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		serial0 = &asc1; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		stdout-path = "serial0:115200n8"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	cpus { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		cpu@0 { | ||||||
|  | 			compatible = "mips,mips34K"; | ||||||
|  | 			reg = <0>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	reboot { | ||||||
|  | 		compatible = "syscon-reboot"; | ||||||
|  |  | ||||||
|  | 		regmap = <&rcu0>; | ||||||
|  | 		offset = <0x10>; | ||||||
|  | 		mask = <0x40000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	biu@1f800000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,biu", "simple-bus"; | ||||||
|  | 		reg = <0x1f800000 0x800000>; | ||||||
|  | 		ranges = <0x0 0x1f800000 0x7fffff>; | ||||||
|  |  | ||||||
|  | 		icu0: icu@80200 { | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			interrupt-controller; | ||||||
|  | 			compatible = "lantiq,icu"; | ||||||
|  | 			reg = <0x80200 0x28 | ||||||
|  | 				0x80228 0x28 | ||||||
|  | 				0x80250 0x28 | ||||||
|  | 				0x80278 0x28 | ||||||
|  | 				0x802a0 0x28>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		watchdog@803f0 { | ||||||
|  | 			compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt"; | ||||||
|  | 			reg = <0x803f0 0x10>; | ||||||
|  |  | ||||||
|  | 			regmap = <&rcu0>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	sram@1f000000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,sram", "simple-bus"; | ||||||
|  | 		reg = <0x1f000000 0x800000>; | ||||||
|  | 		ranges = <0x0 0x1f000000 0x7fffff>; | ||||||
|  |  | ||||||
|  | 		eiu0: eiu@101000 { | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			interrupt-controller; | ||||||
|  | 			compatible = "lantiq,eiu-xway"; | ||||||
|  | 			reg = <0x101000 0x1000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			lantiq,eiu-irqs = <166 135 66 40 41 42>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		pmu0: pmu@102000 { | ||||||
|  | 			compatible = "lantiq,pmu-xway"; | ||||||
|  | 			reg = <0x102000 0x1000>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		cgu0: cgu@103000 { | ||||||
|  | 			compatible = "lantiq,cgu-xway"; | ||||||
|  | 			reg = <0x103000 0x1000>; | ||||||
|  | 			#clock-cells = <1>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		rcu0: rcu@203000 { | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  | 			compatible = "lantiq,xrx100-rcu", "simple-mfd", "syscon"; | ||||||
|  | 			reg = <0x203000 0x1000>; | ||||||
|  | 			ranges = <0x0 0x203000 0x100>; | ||||||
|  | 			big-endian; | ||||||
|  |  | ||||||
|  | 			reset: reset-controller@10 { | ||||||
|  | 				compatible = "lantiq,xrx100-reset", "lantiq,danube-reset"; | ||||||
|  | 				reg = <0x10 4>, <0x14 4>; | ||||||
|  |  | ||||||
|  | 				#reset-cells = <2>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			usb_phy0: usb2-phy@18 { | ||||||
|  | 				compatible = "lantiq,xrx100-usb2-phy"; | ||||||
|  | 				reg = <0x18 4>; | ||||||
|  | 				status = "disabled"; | ||||||
|  |  | ||||||
|  | 				resets = <&reset 4 4>; | ||||||
|  | 				reset-names = "ctrl"; | ||||||
|  | 				#phy-cells = <0>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			usb_phy1: usb2-phy@34 { | ||||||
|  | 				compatible = "lantiq,xrx100-usb2-phy"; | ||||||
|  | 				reg = <0x34 4>; | ||||||
|  | 				status = "disabled"; | ||||||
|  |  | ||||||
|  | 				resets = <&reset 28 28>; | ||||||
|  | 				reset-names = "ctrl"; | ||||||
|  | 				#phy-cells = <0>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	fpi@10000000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,fpi", "simple-bus"; | ||||||
|  | 		ranges = <0x0 0x10000000 0xeefffff>; | ||||||
|  | 		reg = <0x10000000 0xef00000>; | ||||||
|  |  | ||||||
|  | 		localbus: localbus@0 { | ||||||
|  | 			#address-cells = <2>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  | 			ranges = <0 0 0x0 0x3ffffff /* addrsel0 */ | ||||||
|  | 				1 0 0x4000000 0x4000010>; /* addsel1 */ | ||||||
|  | 			compatible = "lantiq,localbus", "simple-bus"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gptu@e100a00 { | ||||||
|  | 			compatible = "lantiq,gptu-xway"; | ||||||
|  | 			reg = <0xe100a00 0x100>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <126 127 128 129 130 131>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		asc0: serial@e100400 { | ||||||
|  | 			compatible = "lantiq,asc"; | ||||||
|  | 			reg = <0xe100400 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <104 105 106>; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		spi: spi@e100800 { | ||||||
|  | 			compatible = "lantiq,xrx100-spi"; | ||||||
|  | 			reg = <0xe100800 0x100>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <22 23 24>; | ||||||
|  | 			interrupt-names = "spi_rx", "spi_tx", "spi_err", | ||||||
|  | 					"spi_frm"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <0>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  | 			pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gpio: pinmux@e100b10 { | ||||||
|  | 			compatible = "lantiq,xrx100-pinctrl"; | ||||||
|  | 			#gpio-cells = <2>; | ||||||
|  | 			gpio-controller; | ||||||
|  | 			reg = <0xe100b10 0xa0>; | ||||||
|  |  | ||||||
|  | 			mdio_pins: mdio { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "mdio"; | ||||||
|  | 					lantiq,function = "mdio"; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			nand_pins: nand { | ||||||
|  | 				mux-0 { | ||||||
|  | 					lantiq,groups = "nand cle", "nand ale", | ||||||
|  | 							"nand rd"; | ||||||
|  | 					lantiq,function = "ebu"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 				mux-1 { | ||||||
|  | 					lantiq,groups = "nand rdy"; | ||||||
|  | 					lantiq,function = "ebu"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			nand_cs1_pins: nand-cs1 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "nand cs1"; | ||||||
|  | 					lantiq,function = "ebu"; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_gnt1_pins: pci-gnt1 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "gnt1"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_gnt2_pins: pci-gnt2 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "gnt2"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_gnt3_pins: pci-gnt3 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "gnt3"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_gnt4_pins: pci-gnt4 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "gnt4"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_req1_pins: pci-req1 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "req1"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,open-drain = <1>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_req2_pins: pci-req2 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "req2"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,open-drain = <1>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_req3_pins: pci-req3 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "req3"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,open-drain = <1>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_req4_pins: pci-req4 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "req4"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,open-drain = <1>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			spi_pins: spi { | ||||||
|  | 				mux-0 { | ||||||
|  | 					lantiq,groups = "spi_di"; | ||||||
|  | 					lantiq,function = "spi"; | ||||||
|  | 				}; | ||||||
|  | 				mux-1 { | ||||||
|  | 					lantiq,groups = "spi_do", "spi_clk"; | ||||||
|  | 					lantiq,function = "spi"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			spi_cs4_pins: spi-cs4 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "spi_cs4"; | ||||||
|  | 					lantiq,function = "spi"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			stp_pins: stp { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "stp"; | ||||||
|  | 					lantiq,function = "stp"; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		stp: stp@e100bb0 { | ||||||
|  | 			#gpio-cells = <2>; | ||||||
|  | 			compatible = "lantiq,gpio-stp-xway"; | ||||||
|  | 			gpio-controller; | ||||||
|  | 			reg = <0xe100bb0 0x40>; | ||||||
|  |  | ||||||
|  | 			pinctrl-0 = <&stp_pins>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		asc1: serial@e100c00 { | ||||||
|  | 			compatible = "lantiq,asc"; | ||||||
|  | 			reg = <0xe100c00 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <112 113 114>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		usb0: usb@e101000 { | ||||||
|  | 			compatible = "lantiq,arx100-usb"; | ||||||
|  | 			reg = <0xe101000 0x1000 | ||||||
|  | 				0xe120000 0x3f000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <62 91>; | ||||||
|  | 			dr_mode = "host"; | ||||||
|  | 			phys = <&usb_phy0>; | ||||||
|  | 			phy-names = "usb2-phy"; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		usb1: usb@e106000 { | ||||||
|  | 			compatible = "lantiq,arx100-usb"; | ||||||
|  | 			reg = <0xe106000 0x1000 | ||||||
|  | 				0xe1e0000 0x3f000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <91>; | ||||||
|  | 			dr_mode = "host"; | ||||||
|  | 			phys = <&usb_phy1>; | ||||||
|  | 			phy-names = "usb2-phy"; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		deu@e103100 { | ||||||
|  | 			compatible = "lantiq,deu-arx100"; | ||||||
|  | 			reg = <0xe103100 0xf00>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		dma0: dma@e104100 { | ||||||
|  | 			compatible = "lantiq,dma-xway"; | ||||||
|  | 			reg = <0xe104100 0x800>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		ebu0: ebu@e105300 { | ||||||
|  | 			compatible = "lantiq,ebu-xway"; | ||||||
|  | 			reg = <0xe105300 0x100>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		mei@e116000 { | ||||||
|  | 			compatible = "lantiq,mei-xway"; | ||||||
|  | 			reg = <0xe116000 0x9c>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <63>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gsw: etop@e180000 { | ||||||
|  | 			compatible = "lantiq,etop-xway"; | ||||||
|  | 			reg = <0xe180000 0x40000 | ||||||
|  | 				0xe108000 0x200>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <73 72>; | ||||||
|  | 			mac-address = [ 00 11 22 33 44 55 ]; | ||||||
|  | 			pinctrl-0 = <&mdio_pins>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		ppe@e234000 { | ||||||
|  | 			compatible = "lantiq,ppe-arx100"; | ||||||
|  | 			reg = <0xe234000 0x3ffd>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <96>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		pci0: pci@e105400 { | ||||||
|  | 			status = "disabled"; | ||||||
|  | 			#address-cells = <3>; | ||||||
|  | 			#size-cells = <2>; | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			compatible = "lantiq,pci-xway"; | ||||||
|  | 			bus-range = <0x0 0x0>; | ||||||
|  | 			ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000	/* pci memory */ | ||||||
|  | 				  0x1000000 0 0x00000000 0xae00000 0 0x200000>;	/* io space */ | ||||||
|  | 			reg = <0x7000000 0x8000		/* config space */ | ||||||
|  | 				0xe105400 0x400>;	/* pci bridge */ | ||||||
|  | 			lantiq,bus-clock = <33333333>; | ||||||
|  | 			interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | ||||||
|  | 			interrupt-map = <0x7000 0 0 1 &icu0 30 1>; | ||||||
|  | 			req-mask = <0x1>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	adsl { | ||||||
|  | 		compatible = "lantiq,adsl-arx100"; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,169 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "avm,fritz7312", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "AVM FRITZ!Box 7312"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power; | ||||||
|  | 		led-failsafe = &power; | ||||||
|  | 		led-running = &power; | ||||||
|  | 		led-upgrade = &power; | ||||||
|  |  | ||||||
|  | 		led-dsl = &info_green; | ||||||
|  | 		led-wifi = &wlan; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x4000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		wlan { | ||||||
|  | 			label = "wlan"; | ||||||
|  | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RFKILL>; | ||||||
|  | 		}; | ||||||
|  | 		dect { | ||||||
|  | 			label = "dect"; | ||||||
|  | 			gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_PHONE>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  |  | ||||||
|  | 		power: power { | ||||||
|  | 			label = "fritz7312:green:power"; | ||||||
|  | 			gpios = <&gpio 44 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		voice { | ||||||
|  | 			label = "fritz7312:green:fon"; | ||||||
|  | 			gpios = <&gpio 47 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		dect { | ||||||
|  | 			label = "fritz7312:green:dect"; | ||||||
|  | 			gpios = <&gpio 38 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wlan: wlan { | ||||||
|  | 			label = "fritz7312:green:wlan"; | ||||||
|  | 			gpios = <&gpio 37 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		info_green: info_green { | ||||||
|  | 			label = "fritz7312:green:info"; | ||||||
|  | 			gpios = <&gpio 35 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		ar8030-intr { | ||||||
|  | 			lantiq,groups = "exin3"; | ||||||
|  | 			lantiq,function = "exin"; | ||||||
|  | 			lantiq,pull = <2>; | ||||||
|  | 			lantiq,output = <0>; | ||||||
|  | 		}; | ||||||
|  | 		ar8030-clk { | ||||||
|  | 			lantiq,groups = "clkout2"; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 			lantiq,open-drain; | ||||||
|  | 		}; | ||||||
|  | 		ar8030-rst { | ||||||
|  | 			lantiq,pins = "io34"; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 			lantiq,pull = <2>; | ||||||
|  | 			lantiq,open-drain; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "rmii"; | ||||||
|  | 	phy-handle = <&phy0>; | ||||||
|  | 	mtd-mac-address = <&ath9k_cal 0xa91>; | ||||||
|  | 	mtd-mac-address-increment = <(-2)>; | ||||||
|  |  | ||||||
|  | 	mdio-bus { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		phy0: ethernet-phy@0 { | ||||||
|  | 			reg = <0>; | ||||||
|  | 			reset-gpios = <&gpio 34 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x1000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			ath9k_cal: partition@0 { | ||||||
|  | 				label = "urlader"; | ||||||
|  | 				reg = <0x00000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@20000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x20000 0xf60000>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@f80000 { | ||||||
|  | 				label = "tffs (1)"; | ||||||
|  | 				reg = <0xf80000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@fc0000 { | ||||||
|  | 				label = "tffs (2)"; | ||||||
|  | 				reg = <0xfc0000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>, | ||||||
|  | 		    <&pci_gnt3_pins>, <&pci_gnt4_pins>, | ||||||
|  | 		    <&pci_req1_pins>, <&pci_req2_pins>, | ||||||
|  | 		    <&pci_req4_pins>; | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 	req-mask = <0xf>; | ||||||
|  | 	gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>; | ||||||
|  |  | ||||||
|  | 	wifi@0,0 { | ||||||
|  | 		compatible = "pci0,0"; | ||||||
|  | 		reg = <0x7000 0 0 0 0>; | ||||||
|  | 		qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,151 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "avm,fritz7320", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "AVM FRITZ!Box 7320"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power; | ||||||
|  | 		led-failsafe = &power; | ||||||
|  | 		led-running = &power; | ||||||
|  | 		led-upgrade = &power; | ||||||
|  |  | ||||||
|  | 		led-dsl = &info_green; | ||||||
|  | 		led-wifi = &wlan; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x4000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		rfkill { | ||||||
|  | 			label = "rfkill"; | ||||||
|  | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RFKILL>; | ||||||
|  | 		}; | ||||||
|  | 		dect { | ||||||
|  | 			label = "dect"; | ||||||
|  | 			gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_PHONE>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  | 		power: power { | ||||||
|  | 			label = "fritz7320:green:power"; | ||||||
|  | 			gpios = <&gpio 44 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		voice { | ||||||
|  | 			label = "fritz7320:green:fon"; | ||||||
|  | 			gpios = <&gpio 47 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		dect { | ||||||
|  | 			label = "fritz7320:green:dect"; | ||||||
|  | 			gpios = <&gpio 38 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wlan: wlan { | ||||||
|  | 			label = "fritz7320:green:wlan"; | ||||||
|  | 			gpios = <&gpio 37 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		info_green: info_green { | ||||||
|  | 			label = "fritz7320:green:info"; | ||||||
|  | 			gpios = <&gpio 35 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		info_red { | ||||||
|  | 			label = "fritz7320:red:info"; | ||||||
|  | 			gpios = <&gpio 45 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "mii"; | ||||||
|  | 	mtd-mac-address = <&ath9k_cal 0xa91>; | ||||||
|  | 	mtd-mac-address-increment = <(-2)>; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x1000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			ath9k_cal: partition@0 { | ||||||
|  | 				label = "urlader"; | ||||||
|  | 				reg = <0x00000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@20000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x20000 0xf60000>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@f80000 { | ||||||
|  | 				label = "tffs (1)"; | ||||||
|  | 				reg = <0xf80000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@fc0000 { | ||||||
|  | 				label = "tffs (2)"; | ||||||
|  | 				reg = <0xfc0000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>, | ||||||
|  | 		    <&pci_gnt3_pins>, <&pci_gnt4_pins>, | ||||||
|  | 		    <&pci_req1_pins>, <&pci_req2_pins>, | ||||||
|  | 		    <&pci_req3_pins>, <&pci_req4_pins>; | ||||||
|  |  | ||||||
|  | 	req-mask = <0xf>; | ||||||
|  | 	gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; | ||||||
|  |  | ||||||
|  | 	wifi@0,0 { | ||||||
|  | 		compatible = "pci0,0"; | ||||||
|  | 		reg = <0x7000 0 0 0 0>; | ||||||
|  | 		qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy1 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb1 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,191 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "bt,homehub-v3a", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "BT Home Hub 3A";  /* SoC: Lantiq ar9 @ 333MHz */ | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power_orange; | ||||||
|  | 		led-failsafe = &power_red; | ||||||
|  | 		led-running = &power_blue; | ||||||
|  | 		led-upgrade = &power_blue; | ||||||
|  |  | ||||||
|  | 		led-dsl = &broadband_blue; | ||||||
|  | 		led-wifi = &wireless_blue; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 {				  /* RAM: Samsung K4H511638F-LC 64MB */ | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x4000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 54 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 		restart { | ||||||
|  | 			label = "restart"; | ||||||
|  | 			gpios = <&gpio 52 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_POWER>; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "wps"; | ||||||
|  | 			gpios = <&gpio 53 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  |  | ||||||
|  | 		wireless-red { | ||||||
|  | 			label = "bthomehubv3a:red:wireless"; | ||||||
|  | 			gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wireless-orange { | ||||||
|  | 			label = "bthomehubv3a:orange:wireless"; | ||||||
|  | 			gpios = <&gpio 6 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wireless_blue: wireless-blue { | ||||||
|  | 			label = "bthomehubv3a:blue:wireless"; | ||||||
|  | 			gpios = <&gpio 9 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		broadband-red { | ||||||
|  | 			label = "bthomehubv3a:red:broadband"; | ||||||
|  | 			gpios = <&gpio 11 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		broadband-orange { | ||||||
|  | 			label = "bthomehubv3a:orange:broadband"; | ||||||
|  | 			gpios = <&gpio 0 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		broadband_blue: broadband-blue { | ||||||
|  | 			label = "bthomehubv3a:blue:broadband"; | ||||||
|  | 			gpios = <&gpio 12 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		power_red: power-red { | ||||||
|  | 			label = "bthomehubv3a:red:power"; | ||||||
|  | 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		power_orange: power-orange { | ||||||
|  | 			label = "bthomehubv3a:orange:power"; | ||||||
|  | 			gpios = <&gpio 5 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		power_blue: power-blue { | ||||||
|  | 			label = "bthomehubv3a:blue:power"; | ||||||
|  | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	usb_vbus: regulator-usb-vbus { | ||||||
|  | 		compatible = "regulator-fixed"; | ||||||
|  |  | ||||||
|  | 		regulator-name = "USB_VBUS"; | ||||||
|  |  | ||||||
|  | 		regulator-min-microvolt = <5000000>; | ||||||
|  | 		regulator-max-microvolt = <5000000>; | ||||||
|  |  | ||||||
|  | 		gpio = <&gpio 33 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		enable-active-high; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		pci_rst { | ||||||
|  | 			lantiq,pins = "io21"; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 			lantiq,open-drain = <0>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "rgmii"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@1 {		  /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */ | ||||||
|  | 		compatible = "lantiq,nand-xway"; | ||||||
|  | 		lantiq,cs = <1>; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <1 0x0 0x2000000 >; | ||||||
|  | 		req-mask = <0x1>;  /* PCI request lines to mask during NAND access */ | ||||||
|  |  | ||||||
|  | 		pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>; | ||||||
|  | 		pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				label = "preboot"; | ||||||
|  | 				reg = <0x00000 0x8000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  | 			partition@8000 { | ||||||
|  | 				label = "u-boot"; | ||||||
|  | 				reg = <0x8000 0x05c000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  | 			partition@64000 { | ||||||
|  | 				label = "uboot_env"; | ||||||
|  | 				reg = <0x64000 0x004000>; | ||||||
|  | 			}; | ||||||
|  | 			ath9k_cal: partition@68000 { | ||||||
|  | 				label = "art-copy"; | ||||||
|  | 				reg = <0x68000 0x004000>; | ||||||
|  | 			}; | ||||||
|  | 			partition@6c000 { | ||||||
|  | 				label = "kernel"; | ||||||
|  | 				reg = <0x6c000 0x200000>; | ||||||
|  | 			}; | ||||||
|  | 			partition@26c000 { | ||||||
|  | 				label = "ubi"; | ||||||
|  | 				reg = <0x26c000 0x1d94000>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>; | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 	gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; | ||||||
|  |  | ||||||
|  | 	wifi@7000 { | ||||||
|  | 		reg = <0x7000 0 0 0 0>; | ||||||
|  | 		qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | 	vbus-supply = <&usb_vbus>; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,197 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "Buffalo WBMR-HP-G300H"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power_green; | ||||||
|  | 		led-failsafe = &power_red; | ||||||
|  | 		led-running = &power_green; | ||||||
|  | 		led-upgrade = &power_green; | ||||||
|  |  | ||||||
|  | 		led-dsl = &dsl; | ||||||
|  | 		led-internet = &online_green; | ||||||
|  | 		led-usb = &led_usb; | ||||||
|  | 		led-wifi = &wifi; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x4000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		wps { | ||||||
|  | 			label = "wps"; | ||||||
|  | 			gpios = <&gpio 0 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
|  | 		}; | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 37 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 		eject { | ||||||
|  | 			label = "eject"; | ||||||
|  | 			gpios = <&gpio 34 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_EJECTCD>; | ||||||
|  | 		}; | ||||||
|  | 		movie { | ||||||
|  | 			label = "movie"; | ||||||
|  | 			gpios = <&gpio 22 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_VIDEO>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  |  | ||||||
|  | 		power_green: power { | ||||||
|  | 			label = "wbmr:green:power"; | ||||||
|  | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		power_red: power2 { | ||||||
|  | 			label = "wbmr:red:power"; | ||||||
|  | 			gpios = <&gpio 5 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		security { | ||||||
|  | 			label = "wbmr:yellow:security"; | ||||||
|  | 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wifi: wifi { | ||||||
|  | 			label = "wbmr:green:wireless"; | ||||||
|  | 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		dsl: dsl { | ||||||
|  | 			label = "wbmr:green:dsl"; | ||||||
|  | 			gpios = <&gpio 16 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		online_green: online { | ||||||
|  | 			label = "wbmr:green:internet"; | ||||||
|  | 			gpios = <&gpio 17 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		online2 { | ||||||
|  | 			label = "wbmr:red:internet"; | ||||||
|  | 			gpios = <&gpio 18 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		movie { | ||||||
|  | 			label = "wbmr:blue:movie"; | ||||||
|  | 			gpios = <&gpio 20 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		led_usb: usb { | ||||||
|  | 			label = "wbmr:green:usb"; | ||||||
|  | 			gpios = <&gpio 28 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "on"; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	usb_vbus: regulator-usb-vbus { | ||||||
|  | 		compatible = "regulator-fixed"; | ||||||
|  |  | ||||||
|  | 		regulator-name = "USB_VBUS"; | ||||||
|  |  | ||||||
|  | 		regulator-min-microvolt = <5000000>; | ||||||
|  | 		regulator-max-microvolt = <5000000>; | ||||||
|  |  | ||||||
|  | 		gpio = <&gpio 36 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		enable-active-high; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		pci-in { | ||||||
|  | 			lantiq,groups = "req1"; | ||||||
|  | 			lantiq,output = <0>; | ||||||
|  | 			lantiq,open-drain = <1>; | ||||||
|  | 			lantiq,pull = <2>; | ||||||
|  | 		}; | ||||||
|  | 		pci-out { | ||||||
|  | 			lantiq,groups = "gnt1"; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 			lantiq,pull = <0>; | ||||||
|  | 		}; | ||||||
|  | 		pci_rst { | ||||||
|  | 			lantiq,pins = "io21"; | ||||||
|  | 			lantiq,pull = <0>; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "rgmii"; | ||||||
|  | 	mtd-mac-address = <&boardconfig 0x10024>; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x2000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				label = "uboot"; | ||||||
|  | 				reg = <0x00000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@40000 { | ||||||
|  | 				label = "uboot_env"; | ||||||
|  | 				reg = <0x40000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@20000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x60000 0x1f20000>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			boardconfig: partition@1fc0000 { | ||||||
|  | 				label = "board"; | ||||||
|  | 				reg = <0x1fc0000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@1fe0000 { | ||||||
|  | 				label = "calibration"; | ||||||
|  | 				reg = <0x1fe0000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | 	vbus-supply = <&usb_vbus>; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,8 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9_netgear_dgn3500.dtsi" | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "netgear,dgn3500", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "Netgear DGN3500"; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,185 @@ | |||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "root= console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power_green; | ||||||
|  | 		led-failsafe = &power_red; | ||||||
|  | 		led-running = &power_green; | ||||||
|  | 		led-upgrade = &power_green; | ||||||
|  |  | ||||||
|  | 		led-dsl = &dsl; | ||||||
|  | 		led-internet = &internet; | ||||||
|  | 		led-usb = &led_usb; | ||||||
|  | 		led-wifi = &wifi_green; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x4000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	rtl8366rb { | ||||||
|  | 		compatible = "realtek,rtl8366rb"; | ||||||
|  | 		gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		gpio-sck = <&gpio 37 GPIO_ACTIVE_HIGH>; | ||||||
|  |  | ||||||
|  | 		realtek,initvals = < | ||||||
|  | 			0x0000 0x0830 | ||||||
|  | 			0x0400 0x8130 | ||||||
|  | 			0x000a 0x83ed | ||||||
|  | 			0x0f51 0x0017 | ||||||
|  | 			0x02f5 0x0048 | ||||||
|  | 			0x02fa 0xffdf | ||||||
|  | 			0x02fb 0xffe0 | ||||||
|  | 			0x0450 0x0000 | ||||||
|  | 			0x0401 0x0000 | ||||||
|  | 			0x0431 0x0960 | ||||||
|  | 		>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		rfkill { | ||||||
|  | 			label = "rfkill"; | ||||||
|  | 			gpios = <&gpio 36 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RFKILL>; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "wps"; | ||||||
|  | 			gpios = <&gpio 54 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
|  | 		}; | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 53 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  | 		internet: internet { | ||||||
|  | 			label = "dgn3500:green:internet"; | ||||||
|  | 			gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		internet2 { | ||||||
|  | 			label = "dgn3500:red:internet"; | ||||||
|  | 			gpios = <&gpio 30 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		dsl: dsl { | ||||||
|  | 			label = "dgn3500:green:dsl"; | ||||||
|  | 			gpios = <&gpio 4 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		led_usb: usb { | ||||||
|  | 			label = "dgn3500:green:usb"; | ||||||
|  | 			gpios = <&gpio 22 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		power_green: power { | ||||||
|  | 			label = "dgn3500:green:power"; | ||||||
|  | 			gpios = <&gpio 34 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		power_red: power2 { | ||||||
|  | 			label = "dgn3500:red:power"; | ||||||
|  | 			gpios = <&gpio 39 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wifi_green: wifi { | ||||||
|  | 			label = "dgn3500:green:wireless"; | ||||||
|  | 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wifi2 { | ||||||
|  | 			label = "dgn3500:amber:wireless"; | ||||||
|  | 			gpios = <&gpio 51 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "dgn3500:green:wps"; | ||||||
|  | 			gpios = <&gpio 52 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		exin { | ||||||
|  | 			lantiq,groups = "exin1"; | ||||||
|  | 			lantiq,function = "exin"; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "mii"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>; | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 	gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; | ||||||
|  |  | ||||||
|  | 	wifi@168c,0029 { | ||||||
|  | 		compatible = "pci168c,0029"; | ||||||
|  | 		reg = <0x7000 0 0 0 0>; | ||||||
|  | 		qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &spi { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	flash@4 { | ||||||
|  | 		compatible = "jedec,spi-nor"; | ||||||
|  | 		reg = <4>; | ||||||
|  | 		spi-max-frequency = <20000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				reg = <0x0 0x10000>; | ||||||
|  | 				label = "uboot"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@10000 { | ||||||
|  | 				reg = <0x10000 0x10000>; | ||||||
|  | 				label = "uboot-env"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			ath9k_cal: partition@20000 { | ||||||
|  | 				reg = <0x20000 0x10000>; | ||||||
|  | 				label = "calibration"; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@50000 { | ||||||
|  | 				reg = <0x50000 0xfa0000>; | ||||||
|  | 				label = "firmware"; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,8 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9_netgear_dgn3500.dtsi" | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "netgear,dgn3500b", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "Netgear DGN3500B"; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,172 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "ZTE H210L"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power_green; | ||||||
|  | 		led-failsafe = &power_green; | ||||||
|  | 		led-running = &power_green; | ||||||
|  | 		led-upgrade = &power_green; | ||||||
|  |  | ||||||
|  | 		led-dsl = &dsl; | ||||||
|  | 		led-internet = &online; | ||||||
|  | 		led-usb = &led_usb; | ||||||
|  | 		led-wifi = &wifi; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x2000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 53 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "wps"; | ||||||
|  | 			gpios = <&gpio 54 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
|  | 		}; | ||||||
|  | 		rfkill { | ||||||
|  | 			label = "rfkill"; | ||||||
|  | 			gpios = <&gpio 55 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RFKILL>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  |  | ||||||
|  | 		power_green: power { | ||||||
|  | 			label = "h201l:green:power"; | ||||||
|  | 			gpios = <&gpio 19 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		online: online { | ||||||
|  | 			label = "h201l:green:internet"; | ||||||
|  | 			gpios = <&gpio 37 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		dsl: dsl { | ||||||
|  | 			label = "h201l:green:dsl"; | ||||||
|  | 			gpios = <&gpio 4 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		phone { | ||||||
|  | 			label = "h201l:green:phone"; | ||||||
|  | 			gpios = <&gpio 39 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wps { | ||||||
|  | 			label = "h201l:green:wps"; | ||||||
|  | 			gpios = <&gpio 22 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wifi: wifi { | ||||||
|  | 			label = "h201l:green:wlan"; | ||||||
|  | 			gpios = <&gpio 6 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		led_usb: usb { | ||||||
|  | 			label = "h201l:green:usb"; | ||||||
|  | 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	gpio_export { | ||||||
|  | 		compatible = "gpio-export"; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		switch { | ||||||
|  | 			gpio-export,name = "switch"; | ||||||
|  | 			gpio-export,output = <1>; | ||||||
|  | 			gpios = <&gpio 38 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		usb { | ||||||
|  | 			gpio-export,name = "usb"; | ||||||
|  | 			gpio-export,output = <1>; | ||||||
|  | 			gpios = <&gpio 28 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		wifi { | ||||||
|  | 			gpio-export,name = "wifi"; | ||||||
|  | 			gpio-export,output = <1>; | ||||||
|  | 			gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	usb_vbus: regulator-usb-vbus { | ||||||
|  | 		compatible = "regulator-fixed"; | ||||||
|  |  | ||||||
|  | 		regulator-name = "USB_VBUS"; | ||||||
|  |  | ||||||
|  | 		regulator-min-microvolt = <5000000>; | ||||||
|  | 		regulator-max-microvolt = <5000000>; | ||||||
|  |  | ||||||
|  | 		gpio = <&gpio 36 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		enable-active-high; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "rgmii"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x2000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				label = "uboot"; | ||||||
|  | 				reg = <0x00000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@20000 { | ||||||
|  | 				label = "uboot_env"; | ||||||
|  | 				reg = <0x20000 0x10000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@30000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x30000 0x7d0000>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | &usb0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | 	vbus-supply = <&usb_vbus>; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,178 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "ar9.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9"; | ||||||
|  | 	model = "ZyXEL P-2601HN-Fx"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power_green; | ||||||
|  | 		led-failsafe = &power_red; | ||||||
|  | 		led-running = &power_green; | ||||||
|  | 		led-upgrade = &power_green; | ||||||
|  |  | ||||||
|  | 		led-dsl = &dsl; | ||||||
|  | 		led-internet = &online; | ||||||
|  | 		led-wifi = &wifi; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x4000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 53 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 		rfkill { | ||||||
|  | 			label = "rfkill"; | ||||||
|  | 			gpios = <&gpio 54 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RFKILL>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  |  | ||||||
|  | 		power_green: power { | ||||||
|  | 			label = "p2601hnfx:green:power"; | ||||||
|  | 			gpios = <&stp 11 GPIO_ACTIVE_LOW>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		power_red: power2 { | ||||||
|  | 			label = "p2601hnfx:red:power"; | ||||||
|  | 			gpios = <&gpio 29 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		online: online { | ||||||
|  | 			label = "p2601hnfx:green:internet"; | ||||||
|  | 			gpios = <&stp 13 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		online2 { | ||||||
|  | 			label = "p2601hnfx:red:internet"; | ||||||
|  | 			gpios = <&stp 12 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		dsl: dsl { | ||||||
|  | 			label = "p2601hnfx:green:dsl"; | ||||||
|  | 			gpios = <&stp 14 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		phone { | ||||||
|  | 			label = "p2601hnfx:green:phone"; | ||||||
|  | 			gpios = <&stp 9 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		phone2 { | ||||||
|  | 			label = "p2601hnfx:orange:phone"; | ||||||
|  | 			gpios = <&stp 8 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wifi: wifi { | ||||||
|  | 			label = "p2601hnfx:green:wireless"; | ||||||
|  | 			gpios = <&stp 15 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 		wifi2 { | ||||||
|  | 			label = "p2601hnfx:orange:wireless"; | ||||||
|  | 			gpios = <&stp 10 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	gpio_export { | ||||||
|  | 		compatible = "gpio-export"; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		switch { | ||||||
|  | 			gpio-export,name = "switch"; | ||||||
|  | 			gpio-export,output = <1>; | ||||||
|  | 			gpios = <&gpio 50 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		exin { | ||||||
|  | 			lantiq,groups = "exin1"; | ||||||
|  | 			lantiq,function = "exin"; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	usb_vbus: regulator-usb-vbus { | ||||||
|  | 		compatible = "regulator-fixed"; | ||||||
|  |  | ||||||
|  | 		regulator-name = "USB_VBUS"; | ||||||
|  |  | ||||||
|  | 		regulator-min-microvolt = <5000000>; | ||||||
|  | 		regulator-max-microvolt = <5000000>; | ||||||
|  |  | ||||||
|  | 		gpio = <&gpio 9 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		enable-active-high; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "rmii"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x2000000>; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				label = "uboot"; | ||||||
|  | 				reg = <0x00000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@40000 { | ||||||
|  | 				label = "uboot_env"; | ||||||
|  | 				reg = <0x40000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@60000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x60000 0xfa0000>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>; | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &stp { | ||||||
|  | 	status = "okay"; | ||||||
|  | 	lantiq,shadow = <0xfff>; | ||||||
|  | 	lantiq,groups = <0x3>; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb0 { | ||||||
|  | 	status = "okay"; | ||||||
|  | 	vbus-supply = <&usb_vbus>; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,325 @@ | |||||||
|  | #include <dt-bindings/gpio/gpio.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	#address-cells = <1>; | ||||||
|  | 	#size-cells = <1>; | ||||||
|  | 	compatible = "lantiq,xway", "lantiq,danube"; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		serial0 = &asc1; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		stdout-path = "serial0:115200n8"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	cpus { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		cpu@0 { | ||||||
|  | 			compatible = "mips,mips24Kc"; | ||||||
|  | 			reg = <0>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	reboot { | ||||||
|  | 		compatible = "syscon-reboot"; | ||||||
|  |  | ||||||
|  | 		regmap = <&rcu0>; | ||||||
|  | 		offset = <0x10>; | ||||||
|  | 		mask = <0x40000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	biu@1f800000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,biu", "simple-bus"; | ||||||
|  | 		reg = <0x1f800000 0x800000>; | ||||||
|  | 		ranges = <0x0 0x1f800000 0x7fffff>; | ||||||
|  |  | ||||||
|  | 		icu0: icu@80200 { | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			interrupt-controller; | ||||||
|  | 			compatible = "lantiq,icu"; | ||||||
|  | 			reg = <0x80200 0x28 | ||||||
|  | 				0x80228 0x28 | ||||||
|  | 				0x80250 0x28 | ||||||
|  | 				0x80278 0x28 | ||||||
|  | 				0x802a0 0x28>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		watchdog@803f0 { | ||||||
|  | 			compatible = "lantiq,wdt"; | ||||||
|  | 			reg = <0x803f0 0x10>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	sram@1f000000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,sram", "simple-bus"; | ||||||
|  | 		reg = <0x1f000000 0x800000>; | ||||||
|  | 		ranges = <0x0 0x1f000000 0x7fffff>; | ||||||
|  |  | ||||||
|  | 		eiu0: eiu@101000 { | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			interrupt-controller; | ||||||
|  | 			compatible = "lantiq,eiu-xway"; | ||||||
|  | 			reg = <0x101000 0x1000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			lantiq,eiu-irqs = <166 135 66>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		pmu0: pmu@102000 { | ||||||
|  | 			compatible = "lantiq,pmu-xway"; | ||||||
|  | 			reg = <0x102000 0x1000>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		cgu0: cgu@103000 { | ||||||
|  | 			compatible = "lantiq,cgu-xway"; | ||||||
|  | 			reg = <0x103000 0x1000>; | ||||||
|  | 			#clock-cells = <1>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		vmmc: vmmc@107000 { | ||||||
|  | 			status = "disabled"; | ||||||
|  | 			compatible = "lantiq,vmmc-xway"; | ||||||
|  | 			reg = <0x107000 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <150 151 152 153 154 155>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		rcu0: rcu@203000 { | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  | 			compatible = "lantiq,danube-rcu", "simple-mfd", "syscon"; | ||||||
|  | 			reg = <0x203000 0x1000>; | ||||||
|  | 			ranges = <0x0 0x203000 0x100>; | ||||||
|  | 			big-endian; | ||||||
|  |  | ||||||
|  | 			reset: reset-controller@10 { | ||||||
|  | 				compatible = "lantiq,danube-reset"; | ||||||
|  | 				reg = <0x10 4>, <0x14 4>; | ||||||
|  |  | ||||||
|  | 				#reset-cells = <2>; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			usb_phy: usb2-phy@18 { | ||||||
|  | 				compatible = "lantiq,danube-usb2-phy"; | ||||||
|  | 				reg = <0x18 4>; | ||||||
|  | 				status = "disabled"; | ||||||
|  |  | ||||||
|  | 				resets = <&reset 4 4>; | ||||||
|  | 				reset-names = "ctrl"; | ||||||
|  | 				#phy-cells = <0>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	fpi@10000000 { | ||||||
|  | 		#address-cells = <1>; | ||||||
|  | 		#size-cells = <1>; | ||||||
|  | 		compatible = "lantiq,fpi", "simple-bus"; | ||||||
|  | 		ranges = <0x0 0x10000000 0xeefffff>; | ||||||
|  | 		reg = <0x10000000 0xef00000>; | ||||||
|  |  | ||||||
|  | 		localbus: localbus@0 { | ||||||
|  | 			#address-cells = <2>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  | 			ranges = <0 0 0x0 0x3ffffff /* addrsel0 */ | ||||||
|  | 				1 0 0x4000000 0x4000010>; /* addsel1 */ | ||||||
|  | 			compatible = "lantiq,localbus", "simple-bus"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gptu@e100a00 { | ||||||
|  | 			compatible = "lantiq,gptu-xway"; | ||||||
|  | 			reg = <0xe100a00 0x100>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <126 127 128 129 130 131>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gpios: stp@e100bb0 { | ||||||
|  | 			#gpio-cells = <2>; | ||||||
|  | 			compatible = "lantiq,gpio-stp-xway"; | ||||||
|  | 			gpio-controller; | ||||||
|  | 			reg = <0xe100bb0 0x40>; | ||||||
|  |  | ||||||
|  | 			pinctrl-0 = <&stp_pins>; | ||||||
|  | 			pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 			lantiq,shadow = <0xfff>; | ||||||
|  | 			lantiq,groups = <0x3>; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		asc0: serial@e100400 { | ||||||
|  | 			compatible = "lantiq,asc"; | ||||||
|  | 			reg = <0xe100400 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <104 105 106>; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gpio: pinmux@e100b10 { | ||||||
|  | 			compatible = "lantiq,danube-pinctrl"; | ||||||
|  | 			#gpio-cells = <2>; | ||||||
|  | 			gpio-controller; | ||||||
|  | 			reg = <0xe100b10 0xa0>; | ||||||
|  |  | ||||||
|  | 			nand_pins: nand { | ||||||
|  | 				mux-0 { | ||||||
|  | 					lantiq,groups = "nand cle", "nand ale", | ||||||
|  | 							"nand rd"; | ||||||
|  | 					lantiq,function = "ebu"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 				mux-1 { | ||||||
|  | 					lantiq,groups = "nand rdy"; | ||||||
|  | 					lantiq,function = "ebu"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			nand_cs1_pins: nand-cs1 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "nand cs1"; | ||||||
|  | 					lantiq,function = "ebu"; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_gnt1_pins: pci-gnt1 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "gnt1"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_gnt2_pins: pci-gnt2 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "gnt2"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_req1_pins: pci-req1 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "req1"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,open-drain = <1>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			pci_req2_pins: pci-req2 { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "req2"; | ||||||
|  | 					lantiq,function = "pci"; | ||||||
|  | 					lantiq,output = <0>; | ||||||
|  | 					lantiq,open-drain = <1>; | ||||||
|  | 					lantiq,pull = <2>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			stp_pins: stp { | ||||||
|  | 				mux { | ||||||
|  | 					lantiq,groups = "stp"; | ||||||
|  | 					lantiq,function = "stp"; | ||||||
|  | 					lantiq,pull = <0>; | ||||||
|  | 					lantiq,open-drain = <0>; | ||||||
|  | 					lantiq,output = <1>; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		asc1: serial@e100c00 { | ||||||
|  | 			compatible = "lantiq,asc"; | ||||||
|  | 			reg = <0xe100c00 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <112 113 114>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		usb: usb@e101000 { | ||||||
|  | 			compatible = "lantiq,danube-usb"; | ||||||
|  | 			reg = <0xe101000 0x1000 | ||||||
|  | 				0xe120000 0x3f000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <62>; | ||||||
|  | 			dr_mode = "host"; | ||||||
|  | 			phys = <&usb_phy>; | ||||||
|  | 			phy-names = "usb2-phy"; | ||||||
|  | 			status = "disabled"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		deu@e103100 { | ||||||
|  | 			compatible = "lantiq,deu-danube"; | ||||||
|  | 			reg = <0xe103100 0xf00>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		dma0: dma@e104100 { | ||||||
|  | 			compatible = "lantiq,dma-xway"; | ||||||
|  | 			reg = <0xe104100 0x800>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		ebu0: ebu@e105300 { | ||||||
|  | 			compatible = "lantiq,ebu-xway"; | ||||||
|  | 			reg = <0xe105300 0x100>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		mei@e116000 { | ||||||
|  | 			compatible = "lantiq,mei-xway"; | ||||||
|  | 			reg = <0xe116000 0x400>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <63>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		gsw: etop@e180000 { | ||||||
|  | 			compatible = "lantiq,etop-xway"; | ||||||
|  | 			reg = <0xe180000 0x40000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <73 78>; | ||||||
|  | 			mac-address = [ 00 11 22 33 44 55 ]; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		ppe@e234000 { | ||||||
|  | 			compatible = "lantiq,ppe-danube"; | ||||||
|  | 			reg = <0xe234000 0x40000>; | ||||||
|  | 			interrupt-parent = <&icu0>; | ||||||
|  | 			interrupts = <96>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		pci0: pci@e105400 { | ||||||
|  | 			status = "disabled"; | ||||||
|  |  | ||||||
|  | 			#address-cells = <3>; | ||||||
|  | 			#size-cells = <2>; | ||||||
|  | 			#interrupt-cells = <1>; | ||||||
|  | 			compatible = "lantiq,pci-xway"; | ||||||
|  | 			bus-range = <0x0 0x0>; | ||||||
|  | 			ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000	/* pci memory */ | ||||||
|  | 				  0x1000000 0 0x00000000 0xae00000 0 0x200000>;	/* io space */ | ||||||
|  | 			reg = <0x7000000 0x8000		/* config space */ | ||||||
|  | 				0xe105400 0x400>;	/* pci bridge */ | ||||||
|  | 			lantiq,bus-clock = <33333333>; | ||||||
|  | 			interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | ||||||
|  | 			interrupt-map = <0x7000 0 0 1 &icu0 30 1>; /* slot 14, irq 30 */ | ||||||
|  | 			req-mask = <0x1>; /* GNT1 */ | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	adsl { | ||||||
|  | 		compatible = "lantiq,adsl-danube"; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,214 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "danube.dtsi" | ||||||
|  |  | ||||||
|  | #include <dt-bindings/input/input.h> | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "arcadyan,arv4510pw", "lantiq,xway", "lantiq,danube"; | ||||||
|  | 	model = "Wippies, Elisa"; | ||||||
|  |  | ||||||
|  | 	chosen { | ||||||
|  | 		bootargs = "console=ttyLTQ0,115200"; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	aliases { | ||||||
|  | 		led-boot = &power; | ||||||
|  | 		led-failsafe = &power2; | ||||||
|  | 		led-running = &power; | ||||||
|  | 		led-upgrade = &power; | ||||||
|  |  | ||||||
|  | 		led-dsl = &adsl; | ||||||
|  | 		led-internet = &internet; | ||||||
|  | 		led-usb = &led_usb; | ||||||
|  | 		led-usb2 = &led_usb2; | ||||||
|  | 		led-wifi = &wifi; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	memory@0 { | ||||||
|  | 		device_type = "memory"; | ||||||
|  | 		reg = <0x0 0x2000000>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	keys { | ||||||
|  | 		compatible = "gpio-keys-polled"; | ||||||
|  | 		poll-interval = <100>; | ||||||
|  |  | ||||||
|  | 		wps { | ||||||
|  | 			label = "wps"; | ||||||
|  | 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_WPS_BUTTON>; | ||||||
|  | 		}; | ||||||
|  | 		reset { | ||||||
|  | 			label = "reset"; | ||||||
|  | 			gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,code = <KEY_RESTART>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	leds { | ||||||
|  | 		compatible = "gpio-leds"; | ||||||
|  | 		power: power { | ||||||
|  | 			label = "power"; | ||||||
|  | 			gpios = <&gpios 21 GPIO_ACTIVE_HIGH>; | ||||||
|  | 			default-state = "keep"; | ||||||
|  | 		}; | ||||||
|  | 		power2: power2 { | ||||||
|  | 			label = "power2"; | ||||||
|  | 			gpios = <&gpios 20 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		lan1 { | ||||||
|  | 			label = "lan1"; | ||||||
|  | 			gpios = <&gpios 19 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		lan2 { | ||||||
|  | 			label = "lan2"; | ||||||
|  | 			gpios = <&gpios 18 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		lan3 { | ||||||
|  | 			label = "lan3"; | ||||||
|  | 			gpios = <&gpios 17 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		lan4 { | ||||||
|  | 			label = "lan4"; | ||||||
|  | 			gpios = <&gpios 16 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		wifi: wifi { | ||||||
|  | 			label = "wifi"; | ||||||
|  | 			gpios = <&gpios 15 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		adsl: adsl { | ||||||
|  | 			label = "adsl"; | ||||||
|  | 			gpios = <&gpios 14 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		internet: internet { | ||||||
|  | 			label = "internet"; | ||||||
|  | 			gpios = <&gpios 13 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		internet2 { | ||||||
|  | 			label = "internet2"; | ||||||
|  | 			gpios = <&gpios 12 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		voip { | ||||||
|  | 			label = "voip"; | ||||||
|  | 			gpios = <&gpios 11 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		phone { | ||||||
|  | 			label = "phone"; | ||||||
|  | 			gpios = <&gpios 10 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		phone2 { | ||||||
|  | 			label = "phone2"; | ||||||
|  | 			gpios = <&gpios 9 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		led_usb: usb { | ||||||
|  | 			label = "usb"; | ||||||
|  | 			gpios = <&gpios 8 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		led_usb2: usb2 { | ||||||
|  | 			label = "usb2"; | ||||||
|  | 			gpios = <&gpios 7 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		usb3 { | ||||||
|  | 			label = "usb3"; | ||||||
|  | 			gpios = <&gpios 6 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 		unlabeled { | ||||||
|  | 			label = "unlabeled"; | ||||||
|  | 			gpios = <&gpios 5 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpio { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&state_default>; | ||||||
|  |  | ||||||
|  | 	state_default: pinmux { | ||||||
|  | 		ebu { | ||||||
|  | 			lantiq,groups = "ebu a23"; | ||||||
|  | 			lantiq,function = "ebu"; | ||||||
|  | 			lantiq,open-drain = <0>; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 		}; | ||||||
|  | 		exin { | ||||||
|  | 			lantiq,groups = "exin1", "exin2"; | ||||||
|  | 			lantiq,function = "exin"; | ||||||
|  | 			lantiq,output = <0>; | ||||||
|  | 		}; | ||||||
|  | 		pci_rst { | ||||||
|  | 			lantiq,pins = "io21"; | ||||||
|  | 			lantiq,open-drain = <0>; | ||||||
|  | 			lantiq,output = <1>; | ||||||
|  | 		}; | ||||||
|  | 		buttons { | ||||||
|  | 			lantiq,pins = "io3", "io14"; | ||||||
|  | 			lantiq,pull = <2>; | ||||||
|  | 			lantiq,output = <0>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gpios { | ||||||
|  | 	status = "okay"; | ||||||
|  | 	lantiq,groups = <0x7>; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &gsw { | ||||||
|  | 	phy-mode = "rmii"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &localbus { | ||||||
|  | 	flash@0 { | ||||||
|  | 		compatible = "lantiq,nor"; | ||||||
|  | 		bank-width = <2>; | ||||||
|  | 		reg = <0 0x0 0x1000000>; | ||||||
|  |  | ||||||
|  | 		lantiq,noxip; | ||||||
|  |  | ||||||
|  | 		partitions { | ||||||
|  | 			compatible = "fixed-partitions"; | ||||||
|  | 			#address-cells = <1>; | ||||||
|  | 			#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 			partition@0 { | ||||||
|  | 				label = "uboot"; | ||||||
|  | 				reg = <0x00000 0x40000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@40000 { | ||||||
|  | 				label = "uboot_env"; | ||||||
|  | 				reg = <0x40000 0x20000>; | ||||||
|  | 				read-only; | ||||||
|  | 			}; | ||||||
|  |  | ||||||
|  | 			partition@60000 { | ||||||
|  | 				label = "firmware"; | ||||||
|  | 				reg = <0x60000 0xfa0000>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &pci0 { | ||||||
|  | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>, | ||||||
|  | 		    <&pci_req1_pins>, <&pci_req2_pins>; | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  |  | ||||||
|  | 	lantiq,external-clock; | ||||||
|  | 	interrupt-map = < | ||||||
|  | 		0x6000 0 0 1 &icu0 135 | ||||||
|  | 		0x7800 0 0 1 &icu0 66 | ||||||
|  | 		0x7800 0 0 2 &icu0 66 | ||||||
|  | 		0x7800 0 0 3 &icu0 66 | ||||||
|  | 	>; | ||||||
|  | 	gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; | ||||||
|  | 	req-mask = <0x7>; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &vmmc { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
| @@ -0,0 +1,8 @@ | |||||||
|  | /dts-v1/; | ||||||
|  |  | ||||||
|  | #include "danube_arcadyan_arv4518pwr01.dtsi" | ||||||
|  |  | ||||||
|  | / { | ||||||
|  | 	compatible = "arcadyan,arv4518pwr01", "lantiq,xway", "lantiq,danube"; | ||||||
|  | 	model = "SMC7908A-ISP"; | ||||||
|  | }; | ||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Mathias Kresin
					Mathias Kresin