From patchwork Wed Jan 3 14:12:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13510656 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 7F750C3DA6E for ; Wed, 3 Jan 2024 23:05:37 +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=uzUjY7pEOnQtIG 5NUZOImkebWdcagUV0WOmZa5qZUkcRogT3mUTb6JCpiSjcmU5s3PMLKAak27ib9F8+qLx2KF68Kns iFAzRoX8wofb64MUI7Z+KPNJ5SXdpbtaswcuWStLdCRA3YqHSD27j77eOvcsM2m382xWIuM2YUvmg /2s2ZCLKtrInN19b2FzVFxEvfQf7BC+g4wvveqrMphGkQOuKzbqa5di+hbtbf/c4iIIyjFSuJuODN JJKGiW5/JkfSbpizuAOnBbPk7KfA3o5qhYbMY8fQSV84PVj00tqXtSGcewQEGOn9N1qqxzrIK9gKY dh50yBe9118RoPcd1K6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLAIQ-00CMVs-1v; Wed, 03 Jan 2024 23:05:10 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLAII-00CMPB-0b for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2024 23:05:07 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40d76fefd6bso45984925e9.2 for ; Wed, 03 Jan 2024 15:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704323101; x=1704927901; 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=C/tKvYEnzGphdJp9ZTfvrvs3JMMWr5uiBr1c2Zp278paWUAwy6I09LqJJuV4DuEMO+ uoiZ92rbJuTg8pfp8k9BwwMl3DuGl2ZuMm/49fgpi8/91YuZSIrRTcTORAOgBpl3gfbR CU88N0UrGaaV0vSQOxjK8OpilvXKrx6Bt+9sjkFr7id5TovXd2rMMWGg2Z4RsQCwZFXZ GsXrRgzeaqb52FyBue7cbMDpfWHowsIXaiTtIllRrzF9qwG//KYICXo7d0U8h9FwFGOU wOcvnoaaJxXpHeQhqSm05BA0DJxXCD60PXvufblqH5gVcp7ufsLd4fv3AmS0FvHgsU2m fxDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704323101; x=1704927901; 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=Po940ch3lIZox6uQs0SZak1o6OQdV+q0f1kiBJ84KwON9PgvpUJPI5P/4TuWKnVF1E Hn3Zz6t3nKjEZQ9GDOVBWm92I6ygXP0wsY4tYGTt4IHsUjvaqNb8CyvRS8gOnoKdOMpg OxQ5A1kER3+awM7GLMDWFcde3E+r/cC4RThwbZcWV0RksynEs8mQfeXW4WKFjXnFMddz dEpdVBrssfhtmzl1MNKF5NUa318b11DjtxF6mPoVkdiE+HrlRKy07SVlemHWQysnS4SX pFks/ABk/uMuBm1g25TIeT2x8xrKBDv6cbDsCV6HSwWw/6tTwkDxnI23u2QwuMCKZTsP JA7A== X-Gm-Message-State: AOJu0Yxg4Q59cDb2ZM3EuIISIo3L/3OKwzKcXv1wgIM/eJw0vGuVTGtl MYzqk4dg7LM1cbMvjXIFZTg= X-Google-Smtp-Source: AGHT+IGCetkBY7JdDXLA34a8G8Jldfvk5R2n/RCoreTZpFT9XQru8kaPDvSV6y2iVN9jMlHFQaTEJA== X-Received: by 2002:a05:600c:4fc1:b0:40d:5db1:7c72 with SMTP id o1-20020a05600c4fc100b0040d5db17c72mr2780914wmq.95.1704323100808; Wed, 03 Jan 2024 15:05:00 -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 w13-20020a05600c474d00b0040c46719966sm3740969wmo.25.2024.01.03.15.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 15:05:00 -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 v7 4/5] dt-bindings: net: Document QCA808x PHYs Date: Wed, 3 Jan 2024 15:12:37 +0100 Message-ID: <20240103141251.23446-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103141251.23446-1-ansuelsmth@gmail.com> References: <20240103141251.23446-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240103_150502_234048_12359F17 X-CRM114-Status: GOOD ( 16.24 ) 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"; + }; + }; + }; + };