leds: is31fl319x: Fix shutdown GPIO and update DT bindings
Subsystems (6)
v2 cover leds: is31fl319x: Fix shutdown GPIO and update DT bindings
This series fixes incorrect shutdown GPIO polarity and improves shutdown-gpios description in DT bindings.
Patch 1 adds detailed shutdown-gpios description and fixes example in DT bindings.
Patch 2 fixes shutdown GPIO initial state and removes redundant startup toggling.
Patch 3 adds fixup to force consumer active low for legacy device trees in gpiolib.
Patches 4-6 correct shutdown GPIO polarity in board DTS files.
Changes in v2:
- Add comments explaining the reason for this GPIO line level.
- Add fixup to force consumer active low for legacy device trees in gpiolib.
- Link to v1: https://lore.kernel.org/all/[email protected]
Jun Yan (6):
dt-bindings: leds: issi,is31fl319x: Update description for the
shutdown-gpios property
leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant
startup pulse
gpiolib: of: add quirk for IS31FL319X shutdown line
arm64: dts: qcom: msm8916-alcatel-idol347: Fix sn3190 shutdown GPIO
polarity
ARM: dts: qcom: msm8974-oneplus-bacon: Fix sn3193 shutdown GPIO
polarity
arm64: dts: marvell: armada-7040-mochabin: Fix is31fl3199 shutdown
GPIO polarity
.../devicetree/bindings/leds/issi,is31fl319x.yaml | 9 +++++++-- .../boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts | 2 +- arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 2 +- arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts | 2 +- drivers/gpio/gpiolib-of.c | 10 ++++++++++ drivers/leds/leds-is31fl319x.c | 11 ++++------- 6 files changed, 24 insertions(+), 12 deletions(-)
Signature · 1 line
2.54.0
PATCH v2 1/6 dt-bindings: leds: issi,is31fl319x: Update description for the shutdown-gpios property
The IS31FL319X series features an SDB shutdown pin. Driving it low (active low) places the chip into hardware shutdown mode for power saving, while all register contents are preserved and registers are not reset.
Update description for the shutdown down (SDB) pin and fix the example device tree binding.
--- .../devicetree/bindings/leds/issi,is31fl319x.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml +7 -2
@@ -39,7 +39,12 @@ properties: shutdown-gpios: maxItems: 1 - description: GPIO attached to the SDB pin. + description: | + GPIO attached to the chip's SDB pin. + Driving this GPIO low places the chip into hardware shutdown mode + for power saving. All register contents are preserved and registers + are not reset during shutdown. The chip exits hardware shutdown mode + when the SDB pin is pulled high. audio-gain-db: default: 0
@@ -174,7 +179,7 @@ examples: #address-cells = <1>; #size-cells = <0>; - shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; led@1 { reg = <1>;
Signature · 1 line
2.54.0
PATCH v2 2/6 leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant startup pulse
In reply to Jun Yan1. Per IS31FL319x datasheet [1], the hardware shutdown pin (SDB) is active-low.
Fix incorrect initial GPIO level to properly release the chip from shutdown state.
2. According to datasheet [1] definition:
Shutdown mode can either be used as a means of
reducing power consumption or generating a flashing display (repeatedly entering and leaving shutdown
mode). During shutdown mode all registers retain their data.
shutdown mode does NOT perform chip reset.A dedicated software reset is already implemented in driver by writing 0 to reset chip.
Remove redundant unnecessary toggling of the shutdown GPIO.
[1] https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf
--- drivers/leds/leds-is31fl319x.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/leds/leds-is31fl319x.c +4 -7
@@ -396,7 +396,10 @@ static int is31fl319x_parse_fw(struct device *dev, struct is31fl319x_chip *is31)int count;int ret; - is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_HIGH ); +/* Driving this GPIO line low (in fact high) takes the chip out of shutdown, +* as it is flagged as GPIO_ACTIVE_LOW in provider (such as the device tree). +*/ + is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_LOW );if (IS_ERR (is31->shutdown_gpio))return dev_err_probe (dev,PTR_ERR (is31->shutdown_gpio),"Failed to get shutdown gpio\n" );
@@ -506,12 +509,6 @@ static int is31fl319x_probe(struct i2c_client *client)if (err)return err; -if (is31->shutdown_gpio) { -gpiod_direction_output (is31->shutdown_gpio,0 ); -mdelay (5 ); -gpiod_direction_output (is31->shutdown_gpio,1 ); - } - is31->client = client; is31->regmap =devm_regmap_init_i2c (client, is31->cdef->is31fl319x_regmap_config);if (IS_ERR (is31->regmap))
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH v2 2/6] leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant startup pulse
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] Changing the shutdown GPIO initialization to `GPIOD_OUT_LOW` breaks backwards compatibility with…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Changing the shutdown GPIO initialization to GPIOD_OUT_LOW breaks backwards compatibility with existing device trees that use GPIO_ACTIVE_HIGH.
- [High] Removing the 5ms startup pulse on the shutdown GPIO eliminates a critical hardware stability workaround necessary for I2C recovery. --
commit fcc0a676fc8cf1ed234a4483a3db1410e5475415
Author: Jun Yan <[email protected]>
leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant startup pulse
This commit alters the initial state of the shutdown GPIO from OUT_HIGH to OUT_LOW. It also removes the 5ms toggle of the shutdown GPIO during driver probe, relying instead on the existing software reset via I2C.
drivers/leds/leds-is31fl319x.c static int is31fl319x_parse_fw(struct device *dev, struct is31fl319x_chip *is31) · line 402
Quoted 13 lines
drivers/leds/leds-is31fl319x.c +4
-1@@ -396,7 +396,10 @@ static int is31fl319x_parse_fw(struct device *dev, struct is31fl319x_chip *is31)int count;int ret; - is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_HIGH ); +/* Driving this GPIO line low (in fact high) takes the chip out of shutdown, +* as it is flagged as GPIO_ACTIVE_LOW in provider (such as the device tree). +*/ + is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_LOW );
[Severity: High]
Does this break backwards compatibility with existing device trees that configured the shutdown pin as GPIO_ACTIVE_HIGH?
Legacy device trees mapping logical 1 (GPIOD_OUT_HIGH) to a physical HIGH signal will now drive the physical pin LOW when GPIOD_OUT_LOW is used. This keeps the chip permanently in shutdown.
While a subsequent gpiolib commit in this series attempts to add a polarity quirk, that quirk only covers 3 specific compatibles (issi,is31fl3199, si-en,sn3190, si-en,sn3193). The driver supports 10 distinct compatibles, so out-of-tree device trees using the other 7 (like issi,is31fl3193 or si-en,sn3196) will bypass the quirk and fail to probe.
[ ... ]
drivers/leds/leds-is31fl319x.c static int is31fl319x_probe(struct i2c_client *client) · line 514
Quoted 10 lines
drivers/leds/leds-is31fl319x.c +0
-6@@ -506,12 +509,6 @@ static int is31fl319x_probe(struct i2c_client *client)if (err)return err; -if (is31->shutdown_gpio) { -gpiod_direction_output (is31->shutdown_gpio,0 ); -mdelay (5 ); -gpiod_direction_output (is31->shutdown_gpio,1 ); - } -
[Severity: High]
Does removing this hardware toggle prevent recovery of a wedged I2C bus?
The commit message states the toggle is redundant because a software reset is performed via I2C later. However, the original commit adding this pulse (dddb4e38c6ba) noted it was to make the chip more stable in complex EM environments.
If EMI causes the chip's I2C state machine to become stuck (e.g., holding SDA low), the subsequent software reset command via regmap_write() will fail because the bus is unresponsive. Toggling the hardware shutdown pin acts as a hardware reset for the I2C interface. Without this pulse, the driver loses its ability to recover a hung I2C interface, which could lead to probe failures with a no response from chip write error.
Quoted 3 lines
drivers/leds/leds-is31fl319x.c +0
-0is31->client = client; is31->regmap =devm_regmap_init_i2c (client, is31->cdef->is31fl319x_regmap_config);if (IS_ERR (is31->regmap))
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v2 2/6] leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant startup pulse
In reply to Jun YanQuoted 30 lines · Jun Yan
1. Per IS31FL319x datasheet [1], the hardware shutdown pin (SDB) is active-low.
Fix incorrect initial GPIO level to properly release the chip from shutdown state.
2. According to datasheet [1] definition:
Shutdown mode can either be used as a means of
reducing power consumption or generating a flashing display (repeatedly entering and leaving shutdown
mode). During shutdown mode all registers retain their data.
shutdown mode does NOT perform chip reset.A dedicated software reset is already implemented in driver by writing 0 to reset chip.Remove redundant unnecessary toggling of the shutdown GPIO.
[1] https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf
Fixes dddb4e38c6ba ("leds: is31fl319x: Add shutdown pin and generate a 5ms low pulse when startup")Signed-off-by Jun Yan <[email protected]>--- drivers/leds/leds-is31fl319x.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)drivers/leds/leds-is31fl319x.c +0
-0
drivers/leds/leds-is31fl319x.c static int is31fl319x_parse_fw(struct device *dev, struct is31fl319x_chip *is31) · line 402
Quoted 8 lines
drivers/leds/leds-is31fl319x.c +4
-1@@ -396,7 +396,10 @@ static int is31fl319x_parse_fw(struct device *dev, struct is31fl319x_chip *is31)int count;int ret; - is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_HIGH ); +/* Driving this GPIO line low (in fact high) takes the chip out of shutdown, +* as it is flagged as GPIO_ACTIVE_LOW in provider (such as the device tree). +*/ + is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_LOW );
That's ABI break.
Best regards,
Krzysztof
Linus Walleij
maintainerRe: [PATCH v2 2/6] leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant startup pulse
In reply to Jun YanHi Jun,
thanks for your patch!
drivers/leds/leds-is31fl319x.c static int is31fl319x_parse_fw(struct device *dev, struct is31fl319x_chip *is31) · line 402
Quoted 5 lines · Jun Yan
drivers/leds/leds-is31fl319x.c +4
-1- is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_HIGH ); +/* Driving this GPIO line low (in fact high) takes the chip out of shutdown, +* as it is flagged as GPIO_ACTIVE_LOW in provider (such as the device tree). +*/ + is31->shutdown_gpio =devm_gpiod_get_optional (dev,"shutdown" ,GPIOD_OUT_LOW );
This is fine but only if you also add a quirk to drivers/gpio/gpiolib-of.c in of_gpio_try_fixup_polarity() that will enforce the GPIOD_OUT_LOW property on the line. Follow the examples.
This solves the API breakage.
It should probably be part of the same patch for bisectability.
Yours,
Linus Walleij
PATCH v2 3/6 gpiolib: of: add quirk for IS31FL319X shutdown line
In reply to Jun YanAccording 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
--- drivers/gpio/gpiolib-of.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/gpio/gpiolib-of.c +10 -0
@@ -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
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] Incomplete backward compatibility quirk for IS31FL319X shutdown GPIO polarity, risking breakage…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Incomplete backward compatibility quirk for IS31FL319X shutdown GPIO polarity, risking breakage for out-of-tree platforms.
- [Low] Use of non-ASCII characters (non-breaking hyphens) in source code comments.
--
commit 8f0eb876e212314197458aa41b5be24457af3ea3
Author: Jun Yan <[email protected]>
gpiolib: of: add quirk for IS31FL319X shutdown line
This commit adds a fixup to force the consumer active low for legacy device trees that incorrectly configure the SDB pin as active-high.
Quoted 4 lines
drivers/gpio/gpiolib-of.c +0
-0
[ ... ]
drivers/gpio/gpiolib-of.c static void of_gpio_try_fixup_polarity(const struct device_node *np, · line 201
Quoted 9 lines
drivers/gpio/gpiolib-of.c +5
-0@@ -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.
[Severity: Low]
This isn't a bug, but are there non-ASCII non-breaking hyphens (U+2011) used here instead of standard ASCII hyphens?
Using standard ASCII hyphens (U+002D) for "active-low" and "active-high" helps ensure the terms can be found using standard text search tools like git grep.
drivers/gpio/gpiolib-of.c static void of_gpio_try_fixup_polarity(const struct device_node *np, · line 205
Quoted 4 lines
drivers/gpio/gpiolib-of.c +4
-0+*/ + { "issi,is31fl3199", "shutdown-gpios", false }, + { "si-en,sn3190", "shutdown-gpios", false }, + { "si-en,sn3193", "shutdown-gpios", false },
[Severity: Medium]
Will this omission break out-of-tree platforms using legacy device trees with the other compatible strings for this driver?
The driver supports several other compatible strings (such as "issi,is31fl3190", "issi,is31fl3196", "si-en,sn3196") which are not listed here.
If a legacy device tree uses one of the omitted compatibles, this quirk will be bypassed. Because the updated driver now requests the GPIO with GPIOD_OUT_LOW, a legacy device tree specifying GPIO_ACTIVE_HIGH would map to a physical LOW signal, which would permanently hold the chip in shutdown.
Could we list all the compatible strings for this hardware family to ensure ABI compatibility isn't broken for other legacy users?
Quoted 2 lines
drivers/gpio/gpiolib-of.c +1
-0+#endif #if IS_ENABLED (CONFIG_MTD_NAND_JZ4780 )
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Linus Walleij
maintainerRe: [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line
Quoted 2 lines · On Mon, May 25, 2026 at 5:42 PM <[email protected]> wrote:
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Incomplete backward compatibility quirk for IS31FL319X shutdown GPIO polarity, risking breakage for out-of-tree platforms.
Wrong: you did not look at the whole patch series, just this one in isolation.
Quoted 1 line
- [Low] Use of non-ASCII characters (non-breaking hyphens) in source code comments.
I wonder if that is because the commit message was created using AI...
Jun, please use Assisted-by tags, because these help to evolve the LLM kernel reviews if the commit message was assisted by AI.
https://github.com/torvalds/linux/blob/master/Documentation/process/coding-assistants.rst
Yours,
Linus Walleij
Re: [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line
In reply to Jun YanQuoted 34 lines · Jun Yan
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 <[email protected]>--- drivers/gpio/gpiolib-of.c | 10 ++++++++++ 1 file changed, 10 insertions(+)drivers/gpio/gpiolib-of.c +10
-1@@ -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 --
Quoted 3 lines
2.54.0
Re: [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line
In reply to Jun YanQuoted 8 lines · Jun Yan
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 <[email protected]>
Yours,
Linus Walleij
PATCH v2 4/6 arm64: dts: qcom: msm8916-alcatel-idol347: Fix sn3190 shutdown GPIO polarity
In reply to Jun YanThe sn3190 shutdown pin is active-low [1]. Correct the GPIO flags from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW to match the hardware.
[1] https://lumissil.com/assets/pdf/core/IS31FL3190_DS.pdf
--- arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts +1 -1
@@ -197,7 +197,7 @@ &blsp_i2c6 { led-controller@68 { compatible = "si-en,sn3190"; reg = <0x68>; - shutdown-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&led_enable_default &led_shutdown_default>; #address-cells = <1>;
Signature · 1 line
2.54.0
PATCH v2 5/6 ARM: dts: qcom: msm8974-oneplus-bacon: Fix sn3193 shutdown GPIO polarity
In reply to Jun YanThe sn3193 shutdown pin is active-low[1]. Correct the GPIO flags from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW to match the hardware.
[1] https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf
--- arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts +1 -1
@@ -147,7 +147,7 @@ led-controller@68 { compatible = "si-en,sn3193"; reg = <0x68>; - shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_LOW>; #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH v2 5/6] ARM: dts: qcom: msm8974-oneplus-bacon: Fix sn3193 shutdown GPIO polarity
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The `Fixes` tag in the commit message incorrectly points to the commit that moved the DTS file…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The Fixes tag in the commit message incorrectly points to the commit that moved the DTS file rather than the one that introduced the issue. --
commit fdcc6b03fb02176ae8f78463b918136ece476e62
Author: Jun Yan <[email protected]>
ARM: dts: qcom: msm8974-oneplus-bacon: Fix sn3193 shutdown GPIO polarity
This commit corrects the sn3193 shutdown GPIO polarity from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW to match the hardware specification.
Quoted 6 lines
The sn3193 shutdown pin is active-low[1]. Correct the GPIO flags from
GPIO_ACTIVE_HIGHtoGPIO_ACTIVE_LOWto match the hardware.[1] https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf
Fixes 724ba6751532 ("ARM: dts: Move .dts files to vendor sub-directories")
[Severity: Medium]
Does this Fixes tag point to the correct commit? Commit 724ba6751532 appears to be a structural tree reorganization that just moved the DTS file.
The led-controller@68 node with the faulty GPIO_ACTIVE_HIGH flag seems to have been originally introduced in commit 3835f9a0cf56 ("ARM: dts: qcom:
msm8974-oneplus-bacon: Add notification LED").
Pointing to a file-move commit might break automated backporting to stable kernels.
Quoted 2 lines
Signed-off-by Jun Yan <[email protected]>Reviewed-by Konrad Dybcio <[email protected]>
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
PATCH v2 6/6 arm64: dts: marvell: armada-7040-mochabin: Fix is31fl3199 shutdown GPIO polarity
In reply to Jun YanThe is31fl3199 shutdown pin is active-low [1]. Correct the GPIO flags from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW to match the hardware.
[1] https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf
--- arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +1 -1
@@ -236,7 +236,7 @@ leds@64 { #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&is31_sdb_pins>; - shutdown-gpios = <&cp0_gpio1 30 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&cp0_gpio1 30 GPIO_ACTIVE_LOW>; reg = <0x64>; led1_red: led@1 {
Signature · 1 line
2.54.0
Gregory CLEMENT
maintainerRe: [PATCH v2 6/6] arm64: dts: marvell: armada-7040-mochabin: Fix is31fl3199 shutdown GPIO polarity
Hello,
Quoted 7 lines
The is31fl3199 shutdown pin is active-low [1]. Correct the GPIO flags from
GPIO_ACTIVE_HIGHtoGPIO_ACTIVE_LOWto match the hardware.[1] https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf
Fixes 737929191283 ("arm64: dts: marvell: add Globalscale MOCHAbin")Signed-off-by Jun Yan <[email protected]>
What happens if this patch is merged before the driver LED patch? Will it break something?
Gregory
Quoted 20 lines
--- arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +1
-1@@ -236,7 +236,7 @@ leds@64 { #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&is31_sdb_pins>; - shutdown-gpios = <&cp0_gpio1 30 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&cp0_gpio1 30 GPIO_ACTIVE_LOW>; reg = <0x64>; led1_red: led@1 {Signature · 1 line
2.54.0
Signature · 3 lines
Grégory CLEMENT, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH v2 6/6] arm64: dts: marvell: armada-7040-mochabin: Fix is31fl3199 shutdown GPIO polarity
Quoted 5 lines · Gregory CLEMENT
Hello,
Quoted 3 lines
The is31fl3199 shutdown pin is active-low [1]. Correct the GPIO flags from
GPIO_ACTIVE_HIGHtoGPIO_ACTIVE_LOWto match the hardware.
Quoted 8 lines
Quoted 4 lines
[1] https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf
Fixes 737929191283 ("arm64: dts: marvell: add Globalscale MOCHAbin")Signed-off-by Jun Yan <[email protected]>What happens if this patch is merged before the driver LED patch? Will it break something?
What if this patch is merged by a different maintainer, not LED? What if this patch is merged by the same LED maintainer (not allowed, but let's discuss) but is not squashed into LED driver?
IOW, entire set like breaking users.
Best regards,
Krzysztof