Re: [PATCH v19 4/6] misc: eeprom: at24: check suspend status before disable regulator

2021-04-20 Thread Hsin-Yi Wang
On Fri, Apr 16, 2021 at 10:09 PM Bartosz Golaszewski wrote: > > On Wed, Apr 14, 2021 at 7:29 PM Hsin-Yi Wang wrote: > > > > cd5676db0574 ("misc: eeprom: at24: support pm_runtime control") disables > > regulator in runtime suspend. If runtime suspend is c

[PATCH] misc: eeprom: at24: check suspend status before disable regulator

2021-04-20 Thread Hsin-Yi Wang
ol") Signed-off-by: Hsin-Yi Wang Acked-by: Bartosz Golaszewski --- This patch is originally in https://patchwork.kernel.org/project/linux-mediatek/patch/20210414172916.2689361-5-hsi...@chromium.org/ --- drivers/misc/eeprom/at24.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

Re: [PATCH 1/2] drm/mediatek: set panel orientation before drm_dev_register().

2021-04-20 Thread Hsin-Yi Wang
On Fri, Apr 9, 2021 at 12:53 PM Hsin-Yi Wang wrote: > > drm_dev_register() sets connector->registration_state to > DRM_CONNECTOR_REGISTERED and dev->registered to true. If > drm_connector_set_panel_orientation() is first called after > drm_dev_register(), it will fail sever

