Skip to content
Snippets Groups Projects
  1. Oct 28, 2020
  2. Oct 27, 2020
  3. Oct 23, 2020
  4. Oct 22, 2020
  5. Oct 18, 2020
  6. Oct 17, 2020
  7. Oct 14, 2020
  8. Oct 13, 2020
  9. Oct 10, 2020
    • Simon Glass's avatar
      log: Disable the syslog driver by default · c7f5b850
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      This driver interferes with other sandbox tests since it causes log output
      to be interspersed with "No ethernet found." messages. Disable this driver
      by default.
      
      Enable it for the syslog tests so that they still pass.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      c7f5b850
    • Simon Glass's avatar
      log: Add a way to enable/disable a log device · 3d03ab63
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      At present all log devices are enabled by default. Add a function to allow
      devices to be disabled or enabled at runtime.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      3d03ab63
    • Simon Glass's avatar
      log: Drop #ifdef in log_test · bd180db2
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      This is not needed as the Makefile only builds the file if CONFIG_LOG_TEST
      is enabled. Drop it.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      bd180db2
    • Simon Glass's avatar
      log: Allow LOG_DEBUG to always enable log output · 52d3df7f
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file
      (before log.h inclusion) causes _log() to be executed for every log()
      call, regardless of the build- or run-time logging level.
      
      However there is no guarantee that the log record will actually be
      displayed. If the current log level is lower than LOGL_DEBUG then it will
      not be.
      
      Add a way to signal that the log record should always be displayed and
      update log_passes_filters() to handle this.
      
      With the new behaviour, log_debug() will always log if LOG_DEBUG is
      enabled.
      
      Move log_test_syslog_nodebug() into its own file since it cannot be made
      to work where it is, with LOG_DEBUG defined.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      52d3df7f
  10. Oct 08, 2020
    • Sean Anderson's avatar
      test: dm: Test for default led naming · 3e41c7b2
      Sean Anderson authored and Tom Rini's avatar Tom Rini committed
      
      This modifies the existing led test to check for default led naming as
      added in the previous patch.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      3e41c7b2
    • Sean Anderson's avatar
      test: pinmux: Add test for pin muxing · 7f0f1806
      Sean Anderson authored and Tom Rini's avatar Tom Rini committed
      
      This extends the pinctrl-sandbox driver to support pin muxing, and adds a
      test for that behaviour. The test is done in C and not python (like the
      existing tests for the pinctrl uclass) because it needs to call
      pinctrl_select_state.  Another option could be to add a command that
      invokes pinctrl_select_state and then test everything in
      test/py/tests/test_pinmux.py.
      
      The pinctrl-sandbox driver now mimics the way that many pinmux devices
      work.  There are two groups of pins which are muxed together, as well as
      four pins which are muxed individually. I have tried to test all normal
      paths. However, very few error cases are explicitly checked for.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      7f0f1806
  11. Oct 06, 2020
  12. Sep 30, 2020
    • Etienne Carriere's avatar
      firmware: smci: sandbox test for SCMI reset controllers · c0dd177a
      Etienne Carriere authored and Tom Rini's avatar Tom Rini committed
      
      Add tests for SCMI reset controllers. A test device driver
      sandbox-scmi_devices.c is used to get reset resources, allowing further
      resets manipulation.
      
      Change sandbox-smci_agent to emulate 1 reset controller exposed through
      an agent. Add DM test scmi_resets to test this reset controller.
      
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Sudeep Holla <sudeep.holla@arm.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      c0dd177a
    • Etienne Carriere's avatar
      firmware: scmi: sandbox test for SCMI clocks · 87d4f277
      Etienne Carriere authored and Tom Rini's avatar Tom Rini committed
      
      Add tests for SCMI clocks. A test device driver sandbox-scmi_devices.c
      is used to get clock resources, allowing further clock manipulation.
      
      Change sandbox-smci_agent to emulate 3 clocks exposed through 2 agents.
      Add DM test scmi_clocks to test these 3 clocks.
      Update DM test sandbox_scmi_agent with load/remove test sequences
      factorized by {load|remove}_sandbox_scmi_test_devices() helper functions.
      
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Sudeep Holla <sudeep.holla@arm.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      87d4f277
    • Etienne Carriere's avatar
      firmware: add SCMI agent uclass · 358599ef
      Etienne Carriere authored and Tom Rini's avatar Tom Rini committed
      This change introduces SCMI agent uclass to interact with a firmware
      using the SCMI protocols [1].
      
      SCMI agent uclass currently supports a single method to request
      processing of the SCMI message by an identified server. A SCMI message
      is made of a byte payload associated to a protocol ID and a message ID,
      all defined by the SCMI specification [1]. On return from process_msg()
      method, the caller gets the service response.
      
      SCMI agent uclass defines a post bind generic sequence for all devices.
      The sequence binds all the SCMI protocols listed in the FDT for that
      SCMI agent device. Currently none, but later change will introduce
      protocols.
      
      This change implements a simple sandbox device for the SCMI agent uclass.
      The sandbox nicely answers SCMI_NOT_SUPPORTED to SCMI messages.
      To prepare for further test support, the sandbox exposes a architecture
      function for test application to read the sandbox emulated devices state.
      Currently supports 2 SCMI agents, identified by an ID in the FDT device
      name. The simplistic DM test does nothing yet.
      
      SCMI agent uclass is designed for platforms that embed a SCMI server in
      a firmware hosted somewhere, for example in a companion co-processor or
      in the secure world of the executing processor. SCMI protocols allow an
      SCMI agent to discover and access external resources as clock, reset
      controllers and more. SCMI agent and server communicate following the
      SCMI specification [1]. This SCMI agent implementation complies with
      the DT bindings defined in the Linux kernel source tree regarding
      SCMI agent description since v5.8.
      
      Links: [1] https://developer.arm.com/architectures/system-architectures/software-standards/scmi
      
      
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Sudeep Holla <sudeep.holla@arm.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      358599ef
    • Jean-Jacques Hiblot's avatar
      test: dm: Add tests for regmap managed API and regmap fields · 0ced26a4
      Jean-Jacques Hiblot authored and Tom Rini's avatar Tom Rini committed
      
      The tests rely on a dummy driver to allocate and initialize the regmaps
      and the regmap fields using the managed API. The first test checks if
      the regmap config fields like width, reg_offset_shift, range specifiers,
      etc work. The second test checks if regmap fields behave properly (mask
      and shift are ok) by peeking into the regmap.
      
      Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
      Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      0ced26a4
    • Pratyush Yadav's avatar
      test/py: allow multi-digit index in in_tree() · 8a34d3d7
      Pratyush Yadav authored and Tom Rini's avatar Tom Rini committed
      
      When more nodes are added for a uclass the index might go into two or
      more digits. This means that there are less spaces printed because they
      are used up by the extra digits. Update the regular expression to allow
      variable-length spacing between the class name and and index.
      
      This was discovered when adding a simple_bus node in test.dts made
      test_bind_unbind_with_uclass() fail because the index went up to 10.
      
      Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
      8a34d3d7
    • Jean-Jacques Hiblot's avatar
      test: gpio: Add tests for the managed API · 88e6a60e
      Jean-Jacques Hiblot authored and Tom Rini's avatar Tom Rini committed
      
      Add a test to verify that GPIOs can be acquired/released using the managed
      API. Also check that the GPIOs are released when the consumer device is
      removed.
      
      Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
      88e6a60e
    • Jean-Jacques Hiblot's avatar
      test: reset: Add tests for the managed API · bad24331
      Jean-Jacques Hiblot authored and Tom Rini's avatar Tom Rini committed
      
      The tests are basically the same as for the regular API. Except that
      the reset are initialized using the managed API, and no freed manually.
      
      Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
      bad24331
    • Sean Anderson's avatar
      timer: Add a test for timer_timebase_fallback · 7616e368
      Sean Anderson authored
      
      To test this function, sandbox CPU must set cpu_platdata.timebase_freq on
      bind. It also needs to expose a method to set the current cpu. I also make
      some most members of cpu_sandbox_ops static.
      
      On the timer side, the device tree property
      sandbox,timebase-frequency-fallback controls whether sandbox_timer_probe
      falls back to time_timebase_fallback or to SANDBOX_TIMER_RATE.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      7616e368
  13. Sep 25, 2020
  14. Sep 22, 2020
Loading