From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2] sandbox: cros-ec: Add tests for the Chrome OS PWM driver
Date: Wed, 19 May 2021 19:26:54 +0300 [thread overview]
Message-ID: <beb8497a-bd5d-4db5-ed6b-e79e4f6670dc@gmail.com> (raw)
In-Reply-To: <CAPnjgZ0OP=FP_MqJEfB86O9yjBYsPGgCLbAk6T6MwwWgrfH5_w@mail.gmail.com>
On 19/05/2021 18:34, Simon Glass wrote:
> Hi Alpher,
>
> On Wed, 19 May 2021 at 09:30, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
>>
>> This patch adds a limited pulse-width modulator to sandbox's Chrome OS
>> Embedded Controller emulation. The emulated PWM device supports multiple
>> channels but can only set a duty cycle for each, as the actual EC
>> doesn't expose any functionality or information other than that. Though
>> the EC supports specifying the PWM channel by its type (e.g. display
>> backlight, keyboard backlight), this is not implemented in the emulation
>> as nothing in U-Boot uses this type specification.
>>
>> This emulated PWM device is then used to test the Chrome OS PWM driver
>
> Typically we use "Chromium OS" for open-source software.
OK. I'll switch to that instead and send a v3 shortly.
(I also noticed that I forgot "EC" in the subject line...)
>> in sandbox. Adding the required device node to the sandbox test
>> device-tree unfortunately makes it the first PWM device, so this also
>> touches some other tests to make sure they still use the sandbox PWM.
>>
>> Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
>> ---
>> This depends on a small fix [1] for cros-ec-pwm which otherwise fails to
>> build.
>>
>> [1] https://patchwork.ozlabs.org/project/uboot/patch/20210514134840.19380-1-alpernebiyasak at gmail.com/
>>
>> Changes in v2:
>> - Try to clarify commit message
>>
>> v1: https://patchwork.ozlabs.org/project/uboot/patch/20210516154144.141945-1-alpernebiyasak at gmail.com/
>>
>> arch/sandbox/dts/test.dts | 6 +++
>> arch/sandbox/include/asm/test.h | 10 +++++
>> configs/sandbox64_defconfig | 1 +
>> configs/sandbox_defconfig | 1 +
>> configs/sandbox_flattree_defconfig | 1 +
>> configs/sandbox_noinst_defconfig | 1 +
>> configs/sandbox_spl_defconfig | 1 +
>> drivers/misc/cros_ec_sandbox.c | 47 +++++++++++++++++++++++
>> test/cmd/pwm.c | 32 +++++++++++++++-
>> test/dm/Makefile | 1 +
>> test/dm/cros_ec_pwm.c | 60 ++++++++++++++++++++++++++++++
>> test/dm/panel.c | 2 +-
>> test/dm/pwm.c | 6 ++-
>> 13 files changed, 164 insertions(+), 5 deletions(-)
>> create mode 100644 test/dm/cros_ec_pwm.c
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
prev parent reply other threads:[~2021-05-19 16:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 15:30 [PATCH v2] sandbox: cros-ec: Add tests for the Chrome OS PWM driver Alper Nebi Yasak
2021-05-19 15:34 ` Simon Glass
2021-05-19 16:26 ` Alper Nebi Yasak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=beb8497a-bd5d-4db5-ed6b-e79e4f6670dc@gmail.com \
--to=alpernebiyasak@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.