summaryrefslogtreecommitdiffstats
path: root/arch/mips/dts
Commit message (Collapse)AuthorAgeFilesLines
* MIPS: qemu-malta: use 320 MHz input clock for CP0 clocksourceAntony Pavlov2023-11-011-0/+20
| | | | | | | | | | | | | | | | | | | | | Modern qemu uses 24Kf CPU at 320 MHz for malta board. By default arch/mips/lib/csrc-r4k.c clocksource driver relies on CPU running at 200 MHz and CP0 timer runs at the half of CPU clock that is 100 MHz. As a result the `sleep 15` command runs for only 9 seconds on qemu-malta. Setting CPU clock to 320 MHz in the qemu-malta.dts file fixes the problem. See these qemu commits for details: eea1f5bac6f hw/mips/malta: Set CPU frequency to 320 MHz a7519f2b39b mips: malta/boston: replace cpu_model with cpu_type Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Link: https://lore.barebox.org/20231030223619.344784-1-antonynpavlov@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: ath79: ar9331: use path references when extending nodesAhmad Fatoum2023-02-222-17/+11
| | | | | | | | | | LED heartbeat already broke, because upstream renamed the node name. Fix that and let's use references, so we get errors if an upstream DT update breaks our usage. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230217173057.1839835-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: Reference environment partitions by phandleSascha Hauer2022-10-197-14/+14
| | | | | | | | | | Where possible reference the environment partitions directly by phandle instead of referencing the physical device and describing the partition by "partname:xxx". This is one step to deprecate the "partname:xxx" binding. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2022-08-111-1/+0
|\
| * gitignore: add device tree blobs to top-level .gitignoreAhmad Fatoum2022-08-081-1/+0
| | | | | | | | | | | | | | | | | | We have device trees outside of the usual directories, e.g. for overlays, so move the .gitignore rule to top-level. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220805085314.3404920-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | kbuild: gen-dtb-s: use Makefile.lib instead of duplicating cmd_lzoAhmad Fatoum2022-07-141-1/+1
|/ | | | | | | | | | | | | | We call lzop in two places: in gen-dtb-s to generate a compressed device tree symbol and in Makefile.lib, which is used everywhere else. Replace the duplication in gen-dtb-s by compressing the DT outside with the existing cmd_lzo command. This will come in handy later when extending gen-dtb-s to support multiple compression formats. No functional change intended. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220713095730.1878941-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: add SPDX-License-Identifier for Kbuild/KconfigAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | | | | | | | To verify only Kconfig/Makefile is touched: git show --numstat --format=oneline HEAD | grep -v 'Kconfig\|Makefile' will print only arch/powerpc/Kbuild. To verify nothing unexpected is added: git show -U0 | grep '^-[^-]\|^+[^+]' | sort -u Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: qemu-malta: use generic syscon reset driverAntony Pavlov2021-05-031-0/+13
| | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Link: https://lore.barebox.org/20210425063517.120260-1-antonynpavlov@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: ar9331: add stdout-path propertiesOleksij Rempel2021-01-133-0/+6
| | | | | | | | | With the kernel v5.11-rc2 the console will be automatically redirected to null if no default console is configured. Make sure the barebox is doing it to make kernel happy. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: ls1b200: add clk driver for loongson 1bDu Huanpeng2020-11-132-4/+19
| | | | | | | add "pll" and "oscillator" node to devicetree. Signed-off-by: Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: AR9331: OKUD Max9331Du Huanpeng2020-06-182-0/+141
| | | | | | | | | | | | | | | | Oleksij and Kevin's Useless Devices. O&KUD Max9331 AR9331 400MHz MIPS 64M DRAM 16M SPI Flash 4G USB Nand Flash 3 User LEDs 3 Ports(1Wan/2Lan) 1 TTL Debug Uart Signed-off-by: Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kbuild: remove obj-dtb-y, pbl-dtb-y, lwl-dtb-y syntaxMasahiro Yamada2020-05-201-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The embedded DTBs are compiled by the chain of pattern rules as follows: %.dts -> %.dtb -> %.dtb.S -> %.dtb.o for barebox proper %.dts -> %.dtb -> %.dtb.S -> %.dtb.pbl.o for pbl Barebox introduced {obj,pbl,lwl}-dtb-y syntax to put the intermediate files into extra-y. The purposes of doing so were: [1] prevent GNU Make from deleting the intermediate files [2] include .*.cmd files In contrast, Linux does not use a special syntax for embedding DTBs into the kernel. For example, as you see in arch/sh/boot/dts/Makefile of Linux 5.6, obj-y += <basename>.dtb.o ... just works. This is because scripts/Kbuild.include specifies .SECONDARY to cater to [1], and scripts/Makefile.build adds the intermediates to 'targets' to deal with [2]. Barebox had already imported the same code from Linux, so you can use obj-y instead of obj-dtb-y, like Linux. pbl-dtb-y and lwl-dtb-y are barebox-specific cases, so I added the %.dtb.pbl.o pattern to intermediate_targets. Going forward, please use obj-y, pbl-y, or lwl-y. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: ath79: add support for OpenEmbed SOM9331 boardOleksij Rempel2020-02-252-0/+114
| | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: rename tplink-mr3020.dts -> ar9331_tl_mr3020.dtsAntony Pavlov2020-01-142-1/+1
| | | | | | | | Linux MIPS uses <soc-name>_<board-name>.dts board dts-file naming scheme so use it in barebox too. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: net: ag71xx/ar9331: partially sync network support with upstreamOleksij Rempel2019-10-143-15/+8
| | | | | | | | | | | | | Ethernet support for ar9331 is upstream now. So, drop every thing what is provided by upstream devicetree and rename compatible in the driver. barebox network driver will need more work to be upstream compliant. For example we should not request or touch the gmac register directly. Since currently it is not clear how this should be implemented, patch the upstream dts with reg-names = "ge0", "gmac". Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: dpt-module: fix gpio buttonOleksij Rempel2019-08-281-0/+6
| | | | | | | | | GPIO11 is set to 0 by default and there is no internal pull ups to set a different configuration. To fix the system with gpio-key activated we need to fix devicetree first. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: tplink-mr3020: add missing stdout-path propertyAntony Pavlov2019-06-261-0/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: migrate all files to SPDXOleksij Rempel2019-01-031-11/+1
| | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: port all mach* to multiimageOleksij Rempel2018-12-171-2/+14
| | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mips'Sascha Hauer2018-07-0911-28/+46
|\
| * MIPS: dts: fix dtc unit_address_vs_reg warningAntony Pavlov2018-06-255-5/+5
| | | | | | | | | | | | | | | | | | | | Unit number is added to the /memory nodes to fix this dtc warning: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: drop skeleton.dtsiAntony Pavlov2018-06-258-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on feedback from Sascha: http://lists.infradead.org/pipermail/barebox/2018-April/032694.html " skeleton.dtsi should no longer be used " Several reasons to remove skeleton.dtsi are explained in the linux commit 3ebee5a2e141 ("arm64: dts: kill skeleton.dtsi"). Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: dpt-module: add Atheros ART partitionOleksij Rempel2018-06-141-0/+11
| | | | | | | | | | | | | | and define it as source of MAC address for ag71xx driver Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: add Atheros ART partitionOleksij Rempel2018-06-141-0/+11
| | | | | | | | | | | | | | and define it as source of MAC address for ag71xx driver Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: dts: remove @0 from environment nodesSascha Hauer2018-06-195-5/+5
|/ | | | | | | The environment nodes do not have a reg property and as such should not have a @0 suffix. Newer dtc warns about this, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Include our own include/dt-bindingsSascha Hauer2018-06-111-1/+0
| | | | | | | Allow to use dt-bindings files that are not yet upstreamed. They can be put into include/dt-bindings. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: enable heartbeat led for ar9331-dptechnics-dpt-moduleOleksij Rempel2018-03-011-0/+6
| | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add initial 8devices-lima boardOleksij Rempel2018-02-131-0/+71
| | | | | | | | More information about this board can be found here: https://www.8devices.com/products/lima Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add initial qca4531 supportOleksij Rempel2018-02-131-0/+89
| | | | | | | | | The QCA4531 is a two stream (2x2) 802.11b/g/n single-band programmable Wi-Fi System-on-Chip (SoC) for the Internet of Things (IoT). https://www.qualcomm.com/products/qca4531 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/wd'Sascha Hauer2018-01-053-0/+17
|\
| * MIPS: ar9331: add watchdog supportOleksij Rempel2018-01-051-0/+6
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: enable watchdog nodeOleksij Rempel2018-01-051-0/+4
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: ar9344: add watchdog nodeOleksij Rempel2018-01-051-0/+7
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: add support for DPTechnics DPT-Module v1Oleksij Rempel2018-01-051-0/+31
|/ | | | | | | | This product can be found here: https://dptechnics.com/en/products/dpt-module-v1.html Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: ar9344: add pll nodeOleksij Rempel2017-10-061-0/+11
| | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: ar9344: add APB busOleksij Rempel2017-09-201-17/+25
| | | | | | | and move nodes which belong to APB. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: tl_wdr4300: rename it to tl_wdr4300 v1.7Oleksij Rempel2017-09-201-2/+2
| | | | | | | | | | | | The minor version of TP-Link are usually big enough that it need extra vendor partition on the flash with additional configurations like PLL, CPU and RAM freqs. Visually I was able to confirm at least different SPI Flash and RAM chips. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: tl_wdr4300: remove RO flag from barebox partitionOleksij Rempel2017-09-181-1/+0
| | | | | | | we need it RW for barebox updates. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: tl_wdr4300: add alias for spiflashOleksij Rempel2017-09-181-0/+1
| | | | | | | to unify the naming with TP-Link TL-MR3020. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: tl_wdr4300: enable mac0Oleksij Rempel2017-09-181-0/+4
| | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: ar9344: add mac0 nodeOleksij Rempel2017-09-181-0/+10
| | | | | | | this node is supported by ag71xx driver Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add ar9331.dtsi and enable mac0Oleksij Rempel2017-09-182-0/+17
| | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: tplink-mr3020.dts: add partition tableOleksij Rempel2017-08-151-0/+19
| | | | | | | | We need partition table for barebox update handler and for barebox environment Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* MIPS: ath79: add TP-Link WDR4300 board supportOleksij Rempel2017-08-151-0/+63
| | | | | | | | | This provides low level initialization of pll and ddr2. Resulting binary should work from SRAM, DDR2 and SPI flash. If started from DDR2 RAM level initialization will skipped. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* MIPS: ath79: add initial QCA AR9344 SoC supportOleksij Rempel2017-08-151-0/+53
| | | | | | | | | | | | | | | | | | | | | According to the documentation: "The AR9344 is a highly integrated and feature-rich IEEE 802.11n 2x2 2.4/5 GHz System-on-a-Chip (SoC) for advanced WLAN platforms. It includes a MIPS 74Kc processor, PCI Express 1.1 Root Complex and Endpoint interfaces, five port IEEE 802.3 Fast Ethernet Switch with MAC/PHY, one MII/RMII/RGMII interface, one USB 2.0 MAC/PHY, and external memory interface for serial Flash, SDRAM, DDR1 or DDR2, I2S/SPDIF-Out audio interface, SLIC VOIP/PCM interface, two UARTs, and GPIOs that can be used for LED controls or other general purpose interface configurations. The AR9344 supports 802.11n operations up to 144 Mbps for 20 MHz and 300 Mbps for 40 MHz respectively, and 802.11a/b/g data rates. Additional features include Maximal Likelihood (ML) decoding, Low-Density Parity Check (LDPC), Maximal Ratio Combining (MRC), Tx Beamforming (TxBF), and On-Chip One-Time Programmable (OTP) memory." Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* MIPS: dts: reuse TP-LINK MR3020 dts file from linuxAntony Pavlov2016-08-181-67/+1
| | | | | | | | | | At the moment barebox tplink-mr3020.dts file has almost the same content as linux ar9331_tl_mr3020.dts file so we can reuse linux dts-file and drop duplicated lines from barebox dts-file. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mips'Sascha Hauer2016-06-143-62/+30
|\
| * MIPS: ath79: dts: use ar9331.dtsi from linux v4.7-rc2Antony Pavlov2016-06-143-61/+2
| | | | | | | | | | | | | | | | Nowadays we have AR9331 devicetree from linux v4.7-rc2 in the file dts/src/mips/qca/ar9331.dtsi. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: ath79: dts: tplink-mr3020.dts: sync with linux v4.7-rc2Antony Pavlov2016-06-142-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also sync black-swift.dts with tplink-mr3020.dts. And also see this linux kernel commit: commit 2c3694d2e6ead3964aafb31e4e529de219ced92b Author: Antony Pavlov <antonynpavlov@gmail.com> Date: Thu Mar 17 06:34:19 2016 +0300 MIPS: ath79: add initial support for TP-LINK MR3020 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: ath79: dts: sync spi stuff with linux v4.7-rc2Antony Pavlov2016-06-141-2/+7
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>