From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Samuel Holland <samuel@sholland.org>,
Ryan Walklin <ryan@testtoast.com>
Cc: Andre Przywara <andre.przywara@arm.com>,
Chris Morgan <macroalpha82@gmail.com>,
Hironori KIKUCHI <kikuchan98@gmail.com>,
Philippe Simons <simons.philippe@gmail.com>,
linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Ryan Walklin <ryan@testtoast.com>
Subject: Re: [PATCH 7/8] arm64: dts: allwinner: rg35xx: Enable LCD output
Date: Sat, 22 Feb 2025 10:46:19 +0100 [thread overview]
Message-ID: <23840170.6Emhk5qWAg@jernej-laptop> (raw)
In-Reply-To: <20250216092827.15444-8-ryan@testtoast.com>
Dne nedelja, 16. februar 2025 ob 10:27:14 Srednjeevropski standardni čas je Ryan Walklin napisal(a):
> The RG35XX has a 640x480 RGB/SPI LCD panel, supported by the SoC display
> pipeline and an NV3052C controller. The H616 SOC's GPIO bank D contains
> the muxed display pins for RGB and LVDS output support.
>
> Enable the display engine and LCD timing controller, configure the
> panel, and add a fixed 3.3v GPIO-controlled regulator for the panel, and
> a VCC supply for the display pins as per the other GPIO banks.
>
> Signed-off-by: Ryan Walklin <ryan@testtoast.com>
> ---
> .../sun50i-h700-anbernic-rg35xx-2024.dts | 58 +++++++++++++++++++
> 1 file changed, 58 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
> index a231abf1684ad..388487d4720e2 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
> @@ -175,6 +175,49 @@ reg_vcc5v: regulator-vcc5v { /* USB-C power input */
> regulator-min-microvolt = <5000000>;
> regulator-max-microvolt = <5000000>;
> };
> +
> + reg_lcd: regulator-gpio-lcd-vdd {
> + compatible = "regulator-fixed";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-name = "vdd-lcd";
> + gpio = <&pio 8 15 GPIO_ACTIVE_HIGH>; // PI15
> + enable-active-high;
> + };
> +
> + spi_lcd: spi {
> + compatible = "spi-gpio";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + sck-gpios = <&pio 8 9 GPIO_ACTIVE_HIGH>; // PI9
> + mosi-gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>; // PI10
> + cs-gpios = <&pio 8 8 GPIO_ACTIVE_HIGH>; // PI8
> + num-chipselects = <1>;
> +
> + panel: panel@0 {
> + compatible = "anbernic,rg35xx-plus-panel";
> +
> + reg = <0>;
> +
> + spi-max-frequency = <3125000>;
> + spi-3wire;
> +
> + reset-gpios = <&pio 8 14 GPIO_ACTIVE_LOW>; // PI14
> +
> + backlight = <&backlight>;
There is no backlight node at this point. Reverse patches 7 and 8 or better yet,
merge them and put patch 8 message into comment to backlight node.
Best regards,
Jernej
> + power-supply = <®_lcd>;
> +
> + pinctrl-0 = <&lcd0_rgb888_pins>;
> + pinctrl-names = "default";
> +
> + port {
> + panel_in_rgb: endpoint {
> + remote-endpoint = <&tcon_lcd0_out_lcd>;
> + };
> + };
> + };
> + };
> };
>
> &codec {
> @@ -187,6 +230,10 @@ &cpu0 {
> cpu-supply = <®_dcdc1>;
> };
>
> +&de {
> + status = "okay";
> +};
> +
> &ehci0 {
> status = "okay";
> };
> @@ -206,6 +253,7 @@ &ohci0 {
> &pio {
> vcc-pa-supply = <®_cldo3>;
> vcc-pc-supply = <®_cldo3>;
> + vcc-pd-supply = <®_cldo3>;
> vcc-pe-supply = <®_cldo3>;
> vcc-pf-supply = <®_cldo3>;
> vcc-pg-supply = <®_aldo4>;
> @@ -355,3 +403,13 @@ &usbotg {
> &usbphy {
> status = "okay";
> };
> +
> +&tcon_lcd0 {
> + status = "okay";
> +};
> +
> +&tcon_lcd0_out {
> + tcon_lcd0_out_lcd: endpoint@1 {
> + remote-endpoint = <&panel_in_rgb>;
> + };
> +};
>
next prev parent reply other threads:[~2025-02-22 9:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-16 9:27 [PATCH 0/8] arm64: dts: allwinner: h616: add LCD timing controller and display engine support Ryan Walklin
2025-02-16 9:27 ` [PATCH 1/8] bus: sun50i: add DE33 compatible string to the DE2 bus driver Ryan Walklin
2025-02-22 9:35 ` Jernej Škrabec
2025-02-22 23:38 ` Ryan Walklin
2025-02-16 9:27 ` [PATCH 2/8] arm64: dts: allwinner: h616: add display engine, bus and mixer nodes Ryan Walklin
2025-02-24 18:00 ` Andre Przywara
2025-02-16 9:27 ` [PATCH 3/8] dt-bindings: allwinner: Add TCON_TOP and TCON_LCD clock/reset defines Ryan Walklin
2025-02-19 23:11 ` Rob Herring (Arm)
2025-02-16 9:27 ` [PATCH 4/8] drm/sun4i: tcon: Add support for R40 LCD Ryan Walklin
2025-02-16 9:27 ` [PATCH 5/8] arm64: dts: allwinner: h616: Add TCON nodes to H616 DTSI Ryan Walklin
2025-02-22 9:45 ` Jernej Škrabec
2025-02-22 23:39 ` Ryan Walklin
2025-02-16 9:27 ` [PATCH 6/8] arm64: dts: allwinner: h616: add LCD, LVDS and PWM pins Ryan Walklin
2025-02-22 9:48 ` Jernej Škrabec
2025-02-22 23:40 ` Ryan Walklin
2025-02-16 9:27 ` [PATCH 7/8] arm64: dts: allwinner: rg35xx: Enable LCD output Ryan Walklin
2025-02-22 9:46 ` Jernej Škrabec [this message]
2025-02-16 9:27 ` [PATCH 8/8] arm64: dts: allwinner: rg35xx: Add GPIO backlight control Ryan Walklin
2025-02-17 8:13 ` Philippe Simons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23840170.6Emhk5qWAg@jernej-laptop \
--to=jernej.skrabec@gmail.com \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kikuchan98@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=macroalpha82@gmail.com \
--cc=robh@kernel.org \
--cc=ryan@testtoast.com \
--cc=samuel@sholland.org \
--cc=simons.philippe@gmail.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).