Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp208479rdb; Thu, 25 Jan 2024 12:39:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IExeBMwo7G1d6LNnf1p9a+0Jn4o7DcO5kW3g+06z6uKT+2KFddGJ38rRR7qbjVjgbIDAUBl X-Received: by 2002:a17:90a:7446:b0:28e:1b1b:6239 with SMTP id o6-20020a17090a744600b0028e1b1b6239mr181731pjk.38.1706215150213; Thu, 25 Jan 2024 12:39:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706215150; cv=pass; d=google.com; s=arc-20160816; b=0guscNA9poch5cbUimsgidmBaQzxWVmL0LiPAZ1LErE++PFQYfMutPFEQvhg0Sry7d KKacSlcQAY+tUbpUnH/mheR8SAgTkurkR0ZRQ5wGdhKZYFHcqCpCMT03WU2mr2nZlFQK whL5ytJ/ke4JhJRsbWDtvoJ4qAUDlnVhONjAXb4aOUvhWYiT+AQ1T4XVXz9mSS3BtcQr sVhjTPSys2DOC8VaBTuDRuzEfOeD5nbScyld5h/G6esWrgh9k7QxgyIMUidoT6QG/wS0 Fs8llLcjEHh2ikKxPELWR2lm0AsiKM0HaWD8RxYpkfWhyUPooVmOSPLliECiEK85sKum S51A== ARC-Message-Signature: i=2; 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=rc9/mJgYPOB8azm1OEmNcV+loasWmlF2DTwkNaQril1K3HPM4g1tayJAepDFJDlxlR 7F4kdCnQY2xW1H0idPcbYY/kp/O0XSm/kJ6MymWgumNpHCpchoWqvStFZO9vZpyhfLCQ rophmaaYdiYwYPWRnKCOyCGVc4tOHayWFEcp6Wz7gasveR6OcFOvjP2OShvugskSMLnW FdxL1RN7EPxE4p0APD9fQ43HYojPD8snR8BbtkMjvW+miflDdjheZsuCTWLq5Nq+hzyL L4WMHS2n7KdNhFrucmrmFfLSsE7zrPSstVrOSr6HScnnRYhmuqqOxBqh8lH20kacpaAc y9+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZhnE1ePD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-39254-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x23-20020a17090aca1700b002907766743asi1933536pjt.143.2024.01.25.12.39.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 12:39:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39254-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZhnE1ePD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-39254-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39254-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C8956290F2B for ; Thu, 25 Jan 2024 20:39:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1C3113B7A6; Thu, 25 Jan 2024 20:37:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZhnE1ePD" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 724D313AA22; Thu, 25 Jan 2024 20:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706215048; cv=none; b=pSahgfkzxYc54yu2v6sL5S3De6INgy1VEJGdeX5iplVv+hXN9/VjQThmmNQdyvfK41mg8xI4eDI1SLb1BdJrlnIvq01qfe16by4vW+7xEkBztGWXZTOl9OK9lVPInCCf9s3S0rOPltm0E8Jiq3U9+yRef0MHAbCQKTtIg2UoZak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706215048; c=relaxed/simple; bh=VIBIOFUxPO7LgCiFnSr0vI7YWQglmyzYFWy+CroOSCU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nUuCuKsi7ZbSQr7swwL1rvnErIRdiXEVhgBaTQZyYQ6K+Z1i/v4wbrT7JA+kkNCeWWLpZZAkv4nrIVqL2Jqo0yHlptvpjDj/RPBZ0TcRzYJ7iDjadrXxGwoi1S8SMSV16/mQ7B73wKdDul/i9OjAn/6yddOB5Gcup+klEyi4QCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZhnE1ePD; arc=none smtp.client-ip=209.85.128.42 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-f42.google.com with SMTP id 5b1f17b1804b1-40e80046264so1545e9.0; Thu, 25 Jan 2024 12:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706215044; x=1706819844; 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=ZhnE1ePDCgdbSSS0p2SoyZthFld7xtCO7WljU7vUIOhEvVEjPyAvG02spg38FrHK1u cz7nNLOJ0ZBv5BoksKl+cqUKYiseAOwVVrAzrNx1wtH4YA3deU1zROSekwk1BLi1j1FD 2m2DWSo3z06fLEJ2Q7IT6XQJBcgVYnVA0U/v2tSHTlAK02l//l+zOTM1GxekU9AgmBTb LHQ7hswe6gbiCXeePo7lPV8F6QFdIMQeK+UGuupLVMV2j5RSWJP2Lhj8FMhL1LQDV7d0 AH16WgTv4ILAYc9bjfiQzRjIwbbWQV6bfD5HZafd3kIxkuJ/0mvFi3Y/IIkVJeSy9JPv EY8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706215044; x=1706819844; 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=fNbjryx3I1e7iQw+KNsVueKq+zwH8fPrTrqwq4PBKtAaV570Hkq8xf00Prmw4o1ggL w+hJs4uGpp/T7u6d+dggnetJp+/L5sAfBRrN6NNROCIXgDtz0xOqDRgv3C0UzuZVyajL 5UY8V+eFvenCGYY/DsOfyFG8GV/k03oNt81A27YLq4JOJt3qKpqv+gHNWRvqJ8SZ1Bl7 DLFNfkpIIGJtcwynlE7KS1y+aJJh5uHmgO6PVajZnHks/RuQmWF2h8Hcwn0/cS4CDWsx Y2Id8Swz1tI1uZKMLPZYw0jWscdXMKBJf4jUYEpmPTDll+y5+lus8G7xUEY0AlM3kwTe aJ5Q== X-Gm-Message-State: AOJu0YxHAR0PJj3lTMA3RHQTiN9ImMtixG0+7/YCUjJ5odjAqEgfAzeC u8rkVKIVjzEkqEsBqg4PQQ/8SOw4HQv/Wc2gqb32VEjK1KM7V6bV X-Received: by 2002:a05:600c:444a:b0:40e:d436:9644 with SMTP id v10-20020a05600c444a00b0040ed4369644mr183943wmn.117.1706215044383; Thu, 25 Jan 2024 12:37:24 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id j32-20020a05600c1c2000b0040e813f1f31sm3817700wms.25.2024.01.25.12.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 12:37:24 -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?q?Rafa=C5=82=20Mi=C5=82ecki?= , 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=20Rojas?= , 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 v10 4/5] dt-bindings: net: Document QCA808x PHYs Date: Thu, 25 Jan 2024 21:37:00 +0100 Message-ID: <20240125203702.4552-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240125203702.4552-1-ansuelsmth@gmail.com> References: <20240125203702.4552-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.43.0