From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 ADAA63F1AA4 for ; Mon, 25 May 2026 14:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779720463; cv=none; b=JK0UMt0GPlEtlpBdalafvMmHtJyFZSuQwGy3+g/idJbAbQV0pOxEaf3cm5BdnsUeN9/sQ9uNXpME11bM0I04ZrBrPypwR3TBrWRNpr7YNPtu2gP/oFVZgsy55gBERYzVB38AUSoNVZLnszqw+rZAPs0m8iHMxLwIuZ6KiUJgHqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779720463; c=relaxed/simple; bh=pjFlrB7uGN0vyMl1RGqGgvMd8ocGBWVXot5mcHQGLcM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XSldcFiwRdobB7ocFv0gCcSKqKg88jZefCTrAydPx/TNYsOrBsqeI4RFnFzqGFY7duY+8PFvu0cbbNOmGN8mF1h2MM3mzbIbdtBNKnNV20PfzIvqigcd0byyz3EoWNQNjCRHdcyoBaJfWOdRJaSiyCD4Ogu1F7+lM2gxKdNL2tU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=pqwHijrb; arc=none smtp.client-ip=209.85.216.42 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pqwHijrb" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-36ac67f489aso786486a91.0 for ; Mon, 25 May 2026 07:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779720461; x=1780325261; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qt5GF4ec4Tz+ThdSwkffpWxOTLLBMBcFoFVLeUcmmpQ=; b=pqwHijrb35hlGp/Z9U7y+lbVHEX5mXpcl4mrG/XyVwNd8RFb/oYj2bH29RKUZwu2Qy MXQs/iWVeUWpulfQpdKxXDYzHzsBAHrGHgazwgsM8okP9aCuRZAynvZOwca1N0qtGOen UFf0SQyTVzmaT4ohrlP7B7x8GvlhtezmCyyHhXRNpWJzC0rH0OTxqtazs4t3vUA6DjI9 fk4iWCW4uGdQzftH9F9NLt192LzqkztJm4VZYnIUU5UNk9XR3fgEmfaw6SpZRWTvHM8V Ap8yVb9j3FqG45ZJl0GK+GzUm+Qr+CIK0Jtb0BbYT4t8ldlNaglYiiiyMeABx8aCgLF0 ZJVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779720461; x=1780325261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Qt5GF4ec4Tz+ThdSwkffpWxOTLLBMBcFoFVLeUcmmpQ=; b=ewWkskNGMqCfXbiwvXaTEzNZFJPVC7cvznBtrw87q9XSU6cXBaxmlkVLUssjiOvWqD AWMgzNmY4vGCkl2/aQeMCHW6U3vf9Ti+vLhVqQo86sXuo4r5qxTcrH687gXyokEuPsSM YoSHGQfQ8J6oYAA0Auhq3CPVRHppuCN7ueuNN002LpSGuAcuGDZfYUvze2UAa4cwPdBj mG3eUrjP/pHlj6sR8RcfbXLldVmlUIEqmckIOLlbNJ4TE8dXLW8m0vVDS36srqcoYieT PNjmw/3Bn6Wm1ygvqPBqEcNo2U6s28AUGKpU3bK2Fj8c3nBZxW4aLzitdFT0OPiCRHEn QSRw== X-Forwarded-Encrypted: i=1; AFNElJ9p7ICAMd8HGu78GK3+gyQyFTGCRXL+PmpqgdY+tQUMXfpwjreJmvHm1C6Z8HgDr7LntyzLTggtjF0Pj7A=@vger.kernel.org X-Gm-Message-State: AOJu0YyIspB5bfCzz7sHSja+FW1ek26yoausN1zMrLkeQDwExSu7kG6Q DBebuS/qbu+w7KQpsl4Mw9epM6YhoBRpEbGm6fxr/Zri6E0bt8XO5JIl X-Gm-Gg: Acq92OHIqOZ3ccTyMw+rJJgeZd7Ab+KxgFAvpNVQ/+g5hOe0Kq1IgAZph7iXU6UyH2V xJ/5qaRzBo8z5mKqRpiNO3v91Mp6hbRID9o7emu1thw+LPZ5HE6isGoVOXwl5ObGz813+nQnl5S bB5+DdkfzCWayi9cfdKo1CHX9e8Vfb1KdBjsDTiz3C8V3FMb3CUzA+2onOFb3yj5G0FNe1F4n6/ V4wLqLKUPug4Ze+HO++CxeD/rSYzpDv5ukHBdXwLVVdPCgB6/E0hBQSQnizsotYCSBm8fCTsC1g 54hNW6Iy0zlQs2M5IGybwdL0AVgr3ciV9Mh9Ikl/cl6erYCSZrNGJlwbxF5JiwPzxL8m3djSBNV IgvfzmCCLV7gFQimmmn2ZNGkQFmDC+dZY4wA8IX845Pe2b4PZohIi6HwaQkFOjfhER95doooxdk xr9QxVfaoYmyaejP1WkQqGQj88CnRIh5f2zhATn3o= X-Received: by 2002:a17:90b:3e4f:b0:365:8fd4:925c with SMTP id 98e67ed59e1d1-36a6c65330amr11990238a91.8.1779720460900; Mon, 25 May 2026 07:47:40 -0700 (PDT) Received: from arch.localdomain ([2409:8a28:a5f:4fa1:cc65:18c0:209b:38a4]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36abfe17c95sm2721993a91.0.2026.05.25.07.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 07:47:40 -0700 (PDT) From: Jun Yan To: linusw@kernel.org, dmitry.baryshkov@oss.qualcomm.com, Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Bartosz Golaszewski , Vincent Knecht , Grant Feng , Andre Przywara , Tony Lindgren , Sudeep Holla , Romain Perier , Jesper Nilsson , Robert Marko Cc: Jun Yan , Pavel Machek , Krzysztof Kozlowski , Wei Xu , Geert Uytterhoeven , Peter Rosin , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line Date: Mon, 25 May 2026 22:46:09 +0800 Message-ID: <20260525144629.498630-4-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260525144629.498630-1-jerrysteve1101@gmail.com> References: <20260525144629.498630-1-jerrysteve1101@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit According to the IS31FL319x datasheet[1], the SDB pin is active‑low. However, existing device tree incorrectly configure it as active‑high. Add a fixup to force the consumer active low for legacy device trees. [1] https://lumissil.com/assets/pdf/core/IS31FL3196_DS.pdf Signed-off-by: Jun Yan --- drivers/gpio/gpiolib-of.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index ef1ac68b94b7..8a79aaadc9ea 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -194,6 +194,16 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np, { "himax,hx8357", "gpios-reset", false }, { "himax,hx8369", "gpios-reset", false }, #endif +#if IS_ENABLED(CONFIG_LEDS_IS31FL319X) + /* + * According to the IS31FL319x datasheet, the SDB pin is active‑low. + * However, existing device tree incorrectly configure it + * as active‑high. + */ + { "issi,is31fl3199", "shutdown-gpios", false }, + { "si-en,sn3190", "shutdown-gpios", false }, + { "si-en,sn3193", "shutdown-gpios", false }, +#endif #if IS_ENABLED(CONFIG_MTD_NAND_JZ4780) /* * The rb-gpios semantics was undocumented and qi,lb60 (along with -- 2.54.0