25 Oct, 2018
3 commits
-
Choose best prescaler to improve PWM resolution. Without this change
driver chooses first prescaler that gives us period value within
range, but it could be not the best one.Signed-off-by: Vasily Khoruzhick
Tested-by: Vagrant Cascadian
Acked-by: Maxime Ripard
Reviewed-by: Jagan Teki -
Looks like old prescaler was used when configuring PWM, fix it.
Signed-off-by: Vasily Khoruzhick
Acked-by: Maxime Ripard
Reviewed-by: Jagan Teki -
Fix off-by-one that prevented PWM driver to use prescaler bypass.
Without this change prescaler is always enabled.Signed-off-by: Vasily Khoruzhick
Acked-by: Maxime Ripard
Reviewed-by: Jagan Teki
09 Oct, 2018
1 commit
-
At present this uclass has no tests. Add a simple one which checks the PWM
configuration, regulator and GPIO.Signed-off-by: Simon Glass
15 May, 2018
1 commit
-
This commit adds basic support for PWM found on Allwinner A64.
It can be used for pwm_backlight driver (e.g. for Pinebook)Signed-off-by: Vasily Khoruzhick
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
28 Apr, 2018
1 commit
-
We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.Signed-off-by: Tom Rini
14 Mar, 2018
1 commit
-
use live dt api to get base addr
Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
20 Nov, 2017
1 commit
-
Add missing parts for i.MX53 PWM support
Acked-by: Nandor Han
Signed-off-by: Martyn Welch
Cc: Stefano Babic
Acked-by: Stefano Babic
29 Jul, 2017
1 commit
-
Update the tegra pwm driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren
27 Jul, 2017
1 commit
-
Use mask to clear old setting before direct set the new config,
or else there it will mess up the config when it's not the same
with default value.Fixes: 3851059 rockchip: Setup default PWM flags
Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
10 Jun, 2017
1 commit
-
At present if the
Signed-off-by: Simon Glass
Fixes: 874ee59 (rockchip: pwm: implement pwm_set_invert())
01 Jun, 2017
1 commit
-
These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.In the end we will have:
1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree onlyAll drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.Note this involves changing some dead code - the imx_lpi2c.c file.
Signed-off-by: Simon Glass
11 May, 2017
3 commits
-
Add test case for new interface set_invert().
Signed-off-by: Kever Yang
Acked-by: Simon Glass
Fix typo in subject and build error in sandbox_pwm_set_invert():
Signed-off-by: Simon Glass -
Rockchip pwm need to init polarity, implement pwm_set_invert()
to do it.Signed-off-by: Kever Yang
Acked-by: Simon Glass -
The latest kernel PWM drivers enable the polarity settings. When system
run from U-Boot to kerenl, if there are differences in polarity set or
duty cycle, the PMW will re-init:
close -> set polarity and duty cycle -> enable the PWM.
The power supply controled by pwm regulator may have voltage shaking,
which lead to the system not stable.Signed-off-by: Elaine Zhang
Signed-off-by: Kever Yang
Acked-by: Simon Glass
28 Apr, 2017
1 commit
-
Unfortunately a test for the PWM uclass was not included when it was
submitted. This was noticed when trying to add more functionality:http://patchwork.ozlabs.org/patch/748172/
Add a simple test to get us started.
Signed-off-by: Simon Glass
09 Feb, 2017
1 commit
-
Both CONFIG_PWM_TEGRA and CONFIG_PWM_EXYNOS depend on CONFIG_DM_PWM,
i.e. they are already guarded by Kconfig correctly. Remove unneeded
ifdef CONFIG_DM_PWM ... endif.While we are here, let's tidy up alignment and sort the lines
alphabetically in Makefile.Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
29 Nov, 2016
1 commit
-
This patch increases supported PWMs from previously PWM4 now up to PWM8
if i.MX6SX is in use.Signed-off-by: Christoph Fritz
07 Oct, 2016
1 commit
-
Signed-off-by: Robert P. J. Day
Acked-by: Heiko Schocher
22 Sep, 2016
2 commits
-
We consider the grf setting for pwm controller select as the system
operation instead of driver operation, move it to soc init, let's
remove it from pwm driver first.Signed-off-by: Kever Yang
Acked-by: Simon Glass -
This patch use clock API instead of hardcode for get pwm clock.
Signed-off-by: Kever Yang
Acked-by: Simon Glass
Fix printf() to debug() nit:
Signed-off-by: Simon Glass
25 May, 2016
1 commit
-
This driver supports the standard PWM API. There are 5 PWMs. Four are used
normally and the last is normally used as a timer.Signed-off-by: Simon Glass
Signed-off-by: Minkyu Kang
17 Feb, 2016
3 commits
-
Use the driver-model PWM driver in preference to the old code.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
Move this option to Kconfig and clean up the header files. Adjust the only
user (the LCD driver) to work with the new driver.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
This PWM supports four channels. The driver always uses the 32KHz clock,
and adjusts the duty cycle accordingly.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren
22 Jan, 2016
2 commits
-
Add a simple driver which implements the standard PWM uclass interface.
Signed-off-by: Simon Glass
-
Add a uclass that supports Pulse Width Modulation (PWM) devices. It
provides methods to enable/disable and configure the device.Signed-off-by: Simon Glass
26 May, 2015
2 commits
-
The break after return is unreachable code, remove it.
Signed-off-by: Axel Lin
Acked-by: Stefano Babic
Acked-by: Heiko Schocher -
pwm_id_to_reg() can return NULL, so add NULL testing to prevent NULL pointer
dereference.Signed-off-by: Axel Lin
Acked-by: Stefano Babic
Acked-by: Heiko Schocher
16 May, 2015
1 commit
-
Prevent overflow by casting duty_ns to ull first. This bug came up when trying to create a 200 Hz PWM
Signed-off-by: Brecht Neyrinck
Acked-by: Heiko Schocher
23 Jul, 2014
1 commit
-
add basic support for the pwm modul found on imx6.
Pieces of this code are based on linux code from drivers/pwm/pwm-imx.c
Commit "cd3de83f1476 Linux 3.16-rc4"Signed-off-by: Heiko Schocher
Acked-by: Stefano Babic
Cc: Wolfgang Denk