Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp800461pxu; Wed, 14 Oct 2020 14:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJAOsBQu3pULiJdTqCNPDCVguLAnZmIkE4Z4SU+Egzqd7JULq9tTjQ60TeY8+7yg4Jf78l X-Received: by 2002:a17:906:1485:: with SMTP id x5mr1059850ejc.163.1602710088588; Wed, 14 Oct 2020 14:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602710088; cv=none; d=google.com; s=arc-20160816; b=FwvDOF2uzjse9i2lOQsvvSkBDit/Kj15ZkpIulVy0ywZcXs/g0P5sVkfJfkMYoR+8m n5CC1WJlK3WFR+zKFuhpm2NyGre+kHJSXuroufA6UxlUFoOyRp+ha/uwUz7sDpblrMj1 +gdCQZDjgCA10wTZSX/zCEO0/i6IvkOGanegWzK9EI79eu6gAcgw6xSYxfpA4SO+535N B189ipDcyEPAqgOaJOdSHNykCkoZB44Sz7a34VAo4IDWQa0Nchd9aEz9XOKiGVqViFN/ rolvHl85xXied+BIPIO0f/Jyl2u6z0Q89TkiqQsvaHfwhHUV+CmTHC77BY3eqveRele8 CcuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nNdiiwS6UjpSvyZLT1JU0m8VOQVlWTfbNL6DBWSPlXk=; b=XbcKkh0bzgSwYLZMzO4k5Xsl6KHWJanWN5dgY8UWBQbeo7OdUjf7DpBS1py8ULjTLL MUPQFyYMRUQPHmUg24NJF/J2zoDSbYstyWrL3cPf7GTr/WvZzvazKIuqSyOBQjVcRUkJ nu7845V8htN7wK7JJ1Ng0MG4Wpd3PnUzbTdslp/aNmnRVeUOZHR+Ik1jTpvuLIT8wb6E XLg44DOVG3EQkvm2BtLK9j15xrxpFqEAleyIOMTpo8KFTd0rT2QNCCd7QLY6rjM4/jxG ed/11tZtjZuN6ocYxcnwxxhuN/WriHCsyjl8TqdQymNiq8F1u76WTZpfgi9zx+3RABuI hXCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gmwaZOXN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si554283edh.71.2020.10.14.14.14.26; Wed, 14 Oct 2020 14:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gmwaZOXN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388011AbgJNMn4 (ORCPT + 99 others); Wed, 14 Oct 2020 08:43:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:44856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbgJNMnz (ORCPT ); Wed, 14 Oct 2020 08:43:55 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D9C58208B3; Wed, 14 Oct 2020 12:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602679435; bh=VSSG6hE1gZVIO+oAQetzoy/KZoYOIOgG7GLGn23AjHw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gmwaZOXNGa7xlauuNbm35LLRVxbMYdQMzQ0fMEa+GFvzSKPiL4vNcKYvaRv/F+ldF u8q1DHVD3Oz5MNjdPlacGcNifOuWZaLgGCIhai/DIWUEMswBjMKhy5VvzkHJn7OhBT OvAiH+nir4Czuo42hp6RoSyTLln1/pWOTq0JB8f0= Received: by mail-oi1-f179.google.com with SMTP id l85so3040047oih.10; Wed, 14 Oct 2020 05:43:54 -0700 (PDT) X-Gm-Message-State: AOAM533maxKKS203fG25oXVUx9WotTmnylyj8CTKhURx3pZ5Q5lbDbN9 eGQaY4h7iw9VQsTXP9mGtCFpVrK3xI9WEPcoWg== X-Received: by 2002:a05:6808:10e:: with SMTP id b14mr2136679oie.152.1602679434031; Wed, 14 Oct 2020 05:43:54 -0700 (PDT) MIME-Version: 1.0 References: <20201004162908.3216898-1-martin.blumenstingl@googlemail.com> <20201004162908.3216898-3-martin.blumenstingl@googlemail.com> In-Reply-To: From: Rob Herring Date: Wed, 14 Oct 2020 07:43:43 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 2/3] dt-bindings: gpio: Add binding documentation for Etron EJ168/EJ188/EJ198 To: Linus Walleij Cc: Martin Blumenstingl , linux-pci , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , "linux-kernel@vger.kernel.org" , Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 13, 2020 at 8:27 AM Linus Walleij wrote: > > On Wed, Oct 7, 2020 at 9:58 PM Martin Blumenstingl > wrote: > > On Wed, Oct 7, 2020 at 11:19 AM Linus Walleij wrote: > > > On Sun, Oct 4, 2020 at 8:00 PM Martin Blumenstingl > > > wrote: > > > > > > > +properties: > > > > + compatible: > > > > + enum: > > > > + - pci1b6f,7023 > > > > + - pci1b6f,7052 > > > > > > I think it is better to let the PCI driver for the whole hardware in > > > drivers/usb/host/xhci-pci.c probe from the PCI configuration space > > > numbers, and then add a gpio_chip to xhci-pci.c. > > > > to have everything consistent I will move the binding to > > Documentation/devicetree/bindings/usb > > I do not understand why a PCI device would need a DT binding > at all. They just probe from the magic number in the PCI > config space, they spawn struct pci_dev PCI devices, not the > type of platform devices coming out of the DT parser code. > No DT compatible needed. Same reason for all the discoverable buses need bindings. There can be parts that are not discoverable or connections with non-discoverable nodes. There's also cases where the discoverable device has to be powered, reset deasserted, clocks enabled, etc. first to be discovered. If the GPIOs here had connections elsewhere in the DT, then we have to describe the provider in DT. Rob