Re: [PATCH v5 06/14] irqchip: gicv3-its: platform-msi: refactor its_pmsi_init() to prepare for ACPI

2016-12-30 Thread Xinwei Kong
ted\n", np->full_name); + its_pmsi_init_one(of_node_to_fwnode(np), np->full_name); } +} +static int __init its_pmsi_init(void) +{ + its_pmsi_of_init(); return 0; } early_initcall(its_pmsi_init); Tested-by: Xinwei Kong

Re: [PATCH v5 11/14] msi: platform: make platform_msi_create_device_domain() ACPI aware

2016-12-30 Thread Xinwei Kong
; if (!domain) goto free_priv; Tested-by: Xinwei Kong

Re: [PATCH v5 09/14] ACPI: platform: setup MSI domain for ACPI based platform device

2016-12-30 Thread Xinwei Kong
orm_device_register_full( const struct platform_device_info *pdevinfo); Tested-by: Xinwei Kong

Re: [PATCH v5 13/14] irqchip: mbigen: introduce mbigen_of_create_domain()

2016-12-30 Thread Xinwei Kong
start, resource_size(res)); + if (IS_ERR(mgn_chip->base)) + return PTR_ERR(mgn_chip->base); + + err = mbigen_of_create_domain(pdev, mgn_chip); + if (err) + return err; + platform_set_drvdata(pdev, mgn_chip); return 0; } Tested-by: Xinwei Kong

Re: [PATCH v5 08/14] ACPI: ARM64: IORT: rework iort_node_get_id()

2016-12-30 Thread Xinwei Kong
e->type == ACPI_IORT_NODE_PCI_ROOT_COMPLEX) { - *id_out = map[index].output_base; + if (id_out) + *id_out = map[index].output_base; return parent; } } Tested-by: Xinwei Kong

Re: [PATCH v5 02/14] irqchip: gic-v3-its: keep the head file include in alphabetic order

2016-12-30 Thread Xinwei Kong
15,13 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include +#include #include #include #include #include #include #include -#include #include #include #include Tested-by: Xinwei Kong

Re: [PATCH v5 14/14] irqchip: mbigen: Add ACPI support

2016-12-30 Thread Xinwei Kong
atch, + .acpi_match_table = ACPI_PTR(mbigen_acpi_match), }, .probe = mbigen_device_probe, }; Tested-by: Xinwei Kong

Re: [PATCH v5 10/14] ACPI: ARM64: IORT: rework iort_node_get_id() for NC->SMMU->ITS case

2016-12-30 Thread Xinwei Kong
rt_id_single_map(&map[index], node->type, id_out)) + break; + + return parent; } return NULL; Tested-by: Xinwei Kong

Re: [PATCH v5 12/14] irqchip: mbigen: drop module owner

2016-12-30 Thread Xinwei Kong
mbigen_platform_driver = { .driver = { .name = "Hisilicon MBIGEN-V2", - .owner = THIS_MODULE, .of_match_table = mbigen_of_match, }, .probe = mbigen_device_probe, Tested-by: Xinwei Kong

Re: [PATCH v5 07/14] irqchip: gicv3-its: platform-msi: scan MADT to create platform msi domain

2016-12-30 Thread Xinwei Kong
device_node *np; @@ -121,6 +156,7 @@ static void __init its_pmsi_of_init(void) static int __init its_pmsi_init(void) { its_pmsi_of_init(); + its_acpi_pmsi_init(); return 0; } early_initcall(its_pmsi_init); Tested-by: Xinwei Kong

Re: [PATCH v5 05/14] ACPI: platform-msi: retrieve dev id from IORT

2016-12-30 Thread Xinwei Kong
+ +static inline int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id) +{ + return -ENODEV; +} + /* IOMMU interface */ static inline void iort_set_dma_mask(struct device *dev) { } static inline Tested-by: Xinwei Kong

Re: [PATCH v5 04/14] irqchip: gicv3-its: platform-msi: refactor its_pmsi_prepare()

