From patchwork Wed Dec 13 11:13:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 177893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp7697556dys; Wed, 13 Dec 2023 03:13:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfaL8bXbs65slkKR/Dx/ckELrh38e0+OjJSilZzbmnvp+gsc1Kmh1sj5qv42k+/NbXP1sZ X-Received: by 2002:a17:903:2d1:b0:1d0:6b95:9c06 with SMTP id s17-20020a17090302d100b001d06b959c06mr4688354plk.16.1702466036046; Wed, 13 Dec 2023 03:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702466036; cv=none; d=google.com; s=arc-20160816; b=agC8CqzsUO14tOX5GUmS7mfUZ6AYQNsHkBsWPuuA1saLuiHyYb5Zr9jtKb9AJqtIkX wHqB+1wwwrosDCaCSrwOyw4ceWlDiUtc8PC5+us26bCRUmU0GapMdQzcF6d8vK6aKj3J GkJXNaEgSnaNrJWiSyvj24BTqql6QiL8Ry9+6OKmqI85/U/IDISf7nQuHkhHZMZ3monJ OAxk1af/7z7KDhJiyIIURa1fc1rMqUq2ISn4UkwEr1CaiHA5k9s05E1bKhM20mFMdkh+ hxexrU+dll/Ig9WwauicZ1PPKddkKqFPa2zt5N+9e97f8CJ/RpLpLByYTkiWOMqhf/+D IcnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Jbp9q33bbrLugJBFpEcvsBQj4/TK8c9t0fvxH3F0ISo=; fh=tzu85gBR3VlvEe4Hwx1jZkp3RmpXm0UiYz0dmr1/rjQ=; b=J7DTP2bIgN6PLbZ9d7jSeeisf53L0G74DYC/UROHZ9GSZJ7dJmgfpTHCy2veqayjhP Hfrk5omJaCkYtPqZfVV6PKwsBoevy2EASBWGnNOKImq+djKX1auCXUQaF+suFzoQ8TF2 ho3+svajd1ZJMhVPzRZOnoVPNFHhbpKKmiIZm9LCfAHgBBaHv+wVHfWNRrfjWWwFjSfh 7QXkqCt5b8BWPzxUMJfmHn2GIcJubEsgudpqlimwA65bWgBTABXgTAwtj4/1dM7O1vGo LoWHc9AxQVYSV73lQQCpVTWl3AlrKz2Hemzso2rfBGQTFlv/zcc9ISx60CJOAQXPtaMQ +vEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLwzBxxg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f1-20020a170902ce8100b001d33eb9cef0si2268062plg.431.2023.12.13.03.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:13:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLwzBxxg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 99FE28045BCC; Wed, 13 Dec 2023 03:13:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378758AbjLMLNk (ORCPT + 99 others); Wed, 13 Dec 2023 06:13:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232628AbjLMLNc (ORCPT ); Wed, 13 Dec 2023 06:13:32 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80F5FD0; Wed, 13 Dec 2023 03:13:38 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-336417c565eso231048f8f.3; Wed, 13 Dec 2023 03:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702466017; x=1703070817; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Jbp9q33bbrLugJBFpEcvsBQj4/TK8c9t0fvxH3F0ISo=; b=NLwzBxxghCP0QnwwoHZrt6A3YdNgJANsI3JcQHae++tW606e8sTNll0yhuiwwU3zBI fLvjzWElTYdF2zfnHsLHN13GKi5HeB73w2nioOG3I3sSNOhD2VBF5SKYUzcj5IdZJ5kw JlqIqqxPazUSf/emfYrfk9HEKNliE+pV5vC/gGENWAWfybfh2MYT8q+LBJ/Ol6e/HCb1 24ASg2yoBAhvnuFjubcKY4tEIulBBgvSMqLUZYo3r9NGVs5wA+AN1TvleLeG3mN6Gr4r 04D3r4YiLTF1XludD/gBYBuPqGxwOvYbU3kGYBmSxceJPQ5fdfdBBzBVXErbwrDi+2rU s18Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702466017; x=1703070817; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jbp9q33bbrLugJBFpEcvsBQj4/TK8c9t0fvxH3F0ISo=; b=lEb7AmKU3AAVUY5W8b7gOTS4v8TaMvMC4172zgr0P0z28zcjioYOyqfL+svRXCeJYC UyXvhrCQsoYCDBJDN6kMLwyACNlls++6nu0dCYT8PAMoi500ht8sNIaYxDTK7FaEGMIN FP05Yg2T186auvSDosqFnXed6MQP8jojI8jNmnmg39qCatwWzprDmBuPF1/orId5jygk uPOi92GJUqyMobA0OlRPoFN2UQepybGe3jJl6H2f4zpEQoBO79HTmf7W6jDs608Jdm3F 7sDmgfKgMiISp6qx+0BYcKJrD6Cl8dCPJ89G9eFN57xUyVv4kiJYq8w6to0ZPypQNLgm hjjQ== X-Gm-Message-State: AOJu0Yx/x2AGaVTaJPQRTQdaRYIubsDTgyQqtFby7wNWhl610XQHk91t YxZcT9w+aOFdSDwG8ArLEjA= X-Received: by 2002:a05:600c:511f:b0:40b:5e1a:db8b with SMTP id o31-20020a05600c511f00b0040b5e1adb8bmr2719903wms.44.1702466016445; Wed, 13 Dec 2023 03:13:36 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id fc7-20020a05600c524700b0040c44cb251dsm12388301wmb.46.2023.12.13.03.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:13:36 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Christian Marangi , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net-next PATCH v3 3/4] dt-bindings: net: Document QCA808x PHYs Date: Wed, 13 Dec 2023 12:13:21 +0100 Message-Id: <20231213111322.6152-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231213111322.6152-1-ansuelsmth@gmail.com> References: <20231213111322.6152-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:13:50 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785165026174762969 X-GMAIL-MSGID: 1785165026174762969 Add Documentation for QCA808x PHYs for the additional LED configuration for this PHY. Signed-off-by: Christian Marangi Reviewed-by: Rob Herring --- For Rob, I used enum instead of const as I assume more PHY will come in the future for the qca808x family. Currently only qca8081 has seen around. 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"; + }; + }; + }; + };