Re: [PATCH 4/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kenzo

2021-04-16 Thread Hsin-Yi Wang
On Fri, Apr 16, 2021 at 10:42 PM Matthias Brugger wrote: > > > > On 15/04/2021 11:35, Hsin-Yi Wang wrote: > > Kenzo is known as Acer Chromebook 311. > > > > Signed-off-by: Hsin-Yi Wang > > --- > > Documentation/devicetree/bindings/arm/mediatek.yaml |

[PATCH v2 6/8] arm64: dts: mt8183: Add kukui-jacuzzi-willow board

2021-04-16 Thread Hsin-Yi Wang
Willow is known as Acer Chromebook 311 (C722/C722T) Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/Makefile | 2 ++ .../mt8183-kukui-jacuzzi-willow-sku0.dts | 13 + .../mt8183-kukui-jacuzzi-willow-sku1.dts | 12

[PATCH v2 8/8] arm64: dts: mt8183: Add kukui-jacuzzi-kenzo board

2021-04-16 Thread Hsin-Yi Wang
Kenzo is known as Acer Chromebook 311. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/Makefile| 1 + .../boot/dts/mediatek/mt8183-kukui-jacuzzi-kenzo.dts | 12 2 files changed, 13 insertions(+) create mode 100644

[PATCH v2 7/8] arm64: dts: mt8183: Add kukui-jacuzzi-burnet board

2021-04-16 Thread Hsin-Yi Wang
Burnet is known as HP Chromebook x360 11MK G3 EE Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-burnet.dts | 33 +++ 2 files changed, 34 insertions(+) create mode

[PATCH v2 5/8] arm64: dts: mt8183: Add kukui-jacuzzi-kappa board

2021-04-16 Thread Hsin-Yi Wang
Kappa is known as HP Chromebook 11a Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/Makefile| 1 + .../dts/mediatek/mt8183-kukui-jacuzzi-kappa.dts | 16 2 files changed, 17 insertions(+) create mode 100644 arch

[PATCH v2 4/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kenzo

2021-04-16 Thread Hsin-Yi Wang
Kenzo is known as Acer Chromebook 311. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b

[PATCH v2 3/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-burnet

2021-04-16 Thread Hsin-Yi Wang
Burnet is known as HP Chromebook x360 11MK G3 EE. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation

[PATCH v2 2/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-willow

2021-04-16 Thread Hsin-Yi Wang
Willow is known as Acer Chromebook 311 (C722/C722T). Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b

[PATCH v2 1/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kappa

2021-04-16 Thread Hsin-Yi Wang
Kappa is known as HP Chromebook 11a. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree

Re: [PATCH v19 6/6] drm/i915/selftests: Rename functions names

2021-04-16 Thread Hsin-Yi Wang
On Fri, Apr 16, 2021 at 10:23 PM Jani Nikula wrote: > > On Thu, 15 Apr 2021, Hsin-Yi Wang wrote: > > pm_resume and pm_suspend might be conflict with the ones defined in > > include/linux/suspend.h. Rename pm_resume{suspend} to > > i915_pm_resume{suspend} since they a

Re: [PATCH] [v4, 1/1] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on shutdown

2021-04-16 Thread Hsin-Yi Wang
be firstly enable > timer before clear systimer irq > > Fixes: e3af677607d9("clocksource/drivers/timer-mediatek: Add support for > system timer") > Signed-off-by: Fengquan Chen > Tested-by: Hsin-Yi Wang Tested on a mt8183 device. This patch solves an

[PATCH 8/8] arm64: dts: mt8183: Add kukui-jacuzzi-kenzo board

2021-04-15 Thread Hsin-Yi Wang
Kenzo is known as Acer Chromebook 311. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile| 1 + .../boot/dts/mediatek/mt8183-kukui-jacuzzi-kenzo.dts | 12 2 files changed, 13 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183

[PATCH 7/8] arm64: dts: mt8183: Add kukui-jacuzzi-burnet board

2021-04-15 Thread Hsin-Yi Wang
Burnet is known as HP Chromebook x360 11MK G3 EE Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-burnet.dts | 33 +++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek

[PATCH 6/8] arm64: dts: mt8183: Add kukui-jacuzzi-willow board

2021-04-15 Thread Hsin-Yi Wang
Willow is known as Acer Chromebook 311 (C722/C722T) Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 2 ++ .../mt8183-kukui-jacuzzi-willow-sku0.dts | 13 + .../mt8183-kukui-jacuzzi-willow-sku1.dts | 12 .../mediatek/mt8183-kukui-jacuzzi

[PATCH 5/8] arm64: dts: mt8183: Add kukui-jacuzzi-kappa board

2021-04-15 Thread Hsin-Yi Wang
Kappa is known as HP Chromebook 11a Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile| 1 + .../dts/mediatek/mt8183-kukui-jacuzzi-kappa.dts | 16 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-kukui

[PATCH 4/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kenzo

2021-04-15 Thread Hsin-Yi Wang
Kenzo is known as Acer Chromebook 311. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 3/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-burnet

2021-04-15 Thread Hsin-Yi Wang
Burnet is known as HP Chromebook x360 11MK G3 EE. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 2/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-willow

2021-04-15 Thread Hsin-Yi Wang
Willow is known as Acer Chromebook 311 (C722/C722T). Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 1/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kappa

2021-04-15 Thread Hsin-Yi Wang
Kappa is known as HP Chromebook 11a. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index

[PATCH v19 4/6] misc: eeprom: at24: check suspend status before disable regulator

2021-04-14 Thread Hsin-Yi Wang
cd5676db0574 ("misc: eeprom: at24: support pm_runtime control") disables regulator in runtime suspend. If runtime suspend is called before regulator disable, it will results in regulator unbalanced disabling. Signed-off-by: Hsin-Yi Wang --- drivers/misc/eeprom/at24.c | 6 -- 1 fi

[PATCH v19 6/6] drm/i915/selftests: Rename functions names

2021-04-14 Thread Hsin-Yi Wang
pm_resume and pm_suspend might be conflict with the ones defined in include/linux/suspend.h. Rename pm_resume{suspend} to i915_pm_resume{suspend} since they are only used here. Signed-off-by: Hsin-Yi Wang Reported-by: kernel test robot --- drivers/gpu/drm/i915/selftests/i915_gem.c | 10

[PATCH v19 5/6] arm64: dts: mt8183: add supply name for eeprom

2021-04-14 Thread Hsin-Yi Wang
Add supplies for eeprom for mt8183 boards. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi | 4 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi | 4 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi | 4 3 files changed, 12

[PATCH v19 1/6] i2c: core: support bus regulator controlling in adapter

2021-04-14 Thread Hsin-Yi Wang
Signed-off-by: Hsin-Yi Wang --- drivers/i2c/i2c-core-base.c | 88 + include/linux/i2c.h | 2 + 2 files changed, 90 insertions(+) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 24c8f11bac73..c34920f30c5a 100644

[PATCH v19 2/6] dt-binding: i2c: mt65xx: add vbus-supply property

2021-04-14 Thread Hsin-Yi Wang
Add vbus-supply property for mt65xx. The regulator can be passed into core and turned off during suspend/sleep to reduce power consumption. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v19 3/6] i2c: mediatek: mt65xx: add optional vbus-supply

2021-04-14 Thread Hsin-Yi Wang
Add vbus-supply which provides power to SCL/SDA. Pass this regulator into core so it can be turned on/off for low power mode support. Signed-off-by: Hsin-Yi Wang --- drivers/i2c/busses/i2c-mt65xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b

[PATCH v19 0/6] add power control in i2c

2021-04-14 Thread Hsin-Yi Wang
since v8: - fixup some wrong code - remove redundant message [... snip ...] Bibby Hsieh (1): i2c: core: support bus regulator controlling in adapter Hsin-Yi Wang (5): dt-binding: i2c: mt65xx: add vbus-supply property i2c: mediatek: mt65xx: add optional vbus-supply misc: eeprom

[PATCH v18 0/5] add power control in i2c

2021-04-14 Thread Hsin-Yi Wang
): i2c: core: support bus regulator controlling in adapter Hsin-Yi Wang (4): dt-binding: i2c: mt65xx: add vbus-supply property i2c: mediatek: mt65xx: add optional vbus-supply misc: eeprom: at24: check suspend status before disable regulator arm64: dts: mt8183: add supply name for eeprom

[PATCH v18 4/5] misc: eeprom: at24: check suspend status before disable regulator

2021-04-14 Thread Hsin-Yi Wang
cd5676db0574 ("misc: eeprom: at24: support pm_runtime control") disables regulator in runtime suspend. If runtime suspend is called before regulator disable, it will results in regulator unbalanced disabling. Signed-off-by: Hsin-Yi Wang --- drivers/misc/eeprom/at24.c | 6 -- 1 fi

[PATCH v18 5/5] arm64: dts: mt8183: add supply name for eeprom

2021-04-14 Thread Hsin-Yi Wang
Add supplies for eeprom for mt8183 boards. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi | 4 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi | 4 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi | 4 3 files changed, 12

[PATCH v18 2/5] dt-binding: i2c: mt65xx: add vbus-supply property

2021-04-14 Thread Hsin-Yi Wang
Add vbus-supply property for mt65xx. The regulator can be passed into core and turned off during suspend/sleep to reduce power consumption. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v18 3/5] i2c: mediatek: mt65xx: add optional vbus-supply

2021-04-14 Thread Hsin-Yi Wang
Add vbus-supply which provides power to SCL/SDA. Pass this regulator into core so it can be turned on/off for low power mode support. Signed-off-by: Hsin-Yi Wang --- drivers/i2c/busses/i2c-mt65xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b

[PATCH v18 1/5] i2c: core: support bus regulator controlling in adapter

2021-04-14 Thread Hsin-Yi Wang
Signed-off-by: Hsin-Yi Wang --- drivers/i2c/i2c-core-base.c | 88 + include/linux/i2c.h | 2 + 2 files changed, 90 insertions(+) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 24c8f11bac73..c34920f30c5a 100644

Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Enable thermal Tboard

2021-04-09 Thread Hsin-Yi Wang
gt; check /sys/class/thermal/thermal_zone*/type > check /sys/class/thermal/thermal_zone*/temp the TEST lines can be removed. > > Signed-off-by: Michael Kao > Signed-off-by: Nicolas Boichat > --- Tested-by: Hsin-Yi Wang This removes following error: [ 10.882325] generic-

[PATCH 2/2] arm64: dts: mt8183: Add panel rotation

2021-04-08 Thread Hsin-Yi Wang
krane, kakadu, and kodama boards have a default panel rotation. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

[PATCH 1/2] drm/mediatek: set panel orientation before drm_dev_register().

2021-04-08 Thread Hsin-Yi Wang
/0x1c0 [4.893879] do_el0_svc_compat+0x28/0x3c [4.897791] el0_svc_compat+0x10/0x1c [4.901441] el0_sync_compat_handler+0xa8/0xcc [4.905873] el0_sync_compat+0x178/0x180 [4.909783] ---[ end trace b4f2db9d9c88610c ]--- Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_dsi

Re: [PATCH v16 2/2] i2c: core: support bus regulator controlling in adapter

2021-04-07 Thread Hsin-Yi Wang
On Tue, Mar 9, 2021 at 9:34 PM Hsin-Yi Wang wrote: > > On Tue, Mar 9, 2021 at 1:17 AM Mark Brown wrote: > > > > On Mon, Mar 08, 2021 at 12:36:07PM +0800, Hsin-Yi Wang wrote: > > > > > + adap->bus_regulator = devm_regulator_get(>dev, "bus&q

[RESEND PATCH v4 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-03-31 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring Reviewed-by: Robert Foss --- v3->v4: rebase to drm-misc/for-linux-next --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --

[RESEND PATCH v4 2/2] drm/bridge: anx7625: disable regulators when power off

2021-03-31 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang Reviewed

Re: [PATCH V8 1/8] PM / devfreq: Add cpu based scaling support to passive_governor

2021-03-31 Thread Hsin-Yi Wang
On Thu, Mar 25, 2021 at 3:58 PM Chanwoo Choi wrote: > > Hi, > > You are missing to add these patches to linux-pm mailing list. > Need to send them to linu-pm ML. > > Also, before received this series, I tried to clean-up these patches > on testing branch[1]. So that I add my comment with my

Re: [RESEND PATCH 2/2] arm64: defconfig: Enable options to support panel display for Mediatek Chromebooks

2021-03-31 Thread Hsin-Yi Wang
d the Lenovo > Ideapad Duet (MT8183), but should also enable display support for similar > devices. > > Signed-off-by: Enric Balletbo i Serra > --- Reviewed-by: Hsin-Yi Wang > This is only a resend rebased on top of mainline to fix some trivial > conflicts. > > arch/arm64/c

Re: [RESEND PATCH 1/2] arm64: defconfig: Allow mt8173-based boards to boot from usb

2021-03-31 Thread Hsin-Yi Wang
On Wed, Mar 31, 2021 at 5:07 PM Enric Balletbo i Serra wrote: > > Enable the option necessary to boot mt8173-based boards to boot from > usb devices, like its phy and the regulators needed to have proper > support. > > Signed-off-by: Enric Balletbo i Serra > --- Revi

[PATCH 3/4] arm64: dts: mt8183: Add kukui kakadu board

2021-03-31 Thread Hsin-Yi Wang
From: Nicolas Boichat Kakadu is also known as ASUS Chromebook Detachable CM3. Signed-off-by: Nicolas Boichat Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../boot/dts/mediatek/mt8183-kukui-kakadu.dts | 13 + .../dts/mediatek/mt8183-kukui-kakadu.dtsi

[PATCH 4/4] arm64: dts: mt8183: Add kukui kodama board

2021-03-31 Thread Hsin-Yi Wang
kodama is also known as Lenovo 10e Chromebook Tablet. Signed-off-by: Hsin-Yi Wang --- There are 4 skus in kodama: - OV5695 camera + AUO panel - GC5035 camera + AUO panel - OV5695 camera + BOE panel - GC5035 camera + BOE panel The camera node are not yet ready to sent, so there's only panel

[PATCH 2/4] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-kodama

2021-03-31 Thread Hsin-Yi Wang
Kodama is also known as Lenovo 10e Chromebook Tablet. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 1/4] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-kakadu

2021-03-31 Thread Hsin-Yi Wang
Kakadu is also known as ASUS Chromebook Detachable CM3. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH v3] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-30 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang Tested-by: Enric Balletbo i Serra --- v2->v3: Fix comments. v1->v2: Move mt8183 routing table to mt8183-mmsys.h This patch is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git

Re: [PATCH] drm/mediatek: Add missing MODULE_DEVICE_TABLE()

2021-03-30 Thread Hsin-Yi Wang
rates correct modalias for automatic loading > > when these drivers are compiled as an external module. > > > > Signed-off-by: Boris Brezillon > > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > > A gentle ping for someone to review this pat

[PATCH v2] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-30 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang Tested-by: Enric Balletbo i Serra --- v1->v2: Move mt8183 routing table to mt8183-mmsys.h This patch is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git v5.12-next/soc --- driv

[PATCH v2] arm64: dts: mt8183: Add gce client reg for display subcomponents

2021-03-24 Thread Hsin-Yi Wang
Add mediatek,gce-client-reg for mmsys, ccorr, aal, gamma, dither. Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Hsin-Yi Wang Tested-by: Enric Balletbo i Serra --- v1->v2: Add for mmsys. --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 7 ++

[PATCH] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-22 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang --- This patch is based on series ("soc: mediatek: Prepare MMSYS for DDP routing using tables")[1] and tested with mt8183 krand and mt8183 juniper device. The register value is referenced from [2].

Re: [v7,1/3] arm64: dts: mt8183: add thermal zone node

2021-03-22 Thread Hsin-Yi Wang
f-by: Matthias Kaehlcke > Signed-off-by: Michael Kao Tested-by: Hsin-Yi Wang Tested this patch on mt8183 devices. > --- > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 85 > 1 file changed, 85 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt

[PATCH v4 4/4] arm64: dts: mt8183: Add kukui-jacuzzi-juniper board

2021-03-18 Thread Hsin-Yi Wang
Juniper is known as Acer Chromebook Spin 311 (CP311-3H). Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mt8183-kukui-jacuzzi-juniper-sku16.dts| 13 + .../mt8183-kukui-jacuzzi-juniper.dtsi | 27 +++ 3 files changed

[PATCH v4 3/4] arm64: dts: mt8183: Add kukui-jacuzzi-damu board

2021-03-18 Thread Hsin-Yi Wang
Damu is known as ASUS Chromebook Flip CM3. Signed-off-by: Hsin-Yi Wang --- v3->v4: none v2->v3: remove unused nodes v1->v2: fix pp3300_panel regulator property --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-damu.dts| 31 ++ .../dts

[PATCH v4 2/4] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-juniper

2021-03-18 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-juniper board also known as Acer Chromebook Spin 311, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml

[PATCH v4 1/4] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-damu

2021-03-18 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-damu board also known as ASUS Chromebook Flip CM3, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH v3 2/2] arm64: dts: mt8183: Add kukui-jacuzzi-damu board

2021-03-17 Thread Hsin-Yi Wang
Damu is known as ASUS Chromebook Flip CM3. Signed-off-by: Hsin-Yi Wang --- v2->v3: remove unused nodes v1->v2: fix pp3300_panel regulator property --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-damu.dts| 31 ++ .../dts/mediatek/mt8183

[PATCH v3 1/2] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-damu

2021-03-17 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-damu board also known as ASUS Chromebook Flip CM3, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

Re: [PATCH v4 2/2] drm/bridge: anx7625: disable regulators when power off

2021-03-17 Thread Hsin-Yi Wang
On Wed, Feb 24, 2021 at 2:14 PM Hsin-Yi Wang wrote: > > When suspending the driver, anx7625_power_standby() will be called to > turn off reset-gpios and enable-gpios. However, power supplies are not > disabled. To save power, the driver can get the power supply regulators > an

[PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-damu

2021-03-15 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-damu board also known as ASUS Chromebook Flip CM3, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b

[PATCH v2 2/2] arm64: dts: mt8183: Add kukui-jacuzzi-damu board

2021-03-15 Thread Hsin-Yi Wang
Damu is known as ASUS Chromebook Flip CM3. Signed-off-by: Hsin-Yi Wang --- v1->v2: fix pp3300_panel regulator property --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-damu.dts| 35 ++ .../dts/mediatek/mt8183-kukui-jacuzzi.dtsi|

[PATCH 2/2] arm64: dts: mt8183: Add kukui-jacuzzi-damu board

2021-03-15 Thread Hsin-Yi Wang
Damu is known as ASUS Chromebook Flip CM3. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-damu.dts| 35 ++ .../dts/mediatek/mt8183-kukui-jacuzzi.dtsi| 481 ++ 3 files changed, 517 insertions

[PATCH 1/2] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-damu

2021-03-15 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-damu board also known as ASUS Chromebook Flip CM3, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b

Re: [PATCH v16 2/2] i2c: core: support bus regulator controlling in adapter

2021-03-09 Thread Hsin-Yi Wang
On Tue, Mar 9, 2021 at 1:17 AM Mark Brown wrote: > > On Mon, Mar 08, 2021 at 12:36:07PM +0800, Hsin-Yi Wang wrote: > > > + adap->bus_regulator = devm_regulator_get(>dev, "bus"); > > + if (IS_ERR(adap->bus_regulator)) { > > +

[PATCH v17 3/3] i2c: mediatek: mt65xx: add optional vbus-supply

2021-03-09 Thread Hsin-Yi Wang
Add vbus-supply which provides power to SCL/SDA. Pass this regulator into core so it can be turned on/off for low power mode support. Signed-off-by: Hsin-Yi Wang --- drivers/i2c/busses/i2c-mt65xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b

[PATCH v17 1/3] i2c: core: support bus regulator controlling in adapter

2021-03-09 Thread Hsin-Yi Wang
Signed-off-by: Hsin-Yi Wang --- drivers/i2c/i2c-core-base.c | 88 + include/linux/i2c.h | 2 + 2 files changed, 90 insertions(+) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 63ebf722a424..436e498528a8 100644

[PATCH v17 2/3] dt-binding: i2c: mt65xx: add vbus-supply property

2021-03-09 Thread Hsin-Yi Wang
Add vbus-supply property for mt65xx. The regulator can be passed into core and turned off during suspend/sleep to reduce power consumption. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v17 0/3] add power control in i2c

2021-03-09 Thread Hsin-Yi Wang
v10: - fixup some worng codes Changes since v9: - fixup build error - remove redundant code Changes since v8: - fixup some wrong code - remove redundant message [... snip ...] Bibby Hsieh (1): i2c: core: support bus regulator controlling in adapter Hsin-Yi Wang (2): dt

Re: [PATCH] i2c: core: support bus regulator controlling in adapter

2021-03-07 Thread Hsin-Yi Wang
On Fri, Mar 5, 2021 at 6:20 PM Hsin-Yi Wang wrote: > > From: Bibby Hsieh > > Although in the most platforms, the bus power of i2c > are alway on, some platforms disable the i2c bus power > in order to meet low power request. > > We get and enable bulk regulator in i2c ad

[PATCH v16 2/2] i2c: core: support bus regulator controlling in adapter

2021-03-07 Thread Hsin-Yi Wang
-by: Hsin-Yi Wang --- drivers/i2c/i2c-core-base.c | 93 + include/linux/i2c.h | 2 + 2 files changed, 95 insertions(+) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 63ebf722a424..667f4a4de7cc 100644 --- a/drivers/i2c/i2c-core

[PATCH v16 1/2] dt-binding: i2c: add bus-supply property

2021-03-07 Thread Hsin-Yi Wang
From: Bibby Hsieh In some platforms, they disable the power-supply of i2c due to power consumption reduction. This patch add bus-supply property. Signed-off-by: Bibby Hsieh Acked-by: Rob Herring Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/i2c/i2c.txt | 3 +++ 1 file

[PATCH v16 0/2] add power control in i2c

2021-03-07 Thread Hsin-Yi Wang
Although in the most platforms, the power of eeprom and i2c are alway on, some platforms disable the eeprom and i2c power in order to meet low power request. This patch add the pm_runtime ops to control power to support all platforms. Changes since v15: - Squash the fix[1] for v15. [1]

[PATCH] i2c: core: support bus regulator controlling in adapter

2021-03-05 Thread Hsin-Yi Wang
-by: Hsin-Yi Wang --- This patch is squashed from following patch and tested on mt8183 device which has eeprom at24 client under i2c, so the fix in [2] is also verified. [1] https://patchwork.ozlabs.org/project/linux-i2c/cover/20200519072729.7268-1-bibby.hs...@mediatek.com/ [2] https

Re: [PATCH 3/4] soc: mediatek: pm-domains: Add a power domain names for mt8192

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8192 SoC. > > Fixes: a49d5e7a89d6 ("soc: mediatek: pm-domains: Add support for mt8192") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > -

Re: [PATCH 4/4] soc: mediatek: pm-domains: Add a power domain names for mt8167

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8167 SoC. > > Fixes: 207f13b419a6 ("soc: mediatek: pm-domains: Add support for mt8167") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > -

Re: [PATCH 2/4] soc: mediatek: pm-domains: Add a power domain names for mt8183

2021-03-02 Thread Hsin-Yi Wang
1 ("soc: mediatek: pm-domains: Add support for mt8183") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > > drivers/soc/mediatek/mt8183-pm-domains.h | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/drivers/soc/mediatek/mt8

Re: [PATCH 1/4] soc: mediatek: pm-domains: Add a meaningful power domain name

2021-03-02 Thread Hsin-Yi Wang
("soc: mediatek: Add MediaTek SCPSYS power domains") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > > drivers/soc/mediatek/mt8173-pm-domains.h | 10 ++ > drivers/soc/mediatek/mtk-pm-domains.c| 6 +- > drivers/soc/mediat

Re: [PATCH v4 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-02-24 Thread Hsin-Yi Wang
On Wed, Feb 24, 2021 at 5:55 PM Hsin-Yi Wang wrote: > > On Thu, Jan 28, 2021 at 11:10 AM Xin Ji wrote: > > > > Add MIPI rx DPI input support > > > > Reported-by: kernel test robot > > Signed-off-by: Xin Ji > > --- > >

Re: [PATCH v4 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-02-24 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 11:10 AM Xin Ji wrote: > > Add MIPI rx DPI input support > > Reported-by: kernel test robot > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 326 > -- > drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +- > 2 files

[PATCH v4 2/2] drm/bridge: anx7625: disable regulators when power off

2021-02-23 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang Reviewed

[PATCH v4 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-02-23 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring Reviewed-by: Robert Foss --- v3->v4: rebase to drm-misc/for-linux-next --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --

[RESEND v3 2/2] drm/bridge: anx7625: disable regulators when power off

2021-02-19 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang

[RESEND v3 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-02-19 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b

[PATCH v3 3/3] mailbox: cmdq: add mt8192 support

2021-02-04 Thread Hsin-Yi Wang
From: Yongqiang Niu add mt8192 support Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/mailbox/mtk-cmdq-mailbox.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 5665b6ea8119f

[PATCH v3 2/3] arm64: dts: mt8192: add gce node

2021-02-04 Thread Hsin-Yi Wang
From: Yongqiang Niu add gce node for mt8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192

[PATCH v3 1/3] dt-binding: gce: add gce header file for mt8192

2021-02-04 Thread Hsin-Yi Wang
From: Yongqiang Niu Add documentation for the mt8192 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8192. Signed-off-by: Yongqiang Niu Reviewed-by: Rob Herring Signed-off-by: Hsin-Yi Wang --- .../devicetree/bindings/mailbox/mtk-gce.txt | 7

[PATCH v3 0/3] support gce on mt8192 platform

2021-02-04 Thread Hsin-Yi Wang
Change since v2: - add controy_by_sw for mt8192 Change since v1: - move out shift jump patch - remove useless patch Yongqiang Niu (3): dt-binding: gce: add gce header file for mt8192 arm64: dts: mt8192: add gce node mailbox: cmdq: add mt8192 support

[PATCH v6 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-04 Thread Hsin-Yi Wang
s. Signed-off-by: Saravana Kannan Acked-by: MyungJoo Ham Acked-by: Chanwoo Choi Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/governor_passive.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/devfreq/governor_passive.c b/drive

[PATCH v6 1/3] OPP: Add function to look up required OPP's for a given OPP

2021-02-04 Thread Hsin-Yi Wang
From: Saravana Kannan Add a function that allows looking up required OPPs given a source OPP table, destination OPP table and the source OPP. Signed-off-by: Saravana Kannan Signed-off-by: Hsin-Yi Wang --- drivers/opp/core.c | 59 ++ include/linux

[PATCH v6 2/3] PM / devfreq: Cache OPP table reference in devfreq

2021-02-04 Thread Hsin-Yi Wang
From: Saravana Kannan The OPP table can be used often in devfreq. Trying to get it each time can be expensive, so cache it in the devfreq struct. Signed-off-by: Saravana Kannan Reviewed-by: Chanwoo Choi Acked-by: MyungJoo Ham Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/devfreq.c | 6

[PATCH v6 0/3] Add required-opps support to devfreq passive gov

2021-02-04 Thread Hsin-Yi Wang
The devfreq passive governor scales the frequency of a "child" device based on the current frequency of a "parent" device (not parent/child in the sense of device hierarchy). As of today, the passive governor requires one of the following to work correctly: 1. The parent and child device have the

Re: [PATCH v5 0/3] Add required-opps support to devfreq passive gov

2021-02-04 Thread Hsin-Yi Wang
On Thu, Feb 4, 2021 at 1:41 PM Viresh Kumar wrote: > > On 03-02-21, 17:23, Hsin-Yi Wang wrote: > > The devfreq passive governor scales the frequency of a "child" device based > > on the current frequency of a "parent" device (not parent/child in the >

Re: [PATCH v5 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-03 Thread Hsin-Yi Wang
On Thu, Feb 4, 2021 at 10:49 AM Viresh Kumar wrote: > > On 03-02-21, 17:24, Hsin-Yi Wang wrote: > > From: Saravana Kannan > > > > Look at the required OPPs of the "parent" device to determine the OPP that > > is required from the slave device managed

[PATCH v5 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-03 Thread Hsin-Yi Wang
s. Signed-off-by: Saravana Kannan Acked-by: MyungJoo Ham Acked-by: Chanwoo Choi Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/governor_passive.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers/devfreq/governor_passive.c b/drive

[PATCH v5 2/3] PM / devfreq: Cache OPP table reference in devfreq

2021-02-03 Thread Hsin-Yi Wang
From: Saravana Kannan The OPP table can be used often in devfreq. Trying to get it each time can be expensive, so cache it in the devfreq struct. Signed-off-by: Saravana Kannan Reviewed-by: Chanwoo Choi Acked-by: MyungJoo Ham Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/devfreq.c | 6

[PATCH v5 1/3] OPP: Add function to look up required OPP's for a given OPP

2021-02-03 Thread Hsin-Yi Wang
From: Saravana Kannan Add a function that allows looking up required OPPs given a source OPP table, destination OPP table and the source OPP. Signed-off-by: Saravana Kannan Signed-off-by: Hsin-Yi Wang --- drivers/opp/core.c | 58 ++ include/linux

[PATCH v5 0/3] Add required-opps support to devfreq passive gov

2021-02-03 Thread Hsin-Yi Wang
The devfreq passive governor scales the frequency of a "child" device based on the current frequency of a "parent" device (not parent/child in the sense of device hierarchy). As of today, the passive governor requires one of the following to work correctly: 1. The parent and child device have the

Re: [v6,1/3] arm64: dts: mt8183: add thermal zone node

2021-02-02 Thread Hsin-Yi Wang
On Fri, Jan 29, 2021 at 6:10 PM Michael Kao wrote: > > From: "michael.kao" > > Add thermal zone node to Mediatek MT8183 dts file. > > Evaluate the thermal zone every 500ms while not cooling > and every 100ms when passive cooling is performed. > > Signed-off-by: Matthias Kaehlcke >

  1   2   3   4   >