mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
RPI4: dts: Create a new device tree for the DSI display
This commit is contained in:
@@ -1 +1 @@
|
||||
dtb-y += broadcom/bcm2711-rpi-4-b.dtb
|
||||
dtb-y += broadcom/bcm2711-rpi-4-b.dtb broadcom/bcm2711-rpi-4-b-dsi.dtb
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
#include "bcm2711-rpi-4-b.dts"
|
||||
|
||||
/ {
|
||||
panel_disp: panel_disp@1 {
|
||||
reg = <1>;
|
||||
compatible = "raspberrypi,7inch-dsi", "simple-panel";
|
||||
backlight = <®_display>;
|
||||
power-supply = <®_display>;
|
||||
port {
|
||||
panel_in: endpoint {
|
||||
remote-endpoint = <&bridge_out>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
reg_bridge: reg_bridge@1 {
|
||||
reg = <1>;
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "bridge_reg";
|
||||
gpio = <®_display 0 0>;
|
||||
vin-supply = <®_display>;
|
||||
enable-active-high;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&i2c0mux {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
reg_display: reg_display@45 {
|
||||
compatible = "raspberrypi,7inch-touchscreen-panel-regulator";
|
||||
reg = <0x45>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
ft5406: ts@38 {
|
||||
compatible = "edt,edt-ft5506";
|
||||
reg = <0x38>;
|
||||
touchscreen-size-x = < 800 >;
|
||||
touchscreen-size-y = < 480 >;
|
||||
vcc-supply = <®_display>;
|
||||
reset-gpio = <®_display 1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&dsi1 {
|
||||
status = "okay";
|
||||
port {
|
||||
dsi_out: endpoint {
|
||||
remote-endpoint = <&bridge_in>;
|
||||
};
|
||||
};
|
||||
bridge@0 {
|
||||
reg = <0>;
|
||||
compatible = "toshiba,tc358762";
|
||||
vddc-supply = <®_bridge>;
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
bridge_in: endpoint {
|
||||
remote-endpoint = <&dsi_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
bridge_out: endpoint {
|
||||
remote-endpoint = <&panel_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&hdmi0 {
|
||||
status = "disabled";
|
||||
};
|
||||
&hdmi1 {
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -18,27 +18,6 @@
|
||||
reusable;
|
||||
};
|
||||
|
||||
panel_disp: panel_disp@1 {
|
||||
reg = <1>;
|
||||
compatible = "raspberrypi,7inch-dsi", "simple-panel";
|
||||
backlight = <®_display>;
|
||||
power-supply = <®_display>;
|
||||
port {
|
||||
panel_in: endpoint {
|
||||
remote-endpoint = <&bridge_out>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
reg_bridge: reg_bridge@1 {
|
||||
reg = <1>;
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "bridge_reg";
|
||||
gpio = <®_display 0 0>;
|
||||
vin-supply = <®_display>;
|
||||
enable-active-high;
|
||||
};
|
||||
|
||||
chosen {
|
||||
/* 8250 auxiliary UART instead of pl011 */
|
||||
stdout-path = "serial1:115200n8";
|
||||
@@ -54,66 +33,3 @@
|
||||
&vc4 {
|
||||
status = "okay";
|
||||
};
|
||||
&i2c0mux {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
reg_display: reg_display@45 {
|
||||
compatible = "raspberrypi,7inch-touchscreen-panel-regulator";
|
||||
reg = <0x45>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
ft5406: ts@38 {
|
||||
compatible = "edt,edt-ft5506";
|
||||
reg = <0x38>;
|
||||
touchscreen-size-x = < 800 >;
|
||||
touchscreen-size-y = < 480 >;
|
||||
vcc-supply = <®_display>;
|
||||
reset-gpio = <®_display 1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&dsi1 {
|
||||
status = "okay";
|
||||
port {
|
||||
dsi_out: endpoint {
|
||||
remote-endpoint = <&bridge_in>;
|
||||
};
|
||||
};
|
||||
bridge@0 {
|
||||
reg = <0>;
|
||||
compatible = "toshiba,tc358762";
|
||||
vddc-supply = <®_bridge>;
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
bridge_in: endpoint {
|
||||
remote-endpoint = <&dsi_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
bridge_out: endpoint {
|
||||
remote-endpoint = <&panel_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
&hdmi0 {
|
||||
status = "disabled";
|
||||
};
|
||||
&hdmi1 {
|
||||
status = "disabled";
|
||||
};*/
|
||||
|
||||
Reference in New Issue
Block a user