Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2725294pxy; Mon, 3 May 2021 06:44:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj6xxNZvuKQE0iuv7zRaMyRX+rob7Y4gVwfy/HQh4+/lNtUu9KOE3THWhqc/A48tY9EzuW X-Received: by 2002:a17:906:2ac5:: with SMTP id m5mr16931531eje.517.1620049468943; Mon, 03 May 2021 06:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620049468; cv=none; d=google.com; s=arc-20160816; b=RyaRTh1WOADEyIObjgfwQgKwGWbuuCfXunsa8GHe2ffrKsdtIjyAo2xWfuXJGm2X5d 1l9FVwPNhk4nQ3raGQ6+u7aSTVYqUgKyVco0ma3wRVl5FRSlX/cundJIIEclVgyfyUjz 0itE4c85uHvoyLfX/Zws23q+tHFjRRMv3PgckjSwRtp5fnSxsd44mTDNfVULYhEuIPOz od0HIvcH1jY5LsHjca/AFMsfPf9n05lfSrX+HC5KcqvzHKQkySeJJR3hblJUa8D49Cuf 8AMbhArmabfqm3iatNQoiIQv06qzqDnviLyf+zyvXSFJqMKUlcw1Hh+dUMJ86ngCCiK3 okQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IlM/dYFaEe5ysKDpOQaSOUBoIYaFLPMXEQdZh1fkmZc=; b=OQ+N7ZfwLqxuojIRQ8IPENIoQuBFHGYE7Mtj7xgEKeoseE3tttSTiPuSsrlLqfoBjg b+L4RGgkAqDn4XQuSGjwRYK7xuT0Yh9Yeu/ArMXMGz3Z2MHpA1GHfLErhP22bKzj9RLh ir1KpS6OuIIozzO9x0OteIH7b9qjNb1EfKE14epZ/4We9g8ZrVousqC+20L3TMs6PAWd AJBkI38uQTsQ2Av10ic+CmcCEA6ZRxECeRyMm8UsNOsTIJSkmpIF8lVKA5JLQctIuG2h /a4mvPuhhlkhtSBdOwRp7oN76vtjDKUzb/WvwU2jHu7jBopJXrZGR+oK2QE4T77GdKFt VmAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si11083336edb.49.2021.05.03.06.44.04; Mon, 03 May 2021 06:44:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233527AbhECMPW (ORCPT + 99 others); Mon, 3 May 2021 08:15:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50796 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbhECMPW (ORCPT ); Mon, 3 May 2021 08:15:22 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1ldXSt-002Hrd-A5; Mon, 03 May 2021 14:14:19 +0200 Date: Mon, 3 May 2021 14:14:19 +0200 From: Andrew Lunn To: LABBE Corentin Cc: Rob Herring , hkallweit1@gmail.com, linux@armlinux.org.uk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v3] dt-bindings: net: Convert mdio-gpio to yaml Message-ID: References: <20210430182941.915101-1-clabbe@baylibre.com> <20210430215325.GA3957879@robh.at.kernel.org> 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-kernel@vger.kernel.org > > What's the order with 3 lines? In any case, define the order with > > schema: > > > > minItems: > > items: > > - description: MDC signal > > - description: MDIO or ?? signal > > - description: ?? signal > > > > I dont know what to write in the third line, I added the "maxItems: 3" by request of Andrew Lunn. > But I have no example at hand. > > Andrew could you give me an example of: "You often find with x86 machines you don't have GPIOs, just GPI > and GPO, and you need to combine two to form the MDIO line of the MDIO bus." > Or could I drop the "maxItems: 3" until a board need it. The code gets the GPIOs via index. The index are defined in include/linux/gpio-mdio.h as: #define MDIO_GPIO_MDC 0 #define MDIO_GPIO_MDIO 1 #define MDIO_GPIO_MDO 2 So you can describe them MDC, MDIO, MDO. Andrew