From patchwork Tue Jan 2 18:38:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 184421 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4620678dyb; Tue, 2 Jan 2024 10:40:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfr0F2v5JMz3JtGnE2J4/AyqRLT3U7tQ43M9/Wo4Z5Fpkt5StNYjRkIJKZkN1WVErpqib6 X-Received: by 2002:a05:6214:2029:b0:67e:aadc:aca9 with SMTP id 9-20020a056214202900b0067eaadcaca9mr21781021qvf.4.1704220832674; Tue, 02 Jan 2024 10:40:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704220832; cv=none; d=google.com; s=arc-20160816; b=AI0mKvG0ZCrVkUirpnM+TVweI30Z7tFcNKOwr/XV/CozmgoR+SLS5Sti0Qfe+TAbef Ufgk2M1hg5f52qZuPICP0jbPxWBLHb4r7z7I76DgZVx5f1/6iaT0va70yqAGyMDjSXKe vaCcnQajEE5rxRimpC2Eme+OQlYySUrS940jTtaBn5KrqQlp+ymUNsLD4bHY5Vut75CY lVHmn45o/K+LgpoOBwN4Pknvav6poueFlVfHm/3UTPj5btnECxo15nTPYYqilQK3JaiB E4uSvYDEQXP30U6tjllEOGI6cOcgcXdEdiyK2Yuw1v8Fxmrh0fLsDjjkxJ37KP0jwBbt G3vA== 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=dkAU+Rpd6u+tR2kA3OrVAEduYVsM1gOSuyD6KdXX72PzKcQ5zHKmi6rolIcce8D+T4 ROxVokgYVL0PGQpy2wkTyziuV/jSabZubCHrFMYlA1wdYQ3oK4Zy5bcmDFyXb1LtMyB+ dClKa7vVeKA73dGcHP16vCutUUmx+pttvn0ByShWL5QLWR+1vA8+eHA8DGxQjqoBvIAZ ZJNX9ReblQaCHoGz6QcH4fAV8woWeCnLV7c/3gv7qevMsv5YAsFUJ5KtRIA9g+hH7oBq AL8VoYfBnKfQPg8GS90SmYr48CUbLt5qxOnoUuJRlmG/xP1jQupPh9fs223NS1fm3iN9 4UJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mN7GV1tB; spf=pass (google.com: domain of linux-kernel+bounces-14721-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14721-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y4-20020a0ce044000000b0067f727f401fsi28370823qvk.310.2024.01.02.10.40.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 10:40:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14721-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mN7GV1tB; spf=pass (google.com: domain of linux-kernel+bounces-14721-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14721-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 786391C20F56 for ; Tue, 2 Jan 2024 18:40:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FD80171AB; Tue, 2 Jan 2024 18:39:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mN7GV1tB" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 0C83D168AC; Tue, 2 Jan 2024 18:39:00 +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-f49.google.com with SMTP id 5b1f17b1804b1-40d41555f9dso99117325e9.2; Tue, 02 Jan 2024 10:39:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704220739; x=1704825539; 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=mN7GV1tB58LrY5hULuqboTkYFQiL/ZXO2vI1KRMzhKHFBNCLgNEefsGTXXh9gaHD2T v5eKiJonUwBXjr4SC6htWy7G+KQGVszrN3liLRK5M82D/fWKtLeax0Oa+1w31byNQFgb HhlL3qAhhYJTD+dYfQWD9z/55VCdHX2B5LjXn2z9SOuCKdO+n8H7neR7qRjHU3NEF/2x 3QyY4nkOI1SVRoC2ILWLSlf2nfXIJVll92kVbnGslr70Q8IiNNIaLd7cm3WuPNnUl7PX 5PfRy9xYoGFdsNGTraps1KdjMQMssMBC0bBitJMhrje/zZtx7meXpNqlyrR8Di3M+opq 8sLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704220739; x=1704825539; 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=oV4Fvj8YBj1N0auNtV6VDGXcCNkrc1J5QEU7c0eBrFjDyJduUtPo4VvFFhGP7Mprt3 NSIVCnAcEWcnvygbLUOJXfUZR2ZTA0T2kNGm6sGMA66YN/U8YWKPOtwePHRVbh5IjFv3 H0k1IYxmwHwA1xu2ll2aNYXN6yCVCYLbFnY4McQbkjYo5Sy7o1AhW0a6FYDFyAdDnlJg VecwrPmtgJfHJGSjELul20lQ421SfvLlZbHUdG9cqqTptoS5MhUMItORE6DTdit9fGLK H+WHWF4sYU6JM0tkCcCozTbgxUfNPwTbyy0z7RH+jmp6R3smBPMlmT2aW8PAgECyFg6b yu6g== X-Gm-Message-State: AOJu0YwvvOgsXltHGn6t2U5VeAtUIQ/C3ufkfLmHytbatbr8eQz8Pt1W J5v0OBF+w6Z9478JwMuBSUw= X-Received: by 2002:a05:600c:2b0e:b0:40c:31f1:145c with SMTP id y14-20020a05600c2b0e00b0040c31f1145cmr9649716wme.169.1704220739288; Tue, 02 Jan 2024 10:38:59 -0800 (PST) Received: from localhost.localdomain (host-87-10-250-100.retail.telecomitalia.it. [87.10.250.100]) by smtp.googlemail.com with ESMTPSA id p15-20020a05600c468f00b0040d4e1393dcsm37963071wmo.20.2024.01.02.10.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 10:38:58 -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 v6 4/5] dt-bindings: net: Document QCA808x PHYs Date: Tue, 2 Jan 2024 19:38:33 +0100 Message-ID: <20240102183835.5332-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240102183835.5332-1-ansuelsmth@gmail.com> References: <20240102183835.5332-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: 1787005063689372816 X-GMAIL-MSGID: 1787005063689372816 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"; + }; + }; + }; + };