From patchwork Fri Jan 5 14:27:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 185419 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6254590dyb; Fri, 5 Jan 2024 06:29:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5cFzw2BKA+HhU5URywSV1RUOYPa1Ah0ENC5nSP6m6M3bPOEDPpYdX4BWY1CmFuijU0VoI X-Received: by 2002:a1c:7704:0:b0:40d:87be:d6d4 with SMTP id t4-20020a1c7704000000b0040d87bed6d4mr1398470wmi.68.1704464966402; Fri, 05 Jan 2024 06:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704464966; cv=none; d=google.com; s=arc-20160816; b=bWRk50x6DmkZ72JxmUfYHGESeDosh2QEvWbqHtlukseg2GO3djwO9DnC+MEKRb0P/A ff1Nkce3xel0X3uBmyYezMMce3EWA0AxemQ/A3zfkNAYus961sxwhK5TGGq+Bhd7PzeR 4h+ImuyZRhGmY8R0s3Cpg8U6cJWGpVImTOt5clpbI/fqrdnAgEJHYn9HNObh9SwIWHde XzIS5K91BOLTmNB/gK1DE0VLEWkVcNgM1OV9Q+9QTUwNNZ6DSckVRADI7MW1kVJtqe7d gMGrJkHi2sNuAnSudhKvLcn/YfwxS7kt3lx6nDVcc51KURPWflDertMmdFQTgUdPBH4Q ggiQ== 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:cc:to:from:dkim-signature; bh=Y5KF7aYsnQjm8O6McJy/qfQDXWU9jFx2zhlXwRq6wUk=; fh=j0L8y0dZVS02WChc7Vt2DURt1HbUN50bnOhhpNDzNJY=; b=atymiACrCRtDD+bq/s8WVpSW9kmGDhvX6lkcmZkNjmgkKtXYwWVwgo1lCXnwK7Sz1V v7Oc65HU828Qf5oenBN9dek2X3AadnxrsbPNoD5/GhXt3LRntqw8rpuIkYbKSPGT10jF n8HFMf/Pqa33x+8sPsxmLn+8RnHHnTkV3TkTVR7LYSQEQE/vnaaiaSbwECsOpsl6vw9v 3GdqBKQNe6VOSi3AbuisFPa40ZzRzQ8MTHSkTOrfwR3hfTmeNLUrog+rLWhMFMw1HOdY caJunwfYXGW6JtdmcmdU686sCKb0vGL4RB9eYEaYnhX9L2tKMdENiJJnMmSUUwhuVWKk IAMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NK553sK+; spf=pass (google.com: domain of linux-kernel+bounces-17926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17926-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q12-20020a1709064ccc00b00a28d3091d40si650432ejt.949.2024.01.05.06.29.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:29:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NK553sK+; spf=pass (google.com: domain of linux-kernel+bounces-17926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17926-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C92F51F23D6C for ; Fri, 5 Jan 2024 14:29:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E9E13218C; Fri, 5 Jan 2024 14:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NK553sK+" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.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 12A4A3173A; Fri, 5 Jan 2024 14:27:43 +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-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40d858c56cbso18544205e9.2; Fri, 05 Jan 2024 06:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704464862; x=1705069662; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y5KF7aYsnQjm8O6McJy/qfQDXWU9jFx2zhlXwRq6wUk=; b=NK553sK+4uuIBdPyTolPDK+7n7ld/4RcnYm+DtHG9TqWSWO3pu5GzFj0Hr0eP3J4S3 VUaExr+qRDAh82orSSBYcCMuXuJFityUHw3BsxO9ffEqoh4ETYBCKK8BeGpYtl788qJN +0psRhiXVjkaD8DWGWDQcTLadci1dB2B+I8cxyObIhKDUZ1R4FAANKj3+pElvdIZgD1a 3YftQaJBEHQ74pavkN2R0y1RMUEIXpWccomrNLi7tlDaUwCiUhLBH2ClNoIwk0tpYfc7 akdSHyAdDt4HG5mRSb6Yg2FAx2oz6dRqy2mbolvQ2tNgYOyvYnhzF/JGJ0wRgzoNNtJF C0cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704464862; x=1705069662; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y5KF7aYsnQjm8O6McJy/qfQDXWU9jFx2zhlXwRq6wUk=; b=TKs+9ZRf+rzlIS9TpuuOzLZHzxKE/0H9hfxk/6GCMBivAP/dTEISzR3P1NfHhTwqzX QqC5fSp6L+gzZFZuqkpYiOE0xkky4wbiyOPhz2cV8ZIpkEbeX8oTekO9y9YM5a7PWb8o tb7s2JZyvKEwqxzxnQvRIimocItXitY+J5blZsIodjV9cgmcbqAQ0uNLjsAFa8POOvwi 3C36cQNfPO9XGdORO1bB/pWQOsS1nqIWq8J67ZeMGmigned94T+ZMAsN8BSdMsdPdaZB 5dGWnB3sT4ZrxutlUr9eLBlhvXr8n1wPXVAA+b1xgAM4KEefvdkOGLIhSAixp983nOXg lK4A== X-Gm-Message-State: AOJu0Yye5Iv8t4s7twydEtGZ2nhr09UTigSycIAhVy7Z2hvipA50T1wM zXK+H8R9z62L7Wwx/H7so1E= X-Received: by 2002:a1c:7413:0:b0:40d:6f89:a839 with SMTP id p19-20020a1c7413000000b0040d6f89a839mr1248904wmc.30.1704464862043; Fri, 05 Jan 2024 06:27:42 -0800 (PST) Received: from localhost.localdomain (host-80-116-159-187.retail.telecomitalia.it. [80.116.159.187]) by smtp.googlemail.com with ESMTPSA id j10-20020a05600c190a00b0040d87100733sm1721901wmq.39.2024.01.05.06.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:27:41 -0800 (PST) From: Christian Marangi To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Heiner Kallweit , Russell King , Jacek Anaszewski , =?utf-8?q?Fern=C3=A1ndez_Roj?= =?utf-8?q?as?= , Sven Schwermer , Christian Marangi , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Cc: Rob Herring Subject: [net-next PATCH v9 4/5] dt-bindings: net: Document QCA808x PHYs Date: Fri, 5 Jan 2024 15:27:16 +0100 Message-ID: <20240105142719.11042-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240105142719.11042-1-ansuelsmth@gmail.com> References: <20240105142719.11042-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: 1787261056800449598 X-GMAIL-MSGID: 1787261056800449598 Add Documentation for QCA808x PHYs for the additional LED configuration for this PHY. Signed-off-by: Christian Marangi Reviewed-by: Rob Herring --- Changes v4: - Add Reviewed-by tag Changes v3: - Use compatible instead of select - Out of RFC Changes v2: - Fix License warning from checkpatch - Drop redundant Description phrase - Improve commit tile - Drop special property (generalized) .../devicetree/bindings/net/qca,qca808x.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qca,qca808x.yaml diff --git a/Documentation/devicetree/bindings/net/qca,qca808x.yaml b/Documentation/devicetree/bindings/net/qca,qca808x.yaml new file mode 100644 index 000000000000..e2552655902a --- /dev/null +++ b/Documentation/devicetree/bindings/net/qca,qca808x.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/qca,qca808x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Atheros QCA808X PHY + +maintainers: + - Christian Marangi + +description: + QCA808X PHYs can have up to 3 LEDs attached. + All 3 LEDs are disabled by default. + 2 LEDs have dedicated pins with the 3rd LED having the + double function of Interrupt LEDs/GPIO or additional LED. + + By default this special PIN is set to LED function. + +allOf: + - $ref: ethernet-phy.yaml# + +properties: + compatible: + enum: + - ethernet-phy-id004d.d101 + +unevaluatedProperties: false + +examples: + - | + #include + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@0 { + compatible = "ethernet-phy-id004d.d101"; + reg = <0>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_WAN; + default-state = "keep"; + }; + }; + }; + };