[PATCH 3/3] ARM: dts: add dedicated dtsi for hi6421

2013-06-04 Thread Guodong Xu
aple: ... pmic: pmic@fcc0 { reg = <0xfcc0 0x0180>; /* 0x60 << 2 */ }; ... /include/ "hi6421.dtsi" ... Signed-off-by: Guodong Xu --- arch/arm/boot/dts/hi6421.dtsi | 489 + 1 files changed, 489

[PATCH 2/3] regulator: add driver for hi6421 voltage regulator

2013-06-04 Thread Guodong Xu
Add driver support for HiSilicon Hi6421 voltage regulators. Signed-off-by: Guodong Xu --- .../bindings/regulator/hi6421-regulator.txt| 82 +++ drivers/regulator/Kconfig |8 +- drivers/regulator/Makefile |2 +- drivers/regulator

[PATCH 1/3] mfd: Add hi6421 PMIC core driver

2013-06-04 Thread Guodong Xu
files. Memory-mapped I/O is the way to communicate with Hi6421. Signed-off-by: Guodong Xu Signed-off-by: Haojian Zhuang --- drivers/mfd/Kconfig | 11 +++ drivers/mfd/Makefile|1 + drivers/mfd/hi6421-pmic-core.c | 171 +++ include

[PATCH 0/3] regulator: add driver for Hi6421 PMIC SoC

2013-06-04 Thread Guodong Xu
is the way used by application processor to communicate with Hi6421. Guodong Xu (3): mfd: Add hi6421 PMIC core driver regulator: add driver for hi6421 voltage regulator ARM: dts: add dedicated dtsi for hi6421 .../bindings/regulator/hi6421-regulator.txt| 82 +++ arch/arm/boot/dts

[PATCH v2] Bluetooth: Add LED triggers for HCI frames tx and rx

2016-07-30 Thread Guodong Xu
on HiKey 96boards, which uses HiSilicon hi6220 SoC and TI WL1835 WiFi/BT combo chip. Signed-off-by: Guodong Xu --- include/net/bluetooth/hci_core.h | 1 + net/bluetooth/hci_core.c | 6 ++ net/bluetooth/leds.c | 17 + net/bluetooth/leds.h |

[PATCH] arm64: dts: hi6220: add sd-uhs- properties into dwmmc_1

2016-08-31 Thread Guodong Xu
d for Hisilicon Hikey") cc: Ulf Hansson cc: Jaehoon Chung cc: Jinguojun Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi in

Re: WARNING: CPU: 0 PID: 1271 at drivers/mmc/core/core.c:991 mmc_release_host+0xa0/0xa8

2016-08-08 Thread Guodong Xu
Hi, John Do you have a procedure to reproduce this? I set up my HiKey with v4.8-rc1 (official) and run for a while reading/writing SD card. But I didn't see that warning. -Guodong On 5 August 2016 at 12:52, John Stultz wrote: > Hey Ulf, > Since moving my HiKey branch to pre-v4.8-rc1 (linus's

Re: [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB

2016-08-23 Thread Guodong Xu
On 22 August 2016 at 17:06, Thierry Reding wrote: > On Fri, Aug 19, 2016 at 11:42:06PM +0800, Guodong Xu wrote: >> From: Xinliang Liu >> >> For debian linux, cma heap is used to allocate graphic buffers. >> The default size is 16 MB which is not enought. >&g

[PATCH v2 0/3] arm64: defconfig: enable various configs for HiKey

2016-08-23 Thread Guodong Xu
Enable various configs for HiKey, including: 1. HiSilicon Kirin DRM 2. ADV7533 3. HiSi Powerkey 4. Bluetooth v2: - Removed CMA size 128M change. Leave that in bootloader as suggested by Thierry Reding Guodong Xu (3): arm64: defconfig: Enable HiSilicon kirin drm, adv7533 for HiKey arm64

[PATCH v2 1/3] arm64: defconfig: Enable HiSilicon kirin drm, adv7533 for HiKey

2016-08-23 Thread Guodong Xu
Enable HiSilicon kirin drm driver for HiKey: CONFIG_DRM_HISI_KIRIN Enable adv7511/adv7533 for HiKey: CONFIG_DRM_I2C_ADV7511 Build these components as modules. Signed-off-by: Xinliang Liu Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v2 2/3] arm64: defconfig: enable CONFIG_INPUT_HISI_POWERKEY for HiKey

2016-08-23 Thread Guodong Xu
Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e27f086..b4f714c 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -186,6 +186,7

[PATCH v2 3/3] arm64: defconfig: enable bluetooth supports as modules

2016-08-23 Thread Guodong Xu
Enable the following items for bluetooth mouse and speaker which base on HCIUART. a) CONFIG_BT_HCIUART b) CONFIG_BT_HCIUART_LL c) CONFIG_BT_HIDP Enable bluetooth LED support. d) CONFIG_BT_LEDS Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 8 1 file changed, 8

