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 8224DC433F5 for ; Thu, 25 Nov 2021 09:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348863AbhKYJH0 convert rfc822-to-8bit (ORCPT ); Thu, 25 Nov 2021 04:07:26 -0500 Received: from aposti.net ([89.234.176.197]:43762 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346500AbhKYJFZ (ORCPT ); Thu, 25 Nov 2021 04:05:25 -0500 Date: Thu, 25 Nov 2021 09:02:00 +0000 From: Paul Cercueil Subject: Re: [PATCH v8 6/8] MIPS: DTS: CI20: Add DT nodes for HDMI setup To: Geert Uytterhoeven Cc: "H. Nikolaus Schaller" , 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 FIRMWARE AND FLATTENED DEVICE TREE BINDINGS Message-Id: In-Reply-To: References: <04F0ED7C-3D18-4CCF-8F10-E0A36B0E4F4B@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Geert, Le jeu., nov. 25 2021 at 08:58:13 +0100, Geert Uytterhoeven a écrit : > Hi Nikolaus, > > 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 écrit : >> >>>> + assigned-clock-rates = <48000000>, <0>, <54000000>, <0>, >> <27000000>; >> >>>> }; >> >>>> &tcu { >> >>>> @@ -509,6 +534,19 @@ pins_i2c4: i2c4 { >> >>>> bias-disable; >> >>>> }; >> >>>> + pins_hdmi_ddc: hdmi_ddc { >> >>>> + function = "hdmi-ddc"; >> >>>> + groups = "hdmi-ddc"; >> >>>> + bias-disable; >> >>>> + }; >> >>>> + >> >>>> + /* switch to PF25 as gpio driving DDC_SDA low */ >> >>>> + pins_hdmi_ddc_unwedge: hdmi_ddc { >> >>>> + function = "hdmi-ddc"; >> >>>> + groups = "hdmi-ddc"; >> >>>> + bias-disable; >> >>>> + }; >> >>> >> >>> 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. >> >> >> >> 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. >> > >> > Using gpio-hog? >> >> well, AFAIR it activates the gpio permanently and is a propery of >> the gpio controller and not of pinmux. > > Yes, hogs are permanently (ignoring DT overlay tricks). > >> The driver assumes it can use pinmux state switching to drive the >> DDC_SDA line low on demand. > > Add an optional wedge-gpios property for switching? I think you can use a pinctrl state as well, specifying the pin and the 'output-low' property. -Paul