pwm: meson: add relative_duty interface in pwm sysfs [1/1]
authorBichao Zheng <bichao.zheng@amlogic.com>
Wed, 16 Jan 2019 06:21:43 +0000 (14:21 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 22 Feb 2019 05:24:34 +0000 (21:24 -0800)
commit900856a47f88cf3c9dea1d3a31d4bb4eac291b38
treee0cc0b9db69fc3b6b6a66a43fd6348059a27ece4
parent105becb4174f1fd73be6d2dbf992e15aae352e11
pwm: meson: add relative_duty interface in pwm sysfs [1/1]

PD#SWPL-4225

Problem:
This interface is added to facilitate debugging the voltage-
table in pwm regulator, which can output different percentages
of waveforms in a fixed pwm cycle.
example:
echo 50 100 > sys/class/pwm/pwmchipx/pwmx/relative_duty
output 50% duty pwm

Solution:
add relative_duty interface in pwm sysfs

Verify:
test pass on tl1_X301_v1 tl1_skt_v1

Change-Id: Icd01e681694b81f3790f7cce8c326db02674a48c
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
drivers/pwm/sysfs.c