k3-am68-phyboard-izar dsi support
Subsystems (2)
v4 cover k3-am68-phyboard-izar dsi support
This series adds support for the two dsi based display interfaces of the phyboard-izar with the phycore-am68x/tda4x som.
dsi0 gets converted to lvds on the som using a SN65DSI83 bridge in the default configuration. The phyboard-izar kit comes with a 10.1" lvds display with usb touch as addon.
dsi1 is routed to the carrier board onto a connector. To use that Phytec has developed a small extension board "PEB-AV-15" with a Lontium LT8912B dsi->hdmi bridge.
Changes for v2:
- Drop the following patch as it got merged in the last window:
dt-bindings: display: bridge: lt8912b: Drop reset gpio requirement
- In arm64: dts: ti: k3-am68-phyboard-izar: Add LVDS-Display Reduce pwm frequency to ~23kHz for the backlight. This is supported by the backlight and works better with most fans. Since the fan connector is using PWM0_A and the backlight PWM0_B they need to use the same frequency.
- In arm64: dts: ti: k3-am68-phyboard-izar: Add PEB-AV-15 overlay Fix license in boilerplate: s/GPL-2.0-or-only or MIT/GPL-2.0-only OR MIT
Link to v1:
https://lore.kernel.org/linux-devicetree/[email protected]/
Changes for v3:
- In arm64: dts: ti: k3-j721s2-main: Add DSI1
Pick up Beleswar's Reviewed-by from v1
- In arm64: dts: ti: k3-am68-phyboard-izar: Add PEB-AV-15 overlay Fix the remaining style issues pointed out by Vignesh in v2
Link to v2:
https://lore.kernel.org/linux-devicetree/[email protected]/
Changes for v4:
- In arm64: dts: ti: k3-am68-phyboard-izar: Add PEB-AV-15 overlay In arm64: dts: ti: k3-am68-phyboard-izar: Add LVDS-Display Fix whitespaces
Link to v3:
https://lore.kernel.org/linux-devicetree/[email protected]/
Dominik Haller (5):
arm64: dts: ti: k3-am68-phyboard-izar: Assign dss clocks
arm64: dts: ti: k3-am68-phycore-som: Add DSI->LVDS bridge
arm64: dts: ti: k3-am68-phyboard-izar: Add LVDS-Display
arm64: dts: ti: k3-j721s2-main: Add DSI1
arm64: dts: ti: k3-am68-phyboard-izar: Add PEB-AV-15 overlay
arch/arm64/boot/dts/ti/Makefile | 8 + ...-am68-phyboard-izar-lvds-ph128800t006.dtso | 125 ++++++++++++ .../ti/k3-am68-phyboard-izar-peb-av-15.dtso | 191 ++++++++++++++++++ .../boot/dts/ti/k3-am68-phyboard-izar.dts | 17 ++ .../boot/dts/ti/k3-am68-phycore-som.dtsi | 17 ++ arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 39 ++++ 6 files changed, 397 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am68-phyboard-izar-lvds-ph128800t006.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-am68-phyboard-izar-peb-av-15.dtso
Signature · 1 line
2.43.0
PATCH v4 1/5 arm64: dts: ti: k3-am68-phyboard-izar: Assign dss clocks
Assign the dss clocks in the base dts so that display overlays can be used in any combination.
--- .../arm64/boot/dts/ti/k3-am68-phyboard-izar.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/ti/k3-am68-phyboard-izar.dts +17 -0
@@ -298,6 +298,23 @@ phy0: ethernet-phy@0 { }; }; +&dss { + /* + * VP0 - Displayport + * VP1 - DPI0 + * VP2 - DSI0 + * VP3 - DPI1/DSI1 + */ + assigned-clocks = <&k3_clks 158 2>, + <&k3_clks 158 5>, + <&k3_clks 158 14>, + <&k3_clks 158 18>; + assigned-clock-parents = <&k3_clks 158 3>, + <&k3_clks 158 7>, + <&k3_clks 158 16>, + <&k3_clks 158 22>; +}; + &i2c_som_rtc { trickle-resistor-ohms = <3000>; };
Signature · 1 line
2.43.0
PATCH v4 2/5 arm64: dts: ti: k3-am68-phycore-som: Add DSI->LVDS bridge
In reply to Dominik HallerAdd the TI SN65DSI83 MIPI-DSI->LVDS bridge that can be populated on the phyCORE-AM68x/TDA4x.
--- arch/arm64/boot/dts/ti/k3-am68-phycore-som.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/ti/k3-am68-phycore-som.dtsi +17 -0
@@ -151,6 +151,12 @@ J721S2_WKUP_IOPAD(0x09c, PIN_INPUT_PULLUP, 0) /* (H27) WKUP_I2C0_SDA */ >; bootph-all; }; + + wkup_sn65dsi83_pins_default: wkup-sn65dsi83-default-pins { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x084, PIN_OUTPUT, 7) /* (F25) WKUP_GPIO0_11 */ + >; + }; }; &main_cpsw {
@@ -183,6 +189,17 @@ &main_i2c0 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>; + sn65dsi83: bridge@2d { + compatible = "ti,sn65dsi83"; + reg = <0x2d>; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_sn65dsi83_pins_default>; + enable-gpios = <&wkup_gpio0 11 GPIO_ACTIVE_LOW>; + vcc-supply = <&bucka4>; + /* enabled in panel overlay */ + status = "disabled"; + }; + temperature-sensor@48 { compatible = "ti,tmp102"; reg = <0x48>;
Signature · 1 line
2.43.0
PATCH v4 3/5 arm64: dts: ti: k3-am68-phyboard-izar: Add LVDS-Display
In reply to Dominik HallerAdd an overlay to use a powertip,ph128800t006-zhc01 10.1" LVDS display.
--- arch/arm64/boot/dts/ti/Makefile | 4 + ...-am68-phyboard-izar-lvds-ph128800t006.dtso | 125 ++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am68-phyboard-izar-lvds-ph128800t006.dtso
arch/arm64/boot/dts/ti/Makefile +4 -0
@@ -132,6 +132,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk-csi2-dual-imx219.dtbo # Boards with J721s2 SoC dtb-$(CONFIG_ARCH_K3) += k3-am68-phyboard-izar.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am68-phyboard-izar-lvds-ph128800t006.dtb +k3-am68-phyboard-izar-lvds-ph128800t006-dtbs := k3-am68-phyboard-izar.dtb \ + k3-am68-phyboard-izar-lvds-ph128800t006.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am68-sk-base-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-am68-sk-base-board-pcie1-ep.dtbo dtb-$(CONFIG_ARCH_K3) += k3-j721s2-common-proc-board.dtb
@@ -319,6 +322,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb \ k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \ k3-am67a-kontron-sa67-base-gpios.dtb \ + k3-am68-phyboard-izar-lvds-ph128800t006.dtb \ k3-am68-sk-base-board-csi2-dual-imx219.dtb \ k3-am68-sk-base-board-pcie1-ep.dtb \ k3-am69-sk-csi2-dual-imx219.dtb \
arch/arm64/boot/dts/ti/k3-am68-phyboard-izar-lvds-ph128800t006.dtso new file +125 -0
125 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v4 4/5 arm64: dts: ti: k3-j721s2-main: Add DSI1
In reply to Dominik HallerAdd the second DSI instance and its corresponding phy to the main domain include file.
--- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +39 -0
@@ -1815,6 +1815,19 @@ dphy_tx0: phy@4480000 { status = "disabled"; }; + dphy_tx1: phy@4481000 { + compatible = "ti,j721e-dphy"; + reg = <0x00 0x04481000 0x00 0x00001000>; + clocks = <&k3_clks 364 8>, <&k3_clks 364 14>; + clock-names = "psm", "pll_ref"; + #phy-cells = <0>; + power-domains = <&k3_pds 364 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 364 14>; + assigned-clock-parents = <&k3_clks 364 15>; + assigned-clock-rates = <19200000>; + status = "disabled"; + }; + dsi0: dsi@4800000 { compatible = "ti,j721e-dsi"; reg = <0x00 0x04800000 0x00 0x00100000>,
@@ -1841,6 +1854,32 @@ port@1 { }; }; + dsi1: dsi@4900000 { + compatible = "ti,j721e-dsi"; + reg = <0x00 0x04900000 0x00 0x00100000>, + <0x00 0x04720000 0x00 0x00000100>; + clocks = <&k3_clks 155 4>, <&k3_clks 155 1>; + clock-names = "dsi_p_clk", "dsi_sys_clk"; + power-domains = <&k3_pds 155 TI_SCI_PD_EXCLUSIVE>; + interrupts = <GIC_SPI 601 IRQ_TYPE_LEVEL_HIGH>; + phys = <&dphy_tx1>; + phy-names = "dphy"; + status = "disabled"; + + dsi1_ports: ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + }; + }; + }; + dss: dss@4a00000 { compatible = "ti,j721e-dss"; reg = <0x00 0x04a00000 0x00 0x10000>, /* common_m */
Signature · 1 line
2.43.0
PATCH v4 5/5 arm64: dts: ti: k3-am68-phyboard-izar: Add PEB-AV-15 overlay
In reply to Dominik HallerAdd an overlay to use the PEB-AV-15 AV-Adapter. It's a small expansion board using a Lontium LT8912B DSI->HDMI bridge and a TLV320AIC3007 audio codec.
--- arch/arm64/boot/dts/ti/Makefile | 4 + .../ti/k3-am68-phyboard-izar-peb-av-15.dtso | 191 ++++++++++++++++++ 2 files changed, 195 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am68-phyboard-izar-peb-av-15.dtso
arch/arm64/boot/dts/ti/Makefile +4 -0
@@ -135,6 +135,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-am68-phyboard-izar.dtb dtb-$(CONFIG_ARCH_K3) += k3-am68-phyboard-izar-lvds-ph128800t006.dtb k3-am68-phyboard-izar-lvds-ph128800t006-dtbs := k3-am68-phyboard-izar.dtb \ k3-am68-phyboard-izar-lvds-ph128800t006.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am68-phyboard-izar-peb-av-15.dtb +k3-am68-phyboard-izar-peb-av-15-dtbs := k3-am68-phyboard-izar.dtb \ + k3-am68-phyboard-izar-peb-av-15.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am68-sk-base-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-am68-sk-base-board-pcie1-ep.dtbo dtb-$(CONFIG_ARCH_K3) += k3-j721s2-common-proc-board.dtb
@@ -323,6 +326,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \ k3-am67a-kontron-sa67-base-gpios.dtb \ k3-am68-phyboard-izar-lvds-ph128800t006.dtb \ + k3-am68-phyboard-izar-peb-av-15.dtb \ k3-am68-sk-base-board-csi2-dual-imx219.dtb \ k3-am68-sk-base-board-pcie1-ep.dtb \ k3-am69-sk-csi2-dual-imx219.dtb \
arch/arm64/boot/dts/ti/k3-am68-phyboard-izar-peb-av-15.dtso new file +191 -0
191 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: (subset) [PATCH v4 0/5] k3-am68-phyboard-izar dsi support
In reply to Dominik HallerHi Dominik Haller,
Quoted 10 lines · Dominik Haller
k3-am68-phyboard-izar dsi support
This series adds support for the two dsi based display interfaces of the phyboard-izar with the phycore-am68x/tda4x som.
dsi0 gets converted to lvds on the som using a SN65DSI83 bridge in the default configuration. The phyboard-izar kit comes with a 10.1" lvds display with usb touch as addon.
[...]
I have applied the following to branch ti-k3-dts-next on [1]. Thank you!
[1/5] arm64: dts: ti: k3-am68-phyboard-izar: Assign dss clocks
commit: cda1fef2ec679bfb74580273cb7dd7a1cecd77f7
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh
Hi Dominik Haller,
Quoted 8 lines · Dominik Haller
This series adds support for the two dsi based display interfaces of the phyboard-izar with the phycore-am68x/tda4x som.
dsi0 gets converted to lvds on the som using a SN65DSI83 bridge in the default configuration. The phyboard-izar kit comes with a 10.1" lvds display with usb touch as addon.
[...]
I have applied the following to branch ti-k3-dts-next on [1]. Thank you!
[1/5] arm64: dts: ti: k3-am68-phyboard-izar: Assign dss clocks
commit: ae41091c65453b900a9a96294ee7ff007dc671e4
[2/5] arm64: dts: ti: k3-am68-phycore-som: Add DSI->LVDS bridge
commit: 2295927906ce448a25ec7fc6f5da731b364d6b90
[3/5] arm64: dts: ti: k3-am68-phyboard-izar: Add LVDS-Display
commit: 1bdfd6abc1ec5d60474a2f0b96955480b33e0644
[4/5] arm64: dts: ti: k3-j721s2-main: Add DSI1
commit: db0da07c37a2a79b19a07eef2f218dc830275e7d
[5/5] arm64: dts: ti: k3-am68-phyboard-izar: Add PEB-AV-15 overlay
commit: 6e5df7cc5455dfcfac4764f00d121ee6a6796e2cAll being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh