[PATCH 2/8] ARM: dts: am335x-sl50: use phy-phandle declarations

2018-06-06 Thread Enric Balletbo i Serra
phy-phandle is now a preferred method to reference a PHY device. The new method also allows you to specify a reset gpio which is required for this board. Signed-off-by: Enric Balletbo i Serra --- arch/arm/boot/dts/am335x-sl50.dts | 16 +--- 1 file changed, 9 insertions(+), 7

[PATCH v3 08/12] extcon: usbc-cros-ec: Switch to SPDX identifier.

2018-06-06 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v3: None Changes in v2: None drivers/extcon/extcon-usbc-cros-ec.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git

[PATCH v3 07/12] extcon: usbc-cros-ec: Make license text and module license match.

2018-06-06 Thread Enric Balletbo i Serra
The license text is specifying "GPLv2" but the MODULE_LICENSE is set to GPL which means GNU Public License v2 or later. When MODULE_LICENSE and boiler plate does not match, go for boiler plate license. Signed-off-by: Enric Balletbo i Serra --- Changes in v3: None Changes in v2: None

[PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-06 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v3: None Changes in v2: None drivers/input/keyboard/cros_ec_keyb.c | 34 ++- 1 file changed, 12 insertions(+), 22 deletions(-) diff

[PATCH 1/2] ARM: dts: igep: Relicense the IGEP boards under GPLv2/X11

2018-06-06 Thread Enric Balletbo i Serra
and remove the boiler plate license text. Signed-off-by: Enric Balletbo i Serra --- arch/arm/boot/dts/am335x-igep0033.dtsi | 7 ++- arch/arm/boot/dts/omap3-igep.dtsi| 6 ++ arch/arm/boot/dts/omap3-igep0020-common.dtsi | 5 + arch/arm/boot/dts/omap3-igep0020-rev-f.dts

[PATCH 3/8] ARM: dts: am335x-sl50: add a node for the LCD controller

2018-06-06 Thread Enric Balletbo i Serra
, not the MIDAS displays. Signed-off-by: Enric Balletbo i Serra --- arch/arm/boot/dts/am335x-sl50.dts | 69 ++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am335x-sl50.dts b/arch/arm/boot/dts/am335x-sl50.dts index 58fe84f2ec8b

[PATCH 4/8] ARM: dts: am335x-sl50: set dr_mode to otg

2018-06-06 Thread Enric Balletbo i Serra
The board can be either a host, or a peripheral, so set the controller as OTG mode to reflect this. Signed-off-by: Enric Balletbo i Serra --- arch/arm/boot/dts/am335x-sl50.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am335x-sl50.dts b/arch/arm/boot

[PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier.

2018-06-06 Thread Enric Balletbo i Serra
: - Removed '[PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier' from series as it was applied. - s/Chrome OS/ChromeOS/ - [1/9] Fixed wrong copyright year. - [6/9] Do not remove last paragraph. - [8/9] Fixed wrong copyright year. Enric Balletbo i Serra (12): platform/chrome: Make license text

Re: [PATCH] arm64: dts: rockchip: Switch to SPDX identifier.

2018-06-06 Thread Enric Balletbo i Serra
On 06/06/18 17:31, klaus.go...@theobroma-systems.com wrote: > Hi Enric, > >> On 06.06.2018, at 17:21, Enric Balletbo i Serra >> wrote: >> >> Adopt the SPDX license identifier headers to ease license compliance >> management. > > [snip] > >

[PATCH 2/3] arm/arm64: configs: Remove the MFD_ prefix for MFD_CROS_EC_I2C/SPI symbols.

2018-07-02 Thread Enric Balletbo i Serra
The cros-ec I2C and SPI transport drivers have been moved from MFD subsystem to platform/chrome, at the same time, the config symbol has been renamed and lost the MFD_ prefix, so update all configs to the new config symbol name. Signed-off-by: Enric Balletbo i Serra --- arch/arm/configs

[PATCH 0/3] platform/chrome: mfd: Move cros-ec transport drivers to drivers/platform

2018-07-02 Thread Enric Balletbo i Serra
symbols, modifies the defconfigs that used these symbols and fixes the KEYBOARD_CROS_EC Kconfig help. Best regards, Enric Enric Balletbo i Serra (3): platform/chrome: Move cros-ec transport drivers to drivers/platform. arm/arm64: configs: Remove the MFD_ prefix for MFD_CROS_EC_I2C/SPI

[PATCH 3/3] Input: keyboard: Fix ChromeOS EC keyboard help message.

2018-07-02 Thread Enric Balletbo i Serra
The cros-ec I2C and SPI transport drivers have been moved from MFD subsystem to platform/chrome, at the same time, the config symbol has been renamed and lost the MFD_ prefix So, update the help message accordingly. Signed-off-by: Enric Balletbo i Serra --- drivers/input/keyboard/Kconfig | 2

[PATCH 1/3] platform/chrome: Move cros-ec transport drivers to drivers/platform.

2018-07-02 Thread Enric Balletbo i Serra
symbols. Signed-off-by: Enric Balletbo i Serra --- drivers/mfd/Kconfig | 20 --- drivers/mfd/Makefile | 2 -- drivers/platform/chrome/Kconfig | 20 +++ drivers/platform/chrome/Makefile

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-25 Thread Enric Balletbo i Serra
Hi Grek, On 25/06/18 03:57, Greg KH wrote: > On Tue, Jun 05, 2018 at 08:14:24PM +0200, Enric Balletbo i Serra wrote: >> Hi Fabio, >> >> On 05/06/18 20:04, Fabio Estevam wrote: >>> Hi Enric, >>> >>> On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo

Re: [PATCH v2 2/2] cros_ec: Move cros_ec_dev module to drivers/mfd

2018-06-21 Thread Enric Balletbo i Serra
Hi Dmitry, I think I can answer some of your questions (not all). cc'ing the new Thierry's address and Gwendal. On 21/06/18 01:05, Dmitry Torokhov wrote: > On Mon, Nov 20, 2017 at 8:18 AM Thierry Escande > wrote: >> >> The cros_ec_dev module is responsible for registering the MFD devices >>

[PATCH v3 2/3] power: supply: add cros-ec USBPD charger driver.

2018-05-02 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> This driver gets various bits of information about what is connected to USB PD ports from the EC and converts that into power_supply properties. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra

[PATCH v3 0/3] mfd/power: cros_ec: add support for USBPD charger driver.

2018-05-02 Thread Enric Balletbo i Serra
log functionality (will be send on a follow up patch) - [2/3] Removed the extra custom sysfs attributes (will be send on a follow up patch) - [3/3] Use ARRAY_SIZE instead of hardcoded 1. Enric Balletbo i Serra (1): mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice. Sameer Nanda

[PATCH v3 1/3] mfd: cros_ec: Add USBPD charger commands and struct definitions.

2018-05-02 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> The USBPD charger driver gets information from the ChromeOS EC, this patch adds the USBPD charger definitions needed by this driver. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle..

[PATCH v3 3/3] mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice.

2018-05-02 Thread Enric Balletbo i Serra
Check whether this EC instance has USBPD host command support and instatiate the cros_usbpd-charger driver as a subdevice in such case. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v3: None Changes in v2: - [3/3] Use ARRAY_SIZE instead of hardc

Re: [PATCH v2 1/3] mfd: cros_ec: Add USBPD charger commands and struct definitions.

2018-05-02 Thread Enric Balletbo i Serra
Hi Lee, Thanks for the reviews. On 01/05/18 10:29, Lee Jones wrote: > On Mon, 30 Apr 2018, Enric Balletbo i Serra wrote: > >> From: Sameer Nanda <sna...@chromium.org> >> >> The USBPD charger driver gets information from the ChromeOS EC, this >> patch adds

Re: [PATCH v2 3/3] mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice.

2018-05-02 Thread Enric Balletbo i Serra
Hi Lee, On 01/05/18 10:32, Lee Jones wrote: > On Mon, 30 Apr 2018, Enric Balletbo i Serra wrote: > >> Check whether this EC instance has USBPD host command support and >> instatiate the cros_usbpd-charger driver as a subdevice in such case. >> >> Signed-

[PATCH v4 2/3] power: supply: add cros-ec USBPD charger driver.

2018-05-02 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> This driver gets various bits of information about what is connected to USB PD ports from the EC and converts that into power_supply properties. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra

[PATCH v4 0/3] mfd/power: cros_ec: add support for USBPD charger driver.

2018-05-02 Thread Enric Balletbo i Serra
d SPDX header, use devm_ variant and drop .owner - [2/3] Removed the PD log functionality (will be send on a follow up patch) - [2/3] Removed the extra custom sysfs attributes (will be send on a follow up patch) - [3/3] Use ARRAY_SIZE instead of hardcoded 1. Enric Balletbo i Serra (1): mfd: cros_

[PATCH v4 3/3] mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice.

2018-05-02 Thread Enric Balletbo i Serra
Check whether this EC instance has USBPD host command support and instatiate the cros_usbpd-charger driver as a subdevice in such case. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v4: None Changes in v3: None Changes in v2: - [3/3] Use ARRAY_SIZE i

Re: [PATCH v3 2/3] power: supply: add cros-ec USBPD charger driver.

2018-05-02 Thread Enric Balletbo i Serra
Hi Sebastian, On 02/05/18 12:57, Sebastian Reichel wrote: > Hi, > > I found one more issue, otherwise the driver looks fine to me. > > On Wed, May 02, 2018 at 11:53:42AM +0200, Enric Balletbo i Serra wrote: >> This driver gets various bits of information about what is c

[PATCH v4 1/3] mfd: cros_ec: Add USBPD charger commands and struct definitions.

2018-05-02 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> The USBPD charger driver gets information from the ChromeOS EC, this patch adds the USBPD charger definitions needed by this driver. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle..

Re: [PATCH v2 4/5] dt-bindings: devfreq: rk3399_dmc: remove interrupts as is not required.

2018-05-02 Thread Enric Balletbo i Serra
Hi Rob, Thanks for the review. On 27/04/18 22:00, Rob Herring wrote: > On Tue, Apr 24, 2018 at 10:37:41AM +0200, Enric Balletbo i Serra wrote: >> In ATF we already wait for DDR dvfs finish, so don't need to do this in >> kernel, so remove the interrupts properties as is not

[PATCH v2 2/3] power: supply: add cros-ec USBPD charger driver.

2018-04-30 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> This driver gets various bits of information about what is connected to USB PD ports from the EC and converts that into power_supply properties. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra

[PATCH v2 0/3] mfd/power: cros_ec: add support for USBPD charger driver.

2018-04-30 Thread Enric Balletbo i Serra
: - [2/3] Add SPDX header, use devm_ variant and drop .owner - [2/3] Removed the PD log functionality (will be send on a follow up patch) - [2/3] Removed the extra custom sysfs attributes (will be send on a follow up patch) - [3/3] Use ARRAY_SIZE instead of hardcoded 1. Enric Balletbo i Serra (1

[PATCH v2 1/3] mfd: cros_ec: Add USBPD charger commands and struct definitions.

2018-04-30 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> The USBPD charger driver gets information from the ChromeOS EC, this patch adds the USBPD charger definitions needed by this driver. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle..

[PATCH v2 3/3] mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice.

2018-04-30 Thread Enric Balletbo i Serra
Check whether this EC instance has USBPD host command support and instatiate the cros_usbpd-charger driver as a subdevice in such case. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v2: - [3/3] Use ARRAY_SIZE instead of hardcoded 1. drive

Re: [PATCH v3] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-07-03 Thread Enric Balletbo i Serra
Hi MyungJoo On 03/07/18 12:57, MyungJoo Ham wrote: >> @@ -988,12 +1030,13 @@ static ssize_t governor_store(struct device *dev, >> struct device_attribute *attr, >> if (ret != 1) >> return -EINVAL; >> >> -mutex_lock(_list_lock); >> -governor =

[PATCH v4] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-07-03 Thread Enric Balletbo i Serra
/ devfreq: map devfreq drivers to governor using name) Signed-off-by: Enric Balletbo i Serra --- Changes in v4: - Kept "locked" devfreq_list from the return of find_devfreq_governor() to the unlock of governor_store(). Requested by MyungJoo Ham. Changes in v3: - Remove unne

[PATCH 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-01-10 Thread Enric Balletbo i Serra
<0 4 8 12 16 20 ... 4096 4156 4216 4276 ... 65535> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since RFCv2: - Replace use-linear-interpolation for num-interpolated-steps so it's more flexible to specify any kind of curve to the user. - Rework

[PATCH 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional.

2018-01-10 Thread Enric Balletbo i Serra
The patch 'backlight: pwm_bl: compute brightness of LED linearly to human eye' introduced a default brightness-levels table that is used when brightness-levels is not availablel in the dts so move move brightness-levels and default-brightness-level to be optional. Signed-off-by: Enric Balletbo i

[PATCH 2/4] dt-bindings: pwm-backlight: add a num-interpolation-steps property.

2018-01-10 Thread Enric Balletbo i Serra
The num-interpolated-steps property specifies the number of interpolated steps between each value of brightness-level table. This is useful for high resolution PWMs to not have to list out every possible value in the brightness-level array. Signed-off-by: Enric Balletbo i Serra <enric.ba

[PATCH 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2018-01-10 Thread Enric Balletbo i Serra
based on the PWM resolution. The calculation of the table using the CIE 1931 algorithm is enabled by default when you do not define the 'brightness-levels' propriety in your device tree. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since RFCv2: - Pre-c

[PATCH 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye

2018-01-10 Thread Enric Balletbo i Serra
[2] https://lkml.org/lkml/2017/11/16/301 Best regards, Enric Balletbo i Serra (4): backlight: pwm_bl: linear interpolation between brightness-levels dt-bindings: pwm-backlight: add a num-interpolation-steps property. backlight: pwm_bl: compute brightness of LED linearly to human eye. dt

[PATCH 0/3] mfd: cros_ec: add support for USBPD charger driver.

2018-01-17 Thread Enric Balletbo i Serra
Dear all, These patches introduces the ChromeOS EC USBPD charger driver, the driver has been used on Chromebooks kernels and ported to mainline. The patches were tested succesfully with a Samsung Chromebook Plus device but depends on the for-next Benson Leung branch [1] to apply cleanly. This

[PATCH 2/3] power: supply: add cros-ec USB PD charger driver.

2018-01-17 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> This driver gets various bits of information about what is connected to USB PD ports from the EC and converts that into power_supply properties. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra

[PATCH 3/3] mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice.

2018-01-17 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> Check whether this EC instance has USBPD host command support and instatiate the cros_usbpd-charger driver as a subdevice in such case. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle..

[PATCH 1/3] mfd: cros_ec: Add USBPD charger commands and struct definitions.

2018-01-17 Thread Enric Balletbo i Serra
From: Sameer Nanda <sna...@chromium.org> The USB PD charger driver gets information from the ChromeOS EC, this patch adds the USBPD charger definitions needed by this driver. Signed-off-by: Sameer Nanda <sna...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle..

[PATCH v5] drm/rockchip: Add device links for master and components

2018-02-07 Thread Enric Balletbo i Serra
; Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Hi, This is an attempt to revive a patch [1] that was sent last October. Sean Paul requested some changes but I think that never was send a v5 version. The patch fixes and issue where backlight panel is not correctly reco

Re: [PATCH v2 1/3] Input: gpio-keys - add support for wakeup event action

2018-02-13 Thread Enric Balletbo i Serra
Hi Jeffy, On 12/02/18 23:13, Brian Norris wrote: > Hi Jeffy, > > On Sat, Feb 10, 2018 at 07:09:05PM +0800, Jeffy Chen wrote: >> Add support for specifying event actions to trigger wakeup when using >> the gpio-keys input device as a wakeup source. >> >> This would allow the device to configure

Re: [PATCH 2/3] arm64: dts: rockchip: add cdn-dp node for rk3399.

2018-02-13 Thread Enric Balletbo i Serra
Hi Heiko, On 10/02/18 17:16, Heiko Stuebner wrote: > Hi Enric, > > Am Mittwoch, 7. Februar 2018, 17:31:49 CET schrieb Enric Balletbo i Serra: >> From: Chris Zhong <z...@rock-chips.com> >> >> Add a node for the cdn DP controller which is embedded in the rk3399 &

[PATCH v2 3/3] arm64: dts: rockchip: enable DP for gru.

2018-02-13 Thread Enric Balletbo i Serra
From: Chris Zhong <z...@rock-chips.com> Enable cdn_dp and create a cdn-dp-sound for the DP audio. Delete the endpoints between dp and vopL for gru, since we want the DP only use VOP big, which can support 4K mode. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enri

[PATCH v2 1/3] Documentation: bindings: add dt documentation for cdn DP controller

2018-02-13 Thread Enric Balletbo i Serra
From: Chris Zhong <z...@rock-chips.com> This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com&

[PATCH v2 2/3] arm64: dts: rockchip: add cdn-dp node for rk3399.

2018-02-13 Thread Enric Balletbo i Serra
From: Chris Zhong <z...@rock-chips.com> Add a node for the cdn DP controller which is embedded in the rk3399 SoC. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - None arch/arm64

[PATCH v2 6/6] drm/rockchip: cdn-dp: remove the DP phy switch

2018-02-14 Thread Enric Balletbo i Serra
Hence move this switch to PHY driver, the PHY driver can distinguish between PHY 0 and PHY 1, and then write the correct register bit. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: -

[PATCH v2 5/6] phy: rockchip-typec: support DP phy switch

2018-02-14 Thread Enric Balletbo i Serra
clear this bit means enable PHY 0. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - This patch is new on these series but as a consequence of the work done need to be reworked. The patch was sen

[PATCH v2 3/6] phy: rockchip-typec: enable usb3 host during usb3 phy power on

2018-02-14 Thread Enric Balletbo i Serra
should clear the usb3tousb2 bit before pipe ready. So let's enable the usb3 host after pipe ready to avoid the Type-C PHY initialization failure. Signed-off-by: William wu <w...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: -

[PATCH v2 2/6] dt-bindings: phy-rockchip-typec: deprecate some register properties.

2018-02-14 Thread Enric Balletbo i Serra
-c force usb3 to usb2 enable control. - rockchip,external-psm : the register of type-c phy external psm clock selection. - rockchip,pipe-status : the register of type-c phy pipe status. Signed-off-by: Enric Balletbo i Serra <enric.ba

[PATCH v2 4/6] phy: rockchip-typec: force to USB2 if DP at 4 lanes mode

2018-02-14 Thread Enric Balletbo i Serra
3 mode, when USB disconnect. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - Use the registers offsets from the driver not the DT. drivers/phy/rockchip/phy-rockchip-typec.c | 21 +++

[PATCH v2 1/6] phy: rockchip-typec: deprecate some DT properties for various register fields.

2018-02-14 Thread Enric Balletbo i Serra
cks the phy base address of the running instance and applies the right offsets. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - This patch is new in this series to accomplish the purpose of get rid of some registers from the DT. Suggested by Rob Her

[PATCH v3 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2018-02-08 Thread Enric Balletbo i Serra
based on the PWM resolution. The calculation of the table using the CIE 1931 algorithm is enabled by default when you do not define the 'brightness-levels' propriety in your device tree. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: - None Changes

[PATCH v3 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye

2018-02-08 Thread Enric Balletbo i Serra
detailed info is available in the commit message of every patch. Both functionalities were tested on a Samsung Chromebook Plus (that has a 16 bits PWM) and a SL50 device (with a 8 bits PWM) Waiting for your feedback. Best regards, Enric Balletbo i Serra (4): backlight: pwm_bl: linear

[PATCH v3 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional.

2018-02-08 Thread Enric Balletbo i Serra
The patch 'backlight: pwm_bl: compute brightness of LED linearly to human eye' introduced a default brightness-levels table that is used when brightness-levels is not available in the dts. So move brightness-levels and default-brightness-level to be optional. Signed-off-by: Enric Balletbo i Serra

[PATCH v3 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-02-08 Thread Enric Balletbo i Serra
<0 4 8 12 16 20 ... 4096 4156 4216 4276 ... 65535> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: Requested by Daniel Thompson: - Use a devres alloc for table creatiion and then just swap pointers. - No need to use calloc because the lo

[PATCH v3 2/4] dt-bindings: pwm-backlight: add a num-interpolation-steps property.

2018-02-08 Thread Enric Balletbo i Serra
The num-interpolated-steps property specifies the number of interpolated steps between each value of brightness-level table. This is useful for high resolution PWMs to not have to list out every possible value in the brightness-level array. Signed-off-by: Enric Balletbo i Serra <enric.ba

[PATCH 2/3] Documentation: bindings: add usb3-host-disable and usb3-host-port for Rockchip USB Type-C PHY

2018-02-08 Thread Enric Balletbo i Serra
From: William wu <w...@rock-chips.com> rockchip,usb3-host-disable is the register of type-c phy disable usb3 host rockchip,usb3-host-port is the register of type-c phy usb3 port number Signed-off-by: William wu <w...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra

[PATCH 1/3] phy: rockchip-typec: enable usb3 host during usb3 phy power on

2018-02-08 Thread Enric Balletbo i Serra
should clear the usb3tousb2 bit before pipe ready. So let's enable the usb3 host after pipe ready to avoid the Type-C PHY initialization failure. Signed-off-by: William wu <w...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- arch/arm64/boot/dts/ro

[PATCH 3/3] phy: rockchip-typec: force to USB2 if DP at 4 lanes mode

2018-02-08 Thread Enric Balletbo i Serra
3 mode, when USB disconnect. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- drivers/phy/rockchip/phy-rockchip-typec.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/dr

[PATCH v2 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-02-07 Thread Enric Balletbo i Serra
<0 4 8 12 16 20 ... 4096 4156 4216 4276 ... 65535> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - None. drivers/video/backlight/pwm_bl.c | 86 1 file changed, 86 insertions(+) diff --git a/driv

[PATCH v2 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye

2018-02-07 Thread Enric Balletbo i Serra
detailed info is available in the commit message of every patch. Both functionalities were tested on a Samsung Chromebook Plus (that has a 16 bits PWM) and a SL50 device (with a 8 bits PWM) Waiting for your feedback. Best regards, Enric Balletbo i Serra (4): backlight: pwm_bl: linear

[PATCH v2 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional.

2018-02-07 Thread Enric Balletbo i Serra
The patch 'backlight: pwm_bl: compute brightness of LED linearly to human eye' introduced a default brightness-levels table that is used when brightness-levels is not available in the dts. So move brightness-levels and default-brightness-level to be optional. Signed-off-by: Enric Balletbo i Serra

[PATCH v2 2/4] dt-bindings: pwm-backlight: add a num-interpolation-steps property.

2018-02-07 Thread Enric Balletbo i Serra
The num-interpolated-steps property specifies the number of interpolated steps between each value of brightness-level table. This is useful for high resolution PWMs to not have to list out every possible value in the brightness-level array. Signed-off-by: Enric Balletbo i Serra <enric.ba

[PATCH v2 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2018-02-07 Thread Enric Balletbo i Serra
based on the PWM resolution. The calculation of the table using the CIE 1931 algorithm is enabled by default when you do not define the 'brightness-levels' propriety in your device tree. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - Fix an ho

[PATCH 1/3] arm64: dts: rockchip: introduce pclk_vio_grf in eDP device node

2018-02-07 Thread Enric Balletbo i Serra
isplay after a suspend/resume with following errors: rockchip-dp ff97.edp: Input stream clock not detected. rockchip-dp ff97.edp: Timeout of video streamclk ok rockchip-dp ff97.edp: unable to config video Signed-off-by: Yakir Yang <y...@rock-chips.com> Signed-off-by: Enri

[PATCH 3/3] arm64: dts: rockchip: enable DP for gru.

2018-02-07 Thread Enric Balletbo i Serra
From: Chris Zhong <z...@rock-chips.com> Enable cdn_dp and create a cdn-dp-sound for the DP audio. Delete the endpoints between dp and vopL for gru, since we want the DP only use VOP big, which can support 4K mode. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enri

[PATCH 2/3] arm64: dts: rockchip: add cdn-dp node for rk3399.

2018-02-07 Thread Enric Balletbo i Serra
From: Chris Zhong <z...@rock-chips.com> Add a node for the cdn DP controller which is embedded in the rk3399 SoC. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- arch/arm64/boot/dts/rockchi

[PATCH v3 4/6] phy: rockchip-typec: force to USB2 if DP at 4 lanes mode

2018-02-16 Thread Enric Balletbo i Serra
3 mode, when USB disconnect. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: - None. Changes since v1: - Use the registers offsets from the driver not the DT. drivers/phy/rockchip/phy-roc

[PATCH v3 3/6] phy: rockchip-typec: enable usb3 host during usb3 phy power on

2018-02-16 Thread Enric Balletbo i Serra
should clear the usb3tousb2 bit before pipe ready. So let's enable the usb3 host after pipe ready to avoid the Type-C PHY initialization failure. Signed-off-by: William wu <w...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: - None

[PATCH v3 6/6] drm/rockchip: cdn-dp: remove the DP phy switch

2018-02-16 Thread Enric Balletbo i Serra
Hence move this switch to PHY driver, the PHY driver can distinguish between PHY 0 and PHY 1, and then write the correct register bit. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: - None

[PATCH v3 1/6] phy: rockchip-typec: deprecate some DT properties for various register fields.

2018-02-16 Thread Enric Balletbo i Serra
cks the phy base address of the running instance and applies the right offsets. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: - Suggested by Heiko Stuebner: - Prefix phy config struct with rk3399_ as is rk3399-specific. - Create a new struct s

[PATCH v3 5/6] phy: rockchip-typec: support DP phy switch

2018-02-16 Thread Enric Balletbo i Serra
clear this bit means enable PHY 0. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v2: - None. Changes since v1: - This patch is new on these series but as a consequence of the work done need to be r

[PATCH v3 2/6] dt-bindings: phy-rockchip-typec: deprecate some register properties.

2018-02-16 Thread Enric Balletbo i Serra
-c force usb3 to usb2 enable control. - rockchip,external-psm : the register of type-c phy external psm clock selection. - rockchip,pipe-status : the register of type-c phy pipe status. Signed-off-by: Enric Balletbo i Serra <enric.ba

[PATCH 0/3] platform/chrome: cros_ec debugfs and sysfs updates

2018-02-21 Thread Enric Balletbo i Serra
Hi, This patchset is another recopilation of some patches that were send before but never merged. First patch was already sent [1] but did not receive feedback so I am resending it. Needs to go throught platform/chrome tree and can be picked without dependencies. The second patch is new, like

[PATCH 2/3] platform/chrome: cros_ec_debugfs: Add PD port info to debugfs

2018-02-21 Thread Enric Balletbo i Serra
From: Shawn Nematbakhsh <sha...@chromium.org> Add info useful for debugging USB-PD port state. Signed-off-by: Shawn Nematbakhsh <sha...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- drivers/platform/chrome/cros

[PATCH 3/3] platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle

2018-02-21 Thread Enric Balletbo i Serra
check before the device is added so the features map obtained from the EC is ready on time. Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- drivers/mfd/cros_ec_dev.c | 19 drive

[PATCH 1/3] platform/chrome: cros_ec_sysfs: Modify error handling

2018-02-21 Thread Enric Balletbo i Serra
status() instead of cros_ec_cmd_xfer() so an error message is printed in the syslog. Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- drivers/platform/chrome/cros_ec_sysfs.c | 25 -

Re: [PATCH 5/6] mfd: cros_ec_dev: Check communication with ec at resume

2018-02-22 Thread Enric Balletbo i Serra
Hi Gwendal, On 22/02/18 03:20, Gwendal Grignou wrote: > On Mon, Feb 19, 2018 at 2:41 PM, Enric Balletbo i Serra > <enric.balle...@collabora.com> wrote: >> From: Gwendal Grignou <gwen...@chromium.org> > This patch is not needed anymore. It was added to >> >>

[RESEND PATCH v5 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties.

2018-02-16 Thread Enric Balletbo i Serra
is this delay in milli seconds. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Acked-by: Pavel Machek <pa...@ucw.cz> --- Based on the original Huang Lin <h...@rock-chips.com> work. Changes since v4: - Rebase on top of mainline. Changes since v3: - Replace us fo

[RESEND PATCH v5 3/5] pwm-backlight: add support for PWM delays proprieties.

2018-02-16 Thread Enric Balletbo i Serra
. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Acked-by: Pavel Machek <pa...@ucw.cz> Acked-by: Daniel Thompson <daniel.thomp...@linaro.org> Acked-by: Jingoo Han <jingooh...@gmail.com> --- Changes since v4: - Rebased on top of mainline. - Added th

[RESEND PATCH v5 5/5] ARM: dts: rockchip: set PWM delay backlight settings for Minnie

2018-02-16 Thread Enric Balletbo i Serra
The minnie devices comes with an AUO B101EAN01 panel which is different from default veyron devices, thus the power on/off timing sequence is slightly different. The datasheet specifies a pwm delay of 200 ms, so update the PMW delay proprieties accordingly. Signed-off-by: Enric Balletbo i Serra

[RESEND PATCH v5 4/5] ARM: dts: rockchip: set PWM delay backlight settings for Veyron.

2018-02-16 Thread Enric Balletbo i Serra
a symmetric power sequence, hence the same value is used. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Acked-by: Pavel Machek <pa...@ucw.cz> --- Changes since v4: - Rebased on top of mainline. Changes since v3: - Use new -ms names for proprieties. Changes since v2

[RESEND PATCH v5 1/5] pwm-backlight: enable/disable the PWM before/after LCD enable toggle.

2018-02-16 Thread Enric Balletbo i Serra
: - N133HSE-EA1 (Innolux) - N116BGE (Innolux) - N156BGE-L21 (Innolux) - B101EAN0 (Auo) - B101AW03 (Auo) - LTN101NT05 (Samsung) - CLAA101WA01A (Chunghwa) Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Acked-by: Daniel Thompson <daniel.thomp...@linaro.o

[PATCH v2 6/8] mfd: cros_ec_dev: register shutdown function for debugfs

2018-02-23 Thread Enric Balletbo i Serra
ed-off-by: Daniel Hung-yu Wu <h...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v2: - [6/8] This patch is new in this series. drivers/mfd/cros_ec_dev.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mfd/cros_ec_d

[PATCH v2 0/8] mfd: cros_ec: add subdevices and fixes

2018-02-23 Thread Enric Balletbo i Serra
-by Gwendal. - [8/8] This patch is new in this series replacing [5/6] of v1. Daniel Hung-yu Wu (1): mfd: cros_ec_dev: register shutdown function for debugfs Douglas Anderson (1): mfd: cros_ec: Don't try to grab log when suspended Enric Balletbo i Serra (1): mfd: cros_ec_dev: Register cros-ec

[PATCH v2 8/8] mfd: cros_ec_i2c: moving the system sleep pm ops to late

2018-02-23 Thread Enric Balletbo i Serra
needs to be resumed earlier due to some status polling from the EC FW (e.g. battery status). So we move the PM ops to late stage to make it work normally. Signed-off-by: Joseph Lo <jose...@nvidia.com> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Cha

[PATCH v2 7/8] mfd: cros_ec_i2c: add ACPI module device table

2018-02-23 Thread Enric Balletbo i Serra
From: Wei-Ning Huang <wnhu...@google.com> Add ACPI module device table for matching cros-ec devices to load the cros_ec_i2c driver automatically. Signed-off-by: Wei-Ning Huang <wnhu...@google.com> Acked-by: Benson Leung <ble...@chromium.org> Signed-off-by: Enric Balletbo i

[PATCH v2 5/8] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice.

2018-02-23 Thread Enric Balletbo i Serra
deprecated EC commands (Glimmer based devices). Tested-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Reviewed-by: Gwendal Grignou <gwen...@chromium.org> --- Changes in v2: - [5/8] Add the Reviewed-by Gwendal. drivers/mfd/

Re: [PATCH 3/3] platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle

2018-02-21 Thread Enric Balletbo i Serra
Hi Andy, On 21/02/18 16:16, Andy Shevchenko wrote: > On Wed, Feb 21, 2018 at 4:50 PM, Enric Balletbo i Serra > <enric.balle...@collabora.com> wrote: >> From: Gwendal Grignou <gwen...@chromium.org> >> >> This adds a sysfs attribute (/sys/class/chromeos/cros_ec/k

[PATCH v2 4/6] platform/chrome: cros_ec_debugfs: Use octal permissions '0444'

2018-02-21 Thread Enric Balletbo i Serra
Fixed the following checkpatch warning: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - New in this series. Andy Shevchenko suggest

[PATCH v2 2/6] platform/chrome: cros_ec_sysfs: introduce to_cros_ec_dev define.

2018-02-21 Thread Enric Balletbo i Serra
Add a define to get the cros_ec_dev from device and use it. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - New in this series. Suggested by Andy Shevchenko. drivers/platform/chrome/cros_ec_sysfs.c | 11 +-- 1 file changed, 5 insertions

[PATCH v2 1/6] platform/chrome: cros_ec_sysfs: Modify error handling

2018-02-21 Thread Enric Balletbo i Serra
status() instead of cros_ec_cmd_xfer() so an error message is printed in the syslog. Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - None drivers/platform/chrome/cr

[PATCH v2 0/6] platform/chrome: cros_ec debugfs and sysfs updates

2018-02-21 Thread Enric Balletbo i Serra
for the pd feature and another one to use octal permissions. Enric Balletbo i Serra (3): platform/chrome: cros_ec_sysfs: introduce to_cros_ec_dev define. platform/chrome: cros_ec_sysfs: use permission-specific DEVICE_ATTR variants platform/chrome: cros_ec_debugfs: Use octal permissions

[PATCH v2 6/6] platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle

2018-02-21 Thread Enric Balletbo i Serra
check before the device is added so the features map obtained from the EC is ready on time. Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - Suggested by Andy Shevchenko: - Use th

[PATCH v2 5/6] platform/chrome: cros_ec_debugfs: Add PD port info to debugfs

2018-02-21 Thread Enric Balletbo i Serra
From: Shawn Nematbakhsh <sha...@chromium.org> Add info useful for debugging USB-PD port state. Signed-off-by: Shawn Nematbakhsh <sha...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - Drop unrelated changes. Suggested

[PATCH v2 3/6] platform/chrome: cros_ec_sysfs: use permission-specific DEVICE_ATTR variants

2018-02-21 Thread Enric Balletbo i Serra
Use DEVICE_ATTR variants for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes since v1: - New in this series. Suggested by Andy Shev

[PATCH 0/6] mfd: cros_ec: add subdevices and fixes

2018-02-19 Thread Enric Balletbo i Serra
-kernel@vger.kernel.org/msg1467253.html Best regards, Enric Balletbo i Serra (1): mfd: cros_ec_dev: Register cros-ec-rtc driver as a subdevice. Gwendal Grignou (1): mfd: cros_ec_dev: Check communication with ec at resume Thierry Escande (1): mfd: cros_ec_dev: Register cros_ec_accel_legacy

<    1   2   3   4   5   6   7   8   9   10   >