[PATCH v2 3/4] platform/chrome: Introduce a new function to check EC features.

2016-07-20 Thread Enric Balletbo i Serra
Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 37 +++ include/linux/mfd/cros_ec.h | 1 + include/linux/mfd/cros_ec_commands.h | 84 +++ 3 files changed, 122 insertions(+) diff --git a/drivers/platform/chrome/cros_ec_dev.c b

[PATCH v2 2/4] iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver

2016-07-20 Thread Enric Balletbo i Serra
Handle 3d contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are presented by the ChromeOS EC Sensor hub. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- Changes since v1: - Fixup multiline comments. - Fix some spelling mistakes. - Blank line

[PATCH v2 0/4] Add support for cros-ec-sensors

2016-07-20 Thread Enric Balletbo i Serra
- Add cros_ec_sensors prefix to all function. - Check return values on some functions. Best regards, Enric Balletbo i Serra (3): iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub. iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver platform/chrome: cro

[PATCH v2 4/4] platform/chrome: cros_ec_dev - Register cros-ec sensors

2016-07-20 Thread Enric Balletbo i Serra
Check whether the ChromeOS Embedded Controller is a sensor hub and in such case issue a command to get the number of sensors and register them all. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 122

[PATCH v2 1/4] iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.

2016-07-20 Thread Enric Balletbo i Serra
Balletbo i Serra --- Changes since v1: - Check kernel-doc documentation. - Bring this in as an when you need it in the rest of the series. - Fix some spelling mistakes. - Include ABI documentation. - Be more careful with buffer sizes (sprintf -> snprintf) - Add cros_ec_sensors pre

[PATCH v2] watchdog: ziirave_wdt: Add support to upload the firmware.

2016-07-20 Thread Enric Balletbo i Serra
verification fails then we print and error message and exit. Signed-off-by: Enric Balletbo i Serra --- Changes since v1: (requested by Martyn) - Remove two defines that are not used. - Fix typo in documentation count -> length drivers/watchdog/ziirave_wdt.c |

[PATCH v3] watchdog: ziirave_wdt: Add support to upload the firmware.

2016-07-28 Thread Enric Balletbo i Serra
verification fails then we print and error message and exit. Signed-off-by: Enric Balletbo i Serra --- Changes since v2: (requested by Guenter) - Remove ihex parsing, convert the file into binary before passing it to the kernel (ihex2fw ). - New binary firmware parsed using the ihex.h helpers

[PATCH v3 2/4] iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver

2016-07-28 Thread Enric Balletbo i Serra
Handle 3d contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are presented by the ChromeOS EC Sensor hub. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- Changes since v2: - Fix some typos - Skip filling by zero structure parameters that already

[PATCH v3 0/4] Add support for cros-ec-sensors

