Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FC2CC433FE for ; Thu, 25 Nov 2021 08:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352264AbhKYIe0 (ORCPT ); Thu, 25 Nov 2021 03:34:26 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.170]:15011 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236816AbhKYIcY (ORCPT ); Thu, 25 Nov 2021 03:32:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1637828944; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=hNupkB5Ycrs2ep+wM+k9JG7Vx2CZhHli9LlBG3B/zR4=; b=VyZQoxLc3nRIMAK86FuSrQjTZaLeXU8W7jLtfsq5foieszx0qglMxuGCYbPiXRz9r/ LYBxc/cvzwJTzX3f0uOL2Zl2o3mE2WfIkpDjBilzpv66DKWeb7iRMuBJDeK/z/AZiDsa 6GKnLe4NYfCJ4HKSR2AoNWZUCwfrEX/s5r9tHKxIsNyxZ6K2fSOzKV8CQeSat/oOqirG IfRYTXgzkVqqx8/j8nF1JmrXO94rmxZp9YzWHs9Vp3tY8vSfGAwN0ARYExMCS8rAdn8c wvtZZu6kCKg/K9yu5NmBlj8FEXu+K/sYL9dHp9WsRmF86fhvp9vU9mB4NgzniK/3cT+L n05g== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7gpw91N5y2S3iMMUrw==" X-RZG-CLASS-ID: mo00 Received: from mbp-13-nikolaus.fritz.box by smtp.strato.de (RZmta 47.34.10 DYNA|AUTH) with ESMTPSA id e05ed8xAP8T26En (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Thu, 25 Nov 2021 09:29:02 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH v8 6/8] MIPS: DTS: CI20: Add DT nodes for HDMI setup From: "H. Nikolaus Schaller" In-Reply-To: Date: Thu, 25 Nov 2021 09:29:02 +0100 Cc: Paul Cercueil , Rob Herring , Mark Rutland , Thomas Bogendoerfer , Geert Uytterhoeven , Kees Cook , "Eric W. Biederman" , Miquel Raynal , David Airlie , Daniel Vetter , Neil Armstrong , Robert Foss , Laurent Pinchart , Jernej Skrabec , Ezequiel Garcia , Harry Wentland , Sam Ravnborg , Maxime Ripard , Hans Verkuil , Liam Girdwood , Mark Brown , Paul Boddie , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List , letux-kernel@openphoenux.org, Jonas Karlman , DRI Development Content-Transfer-Encoding: quoted-printable Message-Id: References: <04F0ED7C-3D18-4CCF-8F10-E0A36B0E4F4B@goldelico.com> To: Geert Uytterhoeven X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gert, > Am 25.11.2021 um 08:58 schrieb Geert Uytterhoeven = : >=20 > Hi Nikolaus, >=20 > On Wed, Nov 24, 2021 at 5:31 PM H. Nikolaus Schaller = wrote: >>> Am 24.11.2021 um 17:21 schrieb Geert Uytterhoeven = : >>> On Wed, Nov 24, 2021 at 5:19 PM H. Nikolaus Schaller = wrote: >>>>> Am 23.11.2021 um 21:10 schrieb Paul Cercueil = : >>>>> Le mar., nov. 23 2021 at 19:13:59 +0100, H. Nikolaus Schaller = a =C3=A9crit : >>>>>> + assigned-clock-rates =3D <48000000>, <0>, <54000000>, <0>, = <27000000>; >>>>>> }; >>>>>> &tcu { >>>>>> @@ -509,6 +534,19 @@ pins_i2c4: i2c4 { >>>>>> bias-disable; >>>>>> }; >>>>>> + pins_hdmi_ddc: hdmi_ddc { >>>>>> + function =3D "hdmi-ddc"; >>>>>> + groups =3D "hdmi-ddc"; >>>>>> + bias-disable; >>>>>> + }; >>>>>> + >>>>>> + /* switch to PF25 as gpio driving DDC_SDA low */ >>>>>> + pins_hdmi_ddc_unwedge: hdmi_ddc { >>>>>> + function =3D "hdmi-ddc"; >>>>>> + groups =3D "hdmi-ddc"; >>>>>> + bias-disable; >>>>>> + }; >>>>>=20 >>>>> Your pins_hdmi_ddc and pins_hdmi_ddc_unwedge are the exact same? = You could just use the former and pass it to both pinctrl-0 and = pinctrl-1. >>>>=20 >>>> This was forgotten to remove. We do not make use of the unwedge = feature because I could not find out how to use pinctrl to switch this = to gpio25 and drive it low. >>>=20 >>> Using gpio-hog? >>=20 >> well, AFAIR it activates the gpio permanently and is a propery of the = gpio controller and not of pinmux. >=20 > Yes, hogs are permanently (ignoring DT overlay tricks). >=20 >> The driver assumes it can use pinmux state switching to drive the = DDC_SDA line low on demand. >=20 > Add an optional wedge-gpios property for switching? That would touch the synopsys driver core and does not appear to be = required for jz4780 operation. We just add a separate driver specialisation for some parameters and set = up the device tree. So it is beyond the scope of our work (neither needed, nor can we test = it). If you want to add that, please go ahead. BR and thanks, Nikolaus