2016-12-30 Thread Xinwei Kong
alloc_info_t *info) +{ + struct msi_domain_info *msi_info; + u32 dev_id; + int ret; + + msi_info = msi_get_domain_info(domain->parent); + + ret = of_pmsi_get_dev_id(domain, dev, &dev_id); if (ret) return ret; Tested-by: Xinwei Kong

Re: [PATCH v5 03/14] ACPI: ARM64: IORT: add missing comment for iort_dev_find_its_id()

2016-12-30 Thread Xinwei Kong
: The device. + * @req_id: Device's Requster ID * @idx: Index of the ITS identifier list. * @its_id: ITS identifier. * Tested-by: Xinwei Kong

Re: [PATCH v5 01/14] ACPI: ARM64: IORT: minor cleanup for iort_match_node_callback()

2016-12-30 Thread Xinwei Kong
AE_NOT_FOUND; } out: return status; Tested-by: Xinwei Kong

Re: [PATCH v4] arm64: dts: add all hi6220 i2c nodes

2015-12-30 Thread Xinwei Kong
+to xuwei On 2015/12/29 21:15, Bintian wrote: > On 2015/12/2 18:13, Xinwei Kong wrote: >> This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc >> use this I2C IP of Synopsys Designware for HiKey board. >> >> Signed-off-by: Xinwei Kong >> Signed-

[PATCH v4] arm64: dts: add all hi6220 i2c nodes

2015-12-02 Thread Xinwei Kong
This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc use this I2C IP of Synopsys Designware for HiKey board. Signed-off-by: Xinwei Kong Signed-off-by: Chen Feng --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 34 +++ 1 file changed, 34 insertions

Re: [PATCH v3] arm64: dts: add all hi6220 i2c nodes

2015-12-02 Thread Xinwei Kong
On 2015/12/2 15:34, Shawn Guo wrote: > On Wed, Dec 02, 2015 at 02:29:09PM +0800, Xinwei Kong wrote: >> This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc >> use this I2C IP of Synopsys Designware for HiKey board. >> >> Signed-off-by: Xinwei Kong >

[PATCH v3] arm64: dts: add all hi6220 i2c nodes

2015-12-01 Thread Xinwei Kong
This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc use this I2C IP of Synopsys Designware for HiKey board. Signed-off-by: Xinwei Kong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot

Re: [PATCH v2] arm64: dts: add all hi6220 i2c nodes

2015-12-01 Thread Xinwei Kong
hi Shawn On 2015/12/2 10:05, Shawn Guo wrote: > On Thu, Nov 26, 2015 at 03:57:03PM +0800, Xinwei Kong wrote: >> This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc >> use this I2C IP of Synopsys Designware for HiKey board. >> >> Signed-off-by: Xinwei Kong

[PATCH v2] arm64: dts: add all hi6220 i2c nodes

2015-11-25 Thread Xinwei Kong
This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc use this I2C IP of Synopsys Designware for HiKey board. Signed-off-by: Xinwei Kong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 37 +++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot

Re: [PATCH 1/1] arm64: dts: add all hi6220 i2c nodes

2015-11-25 Thread Xinwei Kong
hi Shawn, On 2015/11/25 20:24, Shawn Guo wrote: > On Wed, Nov 25, 2015 at 05:49:02PM +0800, Xinwei Kong wrote: >> This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc >> use this I2C IP of Synopsys Designware for HiKey board. >> >> Signed-off-by: Xinwei K

Re: [PATCH 1/1] arm64: dts: add all hi6220 i2c nodes

2015-11-25 Thread Xinwei Kong
+to linux-...@vger.kernel.org On 2015/11/25 17:49, Xinwei Kong wrote: > This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc > use this I2C IP of Synopsys Designware for HiKey board. > > Signed-off-by: Xinwei Kong > Signed-off-by: Chen Feng > --- > arch/arm

[PATCH 1/1] arm64: dts: add all hi6220 i2c nodes

2015-11-25 Thread Xinwei Kong
This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc use this I2C IP of Synopsys Designware for HiKey board. Signed-off-by: Xinwei Kong Signed-off-by: Chen Feng --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 37 +++ 1 file changed, 37 insertions

