Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ath79: ar9331: Add OpeneEmbed SOM9331 Board

Add SOM9331 based Board. It has 3 LAN ports, usb to uart controller and
USB type A port.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Oleksij Rempel and committed by
Thomas Bogendoerfer
cbafa54a ab5891a8

+111
+1
arch/mips/boot/dts/qca/Makefile
··· 4 4 dtb-$(CONFIG_ATH79) += ar9331_dpt_module.dtb 5 5 dtb-$(CONFIG_ATH79) += ar9331_dragino_ms14.dtb 6 6 dtb-$(CONFIG_ATH79) += ar9331_omega.dtb 7 + dtb-$(CONFIG_ATH79) += ar9331_openembed_som9331_board.dtb 7 8 dtb-$(CONFIG_ATH79) += ar9331_tl_mr3020.dtb
+110
arch/mips/boot/dts/qca/ar9331_openembed_som9331_board.dts
··· 1 + // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 + /dts-v1/; 3 + 4 + #include <dt-bindings/gpio/gpio.h> 5 + #include <dt-bindings/input/input.h> 6 + #include <dt-bindings/leds/common.h> 7 + 8 + #include "ar9331.dtsi" 9 + 10 + / { 11 + model = "OpenEmbed SOM9331 Board"; 12 + compatible = "openembed,som9331"; 13 + 14 + aliases { 15 + serial0 = &uart; 16 + }; 17 + 18 + memory@0 { 19 + device_type = "memory"; 20 + reg = <0x0 0x4000000>; 21 + }; 22 + 23 + leds { 24 + compatible = "gpio-leds"; 25 + 26 + led-0 { 27 + function = LED_FUNCTION_STATUS; 28 + color = <LED_COLOR_ID_RED>; 29 + gpios = <&gpio 27 GPIO_ACTIVE_LOW>; 30 + default-state = "off"; 31 + }; 32 + }; 33 + 34 + gpio-keys { 35 + compatible = "gpio-keys"; 36 + #address-cells = <1>; 37 + #size-cells = <0>; 38 + 39 + button@0 { 40 + label = "reset"; 41 + linux,code = <KEY_RESTART>; 42 + gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; 43 + }; 44 + }; 45 + }; 46 + 47 + &ref { 48 + clock-frequency = <25000000>; 49 + }; 50 + 51 + &uart { 52 + status = "okay"; 53 + }; 54 + 55 + &gpio { 56 + status = "okay"; 57 + }; 58 + 59 + &usb { 60 + dr_mode = "host"; 61 + status = "okay"; 62 + }; 63 + 64 + &usb_phy { 65 + status = "okay"; 66 + }; 67 + 68 + &spi { 69 + num-chipselects = <1>; 70 + status = "okay"; 71 + 72 + /* Winbond 25Q64FVSIG SPI flash */ 73 + spiflash: w25q64@0 { 74 + #address-cells = <1>; 75 + #size-cells = <1>; 76 + compatible = "winbond,w25q64", "jedec,spi-nor"; 77 + spi-max-frequency = <104000000>; 78 + reg = <0>; 79 + }; 80 + }; 81 + 82 + &eth0 { 83 + status = "okay"; 84 + }; 85 + 86 + &eth1 { 87 + status = "okay"; 88 + }; 89 + 90 + &switch_port1 { 91 + label = "lan0"; 92 + status = "okay"; 93 + }; 94 + 95 + &switch_port3 { 96 + label = "lan1"; 97 + status = "okay"; 98 + }; 99 + 100 + &phy_port0 { 101 + status = "okay"; 102 + }; 103 + 104 + &phy_port2 { 105 + status = "okay"; 106 + }; 107 + 108 + &phy_port4 { 109 + status = "okay"; 110 + };