summaryrefslogtreecommitdiffstats
path: root/arch/mips/dts
Commit message (Collapse)AuthorAgeFilesLines
...
| * | watchdog: add minimal jz4740 driverAntony Pavlov2014-08-011-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | Also move reset_cpu() for jz4755 SoC from platform code into the new driver code. At the moment mach-xburst lacks clk support so jz4740 watchdog driver looks like a template. We can improve jz4740 watchdog driver later after adding clk support. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/metadata'Sascha Hauer2014-08-071-10/+0
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile common/Makefile lib/Makefile
| * | make: build device trees with obj-dtb-y and pbl-dtb-ySascha Hauer2014-08-071-10/+0
| |/ | | | | | | | | | | | | | | | | | | | | To build an object file from a device tree currently we currently have to add them to the Makefile twice, once to dtb-y and once to obj-y. This patch introduces obj-dtb-y and pbl-dtb-y to directly compile a device tree object file for inclusion in the barebox binary or the pbl respectively. The now unneeded dtb-y targets are removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / MIPS: dts: rzx50.dts: add LCD backlightAntony Pavlov2014-07-311-0/+10
|/ | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: jz4755.dtsi: add gpioAntony Pavlov2014-06-271-0/+42
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: qemu-malta.dts: use i2c-gpio for accessing CBUS FPGA I2C busAntony Pavlov2014-06-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also we can enable m24c02 eeprom chip in dts-file e.g. &i2c0 { status = "okay"; eeprom: m24c02@50 { compatible = "spd"; reg = <0x50>; }; }; Alas! qemu mips malta spd m24c02 eeprom chip emulation is not perfect: the block read operation does not work properly. Here is an example. If we read eeprom content byte-by-byte then there is no problem: barebox:/ for i in 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f ; > do i2c_read -b 0 -a 0x50 -r $i -c 1 ; done 0x01 0x75 0x54 0x00 0x82 0x08 0x00 0x01 Compare this output with content of qemu.git/hw/mips/mips_malta.c: static eeprom24c0x_t spd_eeprom = { .contents = { ... /* 00000008: */ 0x01,0x75,0x54,0x00,0x82,0x08,0x00,0x01, But if we read several bytes at once the we have data corruption: barebox:/ i2c_read -b 0 -a 0x50 -r 0x8 -c 8 0x01 0xff 0xff 0xff 0xff 0xff 0xff 0xff Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: qemu-malta.dts: enable CBUS FPGA I2C gpio driverAntony Pavlov2014-06-241-0/+7
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: Fix dtb build rulesSascha Hauer2014-06-111-1/+4
| | | | | | | | Add intermediate .S files to .SECONDARY. Otherwise make deletes them and regenerates them each build. Also remove KBUILD_DTBS since the make system descends in dts/ anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: add .gitignore for generated filesAntony Pavlov2014-06-101-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: Add builtin dtb to dtb-ySascha Hauer2014-06-051-2/+4
| | | | | | Otherwise a rebuild of the dtb file is triggered each build. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: ar9331: Add missing #address-cells/#size-cells propertiesSascha Hauer2014-06-051-0/+2
| | | | | | | | | | | SPI nodes need valid #address-cells/#size-cells properties. Fixes: Warning (reg_format): "reg" property in /soc/spi@bf000000/m25p80@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/spi@bf000000/m25p80@0 Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/spi@bf000000/m25p80@0 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dlink-dir-320: switch to dtAntony Pavlov2014-05-271-0/+32
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mips'Sascha Hauer2014-05-054-0/+85
|\ | | | | | | | | Conflicts: arch/mips/boards/loongson-ls1b/serial.c
| * MIPS: add Loongson Tech LS1B Demo Board dts fileAntony Pavlov2014-04-081-0/+16
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: add Longson LS1B SoC dtsi fileAntony Pavlov2014-04-081-0/+43
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: tplink-mr3020.dts: add S25FL032PIF SPI flash chipAntony Pavlov2014-04-071-0/+20
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: ar9331.dtsi: add SPI masterAntony Pavlov2014-04-071-0/+6
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | dts: Use dt-bindings from kernelSascha Hauer2014-04-281-1/+1
|/ | | | | | | | barebox used to have its own include/dt-bindings with files copied from the corresponding kernel files. Use upstream dt-bindings directly instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: qemu-malta: add CBUS UART supportAntony Pavlov2014-04-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds CBUS UART dts support; also it adds the necessary macros for DEBUG_LL. qemu-malta supports three serial interfaces: * two ports are provided by the FDC37M817 Super I/O; this chip is connected via LPC bus to Intel 82371EB (PIIX4E) South Bridge; * the third serial port is provided by the discrete TI 16C550C (CBUS UART); this chip is connected via CBUS directly to the board's GT64120 North Bridge. See Malta User's Manual (MD00048) for details. CBUS UART Instructions for use: 1. Enable CONFIG_CONSOLE_ACTIVATE_ALL in .config (or disable uart0 in dts) and compile barebox; 2. run qemu: qemu-system-mips -nographic -nodefaults \ -monitor null -M malta -m 256 \ -serial null -serial null -serial stdio \ -bios barebox-flash-image Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: rzx50: use short form for serial1 referenceAntony Pavlov2014-03-311-5/+3
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: ath79: add tplink-mr3020 board supportAntony Pavlov2014-03-281-0/+16
| | | | | | | | | | | | | | | | This board support code can be used for TP-LINK WR703 too. TP-LINK WR703 is very similar to TP-LINK MR3020, there are some non-essential differences: * WR703 is smaller and cheaper; * WR703 has only one led, but MR3020 has five leds; * MR3020 uses mini-USB connector, WR703 uses micro-USB connector. See https://forum.openwrt.org/viewtopic.php?id=45159 for details. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: ath79: ar9331: add devicetree filesAntony Pavlov2014-03-282-0/+27
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: rzx50: move jz4755 description to the separate fileAntony Pavlov2014-03-262-1/+42
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: qemu-malta: use YAMON-style GT64120 memory mapAntony Pavlov2013-10-281-2/+2
| | | | | | | | | | | | | There are some reasons for using YAMON-style memory map: * we can run Linux kernel from barebox; * we can use GXemul for running barebox. YAMON-style GT64120 memory map make move UART to the new position. The files gt64120.h and mach-gt64120.h are imported from Linux. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: rxz50: add initial devicetree supportDmitry Smagin2013-09-191-0/+12
| | | | | | | | Memory initialization is moved from board.c to rzx50.dts file. Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com> Acked-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: qemu-malta: switch to devicetreeAntony Pavlov2013-09-041-0/+33
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: qemu-malta: add device tree supportAntony Pavlov2013-05-131-0/+12
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add initial device tree supportAntony Pavlov2013-05-132-0/+23
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>