[PATCH] arm64: dts: hikey: extend default cma size to 128MB

2016-08-24 Thread Guodong Xu
To support display in Debian on HiKey, cma heap is used to allocate graphic buffers. The default size of CMA is 16 MB which is not enought. Increase the default CMA size to 128 MB. cc: Rob Herring cc: Fathi Boudra cc: John Stultz cc: Xinliang Liu Signed-off-by: Guodong Xu --- arch/arm64

[PATCH v2 2/2] arm64: dts: hi6220: add resets property into dwmmc nodes

2016-08-24 Thread Guodong Xu
cc: Rob Herring Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index d0b887a..63608e9 100644 --- a/arch/arm64/boot/dts/hisilicon

[PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB

2016-08-24 Thread Guodong Xu
To support display in Debian on HiKey, cma heap is used to allocate graphic buffers. The default size of CMA is 16 MB which is not enough. Increase the default CMA size to 128 MB. cc: Fathi Boudra cc: John Stultz cc: Xinliang Liu Signed-off-by: Guodong Xu Acked-by: Rob Herring --- arch

Re: [PATCH] arm64: dts: hikey: extend default cma size to 128MB

2016-08-24 Thread Guodong Xu
On 24 August 2016 at 23:10, Rob Herring wrote: > On Wed, Aug 24, 2016 at 8:35 AM, Guodong Xu wrote: >> To support display in Debian on HiKey, cma heap is used to allocate >> graphic buffers. The default size of CMA is 16 MB which is not enought. > > s/enought/enough/ > &g

Re: [PATCH 3/3] arm64: dts: register Hi3660's thermal sensor

2017-06-20 Thread Guodong Xu
On Tue, Jun 20, 2017 at 4:32 PM, Wangtao (Kevin, Kirin) wrote: > > > 在 2017/6/20 15:38, Guodong Xu 写道: >> >> >> >> 2017年6月20日 上午11:49,"Tao Wang" > <mailto:kevin.wang...@hisilicon.com>>写道: >> >> Bind thermal sensor driver

Re: [PATCH v10 2/3] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-06-21 Thread Guodong Xu
On Mon, Jun 19, 2017 at 10:02 PM, kbuild test robot wrote: > Hi Xiaowei, > > [auto build test ERROR on pci/next] > [also build test ERROR on v4.12-rc5 next-20170619] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://githu

[PATCH 0/6] MFD: add driver for HiSilicon Hi6421v530 PMIC

2017-05-25 Thread Guodong Xu
.html Guodong Xu (4): dt-bindings: mfd: Add hi6421v530 bindings mfd: hi6421-pmic: move hi6421_regmap_config definition to header file mfd: hi6421v530: add support for HiSilicon Hi6421v530 arm64: defconfig: enable hi6421v530 MFD and regulator Wang Xiaoyin (2): regulator: hi6421v530: add

[PATCH 3/6] mfd: hi6421v530: add support for HiSilicon Hi6421v530

2017-05-25 Thread Guodong Xu
points. Signed-off-by: Guodong Xu Signed-off-by: Wang Xiaoyin --- drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile | 1 + drivers/mfd/hi6421v530-pmic.c | 92 +++ 3 files changed, 102 insertions(+) create mode 100644 drivers/mfd

[PATCH 1/6] dt-bindings: mfd: Add hi6421v530 bindings

2017-05-25 Thread Guodong Xu
DT bindings for hisilicon HI655x PMIC chip. Signed-off-by: Guodong Xu --- .../bindings/mfd/hisilicon,hi6421v530.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi6421v530.txt diff --git a

[PATCH 2/6] mfd: hi6421-pmic: move hi6421_regmap_config definition to header file

2017-05-25 Thread Guodong Xu
Move hi6421_regmap_config definition from c code to common header: - include/linux/mfd/hi6421-pmic.h This is to improve code re-use for upcoming hi6421 series of MFD driver. Signed-off-by: Guodong Xu --- drivers/mfd/hi6421-pmic-core.c | 7 --- include/linux/mfd/hi6421-pmic.h | 6

[PATCH 4/6] regulator: hi6421v530: add driver for hi6421v530 voltage regulator

2017-05-25 Thread Guodong Xu
From: Wang Xiaoyin add the driver for hi6421v530 voltage regulator Signed-off-by: Wang Xiaoyin Signed-off-by: Guodong Xu --- drivers/regulator/Kconfig| 10 + drivers/regulator/Makefile | 1 + drivers/regulator/hi6421v530-regulator.c | 355

[PATCH 5/6] arm64: dts: hikey960: add device node for pmic and regulators

2017-05-25 Thread Guodong Xu
From: Wang Xiaoyin add device node for hi6421 pmic core and hi6421v530 voltage regulator,include LDO(1,3,9,11,15,16) Signed-off-by: Wang Xiaoyin Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 60 +++ 1 file changed, 60 insertions

[PATCH 6/6] arm64: defconfig: enable hi6421v530 MFD and regulator

2017-05-25 Thread Guodong Xu
Enable configs for hi6421v530 mfd and regulator driver Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ce07285..287e943 100644 --- a/arch/arm64/configs/defconfig

[PATCH v2 0/3] clk: hi3660: add more clocks and fix bugs

2017-05-26 Thread Guodong Xu
This patchset adds more clocks for hi3660, video encoder/decoder, ISP. It includes also bug fixes. v2 update: - added ISP clocks into patch 2. Chen Jun (2): clk: hi3660: fix wrong parent name of clk_mux_sysbus clk: hi3660: add clocks for video encoder, decoder and ISP Zhong Kaihua (1): cl

[PATCH v2 1/3] clk: hi3660: fix wrong parent name of clk_mux_sysbus

2017-05-26 Thread Guodong Xu
From: Chen Jun Parent name of clk_mux_sysbus is not correct. This patch fixes it. Signed-off-by: Chen Jun Signed-off-by: John Stultz Signed-off-by: Guodong Xu --- drivers/clk/hisilicon/clk-hi3660.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk

[PATCH v2 2/3] clk: hi3660: add clocks for video encoder, decoder and ISP

2017-05-26 Thread Guodong Xu
From: Chen Jun This patch adds more clocks for hi3660, including: - video encoder and decoder - ISP (Image Signal Processing) Signed-off-by: Chen Jun Signed-off-by: Zhong Kaihua Signed-off-by: Guodong Xu Reviewed-by: Zhangfei Gao --- drivers/clk/hisilicon/clk-hi3660.c | 40

[PATCH v2 3/3] clk: hi3660: Set PPLL2 to 2880M

2017-05-26 Thread Guodong Xu
From: Zhong Kaihua Set PPLL2 to 2880M. With this patch, we saw better compatibility on various 1080p HDMI monitors. Signed-off-by: Zhong Kaihua Signed-off-by: Zheng Shaobo --- drivers/clk/hisilicon/clk-hi3660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cl

Re: [PATCH 2/6] mfd: hi6421-pmic: move hi6421_regmap_config definition to header file

2017-05-26 Thread Guodong Xu
On Fri, May 26, 2017 at 4:33 PM, Arnd Bergmann wrote: > On Fri, May 26, 2017 at 8:35 AM, Guodong Xu wrote: >> Move hi6421_regmap_config definition from c code to common header: >> - include/linux/mfd/hi6421-pmic.h >> >> This is to improve code re-use for upcoming

Re: [PATCH 4/6] regulator: hi6421v530: add driver for hi6421v530 voltage regulator

2017-05-27 Thread Guodong Xu
On Fri, May 26, 2017 at 8:13 PM, Javier Martinez Canillas wrote: > Hello Guodong, > > On Fri, May 26, 2017 at 8:35 AM, Guodong Xu wrote: >> From: Wang Xiaoyin >> > > [snip] > >> >> +config REGULATOR_HI6421V530 >> + tristate "HiSilic

Re: [PATCH 4/6] regulator: hi6421v530: add driver for hi6421v530 voltage regulator

2017-05-27 Thread Guodong Xu
On Fri, May 26, 2017 at 7:38 PM, Mark Brown wrote: > On Fri, May 26, 2017 at 02:35:16PM +0800, Guodong Xu wrote: > > Overall this driver needs quite a lot of modernization, it's at least a > couple of years out of date in how it's using the framework - there's >

Re: [PATCH 4/4] arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 LED to notify kernel panic

2017-10-24 Thread Guodong Xu
On Mon, Oct 23, 2017 at 12:43 PM, Amit Kucheria wrote: > On Thu, Oct 19, 2017 at 5:30 PM, Guodong Xu wrote: >> >> >> On Thu, Oct 19, 2017 at 4:57 AM, Amit Kucheria >> wrote: >>> >>> Blink the LED on a kernel panic. >>> >>> Signed-of

[PATCH 2/3] k3dma: add support to reserved minimum channels

2018-06-21 Thread Guodong Xu
/devicetree/bindings/dma/k3dma.txt Signed-off-by: Li Yu Signed-off-by: Guodong Xu --- drivers/dma/k3dma.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index fa31cccbe04f..13cec12742e3 100644 --- a/drivers/dma/k3dma.c

[PATCH 1/3] dt-bindings: k3dma: add optional property dma_min_chan

2018-06-21 Thread Guodong Xu
From: Li Yu Add optional property dma_min_chan for k3dma. Signed-off-by: Li Yu --- Documentation/devicetree/bindings/dma/k3dma.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b/Documentation/devicetree/bindings/dma/k3dma.txt index

[PATCH 0/3] k3dma: add support to reserved channels

2018-06-21 Thread Guodong Xu
This patchset fixes bug people found on hikey960 when allocating DMA channels to peripherals such as SPI. It fails because the channel is reserved, and is not accessible by kernel. Patch 1 and 2 add support to reserved channels for K3 DMA. Patch 3 includes a removal of axi_config who controls DMA

[PATCH 3/3] k3dma: delete axi_config

2018-06-21 Thread Guodong Xu
From: Li Yu Axi_config controls whether DMA resources can be accessed in non-secure mode, such as linux kernel. The setting is actually done in bootloader stage. This patch removes axi_config from k3dma driver. Signed-off-by: Li Yu Signed-off-by: Guodong Xu --- drivers/dma/k3dma.c | 3

[PATCH 1/3] clk: hi3660: fix wrong parent name of clk_mux_sysbus

2017-05-14 Thread Guodong Xu
From: Chen Jun Parent name of clk_mux_sysbus is not correct. This patch fixes it. Signed-off-by: Chen Jun Signed-off-by: John Stultz Signed-off-by: Guodong Xu --- drivers/clk/hisilicon/clk-hi3660.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk

[PATCH 3/3] clk: hi3660: Set PPLL2 to 2880M

2017-05-14 Thread Guodong Xu
From: Zhong Kaihua Set PPLL2 to 2880M. With this patch, we saw better compatibility on various 1080p HDMI monitors. Signed-off-by: Zhong Kaihua Signed-off-by: Zheng Shaobo --- drivers/clk/hisilicon/clk-hi3660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cl

[PATCH 2/3] clk: hi3660: add clocks for video encoder and decoder

2017-05-14 Thread Guodong Xu
From: Chen Jun This patch adds clocks for video encoder and decoder. Signed-off-by: Chen Jun Signed-off-by: Guodong Xu --- drivers/clk/hisilicon/clk-hi3660.c | 23 +++ include/dt-bindings/clock/hi3660-clock.h | 10 ++ 2 files changed, 33 insertions(+) diff

Re: [PATCH 1/3] arm64: dts: hi3660: add pcie node

2017-05-15 Thread Guodong Xu
This PCIe node has dependencies on &crg_ctrl and &gpio11. However, both of them are not appearing in mainline kernel tree yet. Sorry about that. But I do have a plan to send all dts related changes to maillist within this week, no later than this Wed (17/May). Would it be possible you maintainers r

Re: [PATCH 1/3] dt-bindings: k3dma: add optional property dma_min_chan

2018-07-03 Thread Guodong Xu
On Wed, Jul 4, 2018 at 2:54 AM Rob Herring wrote: > > On Fri, Jun 22, 2018 at 11:24:14AM +0800, Guodong Xu wrote: > > From: Li Yu > > > > Add optional property dma_min_chan for k3dma. > > > > Signed-off-by: Li Yu > > --- > > Documentation/dev

Re: [PATCH 2/3] k3dma: add support to reserved minimum channels

2018-07-05 Thread Guodong Xu
On Thu, Jun 28, 2018 at 2:02 PM Vinod wrote: > > On 22-06-18, 11:24, Guodong Xu wrote: > > From: Li Yu > > > > On k3 series of SoC, DMA controller reserves some channels for > > other on-chip coprocessors. By adding support to dma_min_chan, kernel > > wi

Re: [PATCH 1/3] dt-bindings: k3dma: add optional property dma_min_chan

2018-07-05 Thread Guodong Xu
On Wed, Jul 4, 2018 at 9:14 AM Guodong Xu wrote: > > On Wed, Jul 4, 2018 at 2:54 AM Rob Herring wrote: > > > > On Fri, Jun 22, 2018 at 11:24:14AM +0800, Guodong Xu wrote: > > > From: Li Yu > > > > > > Add optional property dma_min_cha

[PATCH v2 1/4] dt-bindings: k3dma: add optional property hisilicon,dma-min-chan

2018-07-05 Thread Guodong Xu
From: Li Yu Add optional property hisilicon,dma-min-chan for k3dma. Signed-off-by: Li Yu Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/dma/k3dma.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b/Documentation

[PATCH v2 0/4] k3dma: add support to reserved channels

2018-07-05 Thread Guodong Xu
secure/non-secure access permission but is actually set in early stage by bootloader. Guodong Xu (1): arm64: dts: hi3660: update property name hisilicon,dma-min-chan Li Yu (3): dt-bindings: k3dma: add optional property hisilicon,dma-min-chan k3dma: add support to reserved minimum channels

[PATCH v2 2/4] k3dma: add support to reserved minimum channels

2018-07-05 Thread Guodong Xu
umentation/devicetree/bindings/dma/k3dma.txt for more information. Signed-off-by: Li Yu Signed-off-by: Guodong Xu --- drivers/dma/k3dma.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index fa31cccbe04f..33efb541acb2 10

[PATCH v2 3/4] arm64: dts: hi3660: update property name hisilicon,dma-min-chan

2018-07-05 Thread Guodong Xu
Update property name dma-min-chan to "hisilicon,dma-min-chan" Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.

[PATCH v2 4/4] k3dma: delete axi_config

2018-07-05 Thread Guodong Xu
From: Li Yu Axi_config controls whether DMA resources can be accessed in non-secure mode, such as linux kernel. The setting is actually done in bootloader stage. This patch removes axi_config from k3dma driver. Signed-off-by: Li Yu Signed-off-by: Guodong Xu --- drivers/dma/k3dma.c | 3

Re: [PATCH v6 4/6] mfd: Add hi6421 PMIC core driver

2014-08-25 Thread Guodong Xu
Hi, Lee Thanks. I added for most of your comments. Some items, I have a different understanding. I added in below. On 08/20/2014 04:09 PM, Lee Jones wrote: > On Mon, 18 Aug 2014, Guodong Xu wrote: >> This adds driver to support HiSilicon Hi6421 PMIC. Hi6421 includes multi- >> fun

[PATCH 0/2] Hi6421 MFD driver

2014-08-25 Thread Guodong Xu
#x27;hi6421' based on v6 patchset for Hi6421 MFD & regulator Guodong Xu (3): Documentation: mfd: add docs for hi6421 dt mfd: Add hi6421 PMIC core driver ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes Documentation/devicetree/bindings/mfd/hi6421.txt | 38 ar

[PATCH 1/3] Documentation: mfd: add docs for hi6421 dt

2014-08-25 Thread Guodong Xu
Add documentation for HiSilicon Hi6421 PMIC dt binding. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/mfd/hi6421.txt | 38 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/hi6421.txt diff --git a/Documentation

[PATCH 2/3] mfd: Add hi6421 PMIC core driver

2014-08-25 Thread Guodong Xu
files. Registers in Hi6421 are memory mapped, so using regmap-mmio API. Signed-off-by: Guodong Xu --- drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile| 1 + drivers/mfd/hi6421-pmic-core.c | 112 include/linux/mfd/hi6421-pmic.h

[PATCH 3/3] ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes

2014-08-25 Thread Guodong Xu
Add Hi6421 MFD dts node and regulator nodes into hi3620-hi4511 board config dts file. Signed-off-by: Guodong Xu --- arch/arm/boot/dts/hi3620-hi4511.dts | 233 1 file changed, 233 insertions(+) diff --git a/arch/arm/boot/dts/hi3620-hi4511.dts b/arch/arm

[PATCH] regulator: mc13xxx: add missing of_node_get()

2014-09-09 Thread Guodong Xu
mc13xxx_parse_regulators_dt() goes through dt tree to search for regulator sub-nodes. For each matched node, later on it will be used and registered into a regulator_dev. of_node_get() should be called to increase its refcount. Signed-off-by: Guodong Xu --- drivers/regulator/mc13xxx-regulator

[PATCH] regulator: remove unnecessary of_node_get() to parent

2014-09-09 Thread Guodong Xu
ainst its input parameter. So, need to remove these unnecessary of_node_get() calls. Signed-off-by: Guodong Xu --- drivers/regulator/88pm8607.c | 2 +- drivers/regulator/da9052-regulator.c | 4 ++-- drivers/regulator/max8907-regulator.c | 2 +- drivers/regulator/max8925-regulator.c

Re: [PATCH] regulator: remove unnecessary of_node_get() to parent

2014-09-10 Thread Guodong Xu
On 09/10/2014 12:23 PM, Axel Lin wrote: > 2014-09-10 12:20 GMT+08:00 Axel Lin : >> 2014-09-10 11:50 GMT+08:00 Guodong Xu : >>> These of_node_get() were added to balance refcount decrements inside of >>> of_find_node_by_name(). >>> See: commit c92f5dd2c42f

Re: [PATCH] regulator: core: Fix build error due to const qualifier for ops

2014-08-18 Thread Guodong Xu
I'm sending a patch to fix the build error on mc13892-regulator.c -Guodong On 08/18/2014 10:34 AM, Axel Lin wrote: > Drop const qualifier for ops of struct regulator_desc. > Allow regulator drivers to update ops before registering regulator. > > Fix below build error: > CC [M] drivers/regulat

[PATCH v6 2/6] regulator: core: factor out delay function from _regulator_do_enable

2014-08-18 Thread Guodong Xu
A common delay function can be helpful when implementing new features. Factor it out to maximize code reusability. Signed-off-by: Guodong Xu --- drivers/regulator/core.c | 74 ++-- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a

[PATCH v6 0/6] Add MFD and regulator drivers for Hi6421 PMIC SoC

2014-08-18 Thread Guodong Xu
D APIs to manage sub-devices of Hi6421 * use regmap-mmio for register access * use only generic regulator device tree property * rewrite regulator driver using helper APIs from both regulator and regmap v1: first drop Guodong Xu (6): regulator: core: add const qualifier to ops in struct regul

[PATCH v6 3/6] regulator: core: add guard delay between calling regulator_disable and _enable

2014-08-18 Thread Guodong Xu
guard time. Add @last_off_jiffy to struct regulator_dev. When @off_on_delay is set by driver, regulator core can store its last off (disable) time into this field. Signed-off-by: Guodong Xu --- drivers/regulator/core.c | 31 +++ include/linux/regulator/driver.h

[PATCH v6 5/6] regulator: add driver for hi6421 voltage regulator

2014-08-18 Thread Guodong Xu
can be enabled at the same time. Use mutex in hi6421_regulator_pdata to ensure this. A protection gap of 100us is added into each LDO/BUCK's .enable_time. Signed-off-by: Guodong Xu --- drivers/regulator/Kconfig| 10 + drivers/regulator/Makefile | 1 + dr

[PATCH v6 1/6] regulator: core: add const qualifier to ops in struct regulator_desc

2014-08-18 Thread Guodong Xu
to enforce that. Signed-off-by: Guodong Xu --- drivers/regulator/core.c | 32 drivers/regulator/mc13892-regulator.c | 11 +++ include/linux/regulator/driver.h | 2 +- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/dr

[PATCH v6 4/6] mfd: Add hi6421 PMIC core driver

2014-08-18 Thread Guodong Xu
files. Registers in Hi6421 are memory mapped, so using regmap-mmio API. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/mfd/hi6421.txt | 37 +++ drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd

[PATCH v6 6/6] ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes

2014-08-18 Thread Guodong Xu
Add Hi6421 MFD dts node and regulator nodes into hi3620-hi4511 board config dts file. Signed-off-by: Guodong Xu --- arch/arm/boot/dts/hi3620-hi4511.dts | 233 1 file changed, 233 insertions(+) diff --git a/arch/arm/boot/dts/hi3620-hi4511.dts b/arch/arm

Re: [PATCH] regulator: hi6421: Fix misleading comment

2014-09-05 Thread Guodong Xu
*/ #define HI6421_LDO_LINEAR_RANGE(_id, n_volt, volt_ranges, vreg, vmask, \ ereg, emask, odelay, ecomask, ecoamp) \ Thanks. Best regards, Guodong Xu On 09/05/2014 09:14 AM, Axel Lin wrote: > Signed-off-by: Axel Lin > --- > drivers/regulator/hi6421-regula

Re: [PATCH 2/3] mfd: Add hi6421 PMIC core driver

2014-09-01 Thread Guodong Xu
nents, like voltage regulators, are >> implemented in corresponding driver directories and files. >> >> Registers in Hi6421 are memory mapped, so using regmap-mmio API. >> >> Signed-off-by: Guodong Xu >> --- > > The patch is missing version information normall

[PATCH 0/3] Add MFD and regulator drivers for Hi6421 PMIC SoC

2014-09-01 Thread Guodong Xu
evices of Hi6421 * use regmap-mmio for register access * use only generic regulator device tree property * rewrite regulator driver using helper APIs from both regulator and regmap v1: first drop Guodong Xu (3): Documentation: mfd: add docs for hi6421 dt mfd: Add hi6421 PMIC core driver

[PATCH v8 1/3] Documentation: mfd: add docs for hi6421 dt

2014-09-01 Thread Guodong Xu
Add documentation for HiSilicon Hi6421 PMIC dt binding. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/mfd/hi6421.txt | 38 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/hi6421.txt diff --git a/Documentation

[PATCH v8 2/3] mfd: Add hi6421 PMIC core driver

2014-09-01 Thread Guodong Xu
files. Registers in Hi6421 are memory mapped, so using regmap-mmio API. Signed-off-by: Guodong Xu --- drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile| 1 + drivers/mfd/hi6421-pmic-core.c | 113 include/linux/mfd/hi6421-pmic.h

[PATCH v8 3/3] ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes

2014-09-01 Thread Guodong Xu
Add Hi6421 MFD dts node and regulator nodes into hi3620-hi4511 board config dts file. Signed-off-by: Guodong Xu --- arch/arm/boot/dts/hi3620-hi4511.dts | 233 1 file changed, 233 insertions(+) diff --git a/arch/arm/boot/dts/hi3620-hi4511.dts b/arch/arm

[PATCH v5 0/7] Add MFD and regulator drivers for Hi6421 PMIC SoC

2014-08-13 Thread Guodong Xu
s of Hi6421 * use regmap-mmio for register access * use only generic regulator device tree property * rewrite regulator driver using helper APIs from both regulator and regmap v1: first drop Guodong Xu (7): regulator: core: add const qualifier to ops in struct regulator_desc regulato

[PATCH v5 1/7] regulator: core: add const qualifier to ops in struct regulator_desc

2014-08-13 Thread Guodong Xu
to enforce that. Signed-off-by: Guodong Xu --- drivers/regulator/core.c | 24 include/linux/regulator/driver.h | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4c1f999..eb6f172 10064

[PATCH v5 2/7] regulator: core: factor out delay function from _regulator_do_enable

2014-08-13 Thread Guodong Xu
A common delay function can be helpful when implementing new features. Factor it out to maximize code reusability. Signed-off-by: Guodong Xu --- drivers/regulator/core.c | 74 ++-- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a

[PATCH v5 3/7] regulator: core: add guard delay between calling regulator_disable and _enable

2014-08-13 Thread Guodong Xu
guard time. Add @last_off_jiffy to struct regulator_dev. When @off_on_delay is set by driver, regulator core can store its last off (disable) time into this field. Signed-off-by: Guodong Xu --- drivers/regulator/core.c | 31 +++ include/linux/regulator/driver.h

[PATCH v5 6/7] ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes

2014-08-13 Thread Guodong Xu
Add Hi6421 MFD dts node and regulator nodes into hi3620-hi4511 board config dts file. Signed-off-by: Guodong Xu --- arch/arm/boot/dts/hi3620-hi4511.dts | 233 1 file changed, 233 insertions(+) diff --git a/arch/arm/boot/dts/hi3620-hi4511.dts b/arch/arm

[PATCH v5 5/7] regulator: add driver for hi6421 voltage regulator

2014-08-13 Thread Guodong Xu
can be enabled at the same time. Use mutex in hi6421_regulator_pdata to ensure this. A protection gap of 100us is added into each LDO/BUCK's .enable_time. Signed-off-by: Guodong Xu --- drivers/regulator/Kconfig| 10 + drivers/regulator/Makefile | 1 + dr

[PATCH v5 4/7] mfd: Add hi6421 PMIC core driver

2014-08-13 Thread Guodong Xu
files. Registers in Hi6421 are memory mapped, so using regmap-mmio API. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/mfd/hi6421.txt | 37 +++ drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd

[PATCH v5 7/7] ARM: hi3xxx_defconfig: Enable HI6421 MFD and Regulators

2014-08-13 Thread Guodong Xu
Enable HiSilicon Hi6421 MFD and regulator drivers in hi3xxx_defconfig Signed-off-by: Guodong Xu --- arch/arm/configs/hi3xxx_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/hi3xxx_defconfig b/arch/arm/configs/hi3xxx_defconfig index f186bdf..6cf9187 100644 --- a

Re: [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions

2016-05-05 Thread Guodong Xu
On 5 May 2016 at 16:11, Dean Jenkins wrote: > On 05/05/16 00:45, John Stultz wrote: >> >> On Tue, May 3, 2016 at 3:54 AM, Dean Jenkins >> wrote: >>> >>> On 03/05/16 11:04, Guodong Xu wrote: >>>> >>>> did you test on ARM 64-bit

Re: [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions

2016-05-03 Thread Guodong Xu
On 3 May 2016 at 17:23, Dean Jenkins wrote: > On 03/05/16 05:55, John Stultz wrote: >> >> In testing with HiKey, we found that since commit 3f30b158eba5c60 >> (asix: On RX avoid creating bad Ethernet frames), we're seeing lots of >> noise during network transfers: >> >> [ 239.027993] asix 1-1.1:1

Re: Re: [PATCH v8 3/5] mfd: hi655x: Add MFD driver for hi655x

2016-05-17 Thread Guodong Xu
On 19 April 2016 at 14:53, Lee Jones wrote: > > On Tue, 19 Apr 2016, Guodong Xu wrote: > > > On 13 April 2016 at 08:51, Chen Feng wrote: > > > > > > > > > > > > Forwarded Message > > > Subject: Re: [PATCH v8 3/5] mf

Re: [PATCH v3 2/2] mmc: dw_mmc: add resets support to dw_mmc

2016-05-25 Thread Guodong Xu
On 2 April 2016 at 22:03, Heiko Stuebner wrote: > Am Samstag, 2. April 2016, 21:39:11 schrieb Guodong Xu: >> On 2 April 2016 at 02:42, Heiko Stuebner wrote: >> > Am Mittwoch, 30. März 2016, 15:24:56 schrieb Guodong Xu: >> > >> > [...] >> > >>

[PATCH 1/5] arm64: dts: hi6220: add pinctrl for uarts and enable them

2016-02-18 Thread Guodong Xu
Add pinctrl for uart2 uart3 and uart4. Enable uart1 uart2 and uart3. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 12 arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 9 + 2 files changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH 0/5] add DTS for hi6220 and HiKey

2016-02-18 Thread Guodong Xu
hsets which pending on review: [PATCH v8 5/5] arm64: dts: hisilicon: Add hi655x pmic dts node http://thread.gmane.org/gmane.linux.kernel/2151688 Patch 4 adds resets property into dwmmc nodes. Patch 5 adds wifi device nodes (TI's wl1835) for HiKey board. Guodong Xu (4): arm64: dts: hi6220: a

[PATCH 5/5] arm64: dts: add wifi nodes support for hi6220-hikey

2016-02-18 Thread Guodong Xu
Add wifi nodes support for hi6220-hikey Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 28 ++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts

[PATCH 4/5] arm64: dts: hi6220: add resets property into dwmmc nodes

2016-02-18 Thread Guodong Xu
Add resets property into dwmmc_0, dwmmc_1 and dwmmc_2 for hi6220 Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 28bd441

[PATCH 2/5] arm64: dts: add LED nodes for hi6220-hikey

2016-02-18 Thread Guodong Xu
Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 ++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index c4f560a..5a004b4 100644 --- a/arch

[PATCH 3/5] arm64: dts: add dwmmc nodes for hi6220

2016-02-18 Thread Guodong Xu
From: Xinwei Kong Add all three dwmmc nodes description for hi6220 Signed-off-by: Guodong Xu Signed-off-by: Xinwei Kong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 53 +++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi

[PATCH V5 1/3] arm64: dts: Add Hi6220 gpio configuration nodes

2016-02-19 Thread Guodong Xu
From: Zhong Kaihua Add Hi6220 gpio configuration nodes Signed-off-by: Zhong Kaihua Signed-off-by: Kong Xinwei Acked-by: Rob Herring Signed-off-by: Wei Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 259 +++ arch/arm64

[PATCH V5 0/3] add gpio/pinctrl/spi DTS for hi6220 and hikey

2016-02-19 Thread Guodong Xu
As of V4, this patchset has been ack'ed by Rob Herring. V5, added pmx0 pmx1 pmx2 nodes description into hi6220.dtsi. Zhong Kaihua (3): arm64: dts: Add Hi6220 gpio configuration nodes arm64: dts: add Hi6220 pinctrl configuration nodes arm64: dts: add Hi6220 spi configuration nodes arch/arm

[PATCH V5 3/3] arm64: dts: add Hi6220 spi configuration nodes

2016-02-19 Thread Guodong Xu
From: Zhong Kaihua Add Hi6220 spi configuration nodes Signed-off-by: Zhong Kaihua Signed-off-by: Wei Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + arch/arm64/boot/dts/hisilicon/hi6220.dtsi| 15 +++ arch/arm64/boot/dts/hisilicon/hikey-pinctrl.dtsi | 21 +++

[PATCH V5 2/3] arm64: dts: add Hi6220 pinctrl configuration nodes

2016-02-19 Thread Guodong Xu
From: Zhong Kaihua Add Hi6220 pinctrl configuration nodes Signed-off-by: Zhong Kaihua --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + arch/arm64/boot/dts/hisilicon/hi6220.dtsi| 77 +++ arch/arm64/boot/dts/hisilicon/hikey-pinctrl.dtsi | 684 +++ includ

[PATCH v2 1/3] arm64: defconfig: Enable devices for Hi6220 and 96boards HiKey

2016-03-10 Thread Guodong Xu
in. - set CONFIG_I2C_DESIGNWARE_PLATFORM to be build as module Signed-off-by: Guodong Xu Reviewed-by: Arnd Bergmann --- arch/arm64/configs/defconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0f51943

[PATCH v2 2/3] arm64: defconfig: add CONFIG_SPI_SPIDEV as module

2016-03-10 Thread Guodong Xu
add CONFIG_SPI_SPIDEV as module, for arm64. Signed-off-by: Guodong Xu Reviewed-by: Arnd Bergmann --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index dbd6694..2d92343 100644 --- a/arch/arm64

[PATCH v2 0/3] Enable configs for 96boards HiKey and general arm64

2016-03-10 Thread Guodong Xu
network adapters v2: - rebase to next-20160310, CONFIG_MMC_BLOCK_MINORS=16 is already in. - set CONFIG_I2C_DESIGNWARE_PLATFORM to be build as module - Add general features for arm64 Akira Tsukamoto (1): ARM64: defconfig: enable several common USB network adapters Guodong Xu (2): arm64: defconfig

[PATCH v2 3/3] ARM64: defconfig: enable several common USB network adapters

2016-03-10 Thread Guodong Xu
-by: Guodong Xu Reviewed-by: Arnd Bergmann --- arch/arm64/configs/defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d92343..7cd7056 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs

[PATCH v3 01/16] arm64: dts: Reserve memory regions for hi6220

2016-04-05 Thread Guodong Xu
From: Leo Yan On Hi6220, below memory regions in DDR have specific purpose: 0x05e0, - 0x05ef,: For MCU firmware using at runtime; 0x06df,f000 - 0x06df,: For mailbox message data; 0x0740,f000 - 0x0740,: For MCU firmware's section; 0x3e00, - 0x3fff,: For OP-TEE. Th

[PATCH v3 02/16] arm64: dts: add sp804 timer node for Hi6220

2016-04-05 Thread Guodong Xu
From: Leo Yan Add sp804 timer for hi6220, so it can be used as broadcast timer. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi622

[PATCH v3 15/16] arm64: dts: add dwmmc nodes for hi6220

2016-04-05 Thread Guodong Xu
From: Xinwei Kong Add all three dwmmc nodes description for hi6220 Signed-off-by: Guodong Xu Signed-off-by: Xinwei Kong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 53 +++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi

  1   2   3   4   >