Date: Sat, 16 Apr 2016 20:01:08 +0000 (UTC) From: Stanislav Galabov <sgalabov@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298128 - head/sys/gnu/dts/mips Message-ID: <201604162001.u3GK18RR011903@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sgalabov Date: Sat Apr 16 20:01:08 2016 New Revision: 298128 URL: https://svnweb.freebsd.org/changeset/base/298128 Log: Import Mediatek/Ralink dts files from OpenWRT Import original OpenWRT dts files after executing the following script on them: for f in `ls [mr]t*.dtsi`; do printf "\n#include <fbsd-$f>\n" >> $f done Approved by: adrian (mentor) Obtained from: OpenWRT Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5971 Added: head/sys/gnu/dts/mips/ head/sys/gnu/dts/mips/3G-6200N.dts (contents, props changed) head/sys/gnu/dts/mips/3G-6200NL.dts (contents, props changed) head/sys/gnu/dts/mips/3G150B.dts (contents, props changed) head/sys/gnu/dts/mips/3G300M.dts (contents, props changed) head/sys/gnu/dts/mips/A5-V11.dts (contents, props changed) head/sys/gnu/dts/mips/AI-BR100.dts (contents, props changed) head/sys/gnu/dts/mips/AIR3GII.dts (contents, props changed) head/sys/gnu/dts/mips/ALL0239-3G.dts (contents, props changed) head/sys/gnu/dts/mips/ALL0256N-4M.dts (contents, props changed) head/sys/gnu/dts/mips/ALL0256N-8M.dts (contents, props changed) head/sys/gnu/dts/mips/ALL5002.dts (contents, props changed) head/sys/gnu/dts/mips/ALL5003.dts (contents, props changed) head/sys/gnu/dts/mips/AR670W.dts (contents, props changed) head/sys/gnu/dts/mips/AR725W.dts (contents, props changed) head/sys/gnu/dts/mips/ASL26555-16M.dts (contents, props changed) head/sys/gnu/dts/mips/ASL26555-8M.dts (contents, props changed) head/sys/gnu/dts/mips/ATP-52B.dts (contents, props changed) head/sys/gnu/dts/mips/AWAPN2403.dts (contents, props changed) head/sys/gnu/dts/mips/AWM002-4M.dtsi (contents, props changed) head/sys/gnu/dts/mips/AWM002-8M.dtsi (contents, props changed) head/sys/gnu/dts/mips/AWM002-EVB-4M.dts (contents, props changed) head/sys/gnu/dts/mips/AWM002-EVB-8M.dts (contents, props changed) head/sys/gnu/dts/mips/AWM002.dtsi (contents, props changed) head/sys/gnu/dts/mips/AWM003-EVB.dts (contents, props changed) head/sys/gnu/dts/mips/ArcherC20i.dts (contents, props changed) head/sys/gnu/dts/mips/BC2.dts (contents, props changed) head/sys/gnu/dts/mips/BR-6425.dts (contents, props changed) head/sys/gnu/dts/mips/BR-6475ND.dts (contents, props changed) head/sys/gnu/dts/mips/BROADWAY.dts (contents, props changed) head/sys/gnu/dts/mips/CARAMBOLA.dts (contents, props changed) head/sys/gnu/dts/mips/CF-WR800N.dts (contents, props changed) head/sys/gnu/dts/mips/CY-SWR1100.dts (contents, props changed) head/sys/gnu/dts/mips/D105.dts (contents, props changed) head/sys/gnu/dts/mips/DAP-1350.dts (contents, props changed) head/sys/gnu/dts/mips/DB-WRT01.dts (contents, props changed) head/sys/gnu/dts/mips/DCS-930.dts (contents, props changed) head/sys/gnu/dts/mips/DCS-930L-B1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-300-B1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-300-B7.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-320-B1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-600-B1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-600-B2.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-610-A1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-615-D.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-615-H1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-620-A1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-620-D1.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-645.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-810L.dts (contents, props changed) head/sys/gnu/dts/mips/DIR-860L-B1.dts (contents, props changed) head/sys/gnu/dts/mips/E1700.dts (contents, props changed) head/sys/gnu/dts/mips/ESR-9753.dts (contents, props changed) head/sys/gnu/dts/mips/EX2700.dts (contents, props changed) head/sys/gnu/dts/mips/F5D8235_V1.dts (contents, props changed) head/sys/gnu/dts/mips/F5D8235_V2.dts (contents, props changed) head/sys/gnu/dts/mips/F7C027.dts (contents, props changed) head/sys/gnu/dts/mips/FIREWRT.dts (contents, props changed) head/sys/gnu/dts/mips/FONERA20N.dts (contents, props changed) head/sys/gnu/dts/mips/FREESTATION5.dts (contents, props changed) head/sys/gnu/dts/mips/GL-MT300A.dts (contents, props changed) head/sys/gnu/dts/mips/GL-MT300N.dts (contents, props changed) head/sys/gnu/dts/mips/GL-MT750.dts (contents, props changed) head/sys/gnu/dts/mips/HC5661.dts (contents, props changed) head/sys/gnu/dts/mips/HC5761.dts (contents, props changed) head/sys/gnu/dts/mips/HC5861.dts (contents, props changed) head/sys/gnu/dts/mips/HC5XXX.dtsi (contents, props changed) head/sys/gnu/dts/mips/HG255D.dts (contents, props changed) head/sys/gnu/dts/mips/HLKRM04.dts (contents, props changed) head/sys/gnu/dts/mips/HPM.dts (contents, props changed) head/sys/gnu/dts/mips/HT-TM02.dts (contents, props changed) head/sys/gnu/dts/mips/HW550-3G.dts (contents, props changed) head/sys/gnu/dts/mips/IP2202.dts (contents, props changed) head/sys/gnu/dts/mips/JHR-N805R.dts (contents, props changed) head/sys/gnu/dts/mips/JHR-N825R.dts (contents, props changed) head/sys/gnu/dts/mips/JHR-N926R.dts (contents, props changed) head/sys/gnu/dts/mips/LINKIT7688.dts (contents, props changed) head/sys/gnu/dts/mips/M2M.dts (contents, props changed) head/sys/gnu/dts/mips/M3.dts (contents, props changed) head/sys/gnu/dts/mips/M4-4M.dts (contents, props changed) head/sys/gnu/dts/mips/M4-8M.dts (contents, props changed) head/sys/gnu/dts/mips/MINIEMBPLUG.dts (contents, props changed) head/sys/gnu/dts/mips/MINIEMBWIFI.dts (contents, props changed) head/sys/gnu/dts/mips/MIWIFI-MINI.dts (contents, props changed) head/sys/gnu/dts/mips/MIWIFI-NANO.dts (contents, props changed) head/sys/gnu/dts/mips/MLW221.dts (contents, props changed) head/sys/gnu/dts/mips/MLWG2.dts (contents, props changed) head/sys/gnu/dts/mips/MOFI3500-3GN.dts (contents, props changed) head/sys/gnu/dts/mips/MPRA1.dts (contents, props changed) head/sys/gnu/dts/mips/MPRA2.dts (contents, props changed) head/sys/gnu/dts/mips/MR-102N.dts (contents, props changed) head/sys/gnu/dts/mips/MT7620a.dts (contents, props changed) head/sys/gnu/dts/mips/MT7620a_MT7530.dts (contents, props changed) head/sys/gnu/dts/mips/MT7620a_MT7610e.dts (contents, props changed) head/sys/gnu/dts/mips/MT7620a_V22SG.dts (contents, props changed) head/sys/gnu/dts/mips/MT7621.dts (contents, props changed) head/sys/gnu/dts/mips/MT7628.dts (contents, props changed) head/sys/gnu/dts/mips/MZK-750DHP.dts (contents, props changed) head/sys/gnu/dts/mips/MZK-DP150N.dts (contents, props changed) head/sys/gnu/dts/mips/MZK-W300NH2.dts (contents, props changed) head/sys/gnu/dts/mips/MZK-WDPR.dts (contents, props changed) head/sys/gnu/dts/mips/MicroWRT.dts (contents, props changed) head/sys/gnu/dts/mips/NA930.dts (contents, props changed) head/sys/gnu/dts/mips/NBG-419N.dts (contents, props changed) head/sys/gnu/dts/mips/NCS601W.dts (contents, props changed) head/sys/gnu/dts/mips/NW718.dts (contents, props changed) head/sys/gnu/dts/mips/OY-0001.dts (contents, props changed) head/sys/gnu/dts/mips/PBR-M1.dts (contents, props changed) head/sys/gnu/dts/mips/PSG1208.dts (contents, props changed) head/sys/gnu/dts/mips/PSR-680W.dts (contents, props changed) head/sys/gnu/dts/mips/PWH2004.dts (contents, props changed) head/sys/gnu/dts/mips/PX-4885-4M.dts (contents, props changed) head/sys/gnu/dts/mips/PX-4885-8M.dts (contents, props changed) head/sys/gnu/dts/mips/PX-4885.dtsi (contents, props changed) head/sys/gnu/dts/mips/RE6500.dts (contents, props changed) head/sys/gnu/dts/mips/RP-N53.dts (contents, props changed) head/sys/gnu/dts/mips/RT-G32-B1.dts (contents, props changed) head/sys/gnu/dts/mips/RT-N10-PLUS.dts (contents, props changed) head/sys/gnu/dts/mips/RT-N13U.dts (contents, props changed) head/sys/gnu/dts/mips/RT-N14U.dts (contents, props changed) head/sys/gnu/dts/mips/RT-N15.dts (contents, props changed) head/sys/gnu/dts/mips/RT-N56U.dts (contents, props changed) head/sys/gnu/dts/mips/RT5350F-OLINUXINO-EVB.dts (contents, props changed) head/sys/gnu/dts/mips/RT5350F-OLINUXINO.dts (contents, props changed) head/sys/gnu/dts/mips/RUT5XX.dts (contents, props changed) head/sys/gnu/dts/mips/SAP-G3200U3.dts (contents, props changed) head/sys/gnu/dts/mips/SL-R7205.dts (contents, props changed) head/sys/gnu/dts/mips/TEW-691GR.dts (contents, props changed) head/sys/gnu/dts/mips/TEW-692GR.dts (contents, props changed) head/sys/gnu/dts/mips/TINY-AC.dts (contents, props changed) head/sys/gnu/dts/mips/UBNT-ERX.dts (contents, props changed) head/sys/gnu/dts/mips/UR-326N4G.dts (contents, props changed) head/sys/gnu/dts/mips/UR-336UN.dts (contents, props changed) head/sys/gnu/dts/mips/V11STFE.dts (contents, props changed) head/sys/gnu/dts/mips/V22RW-2X2.dts (contents, props changed) head/sys/gnu/dts/mips/VOCORE-16M.dts (contents, props changed) head/sys/gnu/dts/mips/VOCORE-8M.dts (contents, props changed) head/sys/gnu/dts/mips/VOCORE.dtsi (contents, props changed) head/sys/gnu/dts/mips/W150M.dts (contents, props changed) head/sys/gnu/dts/mips/W306R_V20.dts (contents, props changed) head/sys/gnu/dts/mips/W502U.dts (contents, props changed) head/sys/gnu/dts/mips/WCR150GN.dts (contents, props changed) head/sys/gnu/dts/mips/WF-2881.dts (contents, props changed) head/sys/gnu/dts/mips/WHR-1166D.dts (contents, props changed) head/sys/gnu/dts/mips/WHR-300HP2.dts (contents, props changed) head/sys/gnu/dts/mips/WHR-600D.dts (contents, props changed) head/sys/gnu/dts/mips/WHR-G300N.dts (contents, props changed) head/sys/gnu/dts/mips/WITI.dts (contents, props changed) head/sys/gnu/dts/mips/WIZARD8800.dts (contents, props changed) head/sys/gnu/dts/mips/WIZFI630A.dts (contents, props changed) head/sys/gnu/dts/mips/WL-330N.dts (contents, props changed) head/sys/gnu/dts/mips/WL-330N3G.dts (contents, props changed) head/sys/gnu/dts/mips/WL-341V3.dts (contents, props changed) head/sys/gnu/dts/mips/WL-351.dts (contents, props changed) head/sys/gnu/dts/mips/WLI-TX4-AG300N.dts (contents, props changed) head/sys/gnu/dts/mips/WMR-300.dts (contents, props changed) head/sys/gnu/dts/mips/WNCE2001.dts (contents, props changed) head/sys/gnu/dts/mips/WR512-3GN-4M.dts (contents, props changed) head/sys/gnu/dts/mips/WR512-3GN-8M.dts (contents, props changed) head/sys/gnu/dts/mips/WR6202.dts (contents, props changed) head/sys/gnu/dts/mips/WRTNODE.dts (contents, props changed) head/sys/gnu/dts/mips/WRTNODE2.dtsi (contents, props changed) head/sys/gnu/dts/mips/WRTNODE2P.dts (contents, props changed) head/sys/gnu/dts/mips/WRTNODE2R.dts (contents, props changed) head/sys/gnu/dts/mips/WSR-1166.dts (contents, props changed) head/sys/gnu/dts/mips/WSR-600.dts (contents, props changed) head/sys/gnu/dts/mips/WT1520-4M.dts (contents, props changed) head/sys/gnu/dts/mips/WT1520-8M.dts (contents, props changed) head/sys/gnu/dts/mips/WT1520.dtsi (contents, props changed) head/sys/gnu/dts/mips/WT3020-4M.dts (contents, props changed) head/sys/gnu/dts/mips/WT3020-8M.dts (contents, props changed) head/sys/gnu/dts/mips/WZR-AGL300NH.dts (contents, props changed) head/sys/gnu/dts/mips/X5.dts (contents, props changed) head/sys/gnu/dts/mips/X8.dts (contents, props changed) head/sys/gnu/dts/mips/XDXRN502J.dts (contents, props changed) head/sys/gnu/dts/mips/Y1.dts (contents, props changed) head/sys/gnu/dts/mips/Y1.dtsi (contents, props changed) head/sys/gnu/dts/mips/Y1S.dts (contents, props changed) head/sys/gnu/dts/mips/YOUKU-YK1.dts (contents, props changed) head/sys/gnu/dts/mips/ZBT-WA05.dts (contents, props changed) head/sys/gnu/dts/mips/ZBT-WE826.dts (contents, props changed) head/sys/gnu/dts/mips/ZBT-WG2626.dts (contents, props changed) head/sys/gnu/dts/mips/ZBT-WR8305RT.dts (contents, props changed) head/sys/gnu/dts/mips/ZTE-Q7.dts (contents, props changed) head/sys/gnu/dts/mips/mt7620a.dtsi (contents, props changed) head/sys/gnu/dts/mips/mt7620n.dtsi (contents, props changed) head/sys/gnu/dts/mips/mt7621.dtsi (contents, props changed) head/sys/gnu/dts/mips/mt7628an.dtsi (contents, props changed) head/sys/gnu/dts/mips/rt2880.dtsi (contents, props changed) head/sys/gnu/dts/mips/rt3050.dtsi (contents, props changed) head/sys/gnu/dts/mips/rt3352.dtsi (contents, props changed) head/sys/gnu/dts/mips/rt3883.dtsi (contents, props changed) head/sys/gnu/dts/mips/rt5350.dtsi (contents, props changed) Added: head/sys/gnu/dts/mips/3G-6200N.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/3G-6200N.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,109 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "3G-6200N", "ralink,rt3050-soc"; + model = "Edimax 3g-6200n"; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@3e0000 { + label = "cimage"; + reg = <0x3e0000 0x20000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x390000>; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + mediatek,portmap = <0x2f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + power { + label = "3g-6200n:green:power"; + gpios = <&gpio0 9 1>; + }; + + wlan { + label = "3g-6200n:amber:wlan"; + gpios = <&gpio0 14 1>; + }; + + 3g { + label = "3g-6200n:blue:3g"; + gpios = <&gpio0 7 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 12 1>; + linux,code = <0x211>; + }; + + wlanswitch { + label = "wlanswitch"; + gpios = <&gpio0 13 1>; + linux,code = <0x100>; + }; + }; + + otg@101c0000 { + status = "okay"; + }; +}; Added: head/sys/gnu/dts/mips/3G-6200NL.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/3G-6200NL.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,93 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "3G-6200NL", "ralink,rt3050-soc"; + model = "Edimax 3g-6200nl"; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@3e0000 { + label = "cimage"; + reg = <0x3e0000 0x20000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x390000>; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + mediatek,portmap = <0x2f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + wlan { + label = "3g-6200nl:amber:wlan"; + gpios = <&gpio0 14 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 12 1>; + linux,code = <0x211>; + }; + }; + + otg@101c0000 { + status = "okay"; + }; +}; Added: head/sys/gnu/dts/mips/3G150B.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/3G150B.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,118 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "3G150B", "ralink,rt5350-soc"; + model = "Tenda 3G150B"; + + palmbus@10000000 { + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "s25fl064k"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + + gpio1: gpio@660 { + status = "okay"; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + mediatek,portmap = <0x2f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; + }; + + ehci@101c0000 { + status = "okay"; + }; + + ohci@101c1000 { + status = "okay"; + }; + + gpio-leds { + compatible = "gpio-leds"; + + ap { + label = "3g150b:blue:ap"; + gpios = <&gpio0 7 1>; + }; + + 3g { + label = "3g150b:blue:3g"; + gpios = <&gpio0 14 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 1>; + linux,code = <0x198>; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 13 0>; + }; + }; +}; Added: head/sys/gnu/dts/mips/3G300M.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/3G300M.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,124 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "3G300M", "ralink,rt3052-soc"; + model = "Tenda 3G300M"; + + palmbus@10000000 { + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "mx25l3205d"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + 3grouter { + label = "3g300m:blue:3grouter"; + gpios = <&gpio0 11 1>; + }; + + ap { + label = "3g300m:blue:ap"; + gpios = <&gpio0 12 1>; + }; + + wisprouter { + label = "3g300m:blue:wisprouter"; + gpios = <&gpio0 9 1>; + }; + + wirelessrouter { + label = "3g300m:blue:wirelessrouter"; + gpios = <&gpio0 13 1>; + }; + + 3g { + label = "3g300m:blue:3g"; + gpios = <&gpio0 7 1>; + }; + + wpsreset { + label = "3g300m:blue:wpsreset"; + gpios = <&gpio0 14 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 1>; + linux,code = <0x198>; + }; + + mode { + label = "mode"; + gpios = <&gpio0 10 1>; + linux,code = <0x100>; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + mediatek,portmap = <0x2f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + otg@101c0000 { + status = "okay"; + }; +}; Added: head/sys/gnu/dts/mips/A5-V11.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/A5-V11.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,123 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "A5-V11", "ralink,rt5350-soc"; + model = "A5-V11"; + + palmbus@10000000 { + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "pm25lq032"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + + gpio1: gpio@660 { + status = "okay"; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + mediatek,portmap = <0x2f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + ehci@101c0000 { + status = "okay"; + }; + + ohci@101c1000 { + status = "okay"; + }; + + gpio-leds { + compatible = "gpio-leds"; + + system { + label = "a5-v11:blue:system"; + gpios = <&gpio0 20 1>; + }; + + power { + label = "a5-v11:red:power"; + gpios = <&gpio0 17 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 1>; + linux,code = <0x198>; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 7 0>; + }; + + root_hub { + gpio-export,name = "root_hub"; + gpio-export,output = <1>; + gpios = <&gpio0 12 0>; + }; + }; +}; Added: head/sys/gnu/dts/mips/AI-BR100.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/AI-BR100.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,109 @@ +/dts-v1/; + +/include/ "mt7620a.dtsi" + +/ { + compatible = "AI-BR100", "ralink,mt7620a-soc"; + model = "Aigale Ai-BR100"; + + palmbus@10000000 { + gpio2: gpio@660 { + status = "okay"; + }; + + gpio3: gpio@688 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "en25q64"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "u-boot-env"; + reg = <0x20000 0x10000>; + read-only; + }; + + factory: partition@30000 { + label = "factory"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "firmware"; + reg = <0x40000 0x7c0000>; + }; + }; + }; + }; + + ehci@101c0000 { + status = "okay"; + }; + + ohci@101c1000 { + status = "okay"; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + pinctrl-names = "default"; + pinctrl-0 = <&ephy_pins>; + mtd-mac-address = <&factory 0x4>; + mediatek,portmap = "llllw"; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + wan { + label = "ai-br100:blue:wan"; + gpios = <&gpio2 4 1>; + }; + + wlan { + label = "ai-br100:blue:wlan"; + gpios = <&gpio3 0 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 12 1>; + linux,code = <0x198>; + }; + }; +}; Added: head/sys/gnu/dts/mips/AIR3GII.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/AIR3GII.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,98 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "AIR3GII", "ralink,rt5350-soc"; + model = "AirLive Air3GII"; + + palmbus@10000000 { + gpio0: gpio@600 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "en25q32b"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + mediatek,portmap = <0x2f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + wlan { + label = "air3gii:green:wlan"; + gpios = <&gpio0 8 0>; + }; + + mobile { + label = "air3gii:green:mobile"; + gpios = <&gpio0 9 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 7 1>; + linux,code = <0x211>; + }; + }; +}; Added: head/sys/gnu/dts/mips/ALL0239-3G.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/ALL0239-3G.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,115 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "ALL0239-3G", "ralink,rt3052-soc"; + model = "Allnet ALL0239-3G"; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x28>; + }; + + esw@10110000 { + status = "okay"; + mediatek,portmap = <0x3e>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + usb { + label = "all0239-3g:green:usb"; + gpios = <&gpio0 8 1>; + }; + + 3g { + label = "all0239-3g:green:3g"; + gpios = <&gpio0 11 1>; + }; + + status { + label = "all0239-3g:green:status"; + gpios = <&gpio0 12 1>; + }; + + wps { + label = "all0239-3g:green:wps"; + gpios = <&gpio0 14 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 1>; + linux,code = <0x198>; + }; + + connect { + label = "connect"; + gpios = <&gpio0 7 1>; + linux,code = <0xda>; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 1>; + linux,code = <0x211>; + }; + }; + + otg@101c0000 { + status = "okay"; + }; +}; Added: head/sys/gnu/dts/mips/ALL0256N-4M.dts ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/gnu/dts/mips/ALL0256N-4M.dts Sat Apr 16 20:01:08 2016 (r298128) @@ -0,0 +1,103 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "ALL0256N", "ralink,rt3050-soc"; + model = "Allnet ALL0256N"; + + palmbus@10000000 { + gpio0: gpio@600 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "mx25l3205d"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3c8000>; + }; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x28>; + }; + + esw@10110000 { + mediatek,portmap = <0x3f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + rssilow { + label = "all0256n:green:rssilow"; + gpios = <&gpio0 14 1>; + }; + + rssimed { + label = "all0256n:green:rssimed"; + gpios = <&gpio0 12 1>; + }; + *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604162001.u3GK18RR011903>