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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 ED189C4332B for ; Thu, 7 Jan 2021 14:34:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB05622EBF for ; Thu, 7 Jan 2021 14:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729772AbhAGOek (ORCPT ); Thu, 7 Jan 2021 09:34:40 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55154 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728892AbhAGOej (ORCPT ); Thu, 7 Jan 2021 09:34:39 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kxWMN-00GgXO-T7; Thu, 07 Jan 2021 15:33:55 +0100 Date: Thu, 7 Jan 2021 15:33:55 +0100 From: Andrew Lunn To: Linus Walleij Cc: Fabio Estevam , Rob Herring , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Sandor Yu , Heiner Kallweit , Vladimir Oltean , Bruno Thomsen , Florian Fainelli Subject: Re: [PATCH v3 1/2] dt-bindings: gpio: 74x164: Introduce the 'registers-default' property Message-ID: References: <20201230214918.17133-1-festevam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org > Indeed, but I don't understand why the phy in this example does not > have a compatible string? Normally, PHYs can be enumerated on the bus, in the same way USB and PCI devices can be enumerated. The device itself then tells you what it is campatible with, in the same way PCI and USB does. Having a compatible string is then detrimental, because people get it wrong, device tree says one thing, the device itself says something else, which do we trust? There are also boards where different series of have populated with different pin compatible PHYs. Enumeration just works, having a compatible would be a problem. But, there are some PHYs which you cannot enumerate, e.g they do not respond to MDIO while held in reset, or the silicon is buggy and has an invalid ID. In those cases, a compatible should be listed with the correct PHY ID. Andrew