[PATCH 3/3] arm64: dts: mt8183-kukui: fix dtbs_check warnings

2021-04-14 Thread matthias . bgg
From: Matthias Brugger The dsi children don't have any reg property, so we don't need address and size cells. This makes dtbs_check happy. CC: Hsin-Yi Wang CC: Enric Balletbo i Serra CC: Nicolas Boichat Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 3

[PATCH 2/3] arm64: dts: mt8183: fix dtbs_check warning

2021-04-14 Thread matthias . bgg
From: Matthias Brugger Fix unit names to make dtbs_check happy. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt818

[PATCH 1/3] arm64: dts: mt8183-pumpkin: fix dtbs_check warning

2021-04-14 Thread matthias . bgg
From: Matthias Brugger Fix unit names to make dtbs_check happy. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/me

[PATCH 7/7] arm64: dts: mt8173: Drop compatible for mt6397

2021-03-12 Thread matthias . bgg
From: Matthias Brugger The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT. Signed-off-by: Matthias Brugger Series-to: lee.jo...@linaro.org Series-to: robh...@kernel.org Series-to: matthias@gmail.com Series-to: lgirdw...@gmail.com Series-to: bro

[PATCH 5/7] arm: dts: mt6323: Drop OF compatible

2021-03-12 Thread matthias . bgg
From: Matthias Brugger The regulator framework does not need compatible, it's acutall superfluous. Drop it from the DT. Signed-off-by: Matthias Brugger --- arch/arm/boot/dts/mt6323.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mt6323.dtsi b/arch/

[PATCH 4/7] regulator: mediatek: Add regulators_node to description

2021-03-12 Thread matthias . bgg
From: Matthias Brugger Define the regulator node under which the regulators are described. Signed-off-by: Matthias Brugger --- drivers/regulator/mt6323-regulator.c | 3 +++ drivers/regulator/mt6358-regulator.c | 4 drivers/regulator/mt6397-regulator.c | 10 +++--- 3 files changed, 1

[PATCH 6/7] arm64: dts: mt6358: Drop compatible for regulators

2021-03-12 Thread matthias . bgg
From: Matthias Brugger The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt6358.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/media

[PATCH 2/7] dt-bindigns: regulator: mtk: Drop unneeded compatible

2021-03-12 Thread matthias . bgg
From: Matthias Brugger The regulator does not need to have a device tree compatible, if it's part of an MFD. We leave the node name to the SoC specific name (e.g. mt6323regulator) to allow older kernels to work with the new binding. Signed-off-by: Matthias Brugger --- .../bindings/regulator/mt

[PATCH 3/7] mfd: mt6397: Drop of_compatible for regulator

2021-03-12 Thread matthias . bgg
From: Matthias Brugger For regulators a compatible string is superfluous. Drop the string. Signed-off-by: Matthias Brugger --- drivers/mfd/mt6397-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 7518d74c3b4c3..13037f4bc54e

[PATCH 1/7] dt-bindings: mfd: mediatek: Fix regulator description

2021-03-12 Thread matthias . bgg
From: Matthias Brugger Having a separate compatible for the regulator node is redundant and not needed. Delete the corresponding requierement. Signed-off-by: Matthias Brugger --- Documentation/devicetree/bindings/mfd/mt6397.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentati

[PATCH] arm64: dts: mt8183: Fix GCE include path

2021-01-31 Thread matthias . bgg
From: Matthias Brugger The header file of GCE should be for MT8183 SoC instead of MT8173. Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Reported-by: CK Hu Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insert

[PATCH v3 1/2] regulator: mt6358: Add OF match table

2021-01-12 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH v3 2/2] regulator: mt6323: Add OF match table

2021-01-12 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH] mfd: mt6360: Fix MFD cell names and compatibles

