forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: dts: stm32: use dedicated files to manage stm32mp157 packages
Four packages exist for stm32mp157 die. As ball-out is different between them, this patch covers those differences by creating dedicated pinctrl dtsi files. Each dtsi pinctrl package file describes the package ball-out through gpio-ranges. stm32mp157a-dk1 / dk2 boards embed a STM32MP_PKG_AC (TFBGA361 (12*12)) package. stm32mp157c-ed1 / ev1 boards embed a STM32MP_PKG_AA (LFBGA448 (18*18)) package. Acked-by: Linus Walleij <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
- Loading branch information
Showing
7 changed files
with
306 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) | ||
/* | ||
* Copyright (C) STMicroelectronics 2019 - All Rights Reserved | ||
* Author: Alexandre Torgue <[email protected]> | ||
*/ | ||
|
||
#include "stm32mp157-pinctrl.dtsi" | ||
/ { | ||
soc { | ||
pinctrl: pin-controller@50002000 { | ||
st,package = <STM32MP_PKG_AA>; | ||
|
||
gpioa: gpio@50002000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 0 16>; | ||
}; | ||
|
||
gpiob: gpio@50003000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 16 16>; | ||
}; | ||
|
||
gpioc: gpio@50004000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 32 16>; | ||
}; | ||
|
||
gpiod: gpio@50005000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 48 16>; | ||
}; | ||
|
||
gpioe: gpio@50006000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 64 16>; | ||
}; | ||
|
||
gpiof: gpio@50007000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 80 16>; | ||
}; | ||
|
||
gpiog: gpio@50008000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 96 16>; | ||
}; | ||
|
||
gpioh: gpio@50009000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 112 16>; | ||
}; | ||
|
||
gpioi: gpio@5000a000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 128 16>; | ||
}; | ||
|
||
gpioj: gpio@5000b000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 144 16>; | ||
}; | ||
|
||
gpiok: gpio@5000c000 { | ||
status = "okay"; | ||
ngpios = <8>; | ||
gpio-ranges = <&pinctrl 0 160 8>; | ||
}; | ||
}; | ||
|
||
pinctrl_z: pin-controller-z@54004000 { | ||
st,package = <STM32MP_PKG_AA>; | ||
|
||
gpioz: gpio@54004000 { | ||
status = "okay"; | ||
ngpios = <8>; | ||
gpio-ranges = <&pinctrl_z 0 400 8>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) | ||
/* | ||
* Copyright (C) STMicroelectronics 2019 - All Rights Reserved | ||
* Author: Alexandre Torgue <[email protected]> | ||
*/ | ||
|
||
#include "stm32mp157-pinctrl.dtsi" | ||
/ { | ||
soc { | ||
pinctrl: pin-controller@50002000 { | ||
st,package = <STM32MP_PKG_AB>; | ||
|
||
gpioa: gpio@50002000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 0 16>; | ||
}; | ||
|
||
gpiob: gpio@50003000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 16 16>; | ||
}; | ||
|
||
gpioc: gpio@50004000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 32 16>; | ||
}; | ||
|
||
gpiod: gpio@50005000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 48 16>; | ||
}; | ||
|
||
gpioe: gpio@50006000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 64 16>; | ||
}; | ||
|
||
gpiof: gpio@50007000 { | ||
status = "okay"; | ||
ngpios = <6>; | ||
gpio-ranges = <&pinctrl 6 86 6>; | ||
}; | ||
|
||
gpiog: gpio@50008000 { | ||
status = "okay"; | ||
ngpios = <10>; | ||
gpio-ranges = <&pinctrl 6 102 10>; | ||
}; | ||
|
||
gpioh: gpio@50009000 { | ||
status = "okay"; | ||
ngpios = <2>; | ||
gpio-ranges = <&pinctrl 0 112 2>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) | ||
/* | ||
* Copyright (C) STMicroelectronics 2019 - All Rights Reserved | ||
* Author: Alexandre Torgue <[email protected]> | ||
*/ | ||
|
||
#include "stm32mp157-pinctrl.dtsi" | ||
/ { | ||
soc { | ||
pinctrl: pin-controller@50002000 { | ||
st,package = <STM32MP_PKG_AC>; | ||
|
||
gpioa: gpio@50002000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 0 16>; | ||
}; | ||
|
||
gpiob: gpio@50003000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 16 16>; | ||
}; | ||
|
||
gpioc: gpio@50004000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 32 16>; | ||
}; | ||
|
||
gpiod: gpio@50005000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 48 16>; | ||
}; | ||
|
||
gpioe: gpio@50006000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 64 16>; | ||
}; | ||
|
||
gpiof: gpio@50007000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 80 16>; | ||
}; | ||
|
||
gpiog: gpio@50008000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 96 16>; | ||
}; | ||
|
||
gpioh: gpio@50009000 { | ||
status = "okay"; | ||
ngpios = <16>; | ||
gpio-ranges = <&pinctrl 0 112 16>; | ||
}; | ||
|
||
gpioi: gpio@5000a000 { | ||
status = "okay"; | ||
ngpios = <12>; | ||
gpio-ranges = <&pinctrl 0 128 12>; | ||
}; | ||
}; | ||
|
||
pinctrl_z: pin-controller-z@54004000 { | ||
st,package = <STM32MP_PKG_AC>; | ||
|
||
gpioz: gpio@54004000 { | ||
status = "okay"; | ||
ngpios = <8>; | ||
gpio-ranges = <&pinctrl_z 0 400 8>; | ||
}; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.