2016-07-28 Thread Enric Balletbo i Serra
some patches together. - Fix some spelling mistakes. - Include ABI documentation. - Be more careful with buffer sizes (sprintf -> snprintf) - Add cros_ec_sensors prefix to all function. - Check return values on some functions. Best regards, Enric Balletbo i Serra (3

[PATCH v3 4/4] platform/chrome: cros_ec_dev - Register cros-ec sensors

2016-07-28 Thread Enric Balletbo i Serra
Check whether the ChromeOS Embedded Controller is a sensor hub and in such case issue a command to get the number of sensors and register them all. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 122

[PATCH v3 3/4] platform/chrome: Introduce a new function to check EC features.

2016-07-28 Thread Enric Balletbo i Serra
Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 37 +++ include/linux/mfd/cros_ec.h | 1 + include/linux/mfd/cros_ec_commands.h | 84 +++ 3 files changed, 122 insertions(+) diff --git a/drivers/platform/chrome/cros_ec_dev.c b

[PATCH v3 1/4] iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.

2016-07-28 Thread Enric Balletbo i Serra
Balletbo i Serra --- Changes since v2: - Rebased and fix build error. - Include a list of possible values in the description of location attr. - Fix some typos. - Remove id sysfs entry. Changes since v1: - Check kernel-doc documentation. - Bring this in as an when you need it in the

[PATCH v4 2/4] iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver

2016-08-01 Thread Enric Balletbo i Serra
Handle 3d contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are presented by the ChromeOS EC Sensor hub. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- Changes since v3: - Remove some useless initialitzations as always overwritten. - Convert

[PATCH v4 4/4] platform/chrome: cros_ec_dev - Register cros-ec sensors

2016-08-01 Thread Enric Balletbo i Serra
Check whether the ChromeOS Embedded Controller is a sensor hub and in such case issue a command to get the number of sensors and register them all. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra Reviewed-by: Guenter Roeck --- Changes since v3: - Remove Unnecessary

[PATCH v4 3/4] platform/chrome: Introduce a new function to check EC features.

2016-08-01 Thread Enric Balletbo i Serra
Balletbo i Serra Reviewed-by: Guenter Roeck --- Changes since v3: - Add Reviewed-by tag. drivers/platform/chrome/cros_ec_dev.c | 37 +++ include/linux/mfd/cros_ec.h | 1 + include/linux/mfd/cros_ec_commands.h | 84 +++ 3 files changed, 122

[PATCH v4 0/4] Add support for cros-ec-sensors

2016-08-01 Thread Enric Balletbo i Serra
ing some patches together. - Fix some spelling mistakes. - Include ABI documentation. - Be more careful with buffer sizes (sprintf -> snprintf) - Add cros_ec_sensors prefix to all function. - Check return values on some functions. Best regards, Enric Balletbo i Serra

[PATCH v4 1/4] iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.

2016-08-01 Thread Enric Balletbo i Serra
Balletbo i Serra --- Changes since v3: - Convert structure to a simple array - Remove PM declarations - Remove unnecessary initializations - cros_ec_sensors_cmd_read_u16: Conversion should only be done if ret >= 0 - Remove unnecessary else Changes since v2: - Rebased and fix bu

[PATCH v4] watchdog: ziirave_wdt: Add support to upload the firmware.

2016-08-01 Thread Enric Balletbo i Serra
verification fails then we print and error message and exit. Signed-off-by: Enric Balletbo i Serra --- Changes since v2: (requested by Guenter and Martyn) - wait_for_ack: Add a wider range to give the kernel some leeway - wait_for_ack: Add a timeout. - Drop empty lines between assignments and value

[PATCH] acpi: thermal: honor "mode" sysfs file setting

2017-06-22 Thread Enric Balletbo i Serra
this patch echoing enabled|disabled to "mode" sysfs will start/stop the polling of the temperature. Signed-off-by: Sameer Nanda Signed-off-by: Enric Balletbo i Serra --- drivers/acpi/thermal.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff

[PATCH v3 1/4] dt-bindings: power: supply: add battery charge voltage/current

2017-05-26 Thread Enric Balletbo i Serra
Add charging voltage and current characteristics to the battery DT for proper handling of the battery by fuel-gauge and charger chips. Signed-off-by: Enric Balletbo i Serra --- Changes since v2: - Requested by Sebastian Reichel - Move to its own patch and apply to simple-battery framework

[PATCH v3 4/4] power: tps65217_charger: add support for NTC type, voltage and current charge

2017-05-26 Thread Enric Balletbo i Serra
Allow the possibility to configure the charge and the current voltage of the charger and also the NTC type for battery temperature measurement. Signed-off-by: Enric Balletbo i Serra --- Changes since v2: - Requested by Sebastian Reichel - Use the simple-battery framework - Use

[PATCH v3 2/4] power: supply: core: add charging voltage/current battery info

2017-05-26 Thread Enric Balletbo i Serra
Add the parameters to define the battery charging voltage and charging current. Charger driver can get this information from the struct power_supply_battery_info and apply the desired value. Signed-off-by: Enric Balletbo i Serra --- Changes since v2: - Requested by Sebastian Reichel - Move

[PATCH v3 3/4] dt-bindings: power: tps65217_charger: add NTC type for battery temperature measurement.

2017-05-26 Thread Enric Balletbo i Serra
information. Signed-off-by: Enric Balletbo i Serra --- Changes since v2: - Requested by Sebastian Reichel - Get rid of common properties and only maintain ntc-type. Changes since v1: - None .../devicetree/bindings/power/supply/tps65217_charger.txt | 7 +++ 1 file changed, 7 insertions

[PATCH v4 2/2] tpm: do not suspend/resume if power stays on

2017-05-29 Thread Enric Balletbo i Serra
The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. This is useful for the cases when hardware does not power-off the TPM. Signed-off-by: Sonny Rao Signed-off-by: Enric Balletbo i Serra Reviewed-by: Jason Gunthorpe Reviewed-

[PATCH v4 1/2] Documentation: tpm: add powered-while-suspended binding documentation

2017-05-29 Thread Enric Balletbo i Serra
Add a new powered-while-suspended property to control the behavior of the TPM suspend/resume. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Sonny Rao Reviewed-by: Jason Gunthorpe Reviewed-by: Jarkko Sakkinen Acked-by: Rob Herring --- Changes since v3. - Rebased on top of linux-next

[PATCH 0/3] Add initial support for slimport anx78xx

2015-09-06 Thread Enric Balletbo i Serra
feel free to ping to incorporate other changes that I need to do in next series. Best regards, Enric Balletbo i Serra (3): of: Add vendor prefix for Analogix Semiconductor, Inc. devicetree: Add new ANX7814 SlimPort transmitter binding. staging: slimport: Add anx7814 driver support by analogix

[PATCH 2/3] devicetree: Add new ANX7814 SlimPort transmitter binding.

2015-09-06 Thread Enric Balletbo i Serra
eg = <0x38>; pd-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; }; Signed-off-by: Enric Balletbo i Serra --- .../devicetree/bindings/video/bridge/anx7814.txt | 22 ++ 1 file changed, 22 insertions(

[PATCH 3/3] staging: slimport: Add anx7814 driver support by analogix.

2015-09-06 Thread Enric Balletbo i Serra
The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter designed for portable devices. This driver adds initial support and supports HDMI to DP pass-through mode. Signed-off-by: Enric Balletbo i Serra --- drivers/staging/Kconfig|2 + drivers/staging

[PATCH 1/3] of: Add vendor prefix for Analogix Semiconductor, Inc.

2015-09-06 Thread Enric Balletbo i Serra
Analogix Semiconductor develops analog and mixed-signal devices for digital media and communications interconnect applications. Signed-off-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCHv2 0/3] Add initial support for slimport anx78xx