2021-01-11 Thread matthias . bgg
From: Matthias Brugger MFD cell names and compatibles use '_' instead of '-', which is common practice for names and the standard for DT compatibles. This will also fix the probing for the drivers already implemented (mt6360-adc and mt6360-tcpc). Fixes: 7edd363421da ("mfd: Add support for PMIC M

[PATCH v2 3/3] regulator: mt6323: Add OF match table

2021-01-09 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH v2 2/3] regulator: mt6358: Add OF match table

2021-01-09 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH v2 1/3] regulator: mt6360: Add OF match table

2021-01-09 Thread matthias . bgg
From: Matthias Brugger Binding documentation mentions that a compatible is required for the MT6360 device node, but the driver doesn't provide a OF match table. Fixes: d321571d5e4c ("regulator: mt6360: Add support for MT6360 regulator") Signed-off-by: Matthias Brugger --- Changes in v2: - che

[PATCH 3/3] regulator: mt6323: Add OF match table

2021-01-08 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH 2/3] regulator: mt6358: Add OF match table

2021-01-08 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH 1/3] regulator: mt6360: Add OF match table

2021-01-08 Thread matthias . bgg
From: Matthias Brugger Binding documentation mentions that a compatible is required for the MT6360 device node, but the driver doesn't provide a OF match table. Signed-off-by: Matthias Brugger --- drivers/regulator/mt6360-regulator.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

[PATCH v2 1/2] hwrng: iproc-rng200: Fix disable of the block.

2020-12-18 Thread matthias . bgg
From: Matthias Brugger When trying to disable the block we bitwise or the control register with value zero. This is confusing as using bitwise or with value zero doesn't have any effect at all. Drop this as we already set the enable bit to zero by appling inverted RNG_RBGEN_MASK. Signed-off-by:

[PATCH v2 2/2] hwrng: iproc-rng200: Move enable/disable in separate function

2020-12-18 Thread matthias . bgg
From: Matthias Brugger We are calling the same code for enable and disable the block in various parts of the driver. Put that code into a new function to reduce code duplication. Signed-off-by: Matthias Brugger Acked-by: Florian Fainelli --- Changes in v2: - rename function to iproc_rng200_e

[PATCH 1/2] hwrng: iproc-rng200: Fix disable of the block.

2020-12-14 Thread matthias . bgg
From: Matthias Brugger When trying to disable the block we bitwise or the control register with value zero. This will leave the block always turned on. Fix this by setting the corresponding bit to zero. Fixes: c83d45d5685f ("hwrng: iproc-rng200 - Add Broadcom IPROC RNG driver") Signed-off-by: Ma

[PATCH 2/2] hwrng: iproc-rng200: Move enable/disable in separate function

2020-12-14 Thread matthias . bgg
From: Matthias Brugger We are calling the same code for enable and disable the block in various parts of the driver. Put that code into a new function to reduce code duplication. Signed-off-by: Matthias Brugger --- drivers/char/hw_random/iproc-rng200.c | 37 --- 1 fil

[PATCH v3] brcmfmac: expose firmware config files through modinfo

2020-11-24 Thread matthias . bgg
From: Matthias Brugger Apart from a firmware binary the chip needs a config file used by the FW. Add the config files to modinfo so that they can be read by userspace. Signed-off-by: Matthias Brugger --- Changes in v3: Use only two more generic wildcards. Changes in v2: In comparison to firs

[PATCH v2] brcmfmac: expose firmware config files through modinfo

2020-11-20 Thread matthias . bgg
From: Matthias Brugger Apart from a firmware binary the chip needs a config file used by the FW. Add the config files to modinfo so that they can be read by userspace. Signed-off-by: Matthias Brugger --- Changes in v2: In comparison to first version [0] we use wildcards to enumerate the firmw

[PATCH] MAINTAINERS: change mediatek wiki page

2020-10-20 Thread matthias . bgg
From: Matthias Brugger The old wiki page unfortunately got lost by server crash. The new wiki can be found on the kernel.org infrastructure Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 14b8ec

[v2] i2c: mediatek: Fix i2c_spec_values description

