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