netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Angelo Dureghello <angelo.dureghello@timesys.com>
Cc: davem@davemloft.net, pabeni@redhat.com,
	rmk+kernel@armlinux.org.uk, netdev@vger.kernel.org
Subject: Re: [PATCH] Documentation/bindings: net: fix sfp mod-def0 signal
Date: Mon, 6 Jun 2022 14:39:20 +0200	[thread overview]
Message-ID: <Yp31eGHsRWcxYYH9@lunn.ch> (raw)
In-Reply-To: <20220606091852.955435-1-angelo.dureghello@timesys.com>

On Mon, Jun 06, 2022 at 11:18:52AM +0200, Angelo Dureghello wrote:
> Checked both by driver code and functionally, module plug works
> when gpio is set as GPIO_ACTIVE_LOW.
> 
> Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
> ---
>  Documentation/devicetree/bindings/net/sff,sfp.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/net/sff,sfp.txt b/Documentation/devicetree/bindings/net/sff,sfp.txt
> index 832139919f20..101a025a0c0f 100644
> --- a/Documentation/devicetree/bindings/net/sff,sfp.txt
> +++ b/Documentation/devicetree/bindings/net/sff,sfp.txt
> @@ -13,7 +13,7 @@ Required properties:
>  Optional Properties:
>  
>  - mod-def0-gpios : GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS)
> -  module presence input gpio signal, active (module absent) high. Must
> +  module presence input gpio signal, active (module absent) low. Must
>    not be present for SFF modules

INF-8074.pdf, "Table 1, Pin Function Definitions", says

	Note 3, Grounded in Module.

and Note 3 says:

	3) Mod-Def 0,1,2. These are the module definition pins. They
	should be pulled up with a 4.7K – 10KΩ resistor on the host
	board. The pull-up voltage shall be VccT or VccR (see Section
	IV for further details).  Mod-Def 0 is grounded by the module
	to indicate that the module is present

So when the module is absent, the pullup on the board will mean the
GPIO is high.

NACK.

Please check you don't have an inverter in the path for your board.

	Andrew

      reply	other threads:[~2022-06-06 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-06  9:18 [PATCH] Documentation/bindings: net: fix sfp mod-def0 signal Angelo Dureghello
2022-06-06 12:39 ` Andrew Lunn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yp31eGHsRWcxYYH9@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=angelo.dureghello@timesys.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rmk+kernel@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).