14 Aug, 2017

1 commit

  • A few years ago STM32F1 SoCs support has been added :
    0144caf22ce6acd5c gpio: stm32: add stm32f1 support
    2d18ef2364fd3561a ARMv7M: add STM32F1 support

    But neither STM32F1 dedicated defconfig nor board was
    associated to these commits.

    Got confirmation from Tom Rini and Matt Porter to remove
    all this code [1]

    [1] http://u-boot.10912.n7.nabble.com/Remove-STM32F1-support-td301603.html

    Signed-off-by: Patrice Chotard
    Reviewed-by: Tom Rini

    Patrice Chotard
     

12 Aug, 2017

4 commits


01 Aug, 2017

1 commit


29 Jul, 2017

1 commit


12 Jul, 2017

1 commit

  • Change is consistent with other SOCs and it is in preparation
    for adding SOMs. SOC's related files are moved from cpu/ to
    mach-imx/.

    This change is also coherent with the structure in kernel.

    Signed-off-by: Stefano Babic

    CC: Fabio Estevam
    CC: Akshay Bhat
    CC: Ken Lin
    CC: Marek Vasut
    CC: Heiko Schocher
    CC: "Sébastien Szymanski"
    CC: Christian Gmeiner
    CC: Stefan Roese
    CC: Patrick Bruenn
    CC: Troy Kisky
    CC: Nikita Kiryanov
    CC: Otavio Salvador
    CC: "Eric Bénard"
    CC: Jagan Teki
    CC: Ye Li
    CC: Peng Fan
    CC: Adrian Alonso
    CC: Alison Wang
    CC: Tim Harvey
    CC: Martin Donnelly
    CC: Marcin Niestroj
    CC: Lukasz Majewski
    CC: Adam Ford
    CC: "Albert ARIBAUD (3ADEV)"
    CC: Boris Brezillon
    CC: Soeren Moch
    CC: Richard Hu
    CC: Wig Cheng
    CC: Vanessa Maegima
    CC: Max Krummenacher
    CC: Stefan Agner
    CC: Markus Niebel
    CC: Breno Lima
    CC: Francesco Montefoschi
    CC: Jaehoon Chung
    CC: Scott Wood
    CC: Joe Hershberger
    CC: Anatolij Gustschin
    CC: Simon Glass
    CC: "Andrew F. Davis"
    CC: "Łukasz Majewski"
    CC: Patrice Chotard
    CC: Nobuhiro Iwamatsu
    CC: Hans de Goede
    CC: Masahiro Yamada
    CC: Stephen Warren
    CC: Andre Przywara
    CC: "Álvaro Fernández Rojas"
    CC: York Sun
    CC: Xiaoliang Yang
    CC: Chen-Yu Tsai
    CC: George McCollister
    CC: Sven Ebenfeld
    CC: Filip Brozovic
    CC: Petr Kulhavy
    CC: Eric Nelson
    CC: Bai Ping
    CC: Anson Huang
    CC: Sanchayan Maity
    CC: Lokesh Vutla
    CC: Patrick Delaunay
    CC: Gary Bisson
    CC: Alexander Graf
    CC: u-boot@lists.denx.de
    Reviewed-by: Fabio Estevam
    Reviewed-by: Christian Gmeiner

    Stefano Babic
     

07 Jul, 2017

1 commit


12 Jun, 2017

1 commit


05 Jun, 2017

1 commit


01 Jun, 2017

