Skip to contentSkip to conversation

ARM: davinci: set GPIO base to 0 manually

PATCH New Bartosz Golaszewski 1 participant 6 messages Nov 20, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover ARM: davinci: set GPIO base to 0 manually

From: Bartosz Golaszewski <[email protected]>

This is a follow-up to the series that fixes a problem with ethernet on da850-evm. All DaVinci boards in legacy mode were broken by commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection"). This series sets the GPIO base to 0 manually for all DaVinci SoCs.

Bartosz Golaszewski (5):
ARM: davinci: dm365: set the GPIO base to 0
ARM: davinci: dm646x: set the GPIO base to 0
ARM: davinci: dm355: set the GPIO base to 0
ARM: davinci: da830: set the GPIO base to 0
ARM: davinci: dm644x: set the GPIO base to 0

 arch/arm/mach-davinci/da830.c  | 2 ++
 arch/arm/mach-davinci/dm355.c  | 2 ++
 arch/arm/mach-davinci/dm365.c  | 2 ++
 arch/arm/mach-davinci/dm644x.c | 2 ++
 arch/arm/mach-davinci/dm646x.c | 2 ++
 5 files changed, 10 insertions(+)
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/5 ARM: davinci: dm365: set the GPIO base to 0

From: Bartosz Golaszewski <[email protected]>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.

Fixes 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc stable at vger.kernel.org
---
 arch/arm/mach-davinci/dm365.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm365.c +2 -0
index abcf2a5ed89b..c8e66d8745b7 100644
@@ -273,6 +273,8 @@ static struct resource dm365_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm365_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 104,
 	.gpio_unbanked	= 8,
 };
Signature · 1 line
2.19.1
#2 lore raw

PATCH 2/5 ARM: davinci: dm646x: set the GPIO base to 0

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.

Fixes 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc stable at vger.kernel.org
---
 arch/arm/mach-davinci/dm646x.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm646x.c +2 -0
index 6bd2ed069d0d..158f5908a0f0 100644
@@ -448,6 +448,8 @@ static struct resource dm646x_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm646x_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 43,
 };
 
Signature · 1 line
2.19.1
#3 lore raw

PATCH 3/5 ARM: davinci: dm355: set the GPIO base to 0

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.

Fixes 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc stable at vger.kernel.org
---
 arch/arm/mach-davinci/dm355.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm355.c +2 -0
index 9f7d38d12c88..73f2f70ce729 100644
@@ -554,6 +554,8 @@ static struct resource dm355_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm355_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 104,
 };
 
Signature · 1 line
2.19.1
#4 lore raw

PATCH 4/5 ARM: davinci: da830: set the GPIO base to 0

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.

Fixes 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc stable at vger.kernel.org
---
 arch/arm/mach-davinci/da830.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/da830.c +2 -0
index 0bc5bd2665df..822d2590fbc9 100644
@@ -759,6 +759,8 @@ static struct davinci_id da830_ids[] = {
 };
 
 static struct davinci_gpio_platform_data da830_gpio_platform_data = {
+	.no_auto_base = true,
+	.base = 0,
 	.ngpio = 128,
 };
 
Signature · 1 line
2.19.1
#5 lore raw

PATCH 5/5 ARM: davinci: dm644x: set the GPIO base to 0

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.

Fixes 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc stable at vger.kernel.org
---
 arch/arm/mach-davinci/dm644x.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm644x.c +2 -0
index 0720da7809a6..f25b508a831b 100644
@@ -498,6 +498,8 @@ static struct resource dm644_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm644_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 71,
 };
 
Signature · 1 line
2.19.1