lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 01 May 2019 17:09:46 +0200
From:   Heiko Stuebner <heiko@...ech.de>
To:     Jagan Teki <jagan@...rulasolutions.com>
Cc:     Robin Murphy <robin.murphy@....com>,
        Rob Herring <robh+dt@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        devicetree <devicetree@...r.kernel.org>,
        linux-kernel <linux-kernel@...r.kernel.org>,
        linux-rockchip@...ts.infradead.org,
        linux-amarula <linux-amarula@...rulasolutions.com>,
        linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [DO NOT MERGE] [PATCH 2/2] arm64: rockchip: rk3399: nanopc-t4: Enable FriendlyELEC HD702E eDP panel

Am Mittwoch, 1. Mai 2019, 16:09:46 CEST schrieb Jagan Teki:
> On Wed, May 1, 2019 at 6:17 PM Robin Murphy <robin.murphy@....com> wrote:
> >
> > On 01/05/2019 13:14, Jagan Teki wrote:
> > > FriendlyELEC HD702E is one of optional LCD panel for
> > > NanoPC T4 eDP interface.
> > >
> > > It features 800x1280 resolutions, with built in GT9271 captive
> > > touchscreen and adjustable backlight via PWM.
> > >
> > > eDP panel connections are:
> > > - VCC3V3_SYS: 3.3V panel power supply
> > > - GPIO4_C2: PWM0_BL pin
> > > - GPIO4_D5_LCD_BL_EN: Backlight enable pin
> > > - VCC12V0_SYS: 12V backlight power supply
> > > - Touchscreen connected via I2C4
> > > - GPIO1_C4_TP_INT: touchscreen interrupt pin
> > > - GPIO1_B5_TP_RST: touchscreen reset pin
> > >
> > > Add support for it.
> > >
> > > Signed-off-by: Jagan Teki <jagan@...rulasolutions.com>
> > > ---
> > > Note: we need to disable hdmi-cec pinctrl to work with
> > > edp-hpd since both share same pin, otherwise we can
> > > encounter below error during bootup
> > > [    1.047726] rockchip-pinctrl pinctrl: pin gpio4-23 already requested by ff940000.hdmi; cannot claim for ff970000.edp
> > > [    1.048655] rockchip-pinctrl pinctrl: pin-151 (ff970000.edp) status -22
> > > [    1.049235] rockchip-pinctrl pinctrl: could not request pin 151 (gpio4-23) from group edp-hpd  on device rockchip-pinctrl
> > > [    1.050191] rockchip-dp ff970000.edp: Error applying setting, reverse things back
> > > [    1.050867] rockchip-dp: probe of ff970000.edp failed with error -22
> >
> > Hmm, AFAICS that pin is exclusively wired to the HDMI connector and not
> > used for the eDP interface, so really it's the fault of rk3399.dtsi for
> > trying to claim it unconditionally. Ideally we'd pull those pinctrl
> > properties out into the board DTs which do actually need them, but the
> > quick and easy approach would be to add some "/delete-property/ ..."
> > workarounds to the &edp node here.
> 
> Thought that initially, but the same pin shared between HDMI CEC and
> eDP hotplug with different bit function to enable.
> 
> gpio4c7_sel
> GPIO4C[7] iomux select
> 2'b00: gpio
> 2'b01: hdmi_cecinout
> 2'b10: edp_hotplug
> 2'b11: reserved
> 
> GPIO4_C7/HDMI_CECINOUT/EDP_HOTPLUG is the shared pin, which is
> available in any nanopc-t4 as well in rk3399 datasheet, look like it's
> an SoC pin that driver hotplug to eDP and ie same reason is pinmux in
> rk3399.dtsi.

Yes the pin of the soc is shared between those functions, so you'll
have to check the schematics of your board where this pin is going
to.

If you check the schematics [0] page 11, GPIO4_C7's signal is named HDMI_CEC
and on page 18 you can see that it goes as expected to the cec-pin of the
hdmi connector. 

So the Nanopc-T4 should only select the cec signal.


Heiko
[0] http://wiki.friendlyarm.com/wiki/images/f/f4/NanoPC-T4-1802-Schematic.pdf



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