2015-09-08 Thread Enric Balletbo i Serra
all comments and suggestions are welcomed. Changes since v1: - As requested by Greg, move from staging to a subsystem. To be honest I'm not sure if gpu/drm/i2c is the proper subsystem for this driver so please feel free to correct me. Best regards, Enric Balletbo i Serra (3): of: Add v

[PATCHv2 2/3] devicetree: Add new ANX7814 SlimPort transmitter binding.

2015-09-08 Thread Enric Balletbo i Serra
eg = <0x38>; pd-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; }; Signed-off-by: Enric Balletbo i Serra --- .../devicetree/bindings/video/anx7814.txt | 22 ++ 1 file changed, 22 insertions(

[PATCHv2 1/3] of: Add vendor prefix for Analogix Semiconductor, Inc.

2015-09-08 Thread Enric Balletbo i Serra
Analogix Semiconductor develops analog and mixed-signal devices for digital media and communications interconnect applications. Signed-off-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCHv2 3/3] drm/i2c: anx78xx: Add anx7814 driver support by analogix.

2015-09-08 Thread Enric Balletbo i Serra
The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter designed for portable devices. This driver adds initial support and supports HDMI to DP pass-through mode. Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/i2c/Kconfig |2 + drivers/gpu/drm

[PATCH 3/3] mfd: Add battery charger as subdevice to the tps65217.

2015-09-08 Thread Enric Balletbo i Serra
Add tps65217 battery charger subdevice. Signed-off-by: Enric Balletbo i Serra --- drivers/mfd/tps65217.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 55add04..d32b5442 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217

[PATCH 0/3] Add support for tps65217 charger

2015-09-08 Thread Enric Balletbo i Serra
Hi all, The following series add initial support for tps65217 battery charger. This series is a first attempt and will have mistake so all comments and suggestions are welcomed. Best regards, Enric Balletbo i Serra (3): devicetree: Add TPS65217 charger binding. power_supply: Add support for

