History log of /rk3399_rockchip-uboot/drivers/pwm/rk_pwm.c (Results 1 – 19 of 19)
Revision Date Author Comments
# 9424aa84 20-Nov-2024 Finley Xiao <finley.xiao@rock-chips.com>

pwm: rockchip: Add support to enable clk for mos

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib4914fd20acfc339890d0c89711f1740dc54d37e


# ef59b638 28-Feb-2025 Damon Ding <damon.ding@rock-chips.com>

pwm: rockchip: fix the polarity configurations for pwm v4

Fixes: 6a624b88fcd ("pwm: rockchip: add support for rk3576")
Change-Id: I9b8df3609f12f8cce1c5a3ce66e97cf0e120351e
Signed-off-by: Damon Ding

pwm: rockchip: fix the polarity configurations for pwm v4

Fixes: 6a624b88fcd ("pwm: rockchip: add support for rk3576")
Change-Id: I9b8df3609f12f8cce1c5a3ce66e97cf0e120351e
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>

show more ...


# 6a624b88 23-Feb-2024 Damon Ding <damon.ding@rock-chips.com>

pwm: rockchip: add support for rk3576

In addition, remove unused reg cntr, and add version
informations for future expansion.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia5e69

pwm: rockchip: add support for rk3576

In addition, remove unused reg cntr, and add version
informations for future expansion.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia5e69dd709f5d9c03e6331c4fd4e2a0b2499e781

show more ...


# 68cdac84 24-Dec-2021 Steven Liu <steven.liu@rock-chips.com>

pwm: rockchip: make sure to get pwm clock

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: If5444666ff9e4eb15ffb819a52060d1f03127bf7


# bab0c55c 16-Mar-2018 David Wu <david.wu@rock-chips.com>

pwm: rockchip: Do pwm pinctrl setting after pwm enabled

If the PWM pinctrl uses default state, the iomux setting will
be done at probe, the PWM may not be enabled at this moment.
It will make PWM in

pwm: rockchip: Do pwm pinctrl setting after pwm enabled

If the PWM pinctrl uses default state, the iomux setting will
be done at probe, the PWM may not be enabled at this moment.
It will make PWM into an intermediate state, destroy the default
hardware state, the PWM is not ready for work yet. So it is better
for doing PWM pinctrl setting after PWM enabled.

Change-Id: I8b700a07083b9a6798303fc5a5ed9f29eb42c47e
Signed-off-by: David Wu <david.wu@rock-chips.com>

show more ...


# fdd40e00 16-Mar-2018 David Wu <david.wu@rock-chips.com>

pwm: rockchip: Update PWM driver to support all Rockchip Socs

The new PWM driver support PWM polarity, lock, voppwm and more
functions. In most cases, the PWM requires the same configuration
as kern

pwm: rockchip: Update PWM driver to support all Rockchip Socs

The new PWM driver support PWM polarity, lock, voppwm and more
functions. In most cases, the PWM requires the same configuration
as kernel to reduce the intermediate state between uboot and kernel,
so we sync the code with driver.

Change-Id: Ife5b8470f72eed197dd48e949bcf7da95b9de34c
Signed-off-by: David Wu <david.wu@rock-chips.com>

show more ...


# 409b7b49 05-Mar-2018 Joseph Chen <chenjh@rock-chips.com>

pwm: rk_pwm: don't default disable pwm while set config

Change-Id: Id6be8fcef2da98662ebbcaff5df4dc014303914a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# a166f9e7 24-Feb-2018 David Wu <david.wu@rock-chips.com>

pwm: rk_pwm: Add pwm support for rk3328

The pwm of rk3328 is almost the same as rk3288, except
the lock feature, would implement in feature.

Change-Id: I22650128c456f25aa9815718386c50142cac404a
Sig

pwm: rk_pwm: Add pwm support for rk3328

The pwm of rk3328 is almost the same as rk3288, except
the lock feature, would implement in feature.

Change-Id: I22650128c456f25aa9815718386c50142cac404a
Signed-off-by: David Wu <david.wu@rock-chips.com>

show more ...


# 9169f300 06-Feb-2018 Kever Yang <kever.yang@rock-chips.com>

rockchip: pwm: convert to use live dt

use live dt api to get base addr

Change-Id: Ia01e6fa2ca08c336a1a767630460a956ff293c0b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>


# 06f4e36b 19-Jul-2017 Kever Yang <kever.yang@rock-chips.com>

rockchip: pwm: add mask for config setting

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:

rockchip: pwm: add mask for config setting

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 <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

show more ...


# 8cb3ce64 10-Jun-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


# 38510598 31-May-2017 Simon Glass <sjg@chromium.org>

rockchip: Setup default PWM flags

At present if the

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 874ee59 (rockchip: pwm: implement pwm_set_invert())


# a821c4af 17-May-2017 Simon Glass <sjg@chromium.org>

dm: Rename dev_addr..() functions

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 function

dm: Rename dev_addr..() functions

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 only

All 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 <sjg@chromium.org>

show more ...


# 1f5541c8 10-May-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-rockchip

This adds a new firefly-rk3399 board, MIPI support for rk3399 and
rk3288, rk818 pmic support, mkimage improvements for rockchip and a few
other things.


# 874ee59a 24-Apr-2017 Kever Yang <kever.yang@rock-chips.com>

rockchip: pwm: implement pwm_set_invert()

Rockchip pwm need to init polarity, implement pwm_set_invert()
to do it.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@c

rockchip: pwm: implement pwm_set_invert()

Rockchip pwm need to init polarity, implement pwm_set_invert()
to do it.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>

show more ...


# 201c9d88 22-Sep-2016 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-rockchip


# e2e4e145 12-Aug-2016 Kever Yang <kever.yang@rock-chips.com>

rk_pwm: remove grf setting code from driver

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 d

rk_pwm: remove grf setting code from driver

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 <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>

show more ...


# 12406ae2 12-Aug-2016 Kever Yang <kever.yang@rock-chips.com>

rk_pwm: use clock framework API to get module clock

This patch use clock API instead of hardcode for get pwm clock.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@

rk_pwm: use clock framework API to get module clock

This patch use clock API instead of hardcode for get pwm clock.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Fix printf() to debug() nit:
Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 0e23fd81 22-Jan-2016 Simon Glass <sjg@chromium.org>

pwm: rockchip: Add a PWM driver for Rockchip SoCs

Add a simple driver which implements the standard PWM uclass interface.

Signed-off-by: Simon Glass <sjg@chromium.org>