From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF151C43603 for ; Thu, 12 Dec 2019 17:31:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE74521655 for ; Thu, 12 Dec 2019 17:31:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730143AbfLLRbO (ORCPT ); Thu, 12 Dec 2019 12:31:14 -0500 Received: from muru.com ([72.249.23.125]:46514 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730023AbfLLRbO (ORCPT ); Thu, 12 Dec 2019 12:31:14 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 7B77E80C0; Thu, 12 Dec 2019 17:31:52 +0000 (UTC) Date: Thu, 12 Dec 2019 09:31:10 -0800 From: Tony Lindgren To: Tomi Valkeinen Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, dri-devel@lists.freedesktop.org, Linus Walleij Subject: Re: [PATCH 1/4] ARM: dts: am437x-gp-evm: add HDMI support Message-ID: <20191212173110.GA35479@atomide.com> References: <20191125131100.9839-1-tomi.valkeinen@ti.com> <20191212172104.GY35479@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191212172104.GY35479@atomide.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org * Tony Lindgren [191212 17:21]: > Hi, > > * Tomi Valkeinen [191125 05:11]: > > Add HDMI support for AM437x GP EVM. The HDMI uses SiI9022 HDMI encoder, > > and is mutually exclusive with the LCD. The choice between LCD and HDMI > > is made by booting either with am437x-gp-evm.dtb or > > am437x-gp-evm-hdmi.dtb. > > So Linux kernel needs a new board device tree file to toggle a GPIO line > to switch between LCD mode and HDMI? > > That does not sound very user friendly for something that's supposed > to be hot pluggabe :) > > > +/* Override SelLCDorHDMI from am437x-gp-evm.dts to select HDMI */ > > +&gpio5 { > > + p8 { > > + output-low; > > + }; > > +}; > > How about just leave the gpio unconfigured and document that a userspace > tool or /sys/kernel/debug/gpio is needed to toggle between the modes? Adding also Linus Walleij to Cc in case he has some ideas here. Anyways, I'm applying the changes to dra76-evm am57xx-idk-common into omap-for-v5.6/dt as they have no GPIO pin limitation. I'd like to hear comments from folks on the first two though. Regards, Tony