2020-08-07 Thread matthias . bgg
From: Matthias Brugger The struct i2c_spec_values have it's members documented but is missing the starting '@', which leads to warings like: drivers/i2c/busses/i2c-mt65xx.c:267: warning: Function parameter or member 'min_low_ns' not described in 'i2c_spec_values' We also delete min_high_ns mem

[PATCH] brcmfmac: expose firmware config files through modinfo

2020-07-01 Thread matthias . bgg
From: Matthias Brugger Apart from a firmware binary the chip needs a config file used by the FW. Add the config files to modinfo so that they can be read by userspace. Signed-off-by: Matthias Brugger --- .../wireless/broadcom/brcm80211/brcmfmac/sdio.c | 16 1 file changed,

[PATCH v3] brcmfmac: Transform compatible string for FW loading

2020-07-01 Thread matthias . bgg
From: Matthias Brugger The driver relies on the compatible string from DT to determine which FW configuration file it should load. The DTS spec allows for '/' as part of the compatible string. We change this to '-' so that we will still be able to load the config file, even when the compatible ha

[PATCH v2] brcmfmac: Transform compatible string for FW loading

2020-06-29 Thread matthias . bgg
From: Matthias Brugger The driver relies on the compatible string from DT to determine which FW configuration file it should load. The DTS spec allows for '/' as part of the compatible string. We change this to '-' so that we will still be able to load the config file, even when the compatible ha

[PATCH] brcmfmac: Transform compatible string for FW loading

2020-06-25 Thread matthias . bgg
From: Matthias Brugger The driver relies on the compatible string from DT to determine which FW configuration file it should load. The DTS spec allows for '/' as part of the compatible string. We change this to '-' so that we will still be able to load the config file, even when the compatible ha

[PATCH] mfd: mt6360: Add name field to the driver

2020-06-08 Thread matthias . bgg
From: Matthias Brugger The driver does not have a name, this will lead to a NULL pointer deref when we try to register the driver to a bus. Fixes: 7edd363421da ("mfd: Add support for PMIC MT6360") Reported-by: kernel test robot Signed-off-by: Matthias Brugger --- drivers/mfd/mt6360-core.c | 1

[PATCH 1/2] drivers: base: Warn if driver name is not present

2020-06-08 Thread matthias . bgg
From: Matthias Brugger If we pass a driver without a name, we end up in a NULL pointer derefernce. Check for the name before trying to register the driver. As we don't have a driver name to point to in the error message, we dump the call stack to make it easier to detect the buggy driver. Report

[PATCH 2/2] drivers: base: Convert to printk alias functions

2020-06-08 Thread matthias . bgg
From: Matthias Brugger The file mixes printk calls together with calls to pr_*(). Covert to printk alias functions to unify the code. Signed-off-by: Matthias Brugger --- drivers/base/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/driver.c b/driver

[PATCH] dt-bindings: dma: uart: mtk: fix example

2020-05-23 Thread matthias . bgg
From: Matthias Brugger The binding example is missing the fallback compatible. This is needed as the driver only matches against mt6577. Signed-off-by: Matthias Brugger --- Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[PATCH 3/4] clk/soc: mediatek: mt6779: Bind clock driver from platform device

2020-05-18 Thread matthias . bgg
From: Matthias Brugger The mmsys driver is now the top level entry point for the multimedia system (mmsys), we bind the clock driver by creating a platform device. We also bind the MediaTek DRM driver which is not yet implement and therefor will errror out for now. Signed-off-by: Matthias Brugge

[PATCH 4/4] arm64: dts: mt6797: Fix mmsys node name

2020-05-18 Thread matthias . bgg
From: Matthias Brugger Node names are supposed to match the class of the device. The mmsys node is a syscon as it provides more then just a clock controller. Update the name. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt6797.dtsi | 2 +- 1 file changed, 1 insertion(+),

[PATCH 2/4] clk/soc: mediatek: mt6797: Bind clock driver from platform device

