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: 13512222 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 72FFDC3DA6E for ; Fri, 5 Jan 2024 14:28:13 +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=YWCmVRfFwTm3Wa WHw7pJzQz7kgYp5EtA/9C17IR7sDRAPBY2y+t1QTRjgtxiq1rFCm2+WX6tyUnjxkPJI90nGVuMf4h WrosTsPqYMN2g2S1VtlARWNjwHWzTd6FuSIds6nI0qYebIk7qDlAKF0PoRBPHOQ0pZmyRV64BgibG cxAWa7M/4Il0CGT93I/oE/FU00KIZl8rBbS4OAb22blENarFiRL6dgcsJsu6Xm0rolitukY2kKb/f 4uN8J+gHquLPyIyl4UEAbzzy1mrRep1SwUJdIRuxj/n5brI1YlG4HQCtanUVWcvr9tkX69y3R67WI aSZW36XZOUQqri/KO5XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLlAq-00H3DN-1J; Fri, 05 Jan 2024 14:27:48 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLlAn-00H39E-1q for linux-arm-kernel@lists.infradead.org; Fri, 05 Jan 2024 14:27:47 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40d60ad5f0bso18687145e9.0 for ; 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=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=YGMtZpzyRLNnj4U2TkjIdx+l1PiIHGSHxJ7CHJD80S2zJNO48N5E6RBBeRTPJkUZbC eJP9gmTyRKzqigYYSKqSq4KdYP5TYlTdZngNRbq/zNLnGkLm038TRgfZ62Bdg10tVugI x7sFDb00G2v29cTz8NYdLSNr4u9IjEyPUWBCAt92QCPbMcvgVU1c7mPWBL8juIFthKpz F0yRv3yHIa21jZhehOsSNeez+pU992f7f1py2MrsDj5cshyXiQ3lqOiGx7OWW8smMPxG eORaaj2Rn7tCY0Vqxfxxbtb0jnLo5CAssIzT8D+Y0Nsvw3GH/JULfXXacl1bO1Kb5RPs 8p9w== 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=CNdO8zy8R1G4Y6Zv6MkQuYFk+a1UpS2kL0TEqZ+bDnpkM0+PsW8z4+IUvzdApoV15v 8p2+OhIqOnNRfUXeBwhhe/DwkrV/zFHnbHMq43jymIwuRxsFdsbO0NuS03huqLriWIi7 5jReOAV0WZkLyy5GjKKODuTcAMz99O8PjJALPR2EpJmPI5XXD2Dgx3hKkRBYjAodOXXE ZUdKpDoi/dsVGFI1Cb2EPlnbI5+KB1ErMxwk52GDJAsXkwx249MgU3mM5EXJ008yAyUj s8LpkErKZvP1FzeFEDQcr0VN3EceCZhRI5VRLeJcK2WnZFxP9nAP4f+OYL0Qz6X8JDX2 TH4w== X-Gm-Message-State: AOJu0Yy6KaH6JfJawKJUUwGwFquUWIeagTskzh4fxmBWBYi0oAbT8j7P 4ty++c4FLh7ITQ7hjVI1k2A= X-Google-Smtp-Source: AGHT+IGGsLyPYfOv9s/YfB86lGFokEk9GtTmSNKzVc3LliaoZySXZPDYuYiN7aiPHW/bQicdcxY78w== 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240105_062745_605080_C352F68B X-CRM114-Status: GOOD ( 16.33 ) 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"; + }; + }; + }; + };