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: 184862 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5311996dyb; Wed, 3 Jan 2024 15:07:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOWmNpRVumTBDdSKT9U+F+KLP1vQiXVc5zNEocnHGHkyZZFUKWRmrfbtVD1EAsgEbiV4Ly X-Received: by 2002:a05:6a20:8e09:b0:199:ded:6eb5 with SMTP id y9-20020a056a208e0900b001990ded6eb5mr61716pzj.84.1704323256527; Wed, 03 Jan 2024 15:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704323256; cv=none; d=google.com; s=arc-20160816; b=yDRPLHitQkiOpQD9mp2EYMiKEJbIalvod6R+iyyLV90YLNCM5Sa6dO29Tg6kVyMItN ry+HHARc2wpU5DynNr710RQxj1zHgazEGMQ87YSuS1qHySHH3wgb3vSOpVZOvU9kxk2w kwcL4eXnnIgHQAGThgHmBSsYmhtrFmyOA1S+RVnlokQfTWPZYxLAk7bzyKS9A2mwlE8Q G8mSNWJutbqxmidWbzEDiOmFZsNzdLJnuuV5vokycdKt0r/DttOnDP348THeqaB0YU8l ImneHKJTZC55ScDGyU7MDfXvMveGJMPcAL1+umzO6WMeATD11Nnzsua5WhfSRDpK2CAg mEug== 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=ybT/mHbsf+vQNLHuXla+RhZBHbrFW/rSNsLCU7JLjT3LYoom03LVao61PSQRmP8xty JxCldkdqE7BOX0l/1WQSpZSP9LBH4/ULBGBZAAXDSStNdApZtXIQ944/6II+M5bTo22k lJuYUUCvQ6rcofgJBoiK7ZnmjOmSmyMRTuygYavWFWpD/QUfWU0sriVJCr3EQQ/L1Pco KjNUkZ0LoBQ1mfWAOV7Q95x5GzSKikQCornDUn2a2TeaRBPHwaW/rfGcnwfYuoH9i/r6 zVxQz0hDX1B3r6dwW3wsw3xB1VpsFdoEY8hdKbK98A7WGiZHOX+vhJYqNgMFqy2zwH0F WY7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HlNGmmiM; spf=pass (google.com: domain of linux-kernel+bounces-16102-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16102-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id by33-20020a056a0205a100b005cddb743bc7si20004985pgb.709.2024.01.03.15.07.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 15:07:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16102-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HlNGmmiM; spf=pass (google.com: domain of linux-kernel+bounces-16102-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16102-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 98E19B24333 for ; Wed, 3 Jan 2024 23:06:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA10320B1B; Wed, 3 Jan 2024 23:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HlNGmmiM" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 AB99C208AE; Wed, 3 Jan 2024 23:05:02 +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-f43.google.com with SMTP id 5b1f17b1804b1-40d88fff7faso27458255e9.3; 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=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=HlNGmmiMar+TmE9+Et6dmNsoqL9+OPkjfEYDBe8zDiVTjJTRUtEjg3skgDKRaJZeL1 /yttE9CtJ72PC0iOpYkyueOE3RJUZEzifYpH2kMvRwWf93jWzZcIXv8maZhQPPrLAFqu PU5KvtybRWHXZ7NvM1rhBTP4fzu3zrkIPIpjd39CTx07DTridk2FMgBcQClUMTgRGSwI w5T1l3DoYCSydMYa6WWvA5hNHsjo5veEQUdsdbmw8ibPYbheP/zdEiphZPf318uLw3am t4WKQf93QPYno4HzTs1nOfVAfJ7uAEtHRwTnM9keaks+bXn0U7NUJDY9PilqJkpxbSp+ 2opw== 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=U/2ij5x2tc/IpSela3w9BjZkNtwFDKUcAFNpXzVE09Yu4b9aIvSfUQWOs1jR9sciUu Fpmx7HwqrKHcfXpqW9ZQqv/VOuxX+cdeMFcrhfdeOKYOZPnGDwofVr5K4dnYSxxdynBG r3cgfxFNRU0sttzG8ZFdtTnP0KH2cXmU5qE/Aaf4pDZX8e0Q0fDcsBTQmhlFbzy9mSUm +TRW8/AFuyPvfg/7pncpUCFAsOBGWEM/Fnczb7re+VDTuPEFpaw3sdskozIYpcm1yv6B AyPh7r2qMcTBJ5q5jC4fd/zo/BNHuOs5Lq6Z4Cg4vzdhPaOA6NazzfWDxBDISRctGo32 4M+g== X-Gm-Message-State: AOJu0YwtOZumY1aLbVo1wwZt6teE2ZUDf6Tdb+RLnj7CRMY6lujyeva3 6VXr9xAsJTaOxSFH3KA/sno= 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> 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: 1787112463099022444 X-GMAIL-MSGID: 1787112463099022444 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"; + }; + }; + }; + };