Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2730203ybl; Thu, 19 Dec 2019 19:59:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwTxJX3YJT2DOC9EVK61wZmFs7xWrjk6+KU0xpH6AO2xvdHoSl2kc86p7t/31uiof2Wokiq X-Received: by 2002:a05:6830:1707:: with SMTP id 7mr13115123otk.185.1576814342624; Thu, 19 Dec 2019 19:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576814342; cv=none; d=google.com; s=arc-20160816; b=QgUOp+ibmEMdEN6D2LyGnHuCE9r6/44HJy0QWYDkQNAx0WL6hqCcBgHyQ/mvnByS1l qmwh+SsTSg+54vVnxP1b7f2bGWnPn4GwPkMJSY2g14TpSk/J3duaR4W3HNX+qHpcqWaW jVq9cPx+fNYvfrst7QTGq+JfV+eWF00cXAu00nXBxT5gnNy7C6H7mFSPsMY25AgbuXce pRVZlA64dBMCa3DG9E9iezhHeKkPX2G+WuarMoxvpNB5dFL84XEoQ1iQUnICxFAajnv8 5YxrC3OTHkzmZQrBhrVPdyQRbET1550CAhZ2y+cB9GbBpimygmW7KJwBtvEaLoWZZx2u w8CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=B4nCCF+EzJiIuxfjV2kTWNg3Z7MNbVOSCn8Lx8XGK8U=; b=b6KSb/2q2Jp5uFDJokR0c4OK7fRvhVcg3VQFO9aK/fxWbO4lMfQ+0yN1ZZ3zuHzKbg kukCAS7/kZ7nIJQMGxShVpub2Im9pinPF8N8stCbadUBaIRLKSTpQRCZaTYV5HZgI0gm qi2Z/OmmsKh5PquyMB4uxRQk3F4U34OFj8kAsxO0Dj5NdGGJs4W4smJI/BgOW1USQZnf WTaG5sl8BK2vxxMG7UyfmeHpT3+YFJImaDjc5oRCMe7WfKkNiKJraK01TVcyQ0C2gP4k nAOm9gfFOoB0ngc/9CJHvtu7ykY/eIJhQlqMpjvgETZBv9WwGFaAnjUX6PZX+ygjD6iJ KKMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Uu68m5g3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h28si5337629otg.63.2019.12.19.19.58.51; Thu, 19 Dec 2019 19:59:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Uu68m5g3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbfLTD6C (ORCPT + 99 others); Thu, 19 Dec 2019 22:58:02 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:33605 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727135AbfLTD6C (ORCPT ); Thu, 19 Dec 2019 22:58:02 -0500 Received: by mail-io1-f68.google.com with SMTP id z8so8063607ioh.0 for ; Thu, 19 Dec 2019 19:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B4nCCF+EzJiIuxfjV2kTWNg3Z7MNbVOSCn8Lx8XGK8U=; b=Uu68m5g3z0N7oHxNK4TYLIAyQL54Y8wxUcLjSl2I3K3wgHJKJBUiAS1hKJHut9+Ozy KR3IK3MjEt3a+jdjt6m9JLZsgNfAcwdmW1QDt2LzrCQ8Pzb8W8/l0+9PjOwOuxx0WzFR vQLEf+/JQOavUARm496IWPyNLtwK7QcXRZ3n0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B4nCCF+EzJiIuxfjV2kTWNg3Z7MNbVOSCn8Lx8XGK8U=; b=TsHMng3A2fMgLIDo4irB7KFyvjcBgSIy0qgZu3lv6si3NCT/juyNK1KuJAM2j3sRfl 49Nb1fQ9t8oQZTBQpot2qSAZrW1b6J1Ep46zKaVaYdw7VOgFnbZPCibli3o5Y/S8aXxw 9yLY7NLTrf92FWNsasjJwVIXPLf8bYdn1nDzJKhCP6EzRrH1+FbrHZFD/bt54doucxeh Q7CVeqdDX8s0D1zw4BucCzsb+nGkiTyluFR6NelQL5VFy7DbrZlCuVQVavQtdcmyceqS Z6paMB9aysdw5rjf317fuJeLRKB+6oZNa6ZwyagUIwAgFk7bjYzw2LpsrFlLXlhiH6Ci GocQ== X-Gm-Message-State: APjAAAVvejTFj2yc0tItUNV+6m+moNMnCRzVnM8+JZqapHQHUdVZkM36 pcljqzBZV8SYx/O9m/OwHkt44fjAduAhsq8Sp16PFA== X-Received: by 2002:a05:6638:10e:: with SMTP id x14mr10484146jao.4.1576814281622; Thu, 19 Dec 2019 19:58:01 -0800 (PST) MIME-Version: 1.0 References: <20191211061911.238393-1-hsinyi@chromium.org> <20191211061911.238393-4-hsinyi@chromium.org> <20191219204827.GA13740@bogus> In-Reply-To: <20191219204827.GA13740@bogus> From: Hsin-Yi Wang Date: Fri, 20 Dec 2019 11:57:35 +0800 Message-ID: Subject: Re: [PATCH RESEND 3/4] dt-bindings: drm/bridge: Add GPIO display mux binding To: Rob Herring Cc: dri-devel , David Airlie , Daniel Vetter , Mark Rutland , Nicolas Boichat , Devicetree List , "linux-kernel@vger.kernel.org" , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Philipp Zabel , Enric Balletbo i Serra , Matthias Brugger , Russell King Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 20, 2019 at 4:48 AM Rob Herring wrote: > > On Mon, Dec 16, 2019 at 03:16:23PM +0800, Hsin-Yi Wang wrote: > > On Sat, Dec 14, 2019 at 5:29 AM Rob Herring wrote: > > > > > > On Wed, Dec 11, 2019 at 12:19 AM Hsin-Yi Wang wrote: > > > > > > > > From: Nicolas Boichat > > > > > > > > Add bindings for Generic GPIO mux driver. > > > > > > > > Signed-off-by: Nicolas Boichat > > > > Signed-off-by: Hsin-Yi Wang > > > > --- > > > > Change from RFC to v1: > > > > - txt to yaml > > > > --- > > > > .../bindings/display/bridge/gpio-mux.yaml | 89 +++++++++++++++++++ > > > > 1 file changed, 89 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml b/Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml > > > > new file mode 100644 > > > > index 000000000000..cef098749066 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml > > > > @@ -0,0 +1,89 @@ > > > > +# SPDX-License-Identifier: GPL-2.0 > > > > +%YAML 1.2 > > > > +--- > > > > +$id: http://devicetree.org/schemas/display/bridge/gpio-mux.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: Generic display mux (1 input, 2 outputs) > > > > > > What makes it generic? Doesn't the mux chip have power supply, > > > possibly a reset line or not, etc.? What about a mux where the GPIO > > > controls the mux? > > > > > > Generally, we avoid 'generic' bindings because h/w is rarely generic. > > > You can have a generic driver which works on multiple devices. > > > > > Then how about making it mt8173-oak-gpio-mux? Since this is currently > > only used in this board. > > Isn't there an underlying part# you can use? Or if you can point me to > multiple chips implementing the same thing, then maybe a generic binding > is fine. There are some similar chips, for example: https://www.paradetech.com/zh-hant/%E7%94%A2%E5%93%81%E4%BB%8B%E7%B4%B9/ps8223-3-0gbps-hdmi-12-demultiplexer/ and http://www.ti.com/lit/ds/symlink/ts3dv642.pdf If they are used in a similar way (https://lore.kernel.org/lkml/CANMq1KDDEzPWhByEtn-EjNcg+ofVT2MW-hOXANGooYFOYJ35VA@mail.gmail.com/), they would need such driver. But currently we only know that mt8173 oak board have this use case. > > Rob