2020-05-18 Thread matthias . bgg
From: Matthias Brugger The mmsys driver is now the top level entry point for the multimedia system (mmsys), we bind the clock driver by creating a platform device. We also bind the MediaTek DRM driver which is not yet implement and therefor will errror out for now. Signed-off-by: Matthias Brugge

[PATCH 1/4] clk/soc: mediatek: mt8183: Bind clock driver from platform device

2020-05-18 Thread matthias . bgg
From: Matthias Brugger The mmsys driver is now the top level entry point for the multimedia system (mmsys), we bind the clock driver by creating a platform device. We also bind the MediaTek DRM driver which is not yet implement and therefor will errror out for now. Signed-off-by: Matthias Brugge

[PATCH] drm/mediatek: Delete not used of_device_get_match_data

2020-05-18 Thread matthias . bgg
From: Matthias Brugger The driver will be loaded by via a platform device. So we will need to get the device_node from the parent device. Depending on this we will set the driver data. As all this is done later already, just delete the call to of_device_get_match_data. Signed-off-by: Matthias Br

[PATCH v1 1/3] dt-bindings: net: bcmgenet add property for max DMA burst size

2019-10-11 Thread matthias . bgg
From: Matthias Brugger The maximal usable DMA burst size can vary in different SoCs. Add a optional property to configure the DMA channels properly. Signed-off-by: Matthias Brugger --- Documentation/devicetree/bindings/net/brcm,bcmgenet.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v1 3/3] ARM: dts: bcm2711: Enable GENET support for the RPi4

2019-10-11 Thread matthias . bgg
From: Matthias Brugger Enable Gigabit Ethernet support on the Raspberry Pi 4 Model B. Signed-off-by: Matthias Brugger --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 22 ++ arch/arm/boot/dts/bcm2711.dtsi| 18 ++ 2 files changed, 40 insertions(+) diff

[PATCH v1 0/3] This series adds ethernet support for RPi4.

2019-10-11 Thread matthias . bgg
From: Matthias Brugger Raspberry Pi 4 uses the broadcom genet chip in version five. This chip has a dma controller integrated. Up to now the maximal burst size was hard-coded to 0x10. But it turns out that Raspberry Pi 4 does only work with the smaller maximal burst size of 0x8. This series adds

[PATCH v1 2/3] net: bcmgenet: use optional max DMA burst size property

2019-10-11 Thread matthias . bgg
From: Matthias Brugger Depending on the HW, the maximal usable DMA burst size can vary. If not set accordingly a timeout in the transmit queue happens and no package can be sent. Read to optional max-burst-sz property, if not present, fallback to the standard value. Signed-off-by: Matthias Brugg

[PATCH v4 3/3] clk: mediatek: Mark bus and DRAM related clocks as critical

2019-02-14 Thread matthias . bgg
From: Jasper Mattsson Currently, DRAM-related clocks are not marked with CLK_IS_CRITICAL for MT6797. This causes memory corruption when the system is booted without clk_ignore_unused. This patch marks MUX ddrphycfg_sel as well as gates infra_dramc_f26m and infra_dramc_b_f26m as CLK_IS_CRITICAL.

[PATCH v4 1/3] clk: mediatek: Add MUX_FLAGS macro

2019-02-14 Thread matthias . bgg
From: Jasper Mattsson This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL. Signed-off-by: Jasper Mattsson Acked-by: Mars Cheng Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mtk.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH v4 2/3] clk: mediatek: Add flags to mtk_gate

2019-02-14 Thread matthias . bgg
From: Jasper Mattsson This is required to mark gates as CLK_IS_CRITICAL. Signed-off-by: Jasper Mattsson Acked-by: Mars Cheng Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-gate.c | 4 +++- drivers/clk/mediatek/clk-gate.h | 3 ++- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/

[PATCH v4 0/3] Mark clocks as critical for MT6797

2019-02-14 Thread matthias . bgg
From: Matthias Brugger Jasper send this series some month ago. As there was no reaction from his side, I'll do a friendly take-over. I tested the patches on my Helios X20 boards and they fix the issue. I didn't add a Tested-by tag as I added my Signed-off-by. Changes since v3: - add comments exp

