summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-18drm hisi remove all LP DSI timemainline-basis-test-2015-06-18-1mainline-basisAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi remove whitelist use generic hline_time roundingAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi sysrq g hackAndy Green
This patch let you force cycling between the whitelisted modes possible on hisi hdmi. Force the mode change by typing Alt-Gr SysRq g that is - hold down the right-hand ALT key - hold down the SysRq key - tap g key - let go of everything Each time he will move to the "next" mode, at the moment in the order (assume started in 1080p60) 1080p50 720p60 1080p60 etc Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi ade use correct stride to allow scanout and fb size to differAndy Green
The existing code here assumes that the framebuffer size is always the scanout size. There is no requirement that is true, and eg, if you start on a 1080p mode and change mode in the framebuffer console to 720p later, the framebuffer console remains at 1080p and the new mode is a subwindow on the 1080p sized original framebuffer console. This patch corrects the computations to use the right mix of information about the memory layout (framebuffer stride) and the current scanout (crtc active mode dimensions) so it works for all cases. Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi ade avoid crash on resolution changeXinwei Kong
2015-06-18drm hisi dsi add 720p60 640MHz heuristicAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi dsi compute and log true timingsAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18V2 drm hisi provide canned 720p if no other modeAndy Green
This creates a canned DRM mode for 720p60, and in the event there is no usable mode left after DRM checks validity, the canned mode will be used. This is helpful in two cases 1) No EDID appeared, but the device supports the fallback mode 2) An EDID appeared, but it does not list any acceptable mode. However, the device does actually support the fallback mode. It's implemented by adding a new optional connector func callback which is called in the event we are left with no valid modes. Connectors may handle the "fallback_mode" callback and add a fallback mode to use rather than the DRM default of 1024 x 768. You can test "no EDID" by shorting HDMI connector p16 (SDA) to p17 (0V) Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi use kHz for clock computationsAndy Green
1) Enhance all the computations to use ps period resolution and kHz frequency resolution, improving accuracy. 2) Automatically use 4 lanes when clock rate > 80MHz, for compatibility with 1080p 3) I found enable and disable of the DSI LP mode when other transmissions can occur was necessary to make each mode work. By trial and error I found what is needed for each mode and implemented heuristics. 4) Some modes require one more byte lane clock compared to the calculated amount, I added a heuristic to do it With these changes 1080p50 and 60 modes work on all 3 of my monitors, and 720p60 can also work. 720p50 worked on one monitor but on another he was flicking between showing it correctly and feeling the mode was invalid, so I disabled it. There is a colour swap problem on 1080p60 I noticed sometimes. On some boots what should be R, G, B are misordered as B, R, G, I think it means we slipped a colour byte sent by DSI: RGBRGBRGBRGB received by ADV7533: RGBRGBRGBRGB This happens between DSI and ADV7533 because - it's the first place the pixels are serialized - swapping monitors after this happens it never changes afterwards (ie, problem is not happening in the monitor receiver) I only just noticed it so not sure what to do about it yet. Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi only accept confirmed modesAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hisi remove forced modesAndy Green
Framebuffer console no longer needs this to work, EDID fetch and 3-lane restriction automatically selects 720p or best mode available on monitor. Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hikey ade remove unhelpful helpersAndy Green
The helpers bloat the code and hide what's actually going in the registers. I'm a bit dubious about these bitfields always mapping correctly as well, also get rid of those (-94 LOC) Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm hikey ade fixup real adjusted clock and disallow 72MHzAndy Green
This patch iteratively selects the ADE pixel clock, optionally in order to always choose the next highest clock, but always to avoid 72MHz base clock, which later selects 576MHz DSI clock which is unreliable, it only locks correctly about 50% of boots. Storing the actual chosen clock in adj_mode is used elsewhere to provide correct computations in later patches. Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm i2c adv7511 align hikey hdmiAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm i2c adv7511 set hdmi dvi bit on heuristicAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm adv7511 simplify edid wait works on hikeyAndy Green
The existing EDID wait / fetch code did not work on hikey on my two test monitors. This patch simplifies the wait and is able to correctly get the edid in both cases now. Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm adv7511 make num lanes decideable dynamicallyAndy Green
The existing code seems to expect there is only one setting for the number of lanes in use. On a pluggable HDMI device, the number of lanes needed changes dynamically depending on the mode that is chosen. This patch makes the number of lanes optional in the dts, if left out then it's decided dynamically, on the heuristic that pixel clock > 80MHz == 4 lanes, otherwise 3 Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18adv7511 hikey integrateAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm align architAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm import v4.1 rc7 adv7511.cAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18drm adv7533 remove driver from treeAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18config update cma to 64MBAndy Green
Otherwise we can't even make a 1080p framebuffer Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18uplevel fixesAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18wl18xxAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18amba pl011 alignAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-18v300 edmac uplevelAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-06-16Bluetooth: tty_hci: add LED supportGuodong Xu
Add LED support for tty HCI driver. Two triggers are used, and each for one traffic direction: tx and rx. Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-06-16dts: hikey: remove always-on in wlan_en regulatorGuodong Xu
WLAN_EN pin should be controllable by mmmc driver on each of its up and down. Otherwise, WLAN module cannot be properly reset. One noticeable failure happens at the second time you run 'ifconfig wlan0 up'. Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-06-16ARM64: hi6220: enable ldo21 by defaultHaojian Zhuang
Since LDO21 is used on low speed expansion board, make it always on to debug LS expansion board easier. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
2015-06-16dts: hikey: configure pinctrl for uart3/4Leo Yan
The old dts have no configuration for uart3/4, so add related support for these two uart ports. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-06-16ARM64: defconfig: enable USB GSM driverJorge Ramirez-Ortiz
2015-06-16ARM64: defconfig: enable more USB serial driversJorge Ramirez-Ortiz
2015-06-16usb: dwc2: workaround of host usb_speedZhangfei Gao
usb_speed takes effect immediately if in host mode. Note: current operation may be stopped. ps: usb_speed specifically used for A ports. OTG port supports high/full/low speed dynamically Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16dts: hi6220: sd not support uhs modeZhangfei Gao
Find 1.8v voltage switch still has issue So only support hs mode, and do not support sdr mode until 1.8v voltage switch is supported Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16arm64: dts: hi6220 cpufreq cooling trip set at 50CLeo Yan
Fixes HiKey system shutdowns caused by SoC overheating (90C threshold reached) while running lkp tests [1] [1] git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
2015-06-16dts: hikey: set LED bt_active's trigger to bluetooth txGuodong Xu
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-06-16defconfig: enable BT_LEDSGuodong Xu
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-06-16Bluetooth: Add LED triggers for bluetooth packet receive and transmitGuodong Xu
Two LED triggers are defined: [hdev->name]tx and [hdev->name]rx. Upon packets availabe in HCI core layer, they blink. Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-06-16dts: hi6220: add mmc capabilitiesZhangfei Gao
emmc: hs sd: hs, sdr12, sdr25 Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16mmc: dw_mmc: k3: update switch_voltage for uhs modeZhangfei Gao
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16ARM64: defconfig: enable namespaces supportFathi Boudra
namespaces is required by systemd hostnamed Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-06-16Revert "serial/amba-pl011: Leave the TX IRQ alone when the UART is not open"Dave Martin
This reverts commit f2ee6dfa0e8597eea8b98d240b0033994e20d215. Jakub Kiciński observed that this patch can cause the pl011 driver to hang if if the only process with a pl011 port open is killed by a signal, pl011_shutdown() can get called with an arbitrary amount of data still in the FIFO. Calling _shutdown() with the TX FIFO non-empty is questionable behaviour and my itself be a bug. Since the affected patch was speculative anyway, and brings limited benefit, the simplest course is to remove the assumption that TXIS will always be left asserted after the port is shut down. Signed-off-by: Dave Martin <Dave.Martin@arm.com>
2015-06-16Revert "Revert "serial/amba-pl011: Leave the TX IRQ alone when the UART is ↵Leo Yan
not open"" This reverts commit c53e40af6ae1176e198616658e7a0b71030ea978.
2015-06-16btwilink: remove macro DEBUGLeo Yan
Remove macro DEBUG so can remove mass debug info. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-06-16Revert "serial/amba-pl011: Leave the TX IRQ alone when the UART is not open"Leo Yan
This reverts commit 2240197df2a93c8d526a24154ba60e136276f12b. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-06-16Revert "Rtc"Jorge A. Ramirez-Ortiz
2015-06-16defconfig: enable CONFIG_RTC_DRV_PL031Zhangfei Gao
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16dts: hi6220: add rtc0Zhangfei Gao
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16clk: hi6220: add rtc clkZhangfei Gao
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-06-16ARM64: defconfig: drop ext2/ext3 and enable overlay fsFathi Boudra
* ext4 fs is used for ext2/ext3 through CONFIG_EXT4_USE_FOR_EXT23 hence enabling ext2/ext3 is unecessary * enable overlay fs Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>