* [PATCH 1/3] arm64: defconfig: Enable HISILICON_LPC
2018-04-30 15:15 [PATCH 0/3] HiSilicon LPC defconfig and DT patches John Garry
@ 2018-04-30 15:15 ` John Garry
2018-04-30 15:15 ` [PATCH 2/3] arm64: dts: hisi: Enable Hisi LPC node for hip06 John Garry
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: John Garry @ 2018-04-30 15:15 UTC (permalink / raw)
To: xuwei5; +Cc: linux-arm-kernel, linuxarm, linux-kernel, devicetree, John Garry
Now that the driver has been merged for the HiSilicon
LPC host, enable the relevant config.
Turning on this config will also enable config
INDIRECT_PIO, which would have not been enabled
previously - see config info for more details.
Signed-off-by: John Garry <john.garry@huawei.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 0d8ae1d..c959bc8 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -171,6 +171,7 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_DMA_CMA=y
+CONFIG_HISILICON_LPC=y
CONFIG_MTD=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_M25P80=y
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/3] arm64: dts: hisi: Enable Hisi LPC node for hip06
2018-04-30 15:15 [PATCH 0/3] HiSilicon LPC defconfig and DT patches John Garry
2018-04-30 15:15 ` [PATCH 1/3] arm64: defconfig: Enable HISILICON_LPC John Garry
@ 2018-04-30 15:15 ` John Garry
2018-04-30 15:15 ` [PATCH 3/3] arm64: dts: hisi: Enable Hisi LPC node for hip07 John Garry
2018-05-11 14:00 ` [PATCH 0/3] HiSilicon LPC defconfig and DT patches Wei Xu
3 siblings, 0 replies; 5+ messages in thread
From: John Garry @ 2018-04-30 15:15 UTC (permalink / raw)
To: xuwei5; +Cc: linux-arm-kernel, linuxarm, linux-kernel, devicetree, John Garry
The patch enables the HiSi LPC node for hip06, with
IPMI and UART child devices.
Signed-off-by: John Garry <john.garry@huawei.com>
---
arch/arm64/boot/dts/hisilicon/hip06-d03.dts | 8 ++++++++
arch/arm64/boot/dts/hisilicon/hip06.dtsi | 21 +++++++++++++++++++++
2 files changed, 29 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hip06-d03.dts b/arch/arm64/boot/dts/hisilicon/hip06-d03.dts
index 9af6330..8ea1335 100644
--- a/arch/arm64/boot/dts/hisilicon/hip06-d03.dts
+++ b/arch/arm64/boot/dts/hisilicon/hip06-d03.dts
@@ -25,6 +25,14 @@
chosen { };
};
+&ipmi0 {
+ status = "ok";
+};
+
+&uart0 {
+ status = "ok";
+};
+
ð0 {
status = "ok";
};
diff --git a/arch/arm64/boot/dts/hisilicon/hip06.dtsi b/arch/arm64/boot/dts/hisilicon/hip06.dtsi
index 35202eb..d78a6a7 100644
--- a/arch/arm64/boot/dts/hisilicon/hip06.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hip06.dtsi
@@ -350,6 +350,27 @@
#size-cells = <2>;
ranges;
+ isa@a01b0000 {
+ compatible = "hisilicon,hip06-lpc";
+ #size-cells = <1>;
+ #address-cells = <2>;
+ reg = <0x0 0xa01b0000 0x0 0x1000>;
+
+ ipmi0: bt@e4 {
+ compatible = "ipmi-bt";
+ device_type = "ipmi";
+ reg = <0x01 0xe4 0x04>;
+ status = "disabled";
+ };
+
+ uart0: lpc-uart@2f8 {
+ compatible = "ns16550a";
+ clock-frequency = <1843200>;
+ reg = <0x01 0x2f8 0x08>;
+ status = "disabled";
+ };
+ };
+
refclk: refclk {
compatible = "fixed-clock";
clock-frequency = <50000000>;
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] arm64: dts: hisi: Enable Hisi LPC node for hip07
2018-04-30 15:15 [PATCH 0/3] HiSilicon LPC defconfig and DT patches John Garry
2018-04-30 15:15 ` [PATCH 1/3] arm64: defconfig: Enable HISILICON_LPC John Garry
2018-04-30 15:15 ` [PATCH 2/3] arm64: dts: hisi: Enable Hisi LPC node for hip06 John Garry
@ 2018-04-30 15:15 ` John Garry
2018-05-11 14:00 ` [PATCH 0/3] HiSilicon LPC defconfig and DT patches Wei Xu
3 siblings, 0 replies; 5+ messages in thread
From: John Garry @ 2018-04-30 15:15 UTC (permalink / raw)
To: xuwei5; +Cc: linux-arm-kernel, linuxarm, linux-kernel, devicetree, John Garry
The patch enables the HiSi LPC node for hip07, with
the IPMI child device.
Signed-off-by: John Garry <john.garry@huawei.com>
---
arch/arm64/boot/dts/hisilicon/hip07-d05.dts | 4 ++++
arch/arm64/boot/dts/hisilicon/hip07.dtsi | 14 ++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hip07-d05.dts b/arch/arm64/boot/dts/hisilicon/hip07-d05.dts
index fe7c16c..21147e8 100644
--- a/arch/arm64/boot/dts/hisilicon/hip07-d05.dts
+++ b/arch/arm64/boot/dts/hisilicon/hip07-d05.dts
@@ -57,6 +57,10 @@
status = "ok";
};
+&ipmi0 {
+ status = "ok";
+};
+
&usb_ohci {
status = "ok";
};
diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch/arm64/boot/dts/hisilicon/hip07.dtsi
index 0600a6a..9c10030a 100644
--- a/arch/arm64/boot/dts/hisilicon/hip07.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hip07.dtsi
@@ -1114,6 +1114,20 @@
#size-cells = <2>;
ranges;
+ isa@a01b0000 {
+ compatible = "hisilicon,hip07-lpc";
+ #size-cells = <1>;
+ #address-cells = <2>;
+ reg = <0x0 0xa01b0000 0x0 0x1000>;
+
+ ipmi0: bt@e4 {
+ compatible = "ipmi-bt";
+ device_type = "ipmi";
+ reg = <0x01 0xe4 0x04>;
+ status = "disabled";
+ };
+ };
+
uart0: uart@602b0000 {
compatible = "arm,sbsa-uart";
reg = <0x0 0x602b0000 0x0 0x1000>;
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] HiSilicon LPC defconfig and DT patches
2018-04-30 15:15 [PATCH 0/3] HiSilicon LPC defconfig and DT patches John Garry
` (2 preceding siblings ...)
2018-04-30 15:15 ` [PATCH 3/3] arm64: dts: hisi: Enable Hisi LPC node for hip07 John Garry
@ 2018-05-11 14:00 ` Wei Xu
3 siblings, 0 replies; 5+ messages in thread
From: Wei Xu @ 2018-05-11 14:00 UTC (permalink / raw)
To: John Garry; +Cc: linux-arm-kernel, linuxarm, linux-kernel, devicetree, xuwei5
Hi John,
On 2018/4/30 16:15, John Garry wrote:
> This series introduces 3 patches, to enable the
> HISILICON_LPC config in the arm64 defconfig
> and also add the relevant LPC DT entries.
>
> For hip06 UART support, we depend on this patch:
> https://lkml.org/lkml/2018/4/27/258
>
> John Garry (3):
> arm64: defconfig: Enable HISILICON_LPC
> arm64: dts: hisi: Enable Hisi LPC node for hip06
> arm64: dts: hisi: Enable Hisi LPC node for hip07
>
> arch/arm64/boot/dts/hisilicon/hip06-d03.dts | 8 ++++++++
> arch/arm64/boot/dts/hisilicon/hip06.dtsi | 21 +++++++++++++++++++++
> arch/arm64/boot/dts/hisilicon/hip07-d05.dts | 4 ++++
> arch/arm64/boot/dts/hisilicon/hip07.dtsi | 14 ++++++++++++++
> arch/arm64/configs/defconfig | 1 +
> 5 files changed, 48 insertions(+)
>
Series applied into the hisilicon tree.
Thanks!
BR,
Wei
^ permalink raw reply [flat|nested] 5+ messages in thread