aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/rt3883.dtsi
Commit message (Collapse)AuthorAgeFilesLines
* ramips: move dts-v1 statement to top-level DTSI filesAdrian Schmutzler2020-09-251-0/+2
| | | | | | | | | | | | | | | | | The "/dts-v1/;" identifier is supposed to be present once at the top of a device tree file after the includes have been processed. In ramips, we therefore requested to have in the DTS files so far, and omit it in the DTSI files. However, essentially the syntax of the parent mtxxxx/rtxxxx DTSI files already determines the DTS version, so putting it into the DTS files is just a useless repetition. Consequently, this patch puts the dts-v1 statement into the top-level SoC-based DTSI files, and removes all other occurences. Since the dts-v1 statement needs to be before any other definitions, this also moves the includes accordingly where necessary. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: replace pinctrl property namesChuanhong Guo2020-04-121-14/+14
| | | | | | | | | | | | | | Upstream pinctrl driver in drivers/staging uses groups/function/ralink,num-gpios instead of ralink,group/ralink,function/ralink,nr-gpio Replace these properties in dts as well as the pinctrl driver in patches-4.14. This commit is created using: sed -i 's/ralink,group/groups/g' sed -i 's/ralink,function/function/g' sed -i 's/ralink,nr-gpio/ralink,num-gpios/g' Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* ramips: fix dtc compiler warningsMathias Kresin2018-12-061-4/+4
| | | | | | | | | | | | | | | | | The latest dtc compiler considers nodes named i2c or spi as the respective bus: /pinctrl/i2c: incorrect #address-cells for I2C bus /pinctrl/spi: incorrect #address-cells for SPI bus Rename the node to fix the false positives. Fix the spi node unit address for the DWR-512-B and UBNT-ER-e50 to get rid of the following warning: SPI bus unit address format error, expected "n" Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: revert fix rt3883 pci pinmuxMathias Kresin2018-11-261-1/+1
| | | | | | | | | | | | | | | This reverts commit dcdc6d9dadf2f97253f7891dacdd5b581d7914b4. Even if described this way in the datasheet, it causes a bootloop on a RT-N56U (v1): of-flash 1c000000.nor-flash: do_map_probe() failed for type cfi_probe of-flash 1c000000.nor-flash: do_map_probe() failed VFS: Cannot open root device “(null)” or unknown-block(0,0): error -6 Fixes: FS#1930 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: set usb led trigger via devicetreeMathias Kresin2018-10-071-0/+14
| | | | | | | | | | Assign the usbdev trigger via devicetree for all subtargets and drop the userspace handling of the usb leds. With the change all usb ports are triggering the usb led instead of only usb 1.1 XOR usb 2.0 XOR usb 3.0 as it was before. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix rt3883 pinmux for second SPIMathias Kresin2018-08-291-2/+2
| | | | | | | The rt3883 doesn't have a pinmux group named spi_cs1. The cs1 is part of the pci group. The function pci-func enables the second chip select. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix rt3883 pci pinmuxMathias Kresin2018-08-291-1/+1
| | | | | | | | | | The PCI pins need to be set to "PCI Host support one device" to allow the use of one PCI device and flash memory. The pci-fnc function is intended to be used if no PCI is used but flash, nand or the codec functionality is. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix pci/pcie related dtc warningsMathias Kresin2018-08-041-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the ranges property to the PCI bridges where missing. Add the unit address to PCI bridge where missing. Rework the complete rt3883 pci node. Drop the PCI unit nodes from the dtsi. They are not used by any dts file and should be rather in the dts than in the SoC dtsi. Express the PCI-PCI bridge in a clean devicetree syntax. The ralink,pci-slot isn't used by any driver, drop it. Move the pci interrupt controller out of the pci node. It doesn't share the same reg and therefore should be an independent/SoC child node. Move the pci related rt3883 pinctrl setting to the dtsi instead of defining the very same for each rt3883 board. If the device_type property is used for PCI units, the unit is treated as pci bridge which it isn't. Drop it for PCI units. Reference pci-bridges or the pci node defined in the dtsi instead of recreating the whole node hierarchy. It allows to change the referenced node in the dtsi without the need to touch all dts. Fix the PCI(e) wireless unit addresses. All our PCI(e) wireless chips are the first device on the bus. The unit address has to be the bus address instead of the PCI vendor/device id. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: use ralink,nr-gpio instead of ralink,num-gpiosMathias Kresin2018-08-041-4/+4
| | | | | | | | | | | Since commit c1e7738988f5 ("checks: add gpio binding properties check") dtc treats any *-gpios and *-gpio property as phandle at least during checks. The only whitelisted property is nr-gpio. Use ralink,nr-gpio in favour of ralink,num-gpios to get rid of false positive warnings. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix cpu interrupt controller dtc warningsMathias Kresin2018-08-041-1/+1
| | | | | | | The cpu interrupt controller doesn't have a reg property, hence we can't use a unit address in the node name. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix cpu related dtc warningsMathias Kresin2018-08-041-0/+4
| | | | | | We need a reg property if we are using a unit address. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix usbphy DT nodes on linux 4.14Vianney le Clément de Saint-Marcq2018-04-071-4/+5
| | | | | | | | | | | | | | The Ralink USB PHY driver merged into mainline has a slightly different device tree binding than the patch that was used with linux 4.9. The new driver requires a `ralink,sysctl` node pointing to the `syscon` node. This patch also sets `#phy-cells` to 0, as recommended by the mainline documentation [1]. [1] Documentation/devicetree/bindings/phy/ralink-usb-phy.txt Signed-off-by: Vianney le Clément de Saint-Marcq <code@quartic.eu>
* ramips: rt3883: fix dtc compiler warningMathias Kresin2016-08-201-0/+2
| | | | | | | | | | Fixes the following compiler warning: Warning (reg_format): "reg" property in /ethernet@10100000/port@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Warning (avoid_default_addr_size): Relying on default #address-cells value for /ethernet@10100000/port@0 Warning (avoid_default_addr_size): Relying on default #size-cells value for /ethernet@10100000/port@0 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: update i2s dtsi filesMichael Lee2016-06-131-0/+20
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: update i2c dtsi filesMichael Lee2016-06-131-0/+23
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: add gdma hsdma dts infoMichael Lee2016-06-131-0/+17
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: DTS modificationsStanislav Galabov2016-05-121-0/+7
| | | | | | | | | | | | | | This commit makes the following modifications to ramips dts files: 1. Add clkctrl node to all dtsi files (although not used for now) 2. Add clocks and clock-names properties to some nodes (usbphy, pci) 3. Add usbphy node for rt3050 (although not used for now) 4. Add clock-frequency to uart nodes in mt7621.dtsi and mt7628an.dtsi These modifications, although not fully used at the moment, will make it easier for FreeBSD to adopt and use LEDE ramips dts files with minimal changes for easier maintenance. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: DTS reworkStanislav Galabov2016-05-121-12/+12
| | | | | | | | Add node aliases to dtsi files. Reword dts files so they're more in-line with upstream. Fix some more warnings and errors reported by dtc Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: Add hex prefix (0x) to dtsi reg properties where needed.Stanislav Galabov2016-05-101-2/+2
| | | | Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: introduce serial0 aliasesStanislav Galabov2016-05-101-1/+2
| | | | | | | This patch introduces serial0 aliases in the ramips DTS files, which can then be used to denote the active console instead of relying on bootargs. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ralink: update the usb phy driver to the version sent upstreamJohn Crispin2016-01-041-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 48114
* ralink: fix USB compatible stringsJohn Crispin2016-01-041-2/+2
| | | | | | | | switch to the upstream compatible strings for ehci and ohci support. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 48113
* ralink: fixup devicetree files to work with new ethernet driverJohn Crispin2015-12-171-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47900
* ramips: update dtsi files to support second spi deviceJohn Crispin2015-11-221-1/+24
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47580
* ramips: fix indentation and other mistakes in .dts{, i} filesJohn Crispin2015-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | The following patch fixes: * wrong indentations * doubled gpio-keys-polled nodes (DIR-300-B7, DIR-320-B1, DIR-610-A1) * duplicate spacings * empty lines at end of files and after last child nodes * trailing and leading whitespace * unnecessary and commented-out code * missing empty lines between nodes and between properties and nodes * unnecessary empty lines between nodes properties [1] in .dts{,i} files, for ramips target. [1] Some of empty lines in SOCs dtsi files were left untouched, because they seem to be there for a reason (readability?). Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46613
* ralink: add 3.18 supportJohn Crispin2015-02-091-1/+8
| | | | | | | | keep default as 3.14, mt7621 gic need to be ported to 3.18 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44349
* ralink: add ethernet fe and esw reset control bitFelix Fietkau2015-01-181-0/+3
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44042
* ramips: rt3883: Fix a typo in rt3883.dtsiJohn Crispin2014-01-151-1/+1
| | | | | | Signed-off-by: Christopher Lais <chris+openwrt@zenthought.org> SVN-Revision: 39297
* ralink: add pinctrl driverJohn Crispin2013-09-171-6/+29
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38026
* ramips: dts file cleanupJohn Crispin2013-08-141-1/+1
| | | | | | | | cleanup some inconsistencies in the dts files Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37783
* ramips: revert gpio regulator dts updateJohn Crispin2013-06-241-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37021
* ralink: update patchesJohn Crispin2013-06-231-4/+59
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37016
* ramips: add gpio base properties to dtsi filesJohn Crispin2013-05-061-0/+4
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36560
* move memory detect node to dtsi filesJohn Crispin2013-04-091-0/+4
| | | | | | Signed-of-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36290
* ramips: add mdio-bus node to rt3883.dtsiGabor Juhos2013-04-081-0/+7
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 36272
* ramips: add PCI node for rt3883.dtsiGabor Juhos2013-04-071-0/+86
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 36263
* ramips: remove trailing whitespaces from dts filesGabor Juhos2013-04-071-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 36246
* add the dts files that describe the boards in futureJohn Crispin2013-04-031-0/+190
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36168