forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request torvalds#224: Dsi functional with Rpi panel on AM62L
Merge in LCPD-PRIV-SDK/ti-linux-kernel from ~A0496624/ti-linux-kernel_lcpdpriv:dsi_functional to am62lxx-wakeup * commit '8d360bf796d3565f55b18b5e4f1b03c67da6d01b': (22 commits) arm64: ti: k3-am62l: Add ranges for DSI and DPHY Tx arm64: dts: ti: k3-am62l: Enable I2C0 arm64: dts: ti: k3-am62l3-evm: Add DSI RPi Panel arm64: defconfig: Add Rpi Panel Regulator and Bridge arm64: defconfig: Add cdns-dsi arm64: dts: ti: k3-j721e-beagleboneai64: Add DSI RPi Panel arm64: dts: ti: k3-j721e-main: Add DSI and DPHY-TX drm/panel: simple: Add VESA timings for Raspberry Pi 7" DSI panel dt-bindings: display: simple: Add Raspberry Pi Panel drm/bridge: cdns-dsi: Use pre_enable/post_disable to enable/disable drm/atomic-helper: Re-order bridge chain pre-enable and post-disable drm/atomic-helper: Separate out Encoder-Bridge enable and disable drm/bridge: cdns-dsi: Move DSI mode check to _atomic_check() drm/bridge: cdns-dsi: Support atomic bridge APIs drm/mipi-dsi: Add helper to find input format drm/bridge: cdns-dsi: Wait for Clk and Data Lanes to be ready drm/bridge: cdns-dsi: Check return value when getting default PHY config drm/bridge: cdns-dsi: Fix the clock variable for mode_valid() drm/bridge: cdns-dsi: Fix the link and phy init order drm/bridge: cdns-dsi: Fix Phy _init() and _exit() ...
- Loading branch information
Showing
16 changed files
with
623 additions
and
115 deletions.
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
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
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
125 changes: 125 additions & 0 deletions
125
arch/arm64/boot/dts/ti/k3-am62l3-evm-dsi-rpi-7inch-panel.dtso
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,125 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
/** | ||
* DT Overlay for RPi 7inch touchscreen panel interfaced with DSI on | ||
* AM62L3 EVM. | ||
* | ||
* RPi DSI Panel: https://www.raspberrypi.com/products/raspberry-pi-touch-display/ | ||
* | ||
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
|
||
#include "k3-pinctrl.h" | ||
|
||
&{/} { | ||
bridge_reg: bridge-regulator { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "bridge-reg"; | ||
gpio = <&display_reg 0 0>; | ||
vin-supply = <&display_reg>; | ||
enable-active-high; | ||
}; | ||
|
||
panel0 { | ||
compatible = "raspberrypi,7inch-dsi", "simple-panel"; | ||
backlight = <&display_reg>; | ||
power-supply = <&display_reg>; | ||
port { | ||
panel_in: endpoint { | ||
remote-endpoint = <&panel_bridge_out>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&main_i2c0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
display_reg: regulator@45 { | ||
compatible = "raspberrypi,7inch-touchscreen-panel-regulator"; | ||
reg = <0x45>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; | ||
|
||
touch-controller@38 { | ||
compatible = "edt,edt-ft5406"; | ||
reg = <0x38>; | ||
|
||
touchscreen-size-x = < 800 >; | ||
touchscreen-size-y = < 480 >; | ||
|
||
vcc-supply = <&display_reg>; | ||
reset-gpio = <&display_reg 1 1>; | ||
|
||
touchscreen-inverted-x; | ||
touchscreen-inverted-y; | ||
}; | ||
}; | ||
|
||
&dss_ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
|
||
dpi_out: endpoint { | ||
remote-endpoint = <&dsi0_in>; | ||
}; | ||
}; | ||
}; | ||
|
||
&dsi0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
dsi0_out: endpoint { | ||
remote-endpoint = <&panel_bridge_in>; | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
dsi0_in: endpoint { | ||
remote-endpoint = <&dpi_out>; | ||
}; | ||
}; | ||
}; | ||
|
||
bridge@0 { | ||
compatible = "toshiba,tc358762"; | ||
reg = <0>; | ||
vddc-supply = <&bridge_reg>; | ||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
panel_bridge_in: endpoint { | ||
remote-endpoint = <&dsi0_out>; | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
panel_bridge_out: endpoint { | ||
remote-endpoint = <&panel_in>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |
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
144 changes: 144 additions & 0 deletions
144
arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64-dsi-rpi-7inch-panel.dtso
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,144 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
/** | ||
* DT Overlay for RPi 7inch touchscreen panel interfaced with DSI on | ||
* J721E based BeagleBone AI-64 (BBAI-64) platform. | ||
* | ||
* BBAI-64: https://www.beagleboard.org/boards/beaglebone-ai-64 | ||
* RPi DSI Panel: https://www.raspberrypi.com/products/raspberry-pi-touch-display/ | ||
* | ||
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
|
||
#include "k3-pinctrl.h" | ||
|
||
&{/} { | ||
bridge_reg: bridge-regulator { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "bridge-reg"; | ||
gpio = <&display_reg 0 0>; | ||
vin-supply = <&display_reg>; | ||
enable-active-high; | ||
}; | ||
|
||
panel0 { | ||
compatible = "raspberrypi,7inch-dsi", "simple-panel"; | ||
backlight = <&display_reg>; | ||
power-supply = <&display_reg>; | ||
port { | ||
panel_in: endpoint { | ||
remote-endpoint = <&panel_bridge_out>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&main_pmx0 { | ||
dsi_main_i2c4_pins: dsi-main-i2c4-pins { | ||
pinctrl-single,pins = < | ||
J721E_IOPAD(0xa8, PIN_INPUT_PULLUP, 2) /* (AD19) PRG1_MDIO0_MDIO.I2C4_SCL */ | ||
J721E_IOPAD(0xac, PIN_INPUT_PULLUP, 2) /* (AD18) PRG1_MDIO0_MDC.I2C4_SDA */ | ||
>; | ||
}; | ||
}; | ||
|
||
&main_i2c4 { | ||
clock-frequency = <400000>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&dsi_main_i2c4_pins>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
display_reg: regulator@45 { | ||
compatible = "raspberrypi,7inch-touchscreen-panel-regulator"; | ||
reg = <0x45>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; | ||
|
||
touch-controller@38 { | ||
compatible = "edt,edt-ft5406"; | ||
reg = <0x38>; | ||
|
||
touchscreen-size-x = < 800 >; | ||
touchscreen-size-y = < 480 >; | ||
|
||
vcc-supply = <&display_reg>; | ||
reset-gpio = <&display_reg 1 1>; | ||
|
||
touchscreen-inverted-x; | ||
touchscreen-inverted-y; | ||
}; | ||
}; | ||
|
||
&dss_ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@2 { | ||
reg = <2>; | ||
|
||
dpi2_out: endpoint { | ||
remote-endpoint = <&dsi0_in>; | ||
}; | ||
}; | ||
}; | ||
|
||
&dphy2 { | ||
status = "okay"; | ||
}; | ||
|
||
&dsi0 { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
dsi0_out: endpoint { | ||
remote-endpoint = <&panel_bridge_in>; | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
dsi0_in: endpoint { | ||
remote-endpoint = <&dpi2_out>; | ||
}; | ||
}; | ||
}; | ||
|
||
bridge@0 { | ||
compatible = "toshiba,tc358762"; | ||
reg = <0>; | ||
vddc-supply = <&bridge_reg>; | ||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
panel_bridge_in: endpoint { | ||
remote-endpoint = <&dsi0_out>; | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
panel_bridge_out: endpoint { | ||
remote-endpoint = <&panel_in>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
}; |
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
Oops, something went wrong.