mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 09:20:17 +00:00
Exynos-specific drivers for 4.5:
1. Add a pinctrl driver for Exynos5410. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJWXkIrAAoJEME3ZuaGi4PXdA4P/2LTyZ/wn1V8k2RyMK6M/6yV jTzlNAt2d/7FIXsINejjNObrUj5Bm4hi3xgnZUON0wiKQRkyk6gq4n/3Ac4dMO5n 4W4ppBLZvkKl26G0+C0YRtUnHcKfj10ytZHzkvFZmvRWtABW1p6r9XSEhCSEZjyk 2jVo6lhagqYPLWpuAfjIrl181bvQ0E6EZYzHe0a27rlvHUsSmVXVjd+kiP4AUsdE Vb7ImRZ19jQ3C08l5b2z59N5dbbZnLUgBVDhLeto8CPyx1mB1/ZNN1XpF+NEGhrz spA1mzRlJOWU9k03QHuuCxeCgYprIMsH3IqRGj17tmeI4zh3a8VnrK6UlKQ4SBIk HMogzUEInUvhldrzjI8b6ctT3UpyiSxQiwVF34oc0NAOHg9Kn33r7un72JDLp3oa kX6NiHGDA91ibmH1eiA28IJcPRsUaNMHnmg1vRIJMcVMP1eS4KObcgMkV9W8QwVS mzkbYGNIp3oTTRzh5H647XZBXscJUBJPmQXSIuu+T0uvR5yHOqh6vnL9CZ4oS0ZU P38u47lj6D5TNuAqUlcaoYgXZo9oPNgfsmvmdcmUvDFrqsS+liWmKi0x2A7kt/mw 2p6zrPhJ7c0IDdr+YGc/MHpmtNugmOwTT1L9BlpMoxvaJdm+5uXnMWnRcazQABST mmFGwS6PorG4s+2Q8FT+ =3TRh -----END PGP SIGNATURE----- Merge tag 'samsung-drivers-4.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into devel Exynos-specific drivers for 4.5: 1. Add a pinctrl driver for Exynos5410.
This commit is contained in:
commit
a898c8358a
@ -17,6 +17,7 @@ Required Properties:
|
|||||||
- "samsung,exynos4x12-pinctrl": for Exynos4x12 compatible pin-controller.
|
- "samsung,exynos4x12-pinctrl": for Exynos4x12 compatible pin-controller.
|
||||||
- "samsung,exynos5250-pinctrl": for Exynos5250 compatible pin-controller.
|
- "samsung,exynos5250-pinctrl": for Exynos5250 compatible pin-controller.
|
||||||
- "samsung,exynos5260-pinctrl": for Exynos5260 compatible pin-controller.
|
- "samsung,exynos5260-pinctrl": for Exynos5260 compatible pin-controller.
|
||||||
|
- "samsung,exynos5410-pinctrl": for Exynos5410 compatible pin-controller.
|
||||||
- "samsung,exynos5420-pinctrl": for Exynos5420 compatible pin-controller.
|
- "samsung,exynos5420-pinctrl": for Exynos5420 compatible pin-controller.
|
||||||
- "samsung,exynos7-pinctrl": for Exynos7 compatible pin-controller.
|
- "samsung,exynos7-pinctrl": for Exynos7 compatible pin-controller.
|
||||||
|
|
||||||
|
@ -1150,6 +1150,109 @@ const struct samsung_pin_ctrl exynos5260_pin_ctrl[] __initconst = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* pin banks of exynos5410 pin-controller 0 */
|
||||||
|
static const struct samsung_pin_bank_data exynos5410_pin_banks0[] __initconst = {
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x040, "gpa2", 0x08),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(5, 0x060, "gpb0", 0x0c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(5, 0x080, "gpb1", 0x10),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(4, 0x0A0, "gpb2", 0x14),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(4, 0x0C0, "gpb3", 0x18),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(7, 0x0E0, "gpc0", 0x1c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(4, 0x100, "gpc3", 0x20),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(7, 0x120, "gpc1", 0x24),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(7, 0x140, "gpc2", 0x28),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(2, 0x160, "gpm5"),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x180, "gpd1", 0x2c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x1A0, "gpe0", 0x30),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(2, 0x1C0, "gpe1", 0x34),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(6, 0x1E0, "gpf0", 0x38),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x200, "gpf1", 0x3c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x220, "gpg0", 0x40),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x240, "gpg1", 0x44),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(2, 0x260, "gpg2", 0x48),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(4, 0x280, "gph0", 0x4c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x2A0, "gph1", 0x50),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(8, 0x2C0, "gpm7"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(6, 0x2E0, "gpy0"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(4, 0x300, "gpy1"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(6, 0x320, "gpy2"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(8, 0x340, "gpy3"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(8, 0x360, "gpy4"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(8, 0x380, "gpy5"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(8, 0x3A0, "gpy6"),
|
||||||
|
EXYNOS_PIN_BANK_EINTN(8, 0x3C0, "gpy7"),
|
||||||
|
EXYNOS_PIN_BANK_EINTW(8, 0xC00, "gpx0", 0x00),
|
||||||
|
EXYNOS_PIN_BANK_EINTW(8, 0xC20, "gpx1", 0x04),
|
||||||
|
EXYNOS_PIN_BANK_EINTW(8, 0xC40, "gpx2", 0x08),
|
||||||
|
EXYNOS_PIN_BANK_EINTW(8, 0xC60, "gpx3", 0x0c),
|
||||||
|
};
|
||||||
|
|
||||||
|
/* pin banks of exynos5410 pin-controller 1 */
|
||||||
|
static const struct samsung_pin_bank_data exynos5410_pin_banks1[] __initconst = {
|
||||||
|
EXYNOS_PIN_BANK_EINTG(5, 0x000, "gpj0", 0x00),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpj1", 0x04),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x040, "gpj2", 0x08),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x060, "gpj3", 0x0c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(2, 0x080, "gpj4", 0x10),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x0A0, "gpk0", 0x14),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x0C0, "gpk1", 0x18),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x0E0, "gpk2", 0x1c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(7, 0x100, "gpk3", 0x20),
|
||||||
|
};
|
||||||
|
|
||||||
|
/* pin banks of exynos5410 pin-controller 2 */
|
||||||
|
static const struct samsung_pin_bank_data exynos5410_pin_banks2[] __initconst = {
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpv0", 0x00),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpv1", 0x04),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x060, "gpv2", 0x08),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(8, 0x080, "gpv3", 0x0c),
|
||||||
|
EXYNOS_PIN_BANK_EINTG(2, 0x0C0, "gpv4", 0x10),
|
||||||
|
};
|
||||||
|
|
||||||
|
/* pin banks of exynos5410 pin-controller 3 */
|
||||||
|
static const struct samsung_pin_bank_data exynos5410_pin_banks3[] __initconst = {
|
||||||
|
EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz", 0x00),
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Samsung pinctrl driver data for Exynos5410 SoC. Exynos5410 SoC includes
|
||||||
|
* four gpio/pin-mux/pinconfig controllers.
|
||||||
|
*/
|
||||||
|
const struct samsung_pin_ctrl exynos5410_pin_ctrl[] __initconst = {
|
||||||
|
{
|
||||||
|
/* pin-controller instance 0 data */
|
||||||
|
.pin_banks = exynos5410_pin_banks0,
|
||||||
|
.nr_banks = ARRAY_SIZE(exynos5410_pin_banks0),
|
||||||
|
.eint_gpio_init = exynos_eint_gpio_init,
|
||||||
|
.eint_wkup_init = exynos_eint_wkup_init,
|
||||||
|
.suspend = exynos_pinctrl_suspend,
|
||||||
|
.resume = exynos_pinctrl_resume,
|
||||||
|
}, {
|
||||||
|
/* pin-controller instance 1 data */
|
||||||
|
.pin_banks = exynos5410_pin_banks1,
|
||||||
|
.nr_banks = ARRAY_SIZE(exynos5410_pin_banks1),
|
||||||
|
.eint_gpio_init = exynos_eint_gpio_init,
|
||||||
|
.suspend = exynos_pinctrl_suspend,
|
||||||
|
.resume = exynos_pinctrl_resume,
|
||||||
|
}, {
|
||||||
|
/* pin-controller instance 2 data */
|
||||||
|
.pin_banks = exynos5410_pin_banks2,
|
||||||
|
.nr_banks = ARRAY_SIZE(exynos5410_pin_banks2),
|
||||||
|
.eint_gpio_init = exynos_eint_gpio_init,
|
||||||
|
.suspend = exynos_pinctrl_suspend,
|
||||||
|
.resume = exynos_pinctrl_resume,
|
||||||
|
}, {
|
||||||
|
/* pin-controller instance 3 data */
|
||||||
|
.pin_banks = exynos5410_pin_banks3,
|
||||||
|
.nr_banks = ARRAY_SIZE(exynos5410_pin_banks3),
|
||||||
|
.eint_gpio_init = exynos_eint_gpio_init,
|
||||||
|
.suspend = exynos_pinctrl_suspend,
|
||||||
|
.resume = exynos_pinctrl_resume,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
/* pin banks of exynos5420 pin-controller 0 */
|
/* pin banks of exynos5420 pin-controller 0 */
|
||||||
static const struct samsung_pin_bank_data exynos5420_pin_banks0[] __initconst = {
|
static const struct samsung_pin_bank_data exynos5420_pin_banks0[] __initconst = {
|
||||||
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpy7", 0x00),
|
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpy7", 0x00),
|
||||||
|
@ -1222,6 +1222,8 @@ static const struct of_device_id samsung_pinctrl_dt_match[] = {
|
|||||||
.data = (void *)exynos5250_pin_ctrl },
|
.data = (void *)exynos5250_pin_ctrl },
|
||||||
{ .compatible = "samsung,exynos5260-pinctrl",
|
{ .compatible = "samsung,exynos5260-pinctrl",
|
||||||
.data = (void *)exynos5260_pin_ctrl },
|
.data = (void *)exynos5260_pin_ctrl },
|
||||||
|
{ .compatible = "samsung,exynos5410-pinctrl",
|
||||||
|
.data = (void *)exynos5410_pin_ctrl },
|
||||||
{ .compatible = "samsung,exynos5420-pinctrl",
|
{ .compatible = "samsung,exynos5420-pinctrl",
|
||||||
.data = (void *)exynos5420_pin_ctrl },
|
.data = (void *)exynos5420_pin_ctrl },
|
||||||
{ .compatible = "samsung,exynos5433-pinctrl",
|
{ .compatible = "samsung,exynos5433-pinctrl",
|
||||||
|
@ -270,6 +270,7 @@ extern const struct samsung_pin_ctrl exynos4x12_pin_ctrl[];
|
|||||||
extern const struct samsung_pin_ctrl exynos4415_pin_ctrl[];
|
extern const struct samsung_pin_ctrl exynos4415_pin_ctrl[];
|
||||||
extern const struct samsung_pin_ctrl exynos5250_pin_ctrl[];
|
extern const struct samsung_pin_ctrl exynos5250_pin_ctrl[];
|
||||||
extern const struct samsung_pin_ctrl exynos5260_pin_ctrl[];
|
extern const struct samsung_pin_ctrl exynos5260_pin_ctrl[];
|
||||||
|
extern const struct samsung_pin_ctrl exynos5410_pin_ctrl[];
|
||||||
extern const struct samsung_pin_ctrl exynos5420_pin_ctrl[];
|
extern const struct samsung_pin_ctrl exynos5420_pin_ctrl[];
|
||||||
extern const struct samsung_pin_ctrl exynos5433_pin_ctrl[];
|
extern const struct samsung_pin_ctrl exynos5433_pin_ctrl[];
|
||||||
extern const struct samsung_pin_ctrl exynos7_pin_ctrl[];
|
extern const struct samsung_pin_ctrl exynos7_pin_ctrl[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user