[U-Boot] [PATCH v2 12/18] spmi: Add sandbox test driver

Simon Glass sjg at chromium.org
Sun Jan 31 16:16:42 CET 2016


Hi Mateusz,

On 24 January 2016 at 13:53, Mateusz Kulikowski
<mateusz.kulikowski at gmail.com> wrote:
> This patch adds emulated spmi bus controller with part of
> pm8916 pmic on it to sandbox and tests validating SPMI uclass.
>
> Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Rename CONFIG_DM_SPMI -> CONFIG_SPMI
> - Rename r -> regs, p -> priv
> - Add reviewed-by
> - Update binding doc (drop unused bindig)
>
> Changes in v1: None
>
>  arch/sandbox/dts/sandbox.dts                   |  20 ++++

You should add these changes to test.dts also - try running
test/dm/test-dm.sh to see the failures.

>  configs/sandbox_defconfig                      |   4 +
>  doc/device-tree-bindings/spmi/spmi-sandbox.txt |  31 +++++
>  drivers/spmi/Kconfig                           |   8 ++
>  drivers/spmi/Makefile                          |   1 +
>  drivers/spmi/spmi-sandbox.c                    | 157 +++++++++++++++++++++++++
>  test/dm/Makefile                               |   1 +
>  test/dm/spmi.c                                 | 115 ++++++++++++++++++
>  8 files changed, 337 insertions(+)
>  create mode 100644 doc/device-tree-bindings/spmi/spmi-sandbox.txt
>  create mode 100644 drivers/spmi/spmi-sandbox.c
>  create mode 100644 test/dm/spmi.c
>

Regards,
Simon


More information about the U-Boot mailing list