diff options
author | TekkamanV <tekkamanv@starfivetech.com> | 2021-08-16 15:20:01 +0300 |
---|---|---|
committer | Tekkaman Ninja <tekkamanninja@163.com> | 2021-09-29 09:51:21 +0300 |
commit | c3f9ce08df88cc808e39cadce6897c4911ce86c0 (patch) | |
tree | 1a0a2807051fd5551386792487b92b14ef931bfa /arch/riscv/dts/adv7513_1080p.dtsi | |
parent | 4f70f1998558aa4b7ea0a985ca442be0ca780bd5 (diff) | |
download | u-boot-c3f9ce08df88cc808e39cadce6897c4911ce86c0.tar.xz |
starfive: Add JH7100 support
This patch adds StarFive JH7100 main support, including Starlight and EVB
support, ported from StarFive HiFive_U-Boot REPO.
The original authors are
bo.li <bo.li@starfivetech.com>
Chenjieqin <Jessica.Chen@starfivetech.com>
Huan.Feng <huan.feng@starfivetech.com>
jack.zhu <jack.zhu@starfivetech.com>
Jianlong Huang <jianlong.huang@starfivetech.com>
ke.zhu <ke.zhu@starfivetech.com>
Micheal Zhu <michael.zhu@starfivetech.com>
Samin Guo <samin.guo@starfivetech.com>
yanhong.wang <yanhong.wang@starfivetech.com>
yiming.li <yiming.li@starfivetech.com>
Note:
1, disable BTRFS(will trigger a link error with *some* RV64 GCC)
But RV64 GCC on Fedora works well with enabling BTRFS.
BTRFS will select ZSTD which will trigger a link error with
*some* RV64 GCC:
---
riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o): can't link double-float modules with soft-float modules
riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o)
riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o): can't link double-float modules with soft-float modules
riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o)
make: *** [Makefile:1787: u-boot] Error 1
---
2, enable OF_SEPARATE:
This is required so that openSBI can add itself to /reserved-memory, and
let EFI know about it.
By Andreas Schwab <schwab@suse.de>
3, Set default fdtfile name
By Andreas Schwab <schwab@suse.de>
Diffstat (limited to 'arch/riscv/dts/adv7513_1080p.dtsi')
-rwxr-xr-x | arch/riscv/dts/adv7513_1080p.dtsi | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/arch/riscv/dts/adv7513_1080p.dtsi b/arch/riscv/dts/adv7513_1080p.dtsi new file mode 100755 index 0000000000..2c6b56e265 --- /dev/null +++ b/arch/riscv/dts/adv7513_1080p.dtsi @@ -0,0 +1,108 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* Copyright (c) 2021 StarFive Technology Co., Ltd. */ + +#include <dt-bindings/starfive_fb.h> + +&sfivefb { + adv_7513_1080p { + compatible = "starfive,display-dev"; + panel_name = "adv_7513_1080p"; + panel_lcd_id = <22>; /*1080p*/ + interface_info = "mipi_interface"; + refresh_en = <1>; + bits-per-pixel = <16>; + physical-width = <62>; + physical-height = <114>; + panel-width = <1920>; + panel-height = <1080>; + pixel-clock = <78000000>; + /*dyn_fps;*/ /*dynamic frame rate support*/ + + /*.flags = PREFER_CMD_SEND_MONOLITHIC | CE_CMD_SEND_MONOLITHIC | RESUME_WITH_PREFER | RESUME_WITH_CE*/ + /*gamma-command-monolithic;*/ + /*ce-command-monolithic;*/ + /*resume-with-gamma;*/ + /*resume-with-ce;*/ + + /*mipi info*/ + mipi-byte-clock = <78000>; + mipi-escape-clock = <13000>; + lane-no = <4>; + display_mode = "video_mode"; /*video_mode, command_mode*/ + + /* + auto_stop_clklane_en; + im_pin_val;*/ + + + color_bits = <COLOR_CODE_24BIT>; + /*is_18bit_loosely;*/ + + /*video mode info*/ + h-pulse-width = <40>; + h-back-porch = <220>; + h-front-porch = <110>; + v-pulse-width = <5>; + v-back-porch = <20>; + v-front-porch = <5>; + status = "okay"; + sync_pol = "vsync_high_act"; /*vsync_high_act, hsync_high_act*/ + lp_cmd_en; + /*lp_hfp_en;*/ + /*lp_hbp_en;*/ + /*lp_vact_en;*/ + lp_vfp_en; + lp_vbp_en; + lp_vsa_en; + traffic-mode = "burst_with_sync_pulses"; /*non_burst_with_sync_pulses, non_burst_with_sync_events*/ + + /*phy info*/ + data_tprepare = /bits/ 8 <0>; + data_hs_zero = /bits/ 8 <0>; + data_hs_exit = /bits/ 8 <0>; + data_hs_trail = /bits/ 8 <0>; + + /*te info*/ + te_source = "external_pin"; /*external_pin, dsi_te_trigger*/ + te_trigger_mode = "rising_edge"; /*rising_edge, high_1000us*/ + te_enable = <0>; + cm_te_effect_sync_enable = <0>; /*used in command mode*/ + te_count_per_sec = <64>; /*used in esd*/ + + /*ext info*/ + /* + crc_rx_en; + ecc_rx_en; + eotp_rx_en; + */ + eotp_tx_en; + + dev_read_time = <0x7FFF>; + /*type cmd return_count return_code*/ + /*id_read_cmd_info = [];*/ + /*pre_id_cmd = [];*/ + /*esd_read_cmd_info = [DCS_CMD 0A 01 9C];*/ + /*pre_esd_cmd = [];*/ + /*panel-on-command = [];*/ + /*panel-off-command = [];*/ + /*reset-sequence = <1 5>, <0 10>, <1 30>;*/ + /* + panel-gamma-warm-command = [ + + ]; + panel-gamma-nature-command = [ + + ]; + panel-gamma-cool-command = [ + + ]; + + panel-ce-std-command = [ + + ]; + panel-ce-vivid-command = [ + + ]; + */ + }; +}; |