summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | MIPS: ath79: add TP-Link WDR4300 board supportOleksij Rempel2017-08-157-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-156-158/+978
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: ath79: provide CONFIG_SOC_QCA_AR9331 optionOleksij Rempel2017-08-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QCA AR9331 and QCA AR9344 have some similar part but different uart engines. We need this flag to provide common debug_ll support. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | | MIPS: add virt_to_phys() and phys_to_virt()Antony Pavlov2017-08-151-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | | MIPS: ath79: add barebox update handlerOleksij Rempel2017-08-152-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of ar93xx SoCs seem to work only with spi. spifash handler should be enough for now. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | | filetype: fix file type detection for Barebox MIPSOleksij Rempel2017-08-151-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since there is no "0/" after "barebox" in the file header, comparison won't stop on the right place. Fix regression introduced by patch: |commit 03939c0dfbf27d99e81d85e1bc0340fbee083d74 |Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |Date: Tue Jan 22 15:40:36 2013 +0100 | | filetype: add is_barebox_mips_head support Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2017-09-085-85/+142
|\ \ \ \
| * | | | ARM: phycore-imx6ul: use MAC address from OCOTPLucas Stach2017-09-061-0/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Phycore MX6UL modules are correctly fused with a MAC address. Use this for the Barebox network connection and fixing up the kernel DT. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clk: imx: cpu: don't store the address of a function parameterUwe Kleine-König2017-08-151-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function imx_clk_cpu takes a const char *parent_name as second paramter. The implementation introduced in commit 9a89ed9d281e then uses the address of this function parameter to assign clk.parent_names. This is an address on the stack that is saved in the clk tree and of course this is easily overwritten by later execution paths of barebox. Without this fix the clk_dump command reproducibly crashes on i.MX7 (which is the only SoC that makes use of imx_clk_cpu()). Fixes: 9a89ed9d281e ("clk: imx: Add clk-cpu support") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | scripts/imx: fix out-of-bounds access for big DCD tablesUwe Kleine-König2017-08-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add_header_v2 might need a buffer that is bigger than HEADER_LEN (0x1000) as MAX_DCD * sizeof(u32) (i.e. the maximal size of the dcd table alone) is already 0x1000. Additionally add_header_v2 adds padding (usually 0x400) and a struct imx_flash_header_v2 (48). So expand the buffer size accordingly for v2. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | spi: imx: add timeout to xchg_singleUwe Kleine-König2017-08-151-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is a problem STAT_RR might never be set which results in an endless loop. Break out after 10 µs with -ETIMEOUT instead. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | spi: imx: add error checkingUwe Kleine-König2017-08-151-29/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible that the xchg_single callbacks return an error code that is then passed to the caller of spi_transfer. There is no change in behaviour intended as up to now the callbacks always return 0. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | | ARM: imx: phyCORE i.MX7: use register defines in dcd tableUwe Kleine-König2017-08-151-46/+48
| |/ / | | | | | | | | | | | | | | | | | | This was done using scripts/regsubst.pl. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* | | Merge branch 'for-next/efi'Sascha Hauer2017-09-084-1/+73
|\ \ \
| * | | efi: add iBASE MI991AF documentation.Oleksij Rempel2017-09-082-0/+45
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | efi: make sure efi-fs is started in the right orderMichael Olbrich2017-09-082-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with this parch, EFI System partition will be mounted to /boot instead of /mnt/diskXX. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Documentation: efi: add example how to create EFI partitionOleksij Rempel2017-09-081-0/+25
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/dts'Sascha Hauer2017-09-0857-480/+231
|\ \ \ \
| * | | | dts: update to v4.13Sascha Hauer2017-09-0820-349/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | dts: update to v4.13-rc7Sascha Hauer2017-09-085-34/+31
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | dts: update to v4.13-rc6Sascha Hauer2017-09-089-17/+24
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | dts: update to v4.13-rc4Sascha Hauer2017-09-0823-69/+172
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | dts: update to v4.13-rc3Sascha Hauer2017-09-086-16/+7
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/at91'Sascha Hauer2017-09-0811-161/+310
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | at91: sync mach/barebox-arm-head.hSam Ravnborg2017-09-061-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From 308f9f62554feaffaf3e2a0c7203e57b6fde8abc Mon Sep 17 00:00:00 2001 From: Sam Ravnborg <sam@ravnborg.org> Date: Fri, 7 Jul 2017 17:53:59 +0200 Subject: [PATCH 1/2] at91: sync mach/barebox-arm-head.h To prepare for multi image support synch the barebox-arm-head.h header with the arm version. This include the reservation of a small area for board specific use Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | at91_udc: add DT supportSam Ravnborg2017-09-061-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the linux kernel version of the same driver. Needs to adjust clock names as the clock names used in the device tree does not match the clocknames used in platform_data. The clocknames in the device tree are not unique, so it was not an option to rename the clocks. It boots and the driver is discovered - no further testing done. $ devinfo fff78000.gadget Resources: num: 0 name: /ahb/apb/gadget@fff78000 start: 0xfff78000 size: 0x00004000 Driver: at91_udc Bus: platform Parameters: vbus: 1 (type: bool) Device node: /ahb/apb/gadget@fff78000 gadget@fff78000 { compatible = "atmel,at91sam9263-udc"; reg = <0xfff78000 0x4000>; interrupts = <0x18 0x4 0x2>; clocks = <0x26 0x27>; clock-names = "pclk", "hclk"; status = "okay"; atmel,vbus-gpio = <0x28 0x19 0x0>; }; Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | atmel_lcdfb: add DT supportSam Ravnborg2017-09-062-4/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some boards use "have_intensity_bit". To support this the syntax for lcd_wiring_mode was extended to include this info. This is an extension compared to the documented bindings, and an extension the kernel does not support (yet). The binding documents that there can be more than one gpio to power on/off the display but current implmentation supports only one gpio. There are no users that requires more than one gpio so this is good enough. The clk name used for hclk differs from device trees and platform data. We could rename the clocl used in platform data but the name "hclk" is not unique. Configure clockname based on configuration method. Devicetree => hclk Platform data => hck1 Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | atmel_lcdfb: move pdata init to a separate functionSam Ravnborg2017-09-061-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep atmel_lcdc_register() readable by separating out pdata handling in a helper function Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | atmel_lcdfb: define power_control gpio in platform_dataSam Ravnborg2017-09-067-116/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify board specific code by specifying the power_control gpio direct in platform data. Move registration of the GPIO to the driver so we no longer need to duplicate this for each board. As an intended side-effect there is no longer any references to platform_data outside atmel_lcdc_register() so remove it from struct atmel_lcdfb_info The implementation assumes that GPIO=0 is the same as no power control. This prevents us from using any GPIO=0 for power control, but this is not considered a problem for current users. Future DT users will not have this limitation. This commit include a fix so we will actually power down if requested. Previously this was hardcoded to ON. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | atmel_lcdfb: move lcd_wiring_mode, have_intensity_bit to local dataSam Ravnborg2017-09-062-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy lcd_wiring_mode and have_intensity_bit to atmel_lcdfb_info to minimize dependency on the atmel_lcdfb_platform_data. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | atmel_lcdfb: move dmacon, lcdcon2 to local dataSam Ravnborg2017-09-064-8/+8
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Copy dmacon + lcdcon2 to atmel_lcdfb_info to minimize dependency on the atmel_lcdfb_platform_data. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Release v2017.09.0v2017.09.0Sascha Hauer2017-09-081-1/+1
| |/ / |/| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | gpio: clps711x: clps711x_gpio_dt_ids: add missing sentinel entryAntony Pavlov2017-09-061-0/+1
|/ / | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fs: Don't bother filesystems without link support with additional stat() callsSascha Hauer2017-09-061-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | In __canonicalize_path() we only call stat() to know if the path is a link or not. When the filesystem doesn't support links we already know that it's not a link, so we do not need to call stat(). This helps the tftp filesystem since the parent directories of a file to be opened won't be stat()ed anymore, something tftp does not support. Fixes: a602bebc fs: Implement links to directories Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fs: avoid pathes with '//' in __canonicalize_path()Sascha Hauer2017-09-061-2/+7
|/ | | | | | | | | In __canonicalize_path pathes beginning with '//' can occur. This is normally not a problem since normalize_path() will clean this up, but it means we cannot call get_fsdevice_by_path() on these pathes in this function, as needed in the next patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: imx7: sabreSD: remove duplicate DT nodesLucas Stach2017-08-151-40/+0
| | | | | | | | The latest upstream DTs have been merged, so remove the now duplicate DT nodes. Fixes: a0a5a7b84ff8 (ARM: i.MX: Add support for NXP i.MX7 SABRESD board) Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: add stub for imx7_uart_setup_llLucas Stach2017-08-151-0/+1
| | | | | Fixes: 28e8db159f25 (ARM: i.MX: Add imx7_uart_setup_ll()) Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: ccmx53: select I2CLucas Stach2017-08-151-0/+1
| | | | | | The board file needs i2c support to enable a regulator. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: build imx6.o as ARMv7Lucas Stach2017-08-151-0/+1
| | | | | | | Otherwise the WFI instruction might not be available in a multi-image build. Fixes: 1e9458720a23 (ARM: i.MX: provide handler for power off over standby) Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: fix phyBOARD-Zeta pinfunc typoLucas Stach2017-08-151-1/+1
| | | | | | | This has been resolved upstream, now the barebox private DTs need to follow. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* Merge branch 'for-next/tc358767'Lucas Stach2017-07-311-50/+179
|\
| * video: tc358767: accept any hsync and vsync polatiryAndrey Gusakov2017-07-061-6/+7
| | | | | | | | | | | | | | | | Do not fix modes. Instead set any sync polarity passed through VPL_PREPARE and fb_videomode. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: filter out modes with too high pixelclockAndrey Gusakov2017-07-061-0/+83
| | | | | | | | | | | | | | | | | | Minimum pixel clock period is 6.5 nS for DPI. Remove modes with lower pixel clock period. Also sort modes in decreasing order because currently first resolution in list is picked. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: optimize DPCD register writeAndrey Gusakov2017-07-061-11/+13
| | | | | | | | | | Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: optimize aux i2c bus checksAndrey Gusakov2017-07-061-11/+2
| | | | | | | | | | | | | | | | Move common check to tc_aux_i2c_xfer Remove duplicated check from tc_aux_i2c_write Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: support newer DPCD revisions and higher data ratesAndrey Gusakov2017-07-061-4/+16
| | | | | | | | | | | | | | | | | | Do not fail on newer DPCD revision. Assume it backwards compatible. Try to fall back to supported data rate in case display reports too high data rate. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: do not fail if sink supports more than 2 lanesAndrey Gusakov2017-07-061-5/+31
| | | | | | | | | | | | | | Display should support lower lane count for backward compatibility Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: fix AUXDATAn registers access during writeAndrey Gusakov2017-07-061-2/+2
| | | | | | | | | | | | | | | | | | First four bytes should go to DP0_AUXWDATA0. Due to bug if len > 4 first four bytes was writen to DP0_AUXWDATA1 and all data get shifted by 4 bytes. Fix it. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: fix timing calculationAndrey Gusakov2017-07-061-10/+13
| | | | | | | | | | | | | | | | Fields in HTIM01 and HTIM02 regs should be even. Recomended thresh_dly value is max_tu_symbol. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * video: tc358767: fix DP0_MISC register setAndrey Gusakov2017-07-061-2/+2
| | | | | | | | | | | | | | | | Remove shift from TU_SIZE_RECOMMENDED define as it used to calculate max_tu_symbols. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>