[PATCH 2/3] power_supply: Add support for tps65217-charger.

2015-09-08 Thread Enric Balletbo i Serra
: Enric Balletbo i Serra --- drivers/power/Kconfig| 7 + drivers/power/Makefile | 1 + drivers/power/tps65217_charger.c | 269 +++ 3 files changed, 277 insertions(+) create mode 100644 drivers/power/tps65217_charger.c diff --git a

[PATCH 1/3] devicetree: Add TPS65217 charger binding.

2015-09-08 Thread Enric Balletbo i Serra
The TPS65217 charger is a subnode of the TPS65217 MFD. Signed-off-by: Enric Balletbo i Serra --- .../devicetree/bindings/power_supply/tps65217_charger.txt| 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply

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 >> att

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

2018-06-21 Thread Enric Balletbo i Serra
/ devfreq: map devfreq drivers to governor using name) Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - Add a new function to request the module and call that function from devfreq_add_device and governor_store. drivers/devfreq/devfreq.c | 69

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

2018-06-21 Thread Enric Balletbo i Serra
Hi, On 21/06/18 23:19, Enric Balletbo i Serra wrote: > When the devfreq driver and the governor driver are built as modules, > the call to devfreq_add_device() or governor_store() fails because the > governor driver is not loaded at the time the devfreq driver loads. The > devfreq

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

2018-06-21 Thread Enric Balletbo i Serra
/ devfreq: map devfreq drivers to governor using name) Signed-off-by: Enric Balletbo i Serra --- Changes in v3: - Remove unneded change in dev_err message. - Fix err returned value in case to not find the governor. Changes in v2: - Add a new function to request the module and call that function

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

2018-06-22 Thread Enric Balletbo i Serra
Hi Ezequiel and Akhil, On 22/06/18 09:03, Akhil P Oommen wrote: > > On 6/22/2018 6:41 AM, Ezequiel Garcia wrote: >> Hey Enric, >> >> On Fri, 2018-06-22 at 00:04 +0200, Enric Balletbo i Serra wrote: >>> When the devfreq driver and the governor driver are

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

2018-06-24 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

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

2018-08-27 Thread Enric Balletbo i Serra
/ devfreq: map devfreq drivers to governor using name) Signed-off-by: Enric Balletbo i Serra Reviewed-by: Chanwoo Choi --- Changes in v5: - Requested by MyungJoo and Chanwoo. - Fix returning without the lock acquired after request_module. - Requested by Chanwoo. - In request governor

[PATCH v3] backlight: pwm_bl: switch to using "atomic" PWM API

2018-08-14 Thread Enric Balletbo i Serra
The "atomic" API allows us to configure PWM period and duty_cycle and enable it in one call. The patch also moves the pwm_init_state just before any use of the pwm_state struct, this fixes a potential bug where pwm_get_state can be called before pwm_init_state. Signed-off-by: Enric

Re: [PATCH v1] arm64: dts: rockchip: add support for ROC-RK3399-PC board

2018-07-26 Thread Enric Balletbo i Serra
Hi Levin, Some few comments. On 26/07/18 09:13, d...@t-chip.com.cn wrote: > From: Levin Du > > ROC-RK3399-PC is a power efficient 4GB LPDDR4 single board > computer with USB 3.0 and Gigabit Ethernet in a form factor > compatible with the Raspberry Pi. It is based on the Rockchip > RK3399 SoC, p

