Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6713008rdb; Tue, 2 Jan 2024 10:39:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQ4M8kzwy7haioRVALpBJFF1/w3yRi+oKHWFnqFqAp5qy9O3QEXXjIt4yxWTAJ8bB9uuJ1 X-Received: by 2002:a05:620a:95a:b0:781:54f2:75d5 with SMTP id w26-20020a05620a095a00b0078154f275d5mr12895719qkw.48.1704220762582; Tue, 02 Jan 2024 10:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704220762; cv=none; d=google.com; s=arc-20160816; b=IIPO5BRMXeyVYNhjVP5Uj+AIJxZ8IgD4vZ+gkOVVJedw80wLnkXN7dZt9cdthkKpAl 5WLhi9haClwLqm648uDfl3YsehrwUBm8LKwG3puwDPiLtnWohc+Skdq71dH4cNy+xRJk xQLX3Gl5FaHUmj8UDtvBAZp7waZhdkRvvCu+9pFXtQfV0ASeE6ILgwkmaTiTCO+CS7wd f0WEshxCH3Rr/d/LkoKUulEfpAhLCHErHrYh4ASoN85LNsj2I+ScONvZXBIUX9w9hvAM pHYTbY4Itn/8oQsb9pqzAptCM4ZzbmNcrnzS/ssQgrClm0qTZtfS79nNdbMrlboWdP9C U44Q== 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:to:from:dkim-signature; bh=h5mxLkh2hEgcMvbfMMh1KibA3U7+O5yTNHMAUzMLGy8=; fh=t/rEUYZBrjIVtJtvItkK7O2t2zLyO6TH9UCXgO6Lsag=; b=BxjZDc3/+ZkdLXmLGEgYh8WsMx8unlSOR8X4qUX7d0ONT0KwP1KSsK6hcqfnn5IxRb CkBUYKHICSwrKrZME0v6WtdcW6YsU9mfyFQVZwtcxri1K+4G2Sg78VmjthPhFK8zdcnu 2M4YES+IY3RNuV6Bu6yYsza1DMSP5mur7vKaX65pU9hJau8VPtTJ730musBTG3hwXUbG tnUua21130lFxhLDD8t9KYqQrq3Kt1PYwadyyFFG1LwNXUUHNZOEGbaCcrJIFqRyJalm shXC0AQR0nCBH1SvvkmFSAmCSNBnL1I8NR9YdBVe5UVNbCQdtC5haINXDJx622u8CeT2 aIQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mIiyHFkA; spf=pass (google.com: domain of linux-kernel+bounces-14718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q8-20020a05620a0c8800b00781bd7c8c95si5101665qki.683.2024.01.02.10.39.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 10:39:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mIiyHFkA; spf=pass (google.com: domain of linux-kernel+bounces-14718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14718-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A6BE1C229C1 for ; Tue, 2 Jan 2024 18:39:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D86A415AFF; Tue, 2 Jan 2024 18:38:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mIiyHFkA" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 7D25615AD0; Tue, 2 Jan 2024 18:38:53 +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-f47.google.com with SMTP id 5b1f17b1804b1-40d76923ec4so35635645e9.3; Tue, 02 Jan 2024 10:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704220731; x=1704825531; 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=h5mxLkh2hEgcMvbfMMh1KibA3U7+O5yTNHMAUzMLGy8=; b=mIiyHFkAZSeLvbdRw0aBSAk3y7Q9t107uwbZZL871oaD8gwitroJODxkDhQh0cpnBs uvG13M+uijbUIst94WQqvHGYc48mT5pPo/SzKWc39pRxuDqD5+u5HmBd4PAyOY9nxjO7 CnsXosJ/W2GAXnDfAiE03vksic0YlcBbsii620WDZalBVY5H2W3diMQbu2wIO8hO9+az jMaN8uNA1/owpuWJQ+5H17pInlz6VHIRhzfuAAvQpCwuZu6wv4/UBuM4/160mWlai4wP EnA/GOihP8Icy6ea3XBnNqjVKlNB/iqj3Thxpu9PfAIqtCtcdb367UoM4RSLdGaMP3kF rcxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704220731; x=1704825531; 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=h5mxLkh2hEgcMvbfMMh1KibA3U7+O5yTNHMAUzMLGy8=; b=rSUj0SuV9KwkUGpXLd/7cWDhPIS6O+Vu4iBLyLBToGE2FCUa0yh85f+eCfxTmMxep+ WPxMLsT0+j0gKx7avmuRbhxN3d3WIUe/eaEw6IgYtbvuOyu/I9Cy3UePLeUod0HNlga3 LxG2/3E4mfjaacApTI2aKPDhr9DuKgNXIbK6ggmA1KBH9lbMqP/I9g8YStkzrAUEjm1X f9FMWsprz3av+c1Wd3r1KeVVpbFg7owxMk6iVbdW/SuRaGuN6Srq9CS2cccNOG8XMuwo 2xOuQYLWEapc8CvbGLvTsFmyWDnBb/p2QrCy+ZyHJ8bznKpszljYC9cU/ASjHehaV4+I dieg== X-Gm-Message-State: AOJu0YwnLKILRVqiYcAc13jTUO/TX5kIMzkVyuTtuARhbCRaorjb1g4l 6FOiyP6rORFXRxq0R/Br4tY= X-Received: by 2002:a05:600c:1310:b0:40c:366a:598a with SMTP id j16-20020a05600c131000b0040c366a598amr9575508wmf.107.1704220731564; Tue, 02 Jan 2024 10:38:51 -0800 (PST) Received: from localhost.localdomain (host-87-10-250-100.retail.telecomitalia.it. [87.10.250.100]) by smtp.googlemail.com with ESMTPSA id p15-20020a05600c468f00b0040d4e1393dcsm37963071wmo.20.2024.01.02.10.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 10:38:51 -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 Subject: [net-next PATCH v6 1/5] dt-bindings: net: phy: Make LED active-low property common Date: Tue, 2 Jan 2024 19:38:30 +0100 Message-ID: <20240102183835.5332-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240102183835.5332-1-ansuelsmth@gmail.com> References: <20240102183835.5332-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 Move LED active-low property to common.yaml. This property is currently defined multiple times by bcm LEDs. This property will now be supported in a generic way for PHY LEDs with the use of a generic function. With active-low bool property not defined, active-high is always assumed. Signed-off-by: Christian Marangi --- Changes v5: - Make active-low generic Changes v4: - Drop support for global active-low - Rework to polarity option (for marvell10g series support) Changes v3: - Out of RFC Changes v2: - Add this patch Documentation/devicetree/bindings/leds/common.yaml | 6 ++++++ Documentation/devicetree/bindings/leds/leds-bcm63138.yaml | 4 ---- Documentation/devicetree/bindings/leds/leds-bcm6328.yaml | 4 ---- Documentation/devicetree/bindings/leds/leds-bcm6358.txt | 2 -- .../devicetree/bindings/leds/leds-pwm-multicolor.yaml | 4 ---- Documentation/devicetree/bindings/leds/leds-pwm.yaml | 5 ----- 6 files changed, 6 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index c8d0ba5f2327..f5b40df6b421 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -200,6 +200,12 @@ properties: #trigger-source-cells property in the source node. $ref: /schemas/types.yaml#/definitions/phandle-array + active-low: + type: boolean + description: + Makes LED active low. To turn the LED ON, line needs to be + set to low voltage instead of high. + # Required properties for flash LED child nodes: flash-max-microamp: description: diff --git a/Documentation/devicetree/bindings/leds/leds-bcm63138.yaml b/Documentation/devicetree/bindings/leds/leds-bcm63138.yaml index 52252fb6bb32..bb20394fca5c 100644 --- a/Documentation/devicetree/bindings/leds/leds-bcm63138.yaml +++ b/Documentation/devicetree/bindings/leds/leds-bcm63138.yaml @@ -52,10 +52,6 @@ patternProperties: maxItems: 1 description: LED pin number - active-low: - type: boolean - description: Makes LED active low - required: - reg diff --git a/Documentation/devicetree/bindings/leds/leds-bcm6328.yaml b/Documentation/devicetree/bindings/leds/leds-bcm6328.yaml index 51cc0d82c12e..f3a3ef992929 100644 --- a/Documentation/devicetree/bindings/leds/leds-bcm6328.yaml +++ b/Documentation/devicetree/bindings/leds/leds-bcm6328.yaml @@ -78,10 +78,6 @@ patternProperties: - maximum: 23 description: LED pin number (only LEDs 0 to 23 are valid). - active-low: - type: boolean - description: Makes LED active low. - brcm,hardware-controlled: type: boolean description: Makes this LED hardware controlled. diff --git a/Documentation/devicetree/bindings/leds/leds-bcm6358.txt b/Documentation/devicetree/bindings/leds/leds-bcm6358.txt index 6e51c6b91ee5..211ffc3c4a20 100644 --- a/Documentation/devicetree/bindings/leds/leds-bcm6358.txt +++ b/Documentation/devicetree/bindings/leds/leds-bcm6358.txt @@ -25,8 +25,6 @@ LED sub-node required properties: LED sub-node optional properties: - label : see Documentation/devicetree/bindings/leds/common.txt - - active-low : Boolean, makes LED active low. - Default : false - default-state : see Documentation/devicetree/bindings/leds/common.txt - linux,default-trigger : see diff --git a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml index bd6ec04a8727..5edfbe347341 100644 --- a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml +++ b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml @@ -41,10 +41,6 @@ properties: pwm-names: true - active-low: - description: For PWMs where the LED is wired to supply rather than ground. - type: boolean - color: true required: diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.yaml b/Documentation/devicetree/bindings/leds/leds-pwm.yaml index 7de6da58be3c..113b7c218303 100644 --- a/Documentation/devicetree/bindings/leds/leds-pwm.yaml +++ b/Documentation/devicetree/bindings/leds/leds-pwm.yaml @@ -34,11 +34,6 @@ patternProperties: Maximum brightness possible for the LED $ref: /schemas/types.yaml#/definitions/uint32 - active-low: - description: - For PWMs where the LED is wired to supply rather than ground. - type: boolean - required: - pwms - max-brightness -- 2.43.0