Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7045916rdb; Fri, 15 Dec 2023 16:36:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkBbMrh4Pw2E/oQkb0bSMCs8jRWav4Xnbq/fma52kDdSV+zY1yny16X6Tvye1mLc1riROD X-Received: by 2002:a05:6a20:d413:b0:18a:d4d5:8559 with SMTP id il19-20020a056a20d41300b0018ad4d58559mr13079196pzb.51.1702686979191; Fri, 15 Dec 2023 16:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702686979; cv=none; d=google.com; s=arc-20160816; b=SzkdkpvBHUg0zv2NOyup5n3NMFKiDqsNzFeHBpBhmZgYWsYg00vEt8U1nAYZaFCZJI CIRpqtRxNPKqQRjqflhWUlZHZO07+RYVne5VvuVc5QzKe3LvM+iVhPKr7m5krjnWPT5W Vq980E8Px3K0nKvg4tTqHAKQhA/LKfHv5vk7hy7HEyR6I8IH9gglcXyGHF7JefP+7spy O8CpU9cV6Nkohpn6NuknM7zYyz90lMseI7yKTqE3q74NFvOATbyLfab7IPn3JAA888L+ wSm2f/OPZbcJChwldidbAyF+o2BEPy5Fpn1MFQFxQ2tIWFPYbR918M1kSIo8ibv3ppFt sUlg== 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=o6LKt+ontTXHu1XtoIYFtpLE+AnFf2w4c9A2s2xTblA=; fh=kPE9KW8dyscA6v7zkgcj/FooI1Fs/AeIqNck08DWXng=; b=n12RITWNkTd6C59FUk84eoKRT6sBiJ52s6Ypwy6uqjiDlsgWEq2a8Q/C9a05NqSMtH bNZY7ZjJZM6ytt+bFqvvYBzbjIW/fD6CKDLjkBC3Nk2tcttbkKMaCZPpzI2qHXmosJrt 2pdiHsM40OhAhlk7WXCvkOtoLKbPID6gShxPhkcAwSXF3HisCiqgmdjjHqo504EsgbaE wts6FKszrBknP9l49toAbmaKSWnTR0V0liXvvwBY0BWncmA+4MsH+ghGCt5fQ5+pNOMN 5ip9RCzUN/h+vW4tGngRYDuYflShsAhkLpoJFoLx249mjcWw4kt9INXtRUgC+iHlTB0p XDJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PTNln9ZN; spf=pass (google.com: domain of linux-kernel+bounces-1905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l5-20020a62be05000000b006d28dec60cbsi562858pff.251.2023.12.15.16.36.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 16:36:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1905-linux.lists.archive=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=PTNln9ZN; spf=pass (google.com: domain of linux-kernel+bounces-1905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1905-linux.lists.archive=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 6A55EB20DC3 for ; Sat, 16 Dec 2023 00:33:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 179BD4185C; 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="PTNln9ZN" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 8ECCEDDDE; Sat, 16 Dec 2023 00:23:11 +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-f47.google.com with SMTP id ffacd0b85a97d-3363aa1b7d2so1031029f8f.0; Fri, 15 Dec 2023 16:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702686190; x=1703290990; 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=o6LKt+ontTXHu1XtoIYFtpLE+AnFf2w4c9A2s2xTblA=; b=PTNln9ZNxq47pubwHBj1zIFOaJ5+FSK4RY0IYUTONjGmDGs/cLf308TNgCs5fYsGil 1NPUk+/XYL1s1s+B5bIR6DWMP/cEgnmjDnPXzSOhXLS9Bmhf9jW1md0tmqGgQW3Uh7xc UyDbx5zkp0yJCwb52WQgA3YqaLogERLHmN3hKGZ/Z5B3q/VSz1PO7cmaNQ2pveNlC0Hf N408/Ng3jKLemY9XvaTO6pxvkm92cU5IG8sYHXjar8b4s9gJybnhAkxwYeJ+x/I+0mmF d4PgahQQ8e4xHryZ2yzVQu/7kC18QprbhIT1GDMjyeClUMDiHYnXSOS4vVGdp5a2eH/c p7dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702686190; x=1703290990; 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=o6LKt+ontTXHu1XtoIYFtpLE+AnFf2w4c9A2s2xTblA=; b=bxqntpN7Qr5dh83/AI5dbVUapbfXIhaiURIcnMy3xTVXqbH4eHybb20Iav6Re8Ne55 B7Mcpvj0vhr94uwylrunbHFuLixhrAOQjWQXZODO6JN4vBiZhJZOojqX8zMlFzevVN3e 9UR8nMb5ymqR2eLQo+b4g+F9GZGOH2mp4Bc5JYi5Z627Q9v28bjRJgpueXwyaUmmFKTI BNuoYyV8vNXG5Nm02XgkL9KMsVflMg6PQ+v4a4915hOStr0yY8bCEAGbBE7+W+d2IWQ2 WfZ/iTM3uIyqSc/6RHkQCIzYQpbSJ46MPRt6P0fLo/499TG/y3tOUoXRFm3VvioTk3aB vdKQ== X-Gm-Message-State: AOJu0YyysONCggvTuAkh1sXHZCAE7QxSkObKTiCwk9g0avgcPtP8HkVg THBvc7LKsyWbG0+r/RCYYlc= X-Received: by 2002:adf:ffcb:0:b0:336:46bf:7d95 with SMTP id x11-20020adfffcb000000b0033646bf7d95mr1372823wrs.20.1702686189689; Fri, 15 Dec 2023 16:23:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 16:23:09 -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 Cc: Rob Herring Subject: [net-next PATCH v4 3/4] dt-bindings: net: Document QCA808x PHYs Date: Fri, 15 Dec 2023 22:22:43 +0100 Message-Id: <20231215212244.1658-4-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 Content-Transfer-Encoding: 8bit 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"; + }; + }; + }; + }; -- 2.40.1