Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7637184rdb; Thu, 4 Jan 2024 03:02:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwbL+7MzvEdCcLXEmsWxIItcqE7F2zJILoXcx0Q5RioOzF2TwgvajY3HlspUvZf++ehYAZ X-Received: by 2002:aa7:868c:0:b0:6d9:9fa8:a006 with SMTP id d12-20020aa7868c000000b006d99fa8a006mr429643pfo.57.1704366123023; Thu, 04 Jan 2024 03:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704366123; cv=none; d=google.com; s=arc-20160816; b=lw9OO7lQpC++ySyHeQ6AWNhZGrW63jIBeb1vwzT1erFM3251VGBv75btPNwDIWAR8F MWCEvx5QVsb6SYtAfkVwfzqWn6xgsnX2rAd3AHinnVxpV9WeMLAI0zVOyR7daoUj54nt SsFYL8oc4vqfBnRENKDSHMEirn2zaizxFCpoTlhXoGO4WWlPiXyyLjtcnlBEJBO46wQu nGCkj3TZ8+tv24M0+Vob9kBE6nXuJnoKtpi/5TUWvyYg7vwTv3nwOEiEIeGFzY5NYFTq eUN2jnzFd8cB1mv8EGM+kh/qC0PGXamQYuS4b5P4QDWDKbN/8rcyZoDSgEdEZhpls2tN H77Q== 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=uVi6pYWKtVQSqi+B90O3hserB3N3KITBl+lvj8InyEuGZ1wA31hTCcXw2IuzcO44vx 4AW8dbLyl5kf/87Jrh/FIrhwW5BSCZ0GoO8dskpkLCEqTlZyWUWDNXyiGTbnNIxZGchq N+o/jkg/7QXGLDNQ+QJqa48g0leMzaeTvI1qPuUC4N9GBvu1aZO3iW7JfapV2ZK6boA7 nnlz3FRSKV4rqfKGh/GplsbyowGONTa3zonKujlipRr9FtmAZvy18kuoFwTVGO3+JQkE 3MOc8dlvUR6MjfZRqLKdCr10J2vLDDFqnZv2AQWakUZTFbZQiBqiOlodLK68ghMA3lzo vx/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Yly/GkvZ"; spf=pass (google.com: domain of linux-kernel+bounces-16551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l62-20020a632541000000b005cdb0622c89si20427876pgl.16.2024.01.04.03.02.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 03:02:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Yly/GkvZ"; spf=pass (google.com: domain of linux-kernel+bounces-16551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16551-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A6E2A285F0A for ; Thu, 4 Jan 2024 11:02:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D63F21353; Thu, 4 Jan 2024 11:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Yly/GkvZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.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 EA96F210EE; Thu, 4 Jan 2024 11:01:28 +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-wr1-f47.google.com with SMTP id ffacd0b85a97d-3368d1c7b23so292487f8f.0; Thu, 04 Jan 2024 03:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704366087; x=1704970887; 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=Yly/GkvZwZddKhucgdNEYmCXR+7gFKBeryDF4QEimxcHWHSNXT1K4CjxM/MaarNT9M HJuQNW3W+1g+iBeko6oY5+0jZHa7Ytykt8EoRFO6EQQgzR58LTGjnel8Tm+TwG+NP3GH beXWK9hs0c1xlAYodYqb+7NAJJlv62xYZdM9VY6N9iIp0b5ryPL+Ey8l2fF8lqCDIzgF IfFXXQsF4vUjg9ovwRKjMzEpijrIIxfTLu5XxJtJh0iHiK3DkjUo/s1T/v0rwbB7hbwQ 33URza2ccUasDS9i3F9oDIlWDfazzIHEBbX/0j1jQYngTu0e+8UlkRNEW4GORjE76haW DbNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704366087; x=1704970887; 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=aigLEUJwoMC4pgyHsLQy8UzYMJYHtKNNs6ObNKER/+FGA+wAPWEwfPkLzJOBLe02O9 Cg61hNsEvuJYBIiLIwXl9NFiU7AWAQ/yIwaVA7HKuzJQcSdEyoMyg55A2M8tbLWi1Hly +a6fMELVvdJ+/jHqujFBAhqxBRFXgHdIkW1A7DFMHugyqmNv19RU2+iGfzbHncgMXv8Y CNk27dYp1bfgNR8FVe7hteNKKnmO2C71YKTCw+HZaFWWSW3PvpMYJiZTN/90HdWAGLRj XnA3EwgMjf7ric3dIWmC8akK66XZgjHdF61IkVkLuhVVFJ2UQj9oyPHr2ieSGAD2dZKN oLog== X-Gm-Message-State: AOJu0YzouND/zQsT+R015Bi017sOEvqFDryhuYfGdUyDXxWhnZ5csMim h4Q63uNUB4uZrir0hhqOskQ= X-Received: by 2002:a5d:560e:0:b0:337:3ee4:9435 with SMTP id l14-20020a5d560e000000b003373ee49435mr251268wrv.77.1704366086745; Thu, 04 Jan 2024 03:01:26 -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 b14-20020adff90e000000b003373fe3d345sm9550242wrr.65.2024.01.04.03.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 03:01:26 -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 v8 1/5] dt-bindings: net: phy: Make LED active-low property common Date: Thu, 4 Jan 2024 12:01:08 +0100 Message-ID: <20240104110114.2020-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104110114.2020-1-ansuelsmth@gmail.com> References: <20240104110114.2020-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