forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: dts: Add JH7100 and BeagleV Starlight support
This is the device tree from https://github.com/starfive-tech/u-boot/ Rearranged, cleanups, fixes and TPS65086 added by Emil. Cleanups, fixes and LED added by Geert. Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com> Signed-off-by: Huan.Feng <huan.feng@starfivetech.com> Signed-off-by: ke.zhu <ke.zhu@starfivetech.com> Signed-off-by: yiming.li <yiming.li@starfivetech.com> Signed-off-by: jack.zhu <jack.zhu@starfivetech.com> Signed-off-by: Samin Guo <samin.guo@starfivetech.com> Signed-off-by: Chenjieqin <Jessica.Chen@starfivetech.com> Signed-off-by: bo.li <bo.li@starfivetech.com> Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
- Loading branch information
Showing
5 changed files
with
1,168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
subdir-y += sifive | ||
subdir-y += sifive starfive | ||
subdir-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += canaan | ||
|
||
obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
dtb-$(CONFIG_SOC_STARFIVE_VIC7100) += jh7100-starlight.dtb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,366 @@ | ||
/dts-v1/; | ||
#include "jh7100.dtsi" | ||
#include <dt-bindings/starfive_fb.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/leds/common.h> | ||
|
||
/ { | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
compatible = "beagle,beaglev-starlight-jh7100"; | ||
model = "BeagleV Starlight Beta"; | ||
|
||
aliases { | ||
serial0 = &uart3; | ||
serial1 = &uart0; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200"; | ||
}; | ||
|
||
cpus { | ||
timebase-frequency = <6250000>; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led-ack { | ||
gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; | ||
color = <LED_COLOR_ID_GREEN>; | ||
function = LED_FUNCTION_HEARTBEAT; | ||
linux,default-trigger = "heartbeat"; | ||
label = "ack"; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
|
||
&uart3 { | ||
status = "okay"; | ||
}; | ||
|
||
&usb3 { | ||
dr_mode = "host"; | ||
status = "okay"; | ||
}; | ||
|
||
&i2c0 { | ||
imx219@10 { | ||
compatible = "imx219"; | ||
reg = <0x10>; | ||
reset-gpio = <&gpio 58 0>; | ||
}; | ||
|
||
tps65086@5e { | ||
compatible = "ti,tps65086"; | ||
reg = <0x5e>; | ||
/* | ||
interrupt-parent = <&gpio1>; | ||
interrupts = <28 IRQ_TYPE_LEVEL_LOW>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
*/ | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; | ||
|
||
tda998x@70 { | ||
compatible = "nxp,tda998x"; | ||
reg = <0x70>; | ||
}; | ||
}; | ||
|
||
&i2c2 { | ||
seeed_plane_i2c@45 { | ||
compatible = "seeed_panel"; | ||
reg = <0x45>; | ||
}; | ||
}; | ||
|
||
&qspi { | ||
nor_flash: nor-flash@0 { | ||
compatible = "spi-flash"; | ||
reg = <0>; | ||
spi-max-frequency = <31250000>; | ||
page-size = <256>; | ||
block-size = <16>; | ||
cdns,read-delay = <4>; | ||
cdns,tshsl-ns = <1>; | ||
cdns,tsd2d-ns = <1>; | ||
cdns,tchsh-ns = <1>; | ||
cdns,tslch-ns = <1>; | ||
spi-tx-bus-width = <1>; | ||
spi-rx-bus-width = <1>; | ||
}; | ||
|
||
nand_flash: nand-flash@1 { | ||
compatible = "spi-flash-nand"; | ||
reg = <1>; | ||
spi-max-frequency = <31250000>; | ||
page-size = <2048>; | ||
block-size = <17>; | ||
cdns,read-delay = <4>; | ||
cdns,tshsl-ns = <1>; | ||
cdns,tsd2d-ns = <1>; | ||
cdns,tchsh-ns = <1>; | ||
cdns,tslch-ns = <1>; | ||
spi-tx-bus-width = <1>; | ||
spi-rx-bus-width = <1>; | ||
}; | ||
}; | ||
|
||
&spi2 { | ||
status = "okay"; | ||
|
||
spi_dev0: spi@0 { | ||
compatible = "rohm,dh2228fv"; | ||
spi-max-frequency = <10000000>; | ||
reg = <0>; | ||
}; | ||
}; | ||
|
||
/* | ||
&sdio1 { | ||
bcmdhd_wlan: bcmdhd_wlan@1 { | ||
compatible = "android,bcmdhd_wlan"; | ||
gpios = <&gpio 26 0>; | ||
}; | ||
}; | ||
*/ | ||
|
||
&sfivefb { | ||
/* | ||
pp1 { | ||
pp-id = <1>; | ||
fifo-out; | ||
src-format = <COLOR_YUV420_NV21>; | ||
src-width = <800>; | ||
src-height = <480>; | ||
dst-format = <COLOR_RGB888_ARGB>; | ||
dst-width = <800>; | ||
dst-height = <480>; | ||
}; | ||
*/ | ||
|
||
tda_998x_1080p { | ||
compatible = "starfive,display-dev"; | ||
panel_name = "tda_998x_1080p"; | ||
panel_lcd_id = <22>; /* 1080p */ | ||
interface_info = "rgb_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 = <44>; | ||
h-back-porch = <148>; | ||
h-front-porch = <88>; | ||
v-pulse-width = <5>; | ||
v-back-porch = <36>; | ||
v-front-porch = <4>; | ||
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 = [ | ||
|
||
]; | ||
*/ | ||
}; | ||
|
||
seeed_5_inch { | ||
compatible = "starfive,display-dev"; | ||
panel_name = "seeed_5_inch"; | ||
panel_lcd_id = <22>; /* 480p */ | ||
interface_info = "mipi_interface"; | ||
refresh_en = <1>; | ||
bits-per-pixel = <24>; | ||
physical-width = <62>; | ||
physical-height = <114>; | ||
panel-width = <800>; | ||
panel-height = <480>; | ||
pixel-clock = <27500000>; | ||
/*dyn_fps;*/ /*dynamic frame rate support*/ | ||
fps = <50>; | ||
/*.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 = <1>; | ||
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 = <10>; | ||
h-back-porch = <20>; | ||
h-front-porch = <50>; | ||
v-pulse-width = <5>; | ||
v-back-porch = <5>; | ||
v-front-porch = <135>; | ||
|
||
/*seeed panel mode info*/ | ||
dphy_bps = <700000000>; | ||
dsi_burst_mode = <0>; | ||
dsi_sync_pulse = <1>; | ||
// bytes | ||
dsi_hsa = <30>; | ||
dsi_hbp = <211>; | ||
dsi_hfp = <159>; | ||
// lines | ||
dsi_vsa = <5>; | ||
dsi_vbp = <5>; | ||
dsi_vfp = <134>; | ||
|
||
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 = [ | ||
|
||
]; | ||
*/ | ||
}; | ||
}; |
Oops, something went wrong.