arm64: dts: Add display subsystem DT nodes for hi6220-hikey
Subsystems (2)
PATCH 1/4 arm64: dts: Add display subsystem DT nodes for hi6220-hikey
From: Xinliang Liu <[email protected]>
Add ade and dsi DT nodes for hikey board.
--- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 8 ++++ arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 55 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +8 -0
@@ -372,3 +372,11 @@ &uart3 { label = "LS-UART1"; }; + +&ade { + status = "ok"; +}; + +&dsi { + status = "ok"; +};
arch/arm64/boot/dts/hisilicon/hi6220.dtsi +55 -0
66 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 2/4 arm64: dts: Add HDMI node for hi6220-hikey
From: Xinliang Liu <[email protected]>
Add adv7533 HDMI DT node for HiKey board.
--- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +32 -0
@@ -379,4 +379,36 @@ &dsi { status = "ok"; + + ports { + /* 1 for output port */ + port at 1 { + reg = <1>; + + dsi_out0: endpoint at 0 { + remote-endpoint = <&adv7533_in>; + }; + }; + }; +}; + +&i2c2 { + #address-cells = <1>; + #size-cells = <0>; + status = "ok"; + + adv7533: adv7533 at 39 { + compatible = "adi,adv7533"; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <1 2>; + pd-gpio = <&gpio0 4 0>; + adi,dsi-lanes = <4>; + + port { + adv7533_in: endpoint { + remote-endpoint = <&dsi_out0>; + }; + }; + }; };
Signature · 1 line
1.9.1
PATCH 3/4 arm64: dts: hikey: Add hikey support for syscon-reboot-mode
In reply to John StultzAdd support to hikey dts for the syscon-reboot-mode driver.
After trying an approach using a sram driver and node, a number of issues cropped up which would make it so we would be duplicating a lot of extra syscon infrastructure in order to support mfds on sram. After talking with Bjorn, using the syscon driver for this seems like an better choice.
--- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +17 -1
@@ -29,6 +29,7 @@ * Reserve below regions from memory node: * * 0x05e0,0000 - 0x05ef,ffff: MCU firmware runtime using + * 0x05f0,1000 - 0x05f0,1fff: Reboot reason * 0x06df,f000 - 0x06df,ffff: Mailbox message data * 0x0740,f000 - 0x0740,ffff: MCU firmware section * 0x3e00,0000 - 0x3fff,ffff: OP-TEE
@@ -36,11 +37,26 @@ memory at 0 { device_type = "memory"; reg = <0x00000000 0x00000000 0x00000000 0x05e00000>, - <0x00000000 0x05f00000 0x00000000 0x00eff000>, + <0x00000000 0x05f00000 0x00000000 0x00001000>, + <0x00000000 0x05f02000 0x00000000 0x00efd000>, <0x00000000 0x06e00000 0x00000000 0x0060f000>, <0x00000000 0x07410000 0x00000000 0x36bf0000>; }; + reboot-mode-syscon at 5f01000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0x05f01000 0x0 0x00001000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; + soc { spi0: spi at f7106000 { status = "ok";
Signature · 1 line
1.9.1
PATCH 4/4 arm64: dts: hikey: Add pstore support for HiKey
In reply to John StultzThis patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey.
--- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +18 -1
@@ -32,6 +32,7 @@ * 0x05f0,1000 - 0x05f0,1fff: Reboot reason * 0x06df,f000 - 0x06df,ffff: Mailbox message data * 0x0740,f000 - 0x0740,ffff: MCU firmware section + * 0x21f0,0000 - 0x21ff,ffff: pstore/ramoops buffer * 0x3e00,0000 - 0x3fff,ffff: OP-TEE */ memory at 0 {
@@ -40,9 +41,25 @@ <0x00000000 0x05f00000 0x00000000 0x00001000>, <0x00000000 0x05f02000 0x00000000 0x00efd000>, <0x00000000 0x06e00000 0x00000000 0x0060f000>, - <0x00000000 0x07410000 0x00000000 0x36bf0000>; + <0x00000000 0x07410000 0x00000000 0x1aaf0000>, + <0x00000000 0x22000000 0x00000000 0x1c000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops at 0x21f00000 { + compatible = "ramoops"; + reg = <0x0 0x21f00000 0x0 0x00100000>; + record-size = <0x00020000>; + console-size = <0x00020000>; + ftrace-size = <0x00020000>; + }; + }; + + reboot-mode-syscon at 5f01000 { compatible = "syscon", "simple-mfd"; reg = <0x0 0x05f01000 0x0 0x00001000>;
Signature · 1 line
1.9.1
Re: [PATCH 4/4] arm64: dts: hikey: Add pstore support for HiKey
Quoted 15 lines · John Stultz
This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey.
Cc Kees Cook <[email protected]>Cc Guodong Xu <[email protected]>Cc Haojian Zhuang <[email protected]>Cc Wei Xu <[email protected]>Cc Rob Herring <[email protected]>Cc Mark Rutland <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc devicetree at vger.kernel.orgReviewed-by Kees Cook <[email protected]>Signed-off-by John Stultz <[email protected]>
I'm going through old emails -- did this get picked up by anyone? I don't see an "applied" reply or similar, though I could have easily missed it. :)
-Kees
Quoted 46 lines
--- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +18
-2@@ -32,6 +32,7 @@ * 0x05f0,1000 - 0x05f0,1fff: Reboot reason * 0x06df,f000 - 0x06df,ffff: Mailbox message data * 0x0740,f000 - 0x0740,ffff: MCU firmware section + * 0x21f0,0000 - 0x21ff,ffff: pstore/ramoops buffer * 0x3e00,0000 - 0x3fff,ffff: OP-TEE */ memory at 0 {@@ -40,9 +41,25 @@ <0x00000000 0x05f00000 0x00000000 0x00001000>, <0x00000000 0x05f02000 0x00000000 0x00efd000>, <0x00000000 0x06e00000 0x00000000 0x0060f000>, - <0x00000000 0x07410000 0x00000000 0x36bf0000>; + <0x00000000 0x07410000 0x00000000 0x1aaf0000>, + <0x00000000 0x22000000 0x00000000 0x1c000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops at 0x21f00000 { + compatible = "ramoops"; + reg = <0x0 0x21f00000 0x0 0x00100000>; + record-size = <0x00020000>; + console-size = <0x00020000>; + ftrace-size = <0x00020000>; + }; + }; + + reboot-mode-syscon at 5f01000 { compatible = "syscon", "simple-mfd"; reg = <0x0 0x05f01000 0x0 0x00001000>; --1.9.1
Signature · 2 lines
Kees Cook Nexus Security
Re: [PATCH 4/4] arm64: dts: hikey: Add pstore support for HiKey
Quoted 17 lines · Kees Cook
Quoted 15 lines · John Stultz
This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey.
Cc Kees Cook <[email protected]>Cc Guodong Xu <[email protected]>Cc Haojian Zhuang <[email protected]>Cc Wei Xu <[email protected]>Cc Rob Herring <[email protected]>Cc Mark Rutland <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc devicetree at vger.kernel.orgReviewed-by Kees Cook <[email protected]>Signed-off-by John Stultz <[email protected]>
Quoted 3 lines
I'm going through old emails -- did this get picked up by anyone? I don't see an "applied" reply or similar, though I could have easily missed it. :)
Wei said he picked up the set, but it hasn't shown up in -next yet, as his tree isn't automatically pulled in apparently.
thanks
-john
Wei Xu
maintainerRe: [PATCH 4/4] arm64: dts: hikey: Add pstore support for HiKey
Hi Kess and John,
Quoted 18 lines · John Stultz
Quoted 17 lines · Kees Cook
Quoted 15 lines · John Stultz
This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey.
Cc Kees Cook <[email protected]>Cc Guodong Xu <[email protected]>Cc Haojian Zhuang <[email protected]>Cc Wei Xu <[email protected]>Cc Rob Herring <[email protected]>Cc Mark Rutland <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc devicetree at vger.kernel.orgReviewed-by Kees Cook <[email protected]>Signed-off-by John Stultz <[email protected]>
Quoted 6 lines
Quoted 3 lines
I'm going through old emails -- did this get picked up by anyone? I don't see an "applied" reply or similar, though I could have easily missed it. :)
Wei said he picked up the set, but it hasn't shown up in -next yet, as his tree isn't automatically pulled in apparently.
I have picked up this series and sent the pull request as [1]. Thanks for your interesting!
[1] http://www.spinics.net/lists/arm-kernel/msg528380.html
Best Regards,
Wei
Quoted 6 lines
thanks
-john.
Wei Xu
maintainerHi John,
Quoted 14 lines · John Stultz
From: Xinliang Liu <[email protected]>
Add ade and dsi DT nodes for hikey board.
Cc Guodong Xu <[email protected]>Cc Wei Xu <[email protected]>Cc Rob Herring <[email protected]>Cc Mark Rutland <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc devicetree at vger.kernel.orgSigned-off-by Xinliang Liu <[email protected]>Signed-off-by John Stultz <[email protected]>
Quoted 1 line
---
Series applied to the hisilicon soc tree.
Thanks!
Best Regards,
Wei
Quoted 93 lines
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 8 ++++ arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 55 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+)arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +8
-0@@ -372,3 +372,11 @@ &uart3 { label = "LS-UART1"; }; + +&ade { + status = "ok"; +}; + +&dsi { + status = "ok"; +};arch/arm64/boot/dts/hisilicon/hi6220.dtsi +55
-0@@ -262,6 +262,11 @@ #clock-cells = <1>; }; + medianoc_ade: medianoc_ade at f4520000 { + compatible = "syscon"; + reg = <0x0 0xf4520000 0x0 0x4000>; + }; + stub_clock: stub_clock { compatible = "hisilicon,hi6220-stub-clk"; hisilicon,hi6220-clk-sram = <&sram>;@@ -850,5 +855,55 @@ }; }; }; + + ade: ade at f4100000 { + compatible = "hisilicon,hi6220-ade"; + reg = <0x0 0xf4100000 0x0 0x7800>; + reg-names = "ade_base"; + hisilicon,noc-syscon = <&medianoc_ade>; + resets = <&media_ctrl MEDIA_ADE>; + interrupts = <0 115 4>; /* ldi interrupt */ + + clocks = <&media_ctrl HI6220_ADE_CORE>, + <&media_ctrl HI6220_CODEC_JPEG>, + <&media_ctrl HI6220_ADE_PIX_SRC>; + /*clock name*/ + clock-names = "clk_ade_core", + "clk_codec_jpeg", + "clk_ade_pix"; + + assigned-clocks = <&media_ctrl HI6220_ADE_CORE>, + <&media_ctrl HI6220_CODEC_JPEG>; + assigned-clock-rates = <360000000>, <288000000>; + dma-coherent; + status = "disabled"; + + port { + ade_out: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; + }; + + dsi: dsi at f4107800 { + compatible = "hisilicon,hi6220-dsi"; + reg = <0x0 0xf4107800 0x0 0x100>; + clocks = <&media_ctrl HI6220_DSI_PCLK>; + clock-names = "pclk"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* 0 for input port */ + port at 0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <&ade_out>; + }; + }; + }; + }; }; };