[PATCH v3 3/3] clk: mediatek: Mark bus and DRAM related clocks as critical

2019-01-08 Thread matthias . bgg
From: Jasper Mattsson Currently, DRAM-related clocks are not marked with CLK_IS_CRITICAL for MT6797. This causes memory corruption when the system is booted without clk_ignore_unused. This patch marks MUX ddrphycfg_sel as well as gates infra_dramc_f26m and infra_dramc_b_f26m as CLK_IS_CRITICAL.

[PATCH v3 2/3] clk: mediatek: Add flags to mtk_gate

2019-01-08 Thread matthias . bgg
From: Jasper Mattsson This is required to mark gates as CLK_IS_CRITICAL. Signed-off-by: Jasper Mattsson Acked-by: Mars Cheng Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-gate.c | 4 +++- drivers/clk/mediatek/clk-gate.h | 3 ++- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/

[PATCH v3 0/3] Mark clocks as critical for MT6797

2019-01-08 Thread matthias . bgg
From: Matthias Brugger Jasper send this series some month ago. As there was no reaction from his side, I'll do a friendly take-over. I tested the patches on my Helios X20 boards and they fix the issue. I didn't add a Tested-by tag as I added my Signed-off-by. Changes since v2 (https://patchwork.

[PATCH v3 1/3] clk: mediatek: Add MUX_FLAGS macro

2019-01-08 Thread matthias . bgg
From: Jasper Mattsson This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL. Signed-off-by: Jasper Mattsson Acked-by: Mars Cheng Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mtk.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH] clk: mediatek: Mark bus and DRAM related clocks as critical

2018-12-19 Thread matthias . bgg
From: Jasper Mattsson Currently, DRAM-related clocks are not marked with CLK_IS_CRITICAL for MT6797. This causes memory corruption when the system is booted without clk_ignore_unused. This patch marks MUX ddrphycfg_sel as well as gates infra_dramc_f26m and infra_dramc_b_f26m as CLK_IS_CRITICAL.

[PATCH] arm64: dts: Add uart for mt6797 EVB

2018-11-16 Thread matthias . bgg
From: Matthias Brugger This patch adds the pinctrl configuration for the mt6797 EVB. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt6797-evb.dts | 2 ++ arch/arm64/boot/dts/mediatek/mt6797.dtsi| 7 +++ 2 files changed, 9 insertions(+) diff --git a/arch/arm64/boot/d

[PATCH v2 3/3] clk: mediatek: Mark bus and DRAM related clocks as critical

2018-11-16 Thread matthias . bgg
From: Jasper Mattsson This marks MUXes axi_sel and ddrphycfg_sel as well as gates infra_dramc_f26m and infra_dramc_b_f26m as with CLK_IS_CRITICAL. Fixes: 96596aa06628 ("clk: mediatek: add clk support for MT6797") Signed-off-by: Jasper Mattsson Signed-off-by: Matthias Brugger --- drivers/clk/m

[PATCH v2 1/3] clk: mediatek: Add MUX_FLAGS macro

2018-11-16 Thread matthias . bgg
From: Jasper Mattsson This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL. Fixes: 96596aa06628 ("clk: mediatek: add clk support for MT6797") Signed-off-by: Jasper Mattsson Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mtk.h | 8 ++-- 1 file changed, 6 inser

[PATCH v2 2/3] clk: mediatek: Add flags to mtk_gate

2018-11-16 Thread matthias . bgg
From: Jasper Mattsson This is required to mark gates as CLK_IS_CRITICAL. Fixes: 96596aa06628 ("clk: mediatek: add clk support for MT6797") Signed-off-by: Jasper Mattsson Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-gate.c | 4 +++- drivers/clk/mediatek/clk-gate.h | 3 ++- driv

[PATCH v2 0/3] Mark clocks as critical for MT6797

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Jasper send this series some month ago. As there was no reaction from his side, I'll do a friendly take-over. I tested the patches on my Helios X20 boards and they fix the issue. I didn't add a Tested-by tag as I added my Signed-off-by. Changes since v1: - add a fixes tag.

