Skip to content
  1. Jan 06, 2014
  2. Jan 03, 2014
  3. Jan 02, 2014
  4. Dec 04, 2013
    • Eduardo Valentin's avatar
      MAINTAINERS: add thermal bindings entry in thermal domain · 1beabfbe
      Eduardo Valentin authored
      
      
      After discussion and agreement of thermal device tree bindings,
      it is desirable to properly maintain thermal bindings for
      existing and upcoming devices.
      
      As original author of thermal device tree bindings, I am
      volunteering to maintain them. This then adds and entry
      for device tree bindings under thermal domain.
      
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      1beabfbe
    • Eduardo Valentin's avatar
      arm: dts: make OMAP4460 bandgap node to belong to OCP · 135df807
      Eduardo Valentin authored
      
      
      Small fix on representation. Bandgap node belongs to OCP.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Suggested-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      135df807
    • Eduardo Valentin's avatar
      arm: dts: make OMAP443x bandgap node to belong to OCP · 977a3528
      Eduardo Valentin authored
      
      
      Small fix on representation. Bandgap node belongs to OCP.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Suggested-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      977a3528
    • Eduardo Valentin's avatar
      arm: dts: add cooling properties on omap5 cpu node · 2cd29f63
      Eduardo Valentin authored
      
      
      OMAP5 devices can reach high temperatures and thus
      needs to have cpufreq-cooling on systems running on it.
      
      This patch adds the required cooling device properties
      so that cpufreq-cpu0 driver loads the cooling device.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      2cd29f63
    • Eduardo Valentin's avatar
      arm: dts: add omap5 thermal data · 1b761fc5
      Eduardo Valentin authored
      
      
      This patch changes the dtsi entry on omap5 to contain
      the thermal data. This data will enable the passive
      cooling with CPUfreq cooling device at 100C. The
      system will do a thermal shutdown at 125C whenever
      any of its sensors sees this level.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      1b761fc5
    • Eduardo Valentin's avatar
      arm: dts: add omap5 CORE thermal data · dcb5004f
      Eduardo Valentin authored
      
      
      This patch changes a dtsi file to contain the thermal data
      for CORE domain on OMAP5 and later SoCs. This data will
      enable a thermal shutdown at 125C.
      
      This thermal data can be reused across TI SoC devices.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      dcb5004f
    • Eduardo Valentin's avatar
      arm: dts: add omap5 GPU thermal data · 28c90169
      Eduardo Valentin authored
      
      
      This patch changes a dtsi file to contain the thermal data
      for GPU domain on OMAP5 and later SoCs. This data will
      enable a thermal shutdown at 125C.
      
      This thermal data can be reused across TI SoC devices.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      28c90169
    • Eduardo Valentin's avatar
      arm: dts: add cooling properties on omap4460 cpu node · 616a6635
      Eduardo Valentin authored
      
      
      OMAP4460 devices can reach high temperatures and thus
      needs to have cpufreq-cooling on systems running on it.
      
      This patch adds the required cooling device properties
      so that cpufreq-cpu0 driver loads the cooling device.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      616a6635
    • Eduardo Valentin's avatar
      arm: dts: add cooling properties on omap4430 cpu node · 72af5e6d
      Eduardo Valentin authored
      
      
      OMAP4430 devices can reach high temperatures and thus
      needs to have cpufreq-cooling on systems running on it.
      
      This patch adds the required cooling device properties
      so that cpufreq-cpu0 driver loads the cooling device.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      72af5e6d
    • Eduardo Valentin's avatar
      arm: dts: add omap4460 thermal data · 8af51b0f
      Eduardo Valentin authored
      
      
      This patch changes the dtsi entry on omap4460 to contain
      the thermal data. This data will enable the passive
      cooling with CPUfreq cooling device at 100C and the
      system will do a thermal shutdown at 125C.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      8af51b0f
    • Eduardo Valentin's avatar
      arm: dts: add omap4430 thermal data · aa9bb4bb
      Eduardo Valentin authored
      
      
      This patch changes the dtsi entry on omap4430 to contain
      the thermal data. This data will enable the passive
      cooling with CPUfreq cooling device at 100C and the
      system will do a thermal shutdown at 125C.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      aa9bb4bb
    • Eduardo Valentin's avatar
      arm: dts: add omap4 CPU thermal data · 0bbf6c54
      Eduardo Valentin authored
      
      
      This patch changes a dtsi file to contain the thermal data
      for MPU domain on OMAP4 and later SoCs. This data will
      enable the passive cooling with CPUfreq cooling device
      at 100C and the system will do a thermal shutdown at 125C.
      
      This thermal data can be reused across TI SoC devices.
      
      Cc: "Benoît Cousson" <bcousson@baylibre.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-omap@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      0bbf6c54
    • Eduardo Valentin's avatar
      thermal: ti-soc-thermal: use thermal DT infrastructure · 26d9cc65
      Eduardo Valentin authored
      
      
      This patch improves the ti-soc-thermal driver by adding the
      support to build the thermal zones based on DT nodes.
      
      The driver will have two options now to build the thermal
      zones. The first option is the zones originally coded
      in this driver. So, the driver behavior will be same
      if there is no DT node describing the zones. The second
      option, when it is found a DT node with thermal data,
      will used the common infrastructure to build the thermal
      zone and bind its cooling devices.
      
      In case the driver loads thermal data using the legacy
      mode, this driver still adds to the system
      a cpufreq cooling device. Loading the thermal data from
      DT, the driver assumes someone else will add the cpufreq
      cooling device, like the cpufreq driver.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      26d9cc65
    • Eduardo Valentin's avatar
      hwmon: tmp102: expose to thermal fw via DT nodes · 6a027523
      Eduardo Valentin authored
      
      
      This patch adds to tmp102 temperature sensor the possibility
      to expose itself as thermal zone device, registered on the
      thermal framework.
      
      The thermal zone is built only if a device tree node
      describing a thermal zone for this sensor is present
      inside the tmp102 DT node. Otherwise, the driver behavior
      will be the same.
      
      Note: This patch has also been reviewed by Jean D. He has
      requested to perform a wider inspection of possible
      users of thermal and hwmon interaction API. On the other
      hand, the change on this patch is acceptable on first
      step of overall code change.
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: lm-sensors@lm-sensors.org
      Cc: linux-kernel@vger.kernel.org
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      6a027523
    • Eduardo Valentin's avatar
      hwmon: lm75: expose to thermal fw via DT nodes · 22e73183
      Eduardo Valentin authored
      
      
      This patch adds to lm75 temperature sensor the possibility
      to expose itself as thermal zone device, registered on the
      thermal framework.
      
      The thermal zone is built only if a device tree node
      describing a thermal zone for this sensor is present
      inside the lm75 DT node. Otherwise, the driver behavior
      will be the same.
      
      Note: This patch has also been reviewed by Jean D. He has
      requested to perform a wider inspection of possible
      users of thermal and hwmon interaction API. On the other
      hand, the change on this patch is acceptable on first
      step of overall code change.
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: lm-sensors@lm-sensors.org
      Cc: linux-kernel@vger.kernel.org
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      22e73183
    • Eduardo Valentin's avatar
      cpufreq: cpufreq-cpu0: add dt node parsing for cooling device properties · 77cff592
      Eduardo Valentin authored
      
      
      This patch changes the cpufreq-cpu0 driver to consider if
      a cpu needs cooling (with cpufreq). In case the cooling is needed,
      the cpu0 device tree node needs to be properly configured
      with cooling device properties.
      
      In case these properties are present,, the driver will
      load a cpufreq cooling device in the system. The cpufreq-cpu0
      driver is not interested in determining how the system should
      be using the cooling device. The driver is responsible
      only of loading the cooling device.
      
      Describing how the cooling device will be used can be
      accomplished by setting up a thermal zone that references
      and is composed by the cpufreq cooling device.
      
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: cpufreq@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree-discuss@lists.ozlabs.org
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      77cff592
    • Eduardo Valentin's avatar
      thermal: cpu_cooling: introduce of_cpufreq_cooling_register · 39d99cff
      Eduardo Valentin authored
      
      
      This patch introduces an API to register cpufreq cooling device
      based on device tree node.
      
      The registration via device tree node differs from normal
      registration due to the fact that it is needed to fill
      the device_node structure in order to be able to match
      the cooling devices with trip points.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      39d99cff
    • Eduardo Valentin's avatar
      thermal: core: introduce thermal_of_cooling_device_register · a116b5d4
      Eduardo Valentin authored
      
      
      This patch adds a new API to allow registering cooling devices
      in the thermal framework derived from device tree nodes.
      
      This API links the cooling device with the device tree node
      so that binding with thermal zones is possible, given
      that thermal zones are pointing to cooling device
      device tree nodes.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      a116b5d4
    • Eduardo Valentin's avatar
      thermal: introduce device tree parser · 4e5e4705
      Eduardo Valentin authored
      
      
      This patch introduces a device tree bindings for
      describing the hardware thermal behavior and limits.
      Also a parser to read and interpret the data and feed
      it in the thermal framework is presented.
      
      This patch introduces a thermal data parser for device
      tree. The parsed data is used to build thermal zones
      and thermal binding parameters. The output data
      can then be used to deploy thermal policies.
      
      This patch adds also documentation regarding this
      API and how to define tree nodes to use
      this infrastructure.
      
      Note that, in order to be able to have control
      on the sensor registration on the DT thermal zone,
      it was required to allow changing the thermal zone
      .get_temp callback. For this reason, this patch
      also removes the 'const' modifier from the .ops
      field of thermal zone devices.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      4e5e4705
    • Eduardo Valentin's avatar
      thermal: allow registering without .get_temp · 81bd4e1c
      Eduardo Valentin authored
      
      
      This patch changes the thermal core driver to allow
      registration of thermal zones without the .get_temp callback.
      
      The idea behind this change is to allow lazy registration
      of sensor callbacks.
      
      The thermal zone will be disabled whenever the ops
      does not contain a .get_temp callback. The sysfs interface
      will be returning -EINVAL on any temperature read operation.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      81bd4e1c
  5. Dec 03, 2013
    • Linus Torvalds's avatar
      Merge branch 'leds-fixes-for-3.13' of... · dea4f48a
      Linus Torvalds authored
      Merge branch 'leds-fixes-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
      
      Pull LED subsystem bugfix from Bryan Wu.
      
      * 'leds-fixes-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds:
        leds: pwm: Fix for deferred probe in DT booted mode
      dea4f48a
    • Peter Ujfalusi's avatar
      leds: pwm: Fix for deferred probe in DT booted mode · aa1a6d6d
      Peter Ujfalusi authored
      
      
      We need to make sure that the error code from devm_of_pwm_get() is the one
      the module returns in case of failure.
      Restructure the code to make this possible for DT booted case.
      With this patch the driver can ask for deferred probing when the board is
      booted with DT.
      Fixes for example omap4-sdp board's keyboard backlight led.
      
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
      aa1a6d6d