Dne nedelja, 16. februar 2025 ob 10:27:13 Srednjeevropski standardni čas je Ryan Walklin napisal(a): > From: Jernej Skrabec <jernej.skrabec@xxxxxxxxx> > > The Allwinner H616 (and its H618, H700 and T507 package variants with > the same die) have 28 video output pins for RGB/SPI and LVDS display. > These are in GPIO Bank D and are multiplexed. > > In RGB mode, pins PD0-PD23 are for 24-bit RGB pixel output, pins > PD24-PD27 are for clock, DE, HSYNC and VSYNC, and PD28 is a PWM > backlight control. > > In LVDS mode, pins PD0-PD9 are for LVDS0 and LVDS1, and can be > configured by the H616 display engine for either one high-resolution > (dual link) or two low resolution displays. > > Add device tree nodes for the LCD, LVDS0, LVDS1 and PWM pins. Let's just drop PWM pins. PWM support is not yet implemented and it doesn't fall into display themed patch anyway. Best regards, Jernej > > Signed-off-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx> > [ryan@xxxxxxxxxxxxx: add RGB, LVDS1 and PWM pin assignments] > Signed-off-by: Ryan Walklin <ryan@xxxxxxxxxxxxx> > --- > .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > index 242bac95840f8..806ad87705abc 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > @@ -322,6 +322,32 @@ ir_rx_pin: ir-rx-pin { > function = "ir_rx"; > }; > > + /omit-if-no-ref/ > + lcd0_rgb888_pins: lcd0-rgb888-pins { > + pins = "PD0", "PD1", "PD2", "PD3", > + "PD4", "PD5", "PD6", "PD7", > + "PD8", "PD9", "PD10", "PD11", > + "PD12", "PD13", "PD14", "PD15", > + "PD16", "PD17", "PD18", "PD19", > + "PD20", "PD21", "PD22", "PD23", > + "PD24", "PD25", "PD26", "PD27"; > + function = "lcd0"; > + }; > + > + /omit-if-no-ref/ > + lvds0_pins: lvds0-pins { > + pins = "PD0", "PD1", "PD2", "PD3", "PD4", > + "PD5", "PD6", "PD7", "PD8", "PD9"; > + function = "lvds0"; > + }; > + > + /omit-if-no-ref/ > + lvds1_pins: lvds1-pins { > + pins = "PD10", "PD11", "PD12", "PD13", "PD14", > + "PD15", "PD16", "PD17", "PD18", "PD19"; > + function = "lvds1"; > + }; > + > mmc0_pins: mmc0-pins { > pins = "PF0", "PF1", "PF2", "PF3", > "PF4", "PF5"; > @@ -348,6 +374,12 @@ mmc2_pins: mmc2-pins { > bias-pull-up; > }; > > + /omit-if-no-ref/ > + pwm0_pin: pwm0-pin { > + pins = "PD28"; > + function = "pwm0"; > + }; > + > /omit-if-no-ref/ > spi0_pins: spi0-pins { > pins = "PC0", "PC2", "PC4"; >