9 commits

  • This PMIC driver (power and GPIO) is used by the sandbox SPMI tests.
    Update the drivers to support a live device tree so that the tests pass.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add support for requesting GPIOs with a live device tree.

    This involves adjusting the function signature for the legacy function
    gpio_request_by_name_nodev(), so fix up all callers.

    Signed-off-by: Simon Glass
    Fixes to stm32f746-disco.c:
    Signed-off-by: Tom Rini

    Simon Glass
     
  • Use the new dev_read...() functions to access the device tree, so that a
    live tree can be used.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Move the main part of the GPIO request function into a separate function
    so that it can be used by the live tree function when added. Update the
    xlate method to use a node reference.

    Update all GPIO drivers to handle the modified xlate() method.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • It is good practice to include common.h as the first header. This ensures
    that required features like the DECLARE_GLOBAL_DATA_PTR macro,
    configuration options and common types are available.

    Fix up some files which currently don't do this. This is necessary because
    driver model will soon start using global data and configuration in the
    dm/read.h header file, included via dm.h. The gd->fdt_blob value will be
    used to access the device tree and CONFIG options will be used to
    determine whether to support inline functions in the header file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This function should not be used outside the core driver-model code.
    Update it to use dm_scan_fdt_dev() instead.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These support the flat device tree. We want to use the dev_read_..()
    prefix for functions that support both flat tree and live tree. So rename
    the existing functions to avoid confusion.

    In the end we will have:

    1. dev_read_addr...() - works on devices, supports flat/live tree
    2. devfdt_get_addr...() - current functions, flat tree only
    3. of_get_address() etc. - new functions, live tree only

    All drivers will be written to use 1. That function will in turn call
    either 2 or 3 depending on whether the flat or live tree is in use.

    Note this involves changing some dead code - the imx_lpi2c.c file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This header includes things that are needed to make driver build. Adjust
    existing users to include that always, even if other dm/ includes are
    present

    Signed-off-by: Simon Glass

    Simon Glass
     

22 May, 2017

1 commit


18 May, 2017

1 commit


17 May, 2017

1 commit

  • Add a device-tree property use-lvl-write-cache that will cause
    writes to lvl to be cached instead of read from lvl before each
    write. This is required on some platforms that have the register
    implemented as dual read/write (such as Baytrail).

    Prior to this fix the blue USB port on the Minnowboard Max was
    unusable since USB_HOST_EN0 was set high then immediately set
    low when USB_HOST_EN1 was written.

    This also resolves the 'gpio clear | set' command warning like:
    "Warning: value of pin is still 0"

    Signed-off-by: George McCollister

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese
    Reviewed-by: Simon Glass

    Bin Meng
     

15 May, 2017

1 commit

  • This driver is used often enough such that we want to have this enabled
    by default on any ARCH_OMAP2PLUS board, and this only compiles on
    ARCH_OMAP2PLUS due to required defines, so mark that as the depends.

    Signed-off-by: Tom Rini

    Tom Rini
     

12 May, 2017

1 commit

  • We declare that gpio_base (which is the base for counting gpios, not an
    address) is unsigned. Therefore the comparison with >= 0 is always
    true. As the desire is to allow for this base number to be 0, we can
    just drop this check. Reported by clang-3.8.

    Cc: Simon Glass
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass

    Tom Rini
     

10 May, 2017

1 commit


08 May, 2017

1 commit


20 Apr, 2017

1 commit


14 Apr, 2017

4 commits


17 Mar, 2017

1 commit

  • Add the imx_rgpio2p driver for Rapid GPIO2P controllers on i.MX7ULP.
    Have added all ports on RGPIO2P_0 and RGPIO2P_1.

    The configurations CONFIG_IMX_RGPIO2P and CONFIG_DM_GPIO must be set
    to y to enable the drivers.

    To use the GPIO function, the IBE and OBE needs to set in IOMUXC.
    We did not set the bits in driver, but leave them to IOMUXC settings
    of the GPIO pins. User should use IMX_GPIO_NR to generate the GPIO number
    for gpio APIs access.

    Signed-off-by: Peng Fan
    Signed-off-by: Ye Li
    Reviewed-by : Stefano Babic

    Peng Fan
     

09 Feb, 2017

2 commits


08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

28 Dec, 2016

1 commit


20 Dec, 2016

1 commit


29 Nov, 2016

1 commit


22 Nov, 2016

1 commit

  • The IP supports two ports, A and B, each providing up to 32 gpios.
    The driver already creates a 2nd gpio bank by reading the 2nd node
    from DT, so this is quite a simple change to support the 2nd bank.

    Signed-off-by: Phil Edworthy
    Acked-by: Marek Vasut
    Reviewed-by: Simon Glass

    Phil Edworthy