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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9541C64EC4 for ; Tue, 7 Feb 2023 12:26:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231739AbjBGM02 (ORCPT ); Tue, 7 Feb 2023 07:26:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbjBGM0W (ORCPT ); Tue, 7 Feb 2023 07:26:22 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29F7B37F23 for ; Tue, 7 Feb 2023 04:26:18 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id g6so5394124wrv.1 for ; Tue, 07 Feb 2023 04:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5xYnHX1Erl5u5KfXsFsM2CCOcYE1hgAFey0pHbtrlGw=; b=a0bYF8vFZ81omWoSjjcDJcOsQPx0IJKXO2MNRiT9l9onGXaGU/wJv/i2K99OGIqcp7 ihdwgekxx34k/NvtSiaofvZjKIRkq1Gr46OJM4n4ysLojX6AZ2xR1xvSjnBut7H/2Mm5 8fi1YvW7KVgOJ1rXKQn7mg4bC89gcex54BUyX418qwHJ7IdMfDUxIXyFJ1oW3XbTbubd /ieHDCdsL1zjj0I/unn0HAHeDghr6unOEfRIAlgeJ2dj8xHT/gk42owOCUPeMedXbbyz j+AivNuy9YL3wEAIJ2NKTETQpyVQuPor+n9so2GzpBypaEyYTWGpIOrft7HAPnHDPCTc IggQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5xYnHX1Erl5u5KfXsFsM2CCOcYE1hgAFey0pHbtrlGw=; b=K3H4wIT48cyMwGg8sXmIIkDAnKFyh3vJ5JsUoflhy1CB8prmKOmlu2J5bqaMsYAhKN VUu5x2J6aUhd5flrlMMsgeU+v13QoAJFRpKpswBcO1zShirPst82BSbdcLCe48nZN9hf PDvyHiOHzkHMRisf7KJl3pXREEgzGD0OhAH5wJvYCCPz4J6dMTsKgRNYF7Sh5G4Dqpx5 BIgy9mzBAu8FISVm/fE3YVU04TsobcjJVDw6C9+yAvVT1JOSZPDrmMBnLP5smEK6xtxD AzqP3YFEL8vMd+1KSqzD5mVnoryFABDd0XjFOtvqbwZxHnt+iAcSaICVD3Z8G6fEe428 iDMQ== X-Gm-Message-State: AO0yUKV+05hz4+7NBj4oD25qeuBLq+jSdVJocltayyvytA/I8cMEEyTk rwOn9RzPBJlWve0bKpSo4XoQDw== X-Google-Smtp-Source: AK7set88Lxl1qHumI/CfBw3/LLuxkMuEJHa+tXasBGB44CpUVlsBGzjZqivjRlNLNjNxDs0SM2+K5w== X-Received: by 2002:adf:efcc:0:b0:2c3:e07d:46cc with SMTP id i12-20020adfefcc000000b002c3e07d46ccmr2519530wrp.41.1675772776749; Tue, 07 Feb 2023 04:26:16 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id i14-20020a0560001ace00b002bfb8f829eesm11816006wry.71.2023.02.07.04.26.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Feb 2023 04:26:16 -0800 (PST) Message-ID: Date: Tue, 7 Feb 2023 13:26:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Aw: Re: [PATCH] dt-bindings: mt76: add active-low property to led Content-Language: en-US To: Frank Wunderlich Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230207102501.11418-1-linux@fw-web.de> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2023 13:12, Frank Wunderlich wrote: >> Gesendet: Dienstag, 07. Februar 2023 um 11:40 Uhr >> Von: "Krzysztof Kozlowski" >> On 07/02/2023 11:25, Frank Wunderlich wrote: >>> From: Frank Wunderlich >>> >>> LEDs can be in low-active mode, so add dt property for it. >>> >>> Signed-off-by: Frank Wunderlich >>> --- >>> .../devicetree/bindings/net/wireless/mediatek,mt76.yaml | 5 +++++ >>> 1 file changed, 5 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml >>> index f0c78f994491..212508672979 100644 >>> --- a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml >>> +++ b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml >>> @@ -112,6 +112,11 @@ properties: >>> $ref: /schemas/leds/common.yaml# >>> additionalProperties: false >>> properties: >>> + led-active-low: >>> + description: >>> + LED is enabled with ground signal. >> >> What does it mean? You set voltage of regulator to 0? Or you set GPIO as >> 0? If the latter, it's not the property of LED... > > basicly it is a gpio-led mapped into the mt76 driver, but not passing gpio itself in this property (like gpio-led does). > This gpio is set to 0 signal (gnd) to let the led go on ;) so imho it is a led-property, but below the wifi-node as > the trigger comes from mt76 hardware, not an external (soc) gpio controller. > > mt76 driver supports it already like i post change here: > If the driver supports it already and it was never documented, please state it. Your commit says you add a new property. Best regards, Krzysztof