1. 29 May, 2015 9 commits
  2. 28 May, 2015 1 commit
  3. 27 May, 2015 3 commits
    • Matthias Brugger's avatar
      soc: mediatek: Add compile dependency to pmic-wrapper · 2a910d13
      Matthias Brugger authored
      The pmic-wrapper calls the reset controller. If CONFIG_RESET_CONTROLLER
      is not set, compilation fails with:
      drivers/soc/mediatek/mtk-pmic-wrap.c: In function ‘pwrap_probe’:
      drivers/soc/mediatek/mtk-pmic-wrap.c:836:2: error: implicit declaration of function ‘devm_reset_control_get’ [-Werror=implicit-function-declaration]
      
      This patch sets the dependency in the Kconfig file.
      Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
      2a910d13
    • Sascha Hauer's avatar
      soc: mediatek: PMIC wrap: Fix register state machine handling · d956b80a
      Sascha Hauer authored
      When the PMIC wrapper state machine has read a register it goes into the
      "wait for valid clear" (vldclr) state. The state machine stays in this
      state until the VLDCLR bit is written to. We should write this bit after
      reading a register because the SCPSYS won't let the system go into
      suspend as long as the state machine waits for valid clear.
      
      Since now we never leave the state machine in vldclr state we no longer
      have to check for this state on pwrap_read/pwrap_write entry and can
      remove the corresponding code.
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
      d956b80a
    • Sascha Hauer's avatar
      soc: mediatek: PMIC wrap: Fix clock rate handling · d71c11f3
      Sascha Hauer authored
      replace chipselect extension values based on SPI clock with hardcoded SoC
      specific values.
      
      The PMIC wrapper has the ability of extending the chipselects by configurable
      amounts of time. We configured the values based on the rate of SPI clock, but
      this is wrong. The delays should be configured based on the internal PMIC clock
      that latches the values from the SPI bus to the internal PMIC registers. By
      default this clock is 24MHz. Other clock frequencies are for debugging only
      and can be removed from the driver.
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
      d71c11f3
  4. 20 May, 2015 1 commit
    • Arnd Bergmann's avatar
      Merge tag 'berlin-simple-mfd-4.2-1' of... · 0fcbffc4
      Arnd Bergmann authored
      Merge tag 'berlin-simple-mfd-4.2-1' of git://git.infradead.org/users/hesselba/linux-berlin into next/drivers
      
      Merge "Berlin simple-mfd for v4.2" from Sebastian Hesselbarth:
      - based on arm-soc drivers/simple-mfd branch
      - rework of chip/system ctrl nodes to simple-mfd probing for
        clk, pinctrl, and reset
      - add adc node
      
      * tag 'berlin-simple-mfd-4.2-1' of git://git.infradead.org/users/hesselba/linux-berlin:
        ARM: berlin: add an ADC node for the BG2Q
        ARM: berlin: remove useless chip and system ctrl compatibles
        clk: berlin: drop direct of_iomap of nodes reg property
        ARM: berlin: move BG2Q clock node
        ARM: berlin: move BG2CD clock node
        ARM: berlin: move BG2 clock node
        clk: berlin: prepare simple-mfd conversion
        pinctrl: berlin: drop SoC stub provided regmap
        ARM: berlin: move pinctrl to simple-mfd nodes
        pinctrl: berlin: prepare to use regmap provided by syscon
        reset: berlin: drop arch_initcall initialization
        ARM: berlin: move reset to simple-mfd nodes
        reset: berlin: convert to a platform driver
        ARM: berlin: prepare simple-mfd/syscon conversion of sys/chip ctrl nodes
        ARM: berlin: select MFD_SYSCON by default
      0fcbffc4
  5. 18 May, 2015 15 commits
  6. 13 May, 2015 4 commits
  7. 12 May, 2015 2 commits
  8. 11 May, 2015 5 commits
    • Linus Walleij's avatar
      arm64: add LEDs and some trigger support to defconfig · 48f1a9a4
      Linus Walleij authored
      Since many boards for ARM, experimental or server alike, will
      feature LEDs, let's include LED class and trigger support for
      heartbeat and CPU in the defconfig. Many systems (such as the
      ARM Juno) will use a system controller "syscon" to access the
      LED registers, so include support for this as well.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Liviu Dudau <Liviu.Dudau@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      48f1a9a4
    • Linus Walleij's avatar
      arm64: juno: Add APB registers and LEDs using syscon · bfb47629
      Linus Walleij authored
      This defines the Juno "APB system registers" as a syscon device,
      and all the LEDs controlled by the APB system registers right
      below it using the syscon LEDs driver on top of syscon. Define
      LED0 for heartbeat, LED1 for MMC0 activity and the following
      four LEDs indicating CPU activity using the Linux-specific
      DT bindings for triggers.
      
      This is the pattern and same drivers as used on the legacy
      platform device trees for the ARM Integrators and the RealView
      PB1176.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Tested-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      bfb47629
    • Linus Walleij's avatar
      leds: syscon: instantiate from platform device · a917d4b4
      Linus Walleij authored
      Currently syscon LEDs will traverse the device tree looking for syscon devices
      and if found, traverse any subnodes of these to identify matching children
      and from there instantiate LED class devices.
      
      This is not a good use of the Linux device model. Instead we have converted the
      device trees to add the "simple-mfd" property to the MFD nexi spawning syscon
      LEDs so that these will appear as platform devices in the system and we can
      use the proper device probing mechanism.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Lee Jones <lee.jones@linaro.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      a917d4b4
    • Linus Walleij's avatar
      ARM: dts: update syscons to use simple-mfd · 480aa74c
      Linus Walleij authored
      The Integrators and the RealView use simple MFD devices with register bit
      LEDs as subnodes, update these to use the "simple-mfd" compatible property
      so that subdevices get spawned from the MFD nexi.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Lee Jones <lee.jones@linaro.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      480aa74c
    • Linus Walleij's avatar
      MFD/OF: document MFD devices and handle simple-mfd · 22869a9e
      Linus Walleij authored
      This defines a new compatible option for MFD devices "simple-mfd" that will
      make the OF core spawn child devices for all subnodes of that MFD device.
      It is optional but handy for things like syscon and possibly other
      simpler MFD devices.
      
      Since there was no file to put the documentation in, I took this opportunity
      to make a small writeup on MFD devices and add the compatible definition
      there.
      Suggested-by: default avatarLee Jones <lee.jones@linaro.org>
      Acked-by: default avatarLee Jones <lee.jones@linaro.org>
      Acked-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
      Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Devicetree <devicetree@vger.kernel.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      22869a9e