1. 02 11月, 2015 1 次提交
    • P
      sandbox: add ADC unit tests · c48cb7eb
      Przemyslaw Marczak 提交于
      This commit adds unit tests for ADC uclass's methods using sandbox ADC.
      
      Testing proper ADC binding:
      - dm_test_adc_bind()                    - device binding
      - dm_test_adc_wrong_channel_selection() - checking wrong channel selection
      
      Testing ADC supply operations:
      - dm_test_adc_supply():
        - Vdd/Vss values validating
        - Vdd regulator updated value validating
        - Vdd regulator's auto enable state validating
      
      Testing ADC operations results:
      - dm_test_adc_single_channel_conversion() - single channel start/data
      - dm_test_adc_single_channel_shot()       - single channel shot
      - dm_test_adc_multi_channel_conversion()  - multi channel start/data
      - dm_test_adc_multi_channel_shot()        - multi channel single shot
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: NMinkyu Kang <mk7.kang@samsung.com>
      c48cb7eb
  2. 23 10月, 2015 1 次提交
  3. 22 7月, 2015 7 次提交
  4. 21 5月, 2015 2 次提交
  5. 15 5月, 2015 1 次提交
    • P
      test: dm: add sandbox PMIC framework tests · e8f339e0
      Przemyslaw Marczak 提交于
      This change adds new file to sandbox driver model test environment.
      The file is: test/dm/power.c, and it includes tests for PMIC framework,
      which includes PMIC uclass and REGULATOR uclass.
      
      All tests are based od Sandbox PMIC emulated device. Some test constants for
      this device are defined in the header: include/power/sandbox_pmic.h
      
      PMIC tests includes:
      - pmic get - tests, that pmic_get() returns the requested device
      - pmic I/O - tests I/O by writing and reading some values to PMIC's registers
                   and then compares, that the write/read values are equal.
      
      The regulator tests includes:
      - Regulator get by devname/platname
      - Voltage set/get
      - Current set/get
      - Enable set/get
      - Mode set/get
      - Autoset
      - List autoset
      
      For the regulator 'get' test, the returned device pointers are compared,
      and their names are also compared to the requested one.
      Every other test, first sets the given attribute and next try to get it.
      The test pass, when the set/get values are equal.
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Tested on sandbox:
      Tested-by: NSimon Glass <sjg@chromium.org>
      e8f339e0
  6. 06 5月, 2015 1 次提交
  7. 19 4月, 2015 4 次提交
  8. 12 12月, 2014 1 次提交
  9. 23 10月, 2014 2 次提交
  10. 23 7月, 2014 1 次提交
    • S
      dm: Provide a function to scan child FDT nodes · 1ca7e206
      Simon Glass 提交于
      At present only root nodes in the device tree are scanned for devices.
      But some devices can have children. For example a SPI bus may have
      several children for each of its chip selects.
      
      Add a function which scans subnodes and binds devices for each one. This
      can be used for the root node scan also, so change it.
      
      A device can call this function in its bind() or probe() methods to bind
      its children.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      1ca7e206
  11. 21 6月, 2014 1 次提交
  12. 05 3月, 2014 2 次提交