[PATCH v5 12/12] clk: mediatek: mt6797: Probe with new compatible

2018-11-16 Thread matthias . bgg
From: Matthias Brugger The clock node is now a child of the mmsys node. Update the driver to support this and thenew compatible in the driver. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6797-mm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/d

[PATCH] thermal: bcm2835: enable hwmon explicitly

2018-10-21 Thread matthias . bgg
From: Matthias Brugger By defaul of-based thermal driver do not enable hwmon. This patch does this explicitly, so that the temperature can be read through the common hwmon sysfs. Signed-off-by: Matthias Brugger --- drivers/thermal/broadcom/bcm2835_thermal.c | 11 +++ 1 file changed, 11

[PATCH] irqchip/gic-v3-its: Add early memory allocation errata

2018-09-12 Thread matthias . bgg
From: Matthias Brugger Some hardware does not implement two-level page tables so that the amount of contigious memory needed by the baser is bigger then the zone order. This is a known problem on Cavium Thunderx with 4K page size. We fix this by adding an errata which allocates the memory early

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 5/5] drm: mediatek: Omit warning on probe defers

2018-07-17 Thread matthias . bgg
From: Matthias Brugger It can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger Acked-by: CK Hu --- drivers/gpu/

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 1/5] drm/mediatek: Use regmap for register access

2018-07-17 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +-- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 38 ++

[v3 01/10] dt-bindings: mediatek: mmsys: Add support for mfd

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Add binding description for the mmsys mfd for some Mediatek devices. mmsys has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem. Signed-off-by: Matthias Br

[v3 08/10] clk: mediatek: mt8173-mm: switch to mfd device

2018-04-27 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 19 --- 1 file changed, 16 insertions(+), 3 deletion

[v3 04/10] drm/mediatek: mt2701: switch to mfd probing.

2018-04-27 Thread matthias . bgg
From: Matthias Brugger With the mtk-mmsys MFD device in place, we switch the probing for mt2701 from device-tree to mfd. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git

[v3 10/10] MAINTAINERS: update Mediatek Soc entry

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Mediatek SoCs include several soc specific drivers as well as a mfd device. Add these to the maintainers file. Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d5a621..74f7ea345096

[v3 03/10] mfd: mtk-mmsys: Add mmsys driver

2018-04-27 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds a MFD device to probe both drivers from the same device tree compatible. Signed-off-by: Matthias Brugger --- drivers/mfd/Kconfig | 9 ++ drivers/mfd/Makefile| 2 ++ drivers/mfd/mtk-mmsy

[v3 00/10] arm/arm64: mediatek: Fix mmsys device probing

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Changes since v2: - fix kconfig typo (shame on me) - delete __initconst from mm_clocks as converted to a platform driver Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - ad

[v3 06/10] mfd: mtk-mmsys: Add mt8173 nodes

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/mtk-mmsys.c b/drivers/mfd/mtk-mmsys.c index c802343fb1c6..5585a561a02f

[v3 07/10] drm/mediatek: Add mfd support for mt8173

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Use the MFD device for SoC mt8173. Probing via devicetree is no longer needed for any SoC, so delete it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 28 +++- 1 file changed, 7 insertions

[v3 09/10] drm: mediatek: Omit warning on probe defers

2018-04-27 Thread matthias . bgg
From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger --- d

[v3 05/10] clk: mediatek: mt2701-mm: switch to mfd device

2018-04-27 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) d

[v3 02/10] drm/mediatek: Use regmap for register access

2018-04-27 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++-- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 38 +

[v2 resend 04/10] drm/mediatek: mt2701: switch to mfd probing.

2018-04-24 Thread matthias . bgg
From: Matthias Brugger With the mtk-mmsys MFD device in place, we switch the probing for mt2701 from device-tree to mfd. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git

[v2 resend 09/10] drm: mediatek: Omit warning on probe defers