[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

[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 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 --- .../bindings

[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 --- Changes since RFCv2: - Pre-compute the table at boot usi

[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 --- 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. - Reworked the code to interpolate between tw

[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 bran

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

2018-01-17 Thread Enric Balletbo i Serra
From: Sameer Nanda 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 Signed-off-by: Enric Balletbo i Serra --- drivers/power/supply/Kconfig | 11 + drivers

[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 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 Signed-off-by: Enric Balletbo i Serra --- drivers/mfd/cros_ec_dev.c | 25 + 1 file

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

2018-01-17 Thread Enric Balletbo i Serra
From: Sameer Nanda 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 Signed-off-by: Enric Balletbo i Serra --- include/linux/mfd/cros_ec_commands.h | 135

[PATCH v5 01/36] drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

2018-03-09 Thread Enric Balletbo i Serra
] Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 ++-- drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 6 ++-- drivers/gpu/drm/bridge/analogix

[PATCH v5 08/36] drm/bridge: analogix_dp: Check AUX_EN status when doing AUX transfer

2018-03-09 Thread Enric Balletbo i Serra
From: Lin Huang We should check AUX_EN bit to confirm the AUX CH operation is completed. Cc: Stéphane Marchesin Signed-off-by: Lin Huang Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski

[PATCH v5 22/36] drm/bridge: analogix_dp: Fix incorrect operations with register ANALOGIX_DP_FUNC_EN_1

2018-03-09 Thread Enric Balletbo i Serra
BIT 5 RK_VID_FIFO_FUNC_EN_N So, we should do some private operations to Rockchip. Cc: Tomasz Figa Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski

[PATCH v5 25/36] drm/bridge: analogix_dp: Properly log AUX CH errors

2018-03-09 Thread Enric Balletbo i Serra
aul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH v5 12/36] drm/bridge: analogix_dp: Set PD_INC_BG first when powering up edp phy

2018-03-09 Thread Enric Balletbo i Serra
From: zain wang Following the correct power up sequence: dp_pd=ff => dp_pd=7f => wait 10us => dp_pd=00 Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski ---

[PATCH v5 14/36] drm/bridge: analogix_dp: Extend hpd check time to 100ms

2018-03-09 Thread Enric Balletbo i Serra
Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c

[PATCH v5 35/36] drm/rockchip: Disallow PSR for the whole atomic commit

2018-03-09 Thread Enric Balletbo i Serra
ff-by: Tomasz Figa Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 61 - drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 7 2 files change

[PATCH v5 33/36] drm/rockchip: psr: Sanitize semantics of allow/disallow API

2018-03-09 Thread Enric Balletbo i Serra
Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 4 +- drivers/gpu/drm/rockchip/rockchip_drm_psr.c | 57 ++--- drivers/gpu/drm/rockchip/rockchip_drm_psr.h | 4 +- 3 files changed, 46 insert

[PATCH v5 30/36] drm/rockchip: Disable PSR on input events

2018-03-09 Thread Enric Balletbo i Serra
w frame in response to the event, this can completely hide the exit latency. In case of Chrome OS, we typically get the input notifier 50ms or more before the dirty_fb triggered exit. Signed-off-by: Kristian H. Kristensen Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested

[PATCH v5 32/36] drm/rockchip: psr: Avoid redundant calls to .set() callback

2018-03-09 Thread Enric Balletbo i Serra
L because encoder->crtc is NULL. Avoid this by starting out with psr->allowed set to false. Signed-off-by: Kristian H. Kristensen Signed-off-by: Tomasz Figa Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski ---

[PATCH v5 34/36] drm/rockchip: Disable PSR from reboot notifier

2018-03-09 Thread Enric Balletbo i Serra
point before the power is cut. A reboot notifier, despite being a misnomer and handling shutdowns as well, is a good place to do it. Signed-off-by: Tomasz Figa Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip

[PATCH v5 36/36] drm/rockchip: psr: Remove flush by CRTC

2018-03-09 Thread Enric Balletbo i Serra
: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/rockchip_drm_psr.c | 35 - drivers/gpu/drm/rockchip/rockchip_drm_psr.h | 1 - 2 files changed, 36 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_psr.c b/drivers/gpu/drm

[PATCH v5 31/36] drm/rockchip: Cancel PSR enable work before changing the state

2018-03-09 Thread Enric Balletbo i Serra
call rockchip_drm_do_flush(), as they are both supposed to do the same. Signed-off-by: Tomasz Figa Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/rockchip_drm_psr.c | 20 1 file changed, 8 inser

[PATCH v5 29/36] drm/rockchip: analogix_dp: Do not call Analogix code before bind

2018-03-09 Thread Enric Balletbo i Serra
asz Figa Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/ana

[PATCH v5 27/36] drm/rockchip: pre dither down when output bpc is 8bit

2018-03-09 Thread Enric Balletbo i Serra
dither down vop data to 8bit if panel's bpc is 8. Signed-off-by: Mark Yao [seanpaul resolved conflict in rockchip_drm_vop.c] Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/analog

[PATCH v5 24/36] drm/bridge: analogix_dp: Reorder plat_data->power_off to happen sooner

2018-03-09 Thread Enric Balletbo i Serra
by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix

[PATCH v5 26/36] drm/bridge: analogix_dp: Properly disable aux chan retries on rockchip

2018-03-09 Thread Enric Balletbo i Serra
retry behavior across all platforms. Cc: Stéphane Marchesin Cc: 征增 王 Signed-off-by: Douglas Anderson Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c

[PATCH v5 28/36] drm/bridge: analogix_dp: Split the platform-specific poweron in two parts

2018-03-09 Thread Enric Balletbo i Serra
't set the enable until the end. Cc: Kristian H. Kristensen Signed-off-by: Douglas Anderson [seanpaul added exynos change] Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers

[PATCH v5 23/36] drm/bridge: analogix_dp: Move fast link training detect to set_bridge

2018-03-09 Thread Enric Balletbo i Serra
Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 42 +- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/b

[PATCH v5 19/36] drm/rockchip: Restore psr->state when enable/disable psr failed

2018-03-09 Thread Enric Balletbo i Serra
-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 +++- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c| 10 +- drivers/gpu/drm/rockchip/rockchip_drm_psr.c| 20 +--- drivers/gpu/drm/rockc

[PATCH v5 21/36] drm/bridge: analogix_dp: Fix timeout of video streamclk config

2018-03-09 Thread Enric Balletbo i Serra
lay. Let's change this error to warn. Cc: Douglas Anderson Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |

[PATCH v5 20/36] drm/bridge: analogix_dp: Don't use ANALOGIX_DP_PLL_CTL to control pll

2018-03-09 Thread Enric Balletbo i Serra
Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b

[PATCH v5 17/36] drm/bridge: analogix_dp: Fix AUX_PD bit for Rockchip

2018-03-09 Thread Enric Balletbo i Serra
ned-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 117 -- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h | 2 + 2 files changed, 65 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm/bridg

[PATCH v5 18/36] drm/bridge: analogix_dp: Reset aux channel if an error occurred

2018-03-09 Thread Enric Balletbo i Serra
cande Reviewed-by: Andrzej Hajda Tested-by: Marek Szyprowski Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b/driver

[PATCH v5 16/36] drm/bridge: analogix_dp: Check dpcd write/read status

2018-03-09 Thread Enric Balletbo i Serra
: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 169 - 1 file changed, 127 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu

[PATCH v5 15/36] drm/bridge: analogix_dp: Fix incorrect usage of enhanced mode

2018-03-09 Thread Enric Balletbo i Serra
on all the time. Cc: Tomasz Figa Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 ++ 1 file changed

[PATCH v5 10/36] drm/bridge: analogix_dp: Retry bridge enable when it failed

2018-03-09 Thread Enric Balletbo i Serra
From: zain wang When we enable bridge failed, we have to retry it, otherwise we would get the abnormal display. Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda Signed-off-by: Enric Balletbo i Serra Tested

[PATCH v5 13/36] drm/bridge: analogix_dp: Ensure edp is disabled when shutting down the panel

2018-03-09 Thread Enric Balletbo i Serra
Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 92fb9a072cb6

[PATCH v5 11/36] drm/bridge: analogix_dp: Wait for HPD signal before configuring link

2018-03-09 Thread Enric Balletbo i Serra
: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix

[PATCH v5 09/36] drm/bridge: analogix_dp: Don't use fast link training when panel just powered up

2018-03-09 Thread Enric Balletbo i Serra
Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 9 + drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 2 +- 2 fil

[PATCH v5 07/36] drm/bridge: analogix_dp: Move enable video into config_video()

2018-03-09 Thread Enric Balletbo i Serra
Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index

[PATCH v5 05/36] drm/bridge: analogix_dp: add fast link train for eDP

2018-03-09 Thread Enric Balletbo i Serra
From: zain wang We would meet a short black screen when exit PSR with the full link training, In this case, we should use fast link train instead of full link training. Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra

[PATCH v5 06/36] drm/rockchip: Only wait for panel ACK on PSR entry

2018-03-09 Thread Enric Balletbo i Serra
Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 ++-- drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 2 +- drivers/gpu/drm/bridge/analogix/analogix_dp

[PATCH v5 03/36] drm/bridge: analogix_dp: Don't change psr while bridge is disabled

2018-03-09 Thread Enric Balletbo i Serra
ed up the commit message a bit and renamed *_supported to *_enabled] Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 15 --- drivers/gpu/drm/bridge/ana

[PATCH v5 02/36] drm/rockchip: Remove analogix psr worker

2018-03-09 Thread Enric Balletbo i Serra
ff-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 31 ++--- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/driver

[PATCH v5 00/36] DRM Rockchip rk3399 (Kevin)

2018-03-09 Thread Enric Balletbo i Serra
Hi, This patchset includes cleanups, improvements, and bug fixes for Rockchip DRM driver and PSR support. This new version is the same as before removing some of the patches already applied and fixing the Exynos issue due patch '[v4 15/38] drm/bridge: analogix_dp: Ensure edp is disabled when shut

[PATCH v5 04/36] drm/rockchip: add mutex vop lock

2018-03-09 Thread Enric Balletbo i Serra
igned-off-by: Enric Balletbo i Serra Tested-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 30 +++-- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_

Re: [PATCH v5 06/36] drm/rockchip: Only wait for panel ACK on PSR entry

2018-03-12 Thread Enric Balletbo i Serra
er version, I'll wait, for now, a bit more for reviews on the other patches. Thanks Enric > Am Freitag, 9. März 2018, 23:22:57 CET schrieb Enric Balletbo i Serra: >> From: zain wang >> >> We currently wait for the panel to mirror our intended PSR state >> before

[PATCH v4 00/38] DRM Rockchip rk3399 (Kevin)

2018-03-05 Thread Enric Balletbo i Serra
Hi, This patchset includes cleanups, improvements, and bug fixes for Rockchip DRM driver and PSR support. This new version is the same as before but rebased on top of drm-misc-next plus the Marek patches that fixes Chromebook2 Peach-Pit [1] and the latest series of Rockchip rk3399 eDP support [2]

[PATCH v4 00/38] DRM Rockchip rk3399 (Kevin)

2018-03-05 Thread Enric Balletbo i Serra
Hi, This patchset includes cleanups, improvements, and bug fixes for Rockchip DRM driver and PSR support. This new version is the same as before but rebased on top of drm-misc-next plus the Marek patches that fixes Chromebook2 Peach-Pit [1] and the latest series of Rockchip rk3399 eDP support [2]

[PATCH v4 14/38] drm/bridge: analogix_dp: Set PD_INC_BG first when powering up edp phy

2018-03-05 Thread Enric Balletbo i Serra
From: zain wang Following the correct power up sequence: dp_pd=ff => dp_pd=7f => wait 10us => dp_pd=00 Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge

[PATCH v4 16/38] drm/bridge: analogix_dp: Extend hpd check time to 100ms

2018-03-05 Thread Enric Balletbo i Serra
Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 9b7d530ad24c..0ff151f741a3

[PATCH v4 19/38] drm/bridge: analogix_dp: Fix AUX_PD bit for Rockchip

2018-03-05 Thread Enric Balletbo i Serra
ned-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 117 -- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h | 2 + 2 files changed, 65 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b/d

[PATCH v4 11/38] drm/bridge: analogix_dp: Don't use fast link training when panel just powered up

2018-03-05 Thread Enric Balletbo i Serra
Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 9 + drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 2 +- 2 files changed, 6 insertions(+), 5

[PATCH v4 21/38] drm/rockchip: Restore psr->state when enable/disable psr failed

2018-03-05 Thread Enric Balletbo i Serra
-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 +++- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c| 10 +- drivers/gpu/drm/rockchip/rockchip_drm_psr.c| 20 +--- drivers/gpu/drm/rockchip/rockchip_drm_psr.h| 2 +-

  1   2   3   4   5   6   7   8   9   10   >