From patchwork Thu Jan 4 11:01:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13511012 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFDE4C47074 for ; Thu, 4 Jan 2024 11:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YegOBHJ2j/2JMpDj0eNDD0rdK7Y3EJC+r/Bd2qw6Rbw=; b=MTkWm84XKouMzY SY1RHh6Bx1U6yTj6Q8iC28V9t+nA+JgosbY3UgZCFjWvpiEpcqgKzk2prUqP3SOqZ+sVSkNAL1VAL l8qij+POrfSFC93Zw72XEsxhG3BNdmsnXOLn9gb15f5viCKB8mNokS35P0YlrMvDiC6g4RZxB1iqJ 9e/sDcW3xydkCbumQM6QTvceBFn7K14WzXvJLFUGTR6YC+qCxayYa2PYOhTU2kYrZSCZi9TZd87sA 86Ep0fOSH7uKmOPFXrxI8Z7xdyHc7p1hz4wAztLPdnW+qNsDROjTNTSA5TQ1LxeFSHWzhAqMkvNv1 SvoFDARRbYsMhyjSafZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLLTn-00DcX2-0y; Thu, 04 Jan 2024 11:01:39 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLLTk-00DcUI-0j for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 11:01:37 +0000 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3373bc6d625so282567f8f.3 for ; Thu, 04 Jan 2024 03:01:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704366094; x=1704970894; darn=lists.infradead.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=XqA6hKwhlTL2Ga5RhdnznryP2e5VPs2pd2ow+bfDvBlMxRsvnwuP560E1Tzc/+4we5 fUKYVVyFTsZiYN8v5jMmtqWZfs/x4zTRGX0CPZPPlbnKQsD8BIdH5bglLJ9il7EuB6dz YUAM8zrJIaxsbfYMha0vQ5z3aHFgjvC3IOzVrfWO1uLdilaRku8/DWe9NEpIR1saZfcg +VFr/CZ/v41fF/d3T/DYsTsLMeSZgz56gEfE/aGWGp21tQoQozM1ThaWNVsukXgMxG6x 9frTH3ochBgxO8OiDsfQ+EYEtU8O2ToyPWRK66cvC3XdK21uiWR8LEKy8Zg24v/VKEg2 CPcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704366094; x=1704970894; 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=FG4JOo4M7iNH+Uec5dMR4Xi0rsLsg4d96rMZHs8k4qsSA52xYTUoRasjiq9qNKLjw+ B9IYs1bVpXH0PjhK1iQ1geMwndLDcu3d937Nil8WMwkAQzmLg2tMPOLK7RFk2oIcaOrz CI/GaYnnP6dKOtkqY622OeJZi2I8FpSJINvseGXaDB2mCAr9nyF8P9XeEV7Hj6dRDC7j L51JkvLNRjsjze3vBDJzY8lxpPV25Mm92RMFc5gzCHQnS6Az8Y8BduiCX4UPhQ7cmCdw Ak1/1Ab+O2pVG0qF7rYst1WTR0lbeNGEyr5NjOfw3fS/ozdJ9wSDlp2uYCQYJ+z7Trnv +mIQ== X-Gm-Message-State: AOJu0YxIwI3YyG+WFY/rOZIPX7F5MD9Fp+rG/SzOUTXTZqW3OPl+Ci4t 7hYXU6wCJAuKwql6C5pR/LU= X-Google-Smtp-Source: AGHT+IFrHuMStHtW8JuXZPy6rtA21RRQgQwMRpG8h1qwXwbb3sXCIQ5uYc9veHRYzesH3twUMNaHng== X-Received: by 2002:a5d:40c6:0:b0:336:71a5:443e with SMTP id b6-20020a5d40c6000000b0033671a5443emr297161wrq.7.1704366093968; Thu, 04 Jan 2024 03:01:33 -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 b14-20020adff90e000000b003373fe3d345sm9550242wrr.65.2024.01.04.03.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 03:01:33 -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 v8 4/5] dt-bindings: net: Document QCA808x PHYs Date: Thu, 4 Jan 2024 12:01:11 +0100 Message-ID: <20240104110114.2020-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104110114.2020-1-ansuelsmth@gmail.com> References: <20240104110114.2020-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240104_030136_263851_B23C8047 X-CRM114-Status: GOOD ( 16.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"; + }; + }; + }; + };