Re: [PATCH RFC 0/8] Add New DRM Driver for Hisilicon's Hi6220 SoC

2015-09-18 Thread Xinwei Kong
.. > > On 15 September 2015 at 10:37, Xinwei Kong > wrote: >> 1. Hardware Detail >> The display subsystem of Hi6220 SoC is shown as bellow: >> +-+ +--+ +-+ +-+ >> | | | | | | | | &

Re: [PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-17 Thread Xinwei Kong
hi architt On 2015/9/16 17:10, Archit Taneja wrote: > Hi, > > On 09/16/2015 02:04 PM, Xinwei Kong wrote: >> hi architt >> >> On 2015/9/16 2:11, Rob Herring wrote: >>> On 09/15/2015 04:37 AM, Xinwei Kong wrote: >>>> This adds documentation of devic

Re: [PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-16 Thread Xinwei Kong
hi architt On 2015/9/16 2:11, Rob Herring wrote: > On 09/15/2015 04:37 AM, Xinwei Kong wrote: >> This adds documentation of device tree bindings for the >> Graphics Processing Unit of hi6220 SOC. >> >> Signed-off-by: Xinliang Liu >> Signed-off-by: Xinwei K

Re: [PATCH RFC 6/8] drm: hisilicon: Add support for fbdev

2015-09-15 Thread Xinwei Kong
hi rob On 2015/9/16 2:25, Rob Herring wrote: > On 09/15/2015 04:37 AM, Xinwei Kong wrote: >> If you config DRM_HISI_FBDEV optional, this patch will only support fbdev >> mode while also supporting double buffer. > > This is a lot of duplicated code from CMA fbdev. Is double

[PATCH RFC 0/8] Add New DRM Driver for Hisilicon's Hi6220 SoC

2015-09-15 Thread Xinwei Kong
or) to reuse the common interface implementation logic (FIXME: Not sure if we can achieve this target and if it is good or not). Thus, we put these common driver code into hisi_drm_drv/crtc/plane/encoder/connector.c files. Xinwei Kong (8): dt-bindings: Document the hi6220 bindings for DRM driver d

[PATCH RFC 7/8] drm: hisilicon: Add support for vblank

2015-09-15 Thread Xinwei Kong
This patch adds ldi interrupt to handle vblank. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/hisi_ade.c | 71 +++- drivers/gpu/drm/hisilicon

[PATCH RFC 3/8] drm: hisilicon: Add the link to DRM/KMS interface

2015-09-15 Thread Xinwei Kong
: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/Makefile | 4 + drivers/gpu/drm/hisilicon/hisi_ade.c | 44 + drivers/gpu/drm/hisilicon/hisi_ade_reg.h | 27 +++ drivers

[PATCH RFC 2/8] drm: hisilicon: Add new DRM driver for hisilicon Soc

2015-09-15 Thread Xinwei Kong
-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- arch/arm64/configs/defconfig | 5 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm

[PATCH RFC 5/8] drm: hisilicon: fill interface function of encoder\connector part

2015-09-15 Thread Xinwei Kong
This patch enables the adv7533 module which is connecting hisilicon SOC by dsi module. while using DSI module and adv7533 module to implement the encoder/connector interface of DRM\KMS. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi

[PATCH RFC 8/8] dts: hisilicon: Add drm driver device dts config for HiKey board

2015-09-15 Thread Xinwei Kong
This patch adds drm dts node for HiKey board using hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 34 +++ 1 file changed

[PATCH RFC 6/8] drm: hisilicon: Add support for fbdev

2015-09-15 Thread Xinwei Kong
If you config DRM_HISI_FBDEV optional, this patch will only support fbdev mode while also supporting double buffer. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/Kconfig

[PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-15 Thread Xinwei Kong
This adds documentation of device tree bindings for the Graphics Processing Unit of hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- .../devicetree/bindings/gpu/hisilicon,hi6220.txt | 69

[PATCH RFC 4/8] drm: hisilicon: fill interface function of plane\crtc part

2015-09-15 Thread Xinwei Kong
This patch uses ADE module which is responsibe for graphic overlay, graphic post-processing, display timing control within hi6220 SoC to implement the plane\ctrc interface of DRM\KMS. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi

[PATCH v4 2/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-04-23 Thread Xinwei Kong
b/drivers/thermal/hisi_thermal.c new file mode 100644 index 000..255c71b --- /dev/null +++ b/drivers/thermal/hisi_thermal.c @@ -0,0 +1,437 @@ +/* + * Hisilicon thermal sensor driver + * + * Copyright (c) 2014-2015 Hisilicon Limited. + * Copyright (c) 2014-2015 Linaro Limited. + * + * Xinwei Kong

[PATCH v4 0/2] 96boards: add thermal senor support to hikey board

2015-04-23 Thread Xinwei Kong
From: kongxinwei The Linaro connect introduce 96boards series in Hong Kong,The HiKey board is the first board to be certified 96Boards Consumer Edition compatible. This board is based on the HiSilicon SoC. you can get more information from https://www.96boards.org. The hisilicon SoC contains the

[PATCH v4 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-04-23 Thread Xinwei Kong
From: kongxinwei This adds documentation of device tree bindings for the thermal sensor controller of hi6220 SoC. Signed-off-by: Leo Yan Signed-off-by: kongxinwei --- .../bindings/thermal/hisilicon-thermal.txt | 23 ++ 1 file changed, 23 insertions(+) create mode

Re: 答复: [PATCH v3 2/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-04-21 Thread Xinwei Kong
On 2015/4/21 17:09, Wangfei (William, Euler) wrote: > 发件人: linuxarm-boun...@huawei.com [linuxarm-boun...@huawei.com] 代表 Xinwei Kong > [kong.kongxin...@hisilicon.com] > 发送时间: 2015年4月7日 18:40 > 收件人: rui.zhu...@intel.com; edubez...@gmail.com; mpor...@konsulko.com; > jorge.ramirez-o

[PATCH v3 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-04-07 Thread Xinwei Kong
From: kongxinwei This adds documentation of device tree bindings for the thermal sensor controller of hi6220 SoC. Signed-off-by: Leo Yan Signed-off-by: kongxinwei --- .../bindings/thermal/hisilicon-thermal.txt | 23 ++ 1 file changed, 23 insertions(+) create mode

[PATCH v3 2/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-04-07 Thread Xinwei Kong
b/drivers/thermal/hisi_thermal.c new file mode 100644 index 000..50ffb45 --- /dev/null +++ b/drivers/thermal/hisi_thermal.c @@ -0,0 +1,438 @@ +/* + * Hisilicon thermal sensor driver + * + * Copyright (c) 2014-2015 Hisilicon Limited. + * Copyright (c) 2014-2015 Linaro Limited. + * + * Xinwei Kong

[PATCH v3 0/2] 96boards: add thermal senor support to hikey board

2015-04-07 Thread Xinwei Kong
From: kongxinwei Thank you all for giving this v2 patches stages some comments. Here is v3 patches and address all the issues raised as part of v2 review. The Linaro connect introduce 96boards series in Hong Kong,The HiKey board is the first board to be certified 96Boards Consumer Edition compat

Re: [PATCH v2 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-04-07 Thread Xinwei Kong
On 2015/4/7 12:27, Eduardo Valentin wrote: > On Tue, Apr 07, 2015 at 11:46:22AM +0800, Xinwei Kong wrote: >> >> >> On 2015/4/6 22:03, Matt Porter wrote: >>> On Tue, Mar 31, 2015 at 02:59:21PM +0800, Xinwei Kong wrote: >>>> From: kongxinwei >&g

Re: [PATCH v2 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-04-06 Thread Xinwei Kong
On 2015/4/6 22:03, Matt Porter wrote: > On Tue, Mar 31, 2015 at 02:59:21PM +0800, Xinwei Kong wrote: >> From: kongxinwei >> >> This adds documentation of device tree bindings for the >> thermal sensor controller of hi6220 SoC. >> >> Signed-off-by

[PATCH v2 0/2] 96boards: add thermal senor support to hikey board

2015-03-31 Thread Xinwei Kong
From: kongxinwei Thank you all for giving this v1 patches stages some comments. Here is v2 patches and address all the issues raised as part of v1 review. The Linaro connect introduce 96boards series in Hong Kong,The HiKey board is the first board to be certified 96Boards Consumer Edition compat

[PATCH v2 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-03-30 Thread Xinwei Kong
From: kongxinwei This adds documentation of device tree bindings for the thermal sensor controller of hi6220 SoC. Signed-off-by: Leo Yan Signed-off-by: kongxinwei --- .../bindings/thermal/hisilicon-thermal.txt | 45 ++ 1 file changed, 45 insertions(+) create mode

[PATCH v2 2/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-30 Thread Xinwei Kong
b/drivers/thermal/hisi_thermal.c new file mode 100644 index 000..c03d5c3 --- /dev/null +++ b/drivers/thermal/hisi_thermal.c @@ -0,0 +1,475 @@ +/* + * Hisilicon thermal sensor driver + * + * Copyright (c) 2014-2015 Hisilicon Limited. + * Copyright (c) 2014-2015 Linaro Limited. + * + * Xinwei Kong

Re: [PATCH v1 1/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-28 Thread Xinwei Kong
On 2015年03月28日 08:58, YiPing Xu wrote: 在 2015/3/27 16:30, Xinwei Kong 写道: On 2015/3/26 17:14, YiPing Xu wrote: 在 2015/3/25 15:50, Xinwei Kong 写道: From: kongxinwei This patch adds the support for hisilicon thermal sensor, within hisilicon SoC. there will register sensors for thermal

Re: [PATCH v1 1/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-28 Thread Xinwei Kong
On 2015年03月28日 08:58, YiPing Xu wrote: 在 2015/3/27 16:30, Xinwei Kong 写道: On 2015/3/26 17:14, YiPing Xu wrote: 在 2015/3/25 15:50, Xinwei Kong 写道: From: kongxinwei This patch adds the support for hisilicon thermal sensor, within hisilicon SoC. there will register sensors for thermal

Re: [PATCH v1 1/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-27 Thread Xinwei Kong
On 2015/3/26 17:14, YiPing Xu wrote: > 在 2015/3/25 15:50, Xinwei Kong 写道: >> From: kongxinwei >> >> This patch adds the support for hisilicon thermal sensor, within >> hisilicon SoC. there will register sensors for thermal framework >> and use device tree to

[PATCH v1 1/2] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-25 Thread Xinwei Kong
b/drivers/thermal/hisi_thermal.c new file mode 100644 index 000..8edf83a --- /dev/null +++ b/drivers/thermal/hisi_thermal.c @@ -0,0 +1,526 @@ +/* + * Hisilicon thermal sensor driver + * + * Copyright (c) 2014-2015 Hisilicon Limited. + * Copyright (c) 2014-2015 Linaro Limited. + * + * Xinwei Kong

[PATCH v1 0/2] 96boards: add thermal senor support to hikey board

2015-03-25 Thread Xinwei Kong
From: kongxinwei Thank you all for giving this RFC patches stages some comments. Here is v1 patches and address all the issues raised as part of RFC review. The Linaro connect introduce 96boards series in Hong Kong,The HiKey board is the first board to be certified 96Boards Consumer Edition comp

[PATCH v1 2/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-03-25 Thread Xinwei Kong
From: kongxinwei This adds documentation of device tree bindings for the thermal sensor controller of hi6220 SoC. Signed-off-by: Leo Yan Signed-off-by: kongxinwei --- .../bindings/thermal/hisilicon-thermal.txt | 45 ++ 1 file changed, 45 insertions(+) create mode

Re: [PATCH 1/3] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-20 Thread Xinwei Kong
On 2015年03月20日 19:24, Mark Rutland wrote: + ret = of_property_read_u32(np, "hisilicon,tsensor-thres-temp", + &sensor->thres_temp); + if (ret) { + dev_err(&pdev->dev, "failed to get thres value %d: %d\n", + index, re