2018-04-24 Thread matthias . bgg
From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger --- d

[v2 resend 07/10] drm/mediatek: Add mfd support for mt8173

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Use the MFD device for SoC mt8173. Probing via devicetree is no longer needed for any SoC, so delete it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 28 +++- 1 file changed, 7 insertions

[v2 resend 08/10] clk: mediatek: mt8173-mm: switch to mfd device

2018-04-24 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(

[v2 resend 06/10] mfd: mtk-mmsys: Add mt8173 nodes

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/mtk-mmsys.c b/drivers/mfd/mtk-mmsys.c index c802343fb1c6..5585a561a02f

[v2 resend 10/10] MAINTAINERS: update Mediatek Soc entry

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Mediatek SoCs include several soc specific drivers as well as a mfd device. Add these to the maintainers file. Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d5a621..74f7ea345096

[v2 resend 03/10] mfd: mtk-mmsys: Add mmsys driver

2018-04-24 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds a MFD device to probe both drivers from the same device tree compatible. Signed-off-by: Matthias Brugger --- drivers/mfd/Kconfig | 9 ++ drivers/mfd/Makefile| 2 ++ drivers/mfd/mtk-mmsy

[v2 resend 00/10] arm/arm64: mediatek: Fix mmsys device probing

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - add Reviewed-by and Acked-by tags --- MMSYS in Mediatek SoCs has some registers to control clock gates (which is used in

[v2 resend 05/10] clk: mediatek: mt2701-mm: switch to mfd device

2018-04-24 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) d

[v2 resend 01/10] dt-bindings: mediatek: mmsys: Add support for mfd

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Add binding description for the mmsys mfd for some Mediatek devices. mmsys has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem. Signed-off-by: Matthias Br

[v2 resend 02/10] drm/mediatek: Use regmap for register access

2018-04-24 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++-- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 38 +

[v2 02/10] drm/mediatek: Use regmap for register access

2018-04-23 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++-- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 38 +

[v2 08/10] clk: mediatek: mt8173-mm: switch to mfd device

2018-04-23 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(

[v2 07/10] drm/mediatek: Add mfd support for mt8173

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Use the MFD device for SoC mt8173. Probing via devicetree is no longer needed for any SoC, so delete it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 28 +++- 1 file changed, 7 insertions

[v2 09/10] drm: mediatek: Omit warning on probe defers

2018-04-23 Thread matthias . bgg
From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger --- d

[v2 06/10] mfd: mtk-mmsys: Add mt8173 nodes

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/mtk-mmsys.c b/drivers/mfd/mtk-mmsys.c index c802343fb1c6..5585a561a02f

[v2 10/10] MAINTAINERS: update Mediatek Soc entry

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Mediatek SoCs include several soc specific drivers as well as a mfd device. Add these to the maintainers file. Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d5a621..74f7ea345096

[v2 05/10] clk: mediatek: mt2701-mm: switch to mfd device

2018-04-23 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) d

[v2 04/10] drm/mediatek: mt2701: switch to mfd probing.

2018-04-23 Thread matthias . bgg
From: Matthias Brugger With the mtk-mmsys MFD device in place, we switch the probing for mt2701 from device-tree to mfd. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git

[v2 01/10] dt-bindings: mediatek: mmsys: Add support for mfd

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Add binding description for the mmsys mfd for some Mediatek devices. mmsys has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem. Signed-off-by: Matthias Br

[v2 03/10] mfd: mtk-mmsys: Add mmsys driver

2018-04-23 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds a MFD device to probe both drivers from the same device tree compatible. Signed-off-by: Matthias Brugger --- drivers/mfd/Kconfig | 9 ++ drivers/mfd/Makefile| 2 ++ drivers/mfd/mtk-mmsy

[v2 00/10] arm/arm64: mediatek: Fix mmsys device probing

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - add Reviewed-by and Acked-by tags --- MMSYS in Mediatek SoCs has some registers to control clock gates (which is used in