Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd70387f authored by Maxime Ripard's avatar Maxime Ripard Committed by Linus Walleij
Browse files

pinctrl: sunxi: Disable strict mode for old pinctrl drivers



Old pinctrl drivers will need to disable strict mode for various reasons,
among which:
  - Some DT will still have a pinctrl group for each GPIO used, which will
    be rejected by pin_request. While we could remove those nodes, we still
    have to deal with old DTs.
  - Some GPIOs on these boards need to have their pin configuration changed
    (for bias or current), and there's no clear migration path

Let's disable the strict mode on those SoCs so that there's no breakage.

Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent aae842a3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1289,6 +1289,7 @@ static const struct sunxi_pinctrl_desc sun4i_a10_pinctrl_data = {
	.npins = ARRAY_SIZE(sun4i_a10_pins),
	.irq_banks = 1,
	.irq_read_needs_mux = true,
	.disable_strict_mode = true,
};

static int sun4i_a10_pinctrl_probe(struct platform_device *pdev)
+1 −0
Original line number Diff line number Diff line
@@ -713,6 +713,7 @@ static const struct sunxi_pinctrl_desc sun5i_pinctrl_data = {
	.pins = sun5i_pins,
	.npins = ARRAY_SIZE(sun5i_pins),
	.irq_banks = 1,
	.disable_strict_mode = true,
};

static int sun5i_pinctrl_probe(struct platform_device *pdev)
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ static const struct sunxi_pinctrl_desc sun6i_a31_r_pinctrl_data = {
	.npins = ARRAY_SIZE(sun6i_a31_r_pins),
	.pin_base = PL_BASE,
	.irq_banks = 2,
	.disable_strict_mode = true,
};

static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)
+1 −0
Original line number Diff line number Diff line
@@ -965,6 +965,7 @@ static const struct sunxi_pinctrl_desc sun6i_a31_pinctrl_data = {
	.pins = sun6i_a31_pins,
	.npins = ARRAY_SIZE(sun6i_a31_pins),
	.irq_banks = 4,
	.disable_strict_mode = true,
};

static int sun6i_a31_pinctrl_probe(struct platform_device *pdev)
+1 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ static const struct sunxi_pinctrl_desc sun8i_a23_r_pinctrl_data = {
	.npins = ARRAY_SIZE(sun8i_a23_r_pins),
	.pin_base = PL_BASE,
	.irq_banks = 1,
	.disable_strict_mode = true,
};

static int sun8i_a23_r_pinctrl_probe(struct platform_device *pdev)
Loading