From patchwork Fri Mar 17 02:31:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13178506 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 00D11C7618E for ; Fri, 17 Mar 2023 03:46:50 +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:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fKxgx1EBy6S9ZHDiqXsyz4JCeHhqg53qN1ni1kAJcfk=; b=1ZidGHrxfkTF0x Nr9tXfaDmOhNgz5SyTobRlNNQOQ/+QQrh8ajBJPiGyB/G5Xw1vTRno62Xh7oV24NKY59u4RYlChPe UnxhDAZnF1191rswi5flWQZydGYQQq2ohPFdaYJHu9250jn0Sfd7WIPjmZJ3TstmHbed7dI9/FH2k hVWAsFtA3kBbbVqfPVH99vokVED6pU4WHKwLabsIV9uT471sofrBJoFami395aZdLe29fOsEy2/mO r9xAj2aTUuyxw3redkyOJafgdUq0ifYGmGUwVZiJhnHf90UYfQFWveVQ7np2FE5Mdqi+exq/240e7 fCOBgjclBPvMGkDU2ixA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pd12o-000qAA-1i; Fri, 17 Mar 2023 03:46:18 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pczuU-000f8S-20 for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2023 02:33:42 +0000 Received: by mail-wr1-x42c.google.com with SMTP id i9so3194315wrp.3 for ; Thu, 16 Mar 2023 19:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679020417; 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=NdFLu8rYGgfYob/UUJ7xHBPYmBqXvfPClb24ZxTT2Ls=; b=DutLKUovGo5Smee1OxymH+55w+jweIRW6b8/LTpEqvWGEybiYS1/mq7Uhli8Ckl++x h3SNVQw0nglbYfDxSz1basFNpUIZKemuqyxkuGJQiK3vkVxCsbyt7VZcyFDeKiCUJ1Df k8H/tCpTwfqPf8ib877IwGVmDQbMx7hiQjimW5bMfaJF1Buna93ft10bQPtK59YzDmcs ONaiS7H/9xJGD3jKeWYfYJAHXKhb8foSZkTvfkZcOnwJ01LY+g+VAFqCbLtSZW0gfLRs +T5raXr2+YgW3O3I/i5zNXrpEU+AFmTmm3wj4VrngFKCG37BTJxlmq+cnkGPOfzuwogJ a5eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679020417; 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=NdFLu8rYGgfYob/UUJ7xHBPYmBqXvfPClb24ZxTT2Ls=; b=P+ClVyEkUKfdBlONo+YZkBv5lCoY8j8KC6bB2gSTBj7B0y6lJZs+apXElwlkFZwCAb lKf7nuahDXZ8YKKlUYlXL/UFaQkJfT8/+Tv8+CJ86zzRcI/S7bTMpfz9bDznyMuYdtCT Ee20rQ0PVzwjRsy6iLemiLYmd5HktkN3BWF6inpTzQdP/z0SX7DQj5ur0XBWTqLs5epC S9d/KaIbW8k7k/jgNsg+BpTI9NCLVHcuJvxtUrZeJ54Hb7pLlUdtQwbFKm3vaCnuCcGD E0Y3xijZDSMnMF5DrmbSUNIctBAGDXBkaqYFdf4ZF/bJXucjuBA8AZ4U6fZZRt5QDbSw i26g== X-Gm-Message-State: AO0yUKXN1ykp49IEAv3H9C//Xj8ytvO0a277h8cU+sm/xsIbtNEH/nj5 tit0UQWcLB/Mbjk9Mpt7dIs= X-Google-Smtp-Source: AK7set9V/3xd8DaULwMWrn7GwNk0kslsUji6r7WhiD/CIbzOoiS/nUbqUuVhyYnTubPVK3JR1op2rg== X-Received: by 2002:adf:d845:0:b0:2cf:e132:bfbb with SMTP id k5-20020adfd845000000b002cfe132bfbbmr5896016wrl.38.1679020417006; Thu, 16 Mar 2023 19:33:37 -0700 (PDT) Received: from localhost.localdomain (93-34-89-197.ip49.fastwebnet.it. [93.34.89.197]) by smtp.googlemail.com with ESMTPSA id z15-20020a5d44cf000000b002ce9f0e4a8fsm782313wrr.84.2023.03.16.19.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 19:33:36 -0700 (PDT) From: Christian Marangi To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , Christian Marangi , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Lee Jones , linux-leds@vger.kernel.org Subject: [net-next PATCH v4 13/14] dt-bindings: net: phy: Document support for LEDs node Date: Fri, 17 Mar 2023 03:31:24 +0100 Message-Id: <20230317023125.486-14-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230317023125.486-1-ansuelsmth@gmail.com> References: <20230317023125.486-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230316_193338_664122_41F62089 X-CRM114-Status: GOOD ( 12.36 ) 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 Document support for LEDs node in phy and add an example for it. PHY LED will have to match led pattern and should be treated as a generic led. Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn --- .../devicetree/bindings/net/ethernet-phy.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index 1327b81f15a2..84e15cee27c7 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -197,6 +197,22 @@ properties: PHY's that have configurable TX internal delays. If this property is present then the PHY applies the TX delay. + leds: + type: object + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^led(@[a-f0-9]+)?$': + $ref: /schemas/leds/common.yaml# + + additionalProperties: false + required: - reg @@ -204,6 +220,8 @@ additionalProperties: true examples: - | + #include + ethernet { #address-cells = <1>; #size-cells = <0>; @@ -219,5 +237,18 @@ examples: reset-gpios = <&gpio1 4 1>; reset-assert-us = <1000>; reset-deassert-us = <2000>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + default-state = "keep"; + }; + }; }; };