From patchwork Fri Dec 15 21:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 179716 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9670843dys; Fri, 15 Dec 2023 16:36:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4JZsAHuBmJbJh9XNMSrCR0RUxjbEPANV282T9GUUejuVGrqQVIfdr2YM5DmvP0I6us6PP X-Received: by 2002:a05:6a21:6da1:b0:18f:97c:6142 with SMTP id wl33-20020a056a216da100b0018f097c6142mr16792460pzb.63.1702686991276; Fri, 15 Dec 2023 16:36:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702686991; cv=none; d=google.com; s=arc-20160816; b=D4OaGI8K5bPHSOSSi7srx+HhS8PSdU9ZJEtk1a1Gq9VFrueAM7RMgvRtp5bwL++8eN mpuAgZeUZRvjbPWFOISD+fUSM5IAUkMS0k8FzVIBBMNbji19aYdMIofQp0SCixoiCVUw BcIb5K01VkbbWfmWDlc3IHQH5TGJiH4Jb4oUthverr+ltWcPH5+D0CmkWRr8hoPFT9ti ipYUkpluNLgj7q0TbXst59fToJ7cgrlNHK6PMeIH4+6Gr3/o5cEha6PFmPAjY54v8R0t moohrj+N3h7t2QP7R52wMrcsguyus26fNIB7OLbwOUkGUTdGtG5q0zQ6C1qPWAmRIW// IEGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=0uIS1xvpcGYFfMf9N01u33T+TCWbWjii1imIi3mSLAk=; fh=zMhr/QaHlUGdJIFxViiudBM+C42ITh4H3O1f/VExlVE=; b=jFcXidCHN9L15SZ3tYzYXtUCN3wGqNFJvDlTutzI5qWj/ETn7TLSpX+SEPd+LWLSlA 5GdwznNFKQ/mo5q9Nj8KoS2zKxtZ25S2Z12AwfHI/gvrHhhZDAq2TOpUX+GVN1GgeLUE maSebKX16Wk1/mMLIVuAMGqNsSiMovuv5nt3XJKOaAED6at9HlJu/19W3xSHmisRC2y/ JxNhf7g2F0U9R8DJX3rpzRk4AiY1COJt8WJofZYszZ+Q3lUE+fthLHfnnPCudID6JSwn kpaRuttgHv2t3vAH7yzMQQvh2qc/1zIRaJXhDt99SzQb5wTKaTE5c5t0NJsfa9ir4mSX n4Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I2bgX0By; spf=pass (google.com: domain of linux-kernel+bounces-1903-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1903-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d11-20020a056a00244b00b006d0b617fb6esi6231434pfj.403.2023.12.15.16.36.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 16:36:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1903-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I2bgX0By; spf=pass (google.com: domain of linux-kernel+bounces-1903-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1903-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 803F7B24809 for ; Sat, 16 Dec 2023 00:33:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9F1441C95; Sat, 16 Dec 2023 00:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I2bgX0By" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5460B6127; Sat, 16 Dec 2023 00:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3332efd75c9so938141f8f.2; Fri, 15 Dec 2023 16:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702686187; x=1703290987; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0uIS1xvpcGYFfMf9N01u33T+TCWbWjii1imIi3mSLAk=; b=I2bgX0ByCIK5LsvxD3qeHX/7h6c2eZu1vtBZYJXnhb1PzwTi2X+6nRhsrKjfzIXVS9 vPrl6ATH4W/g5TX+Ksz0n12vU3LwfwFNNgKlYgAPEVuGC6o1J5zp5x1FtEDpe5XGyJde g88WJG7EVhGAKxCjB/qByWhbksDLld51AhNmwse1Tcj1UyGN2h4W2NB6cw/dIu+HuktY +mvamT+nwMng0fSZrPQ79FP84SwvbuKFl3mhaxLufzfbV3uzpbW5fBQFzBcsZnsANoDG tv+xFlJrl/lDbHtxMmt0W7/UY0cXBxQo7wwwrgiDLT6AgDKDmxInYNm2JrXcF06oIyL7 pZtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702686187; x=1703290987; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0uIS1xvpcGYFfMf9N01u33T+TCWbWjii1imIi3mSLAk=; b=gadwxLqdWXcs7/0vDvvz4jMId3ZhEn7mg9IlZl6k+aIG9iSUNiqQ9d7DzYygsHDX2L ORZDTEH03p4Md6bVBkHx0itxRdj7axtvtitwpaeidQfVWp+ZpI/doq1SdY3pyDB5EnAE eAwzk5yrfOY45jFny0vZ2vT5OVYT59S/BjRgoe9bN/xvNExjrJQSqG9Fp9C+5N30MI80 ANZKsuFuORPVMEwAJugVvZHlCTKKsRBHrcBV+hhSgZqhmvfwNbrO/NMnBUZ8oiqMXvLS m19hB9IkzfSK69Ia5DabWu4vwPPu8tnzXAETKKstFpNPzGJG6woHG/hjqs6CkJhMtxnb n2Kw== X-Gm-Message-State: AOJu0Ywf3jF5wmX3M+hK/RTL0V76i21zaGZzZ2CJ40HOljmrB7/Y/iZ/ VtDvlXgJWcs5Qp2oU8l3GvA= X-Received: by 2002:a05:6000:b4a:b0:333:4052:bfeb with SMTP id dk10-20020a0560000b4a00b003334052bfebmr2988930wrb.208.1702686187282; Fri, 15 Dec 2023 16:23:07 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id a15-20020a5d508f000000b0033330846e76sm1496191wrt.86.2023.12.15.16.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 16:23:06 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Christian Marangi , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tobias Waldekranz Subject: [net-next PATCH v4 1/4] dt-bindings: net: phy: Document new LEDs polarity property Date: Fri, 15 Dec 2023 22:22:41 +0100 Message-Id: <20231215212244.1658-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231215212244.1658-1-ansuelsmth@gmail.com> References: <20231215212244.1658-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785396714332399837 X-GMAIL-MSGID: 1785396714332399837 Document new LEDs polarity property to define what mode the LED needs to be put to turn it on. Currently supported modes are: - active-low - active-high - active-low-tristate - active-high-tristate Mode is optional and if it's not defined, a default value is chosed by the driver. Signed-off-by: Christian Marangi --- Changes v4: - Drop support for global active-low - Rework to polarity option (for marvell10g series support) Changes v3: - Out of RFC Changes v2: - Add this patch .../devicetree/bindings/net/ethernet-phy.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index 8fb2a6ee7e5b..282bf18f50fd 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -225,6 +225,17 @@ properties: driver dependent and required for ports that define multiple LED for the same port. + polarity: + description: | + Electrical polarity and drive type for the LED to turn it + on. + $ref: /schemas/types.yaml#/definitions/string + enum: + - active-low + - active-high + - active-low-tristate + - active-high-tristate + required: - reg