ANDROID: arm64: dts: hi3660: add display driver dts

Signed-off-by: Liwei Cai <cailiwei@hisilicon.com>
Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
[jstultz: Cleanup unused hisifb bits]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Bug: 146450171
Change-Id: If9df111ad81475caec22fe75168544b010477e04
This commit is contained in:
cailiwei 2017-08-15 15:05:23 +08:00 committed by Todd Kjos
parent 99ae6d076a
commit ea6449d48a
3 changed files with 106 additions and 1 deletions

View File

@ -0,0 +1,91 @@
// SPDX-License-Identifier: GPL-2.0
/{
dpe: dpe@E8600000 {
compatible = "hisilicon,hi3660-dpe";
status = "ok";
reg = <0x0 0xE8600000 0x0 0x80000>,
<0x0 0xFFF35000 0 0x1000>,
<0x0 0xFFF0A000 0 0x1000>,
<0x0 0xFFF31000 0 0x1000>,
<0x0 0xE86C0000 0 0x10000>;
interrupts = <0 245 4>;
clocks = <&crg_ctrl HI3660_ACLK_GATE_DSS>,
<&crg_ctrl HI3660_PCLK_GATE_DSS>,
<&crg_ctrl HI3660_CLK_GATE_EDC0>,
<&crg_ctrl HI3660_CLK_GATE_LDI0>,
<&crg_ctrl HI3660_CLK_GATE_LDI1>,
<&sctrl HI3660_CLK_GATE_DSS_AXI_MM>,
<&sctrl HI3660_PCLK_GATE_MMBUF>;
clock-names = "aclk_dss",
"pclk_dss",
"clk_edc0",
"clk_ldi0",
"clk_ldi1",
"clk_dss_axi_mm",
"pclk_mmbuf";
dma-coherent;
port {
dpe_out: endpoint {
remote-endpoint = <&dsi_in>;
};
};
iommu_info {
start-addr = <0x8000>;
size = <0xbfff8000>;
};
};
dsi: dsi@E8601000 {
compatible = "hisilicon,hi3660-dsi";
status = "ok";
reg = <0 0xE8601000 0 0x7F000>,
<0 0xFFF35000 0 0x1000>;
clocks = <&crg_ctrl HI3660_CLK_GATE_TXDPHY0_REF>,
<&crg_ctrl HI3660_CLK_GATE_TXDPHY1_REF>,
<&crg_ctrl HI3660_CLK_GATE_TXDPHY0_CFG>,
<&crg_ctrl HI3660_CLK_GATE_TXDPHY1_CFG>,
<&crg_ctrl HI3660_PCLK_GATE_DSI0>,
<&crg_ctrl HI3660_PCLK_GATE_DSI1>;
clock-names = "clk_txdphy0_ref",
"clk_txdphy1_ref",
"clk_txdphy0_cfg",
"clk_txdphy1_cfg",
"pclk_dsi0",
"pclk_dsi1";
#address-cells = <1>;
#size-cells = <0>;
mux-gpio = <&gpio2 4 0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
dsi_in: endpoint {
remote-endpoint = <&dpe_out>;
};
};
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
dsi_out0: endpoint@0 {
reg = <0>;
remote-endpoint = <&adv7533_in>;
};
};
};
};
};

View File

@ -10,6 +10,8 @@
#include "hi3660.dtsi"
#include "hikey960-pinctrl.dtsi"
#include "hi3660-drm.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
@ -603,12 +605,24 @@ adv7533: adv7533@39 {
status = "okay";
compatible = "adi,adv7533";
reg = <0x39>;
v1p2-supply = <&ldo3>;
vdd-supply = <&ldo3>;
interrupt-parent = <&gpio1>;
interrupts = <1 2>;
pd-gpio = <&gpio5 1 0>;
sel-gpio = <&gpio2 4 0>;
adi,dsi-lanes = <4>;
adi,disable-timing-generator;
#sound-dai-cells = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
adv7533_in: endpoint {
remote-endpoint = <&dsi_out0>;
};
};
port@1 {
reg = <1>;

View File

@ -431,7 +431,7 @@ i2c1: i2c@ffd72000 {
resets = <&iomcu_rst 0x20 4>;
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
status = "disabled";
status = "ok";
};
i2c3: i2c@fdf0c000 {