blconfig = &blconfig;
};
- rpi_backlight: rpi_backlight {
- compatible = "raspberrypi,rpi-backlight";
- firmware = <&firmware>;
- status = "okay";
- };
-
- rpi_ft5406: rpi_ft5406 {
- compatible = "rpi,rpi-ft5406";
- firmware = <&firmware>;
- status = "okay";
- };
-
gpio-keys {
compatible = "gpio-keys";
enable-active-high;
gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
};
+
+ panel_disp1: panel_disp1@0 {
+ compatible = "raspberrypi,7inch-dsi", "simple-panel";
+ backlight = <®_display>;
+ power-supply = <®_display>;
+
+ port {
+ panel_in: endpoint {
+ remote-endpoint = <&bridge_out>;
+ };
+ };
+ };
+
+ reg_bridge: reg_bridge@0 {
+ compatible = "regulator-fixed";
+ regulator-name = "bridge_reg";
+ gpio = <®_display 0 0>;
+ vin-supply = <®_display>;
+ enable-active-high;
+ };
};
&ddc0 {
&i2c0if {
clock-frequency = <100000>;
+ status = "okay";
};
&i2c1 {
status = "okay";
};
+&i2c0mux {
+ status = "okay";
+};
+
+&dsi1 {
+ interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+ compatible = "brcm,bcm2711-dsi1";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ 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>;
+ };
+ };
+ };
+ };
+};
+
+&i2c_csi_dsi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ ft5406: ts@38 {
+ touchscreen-inverted-x;
+ touchscreen-inverted-y;
+
+ compatible = "edt,edt-ft5506";
+ reg = <0x38>;
+
+ touchscreen-size-x = < 800 >;
+ touchscreen-size-y = < 480 >;
+
+ vcc-supply = <®_display>;
+ reset-gpio = <®_display 1 1>;
+ };
+
+ reg_display: reg_display@45 {
+ compatible = "raspberrypi,7inch-touchscreen-panel-regulator";
+ reg = <0x45>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+};
+
/ {
__overrides__ {
act_led_gpio = <&act_led>,"gpios:4";
sd_poll_once = <&emmc2>, "non-removable?";
spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
<&spi0>, "dmas:8=", <&dma40>;
+
+ sizex = <&ft5406>,"touchscreen-size-x:0";
+ sizey = <&ft5406>,"touchscreen-size-y:0";
+ invx = <0>, "-10";
+ invy = <0>, "-11";
+ swapxy = <&ft5406>,"touchscreen-swapped-x-y?";
+
+ disable_touch = <0>, "-10-11-12";
};
};