Ux500 devicetree patches:

- Move the ab8500 compatible string from the board to the
   chipset.
 - Define GPIO line names for the boards.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJXV8y4AAoJEEEQszewGV1zXRUP/RitlC4vtzEXCfhTHdg3BQI1
 uNkHl96N3sgQaj/67ImT46E078JlIz9uNFhxj3jXxIk5BOaJoBBG6Giz8NzFpEl/
 Jh7YFzUW4L5v8O4vp5Fl1vEUvXoZn8MZClihcREihcjecm6FAD0CHujmu6dn2cpx
 sC7L1mbmS8IWvGeLxohfCoeAJFnSsNwJ2BUqgdnM/dxRFa33fr45XTGIVeV5XkI6
 JPYyM7jsGnbg9YqWX+RdLLMLD1DcriSpXjVbmHdfW6avqAjWT6USIe7gjcG6YUwR
 6Pqh0HLGVH6PNVRlkIlV1hVizPPb3At4ouMT9I09kmoAD1mpg1AsiadunA4F2EPa
 oDgajYRI4Teuj171jCjWyCnJIcluqhXK+QgYFs/ubT1BklKBxBwOHFgz0yIhpSEq
 VBMEjfyXko+wYpCfG+ZZEPyqOhBFQfhlQnS8TzL4nMI1oma7XnY7s/Ph0oSuZOlx
 L+FeQQ21SV2gBnO1oTTUk+D9D8V0Vwq9WvQWNt6kEt5E8AwGPX0N1FCGCFAyrwa+
 +YmCIBpMZj5TtYHhf6frRx+dEe5e3or3NdR0a43jXhPYxPkWhXVcBVKzMuPFfA0z
 5/3JDx37bFNmvSXW7ysw5dZeimvYtZfitw/9EOnxk9vS5ASiEOA2VtCTx9h3OZLs
 1ZDvxa/0XAOHTp5gbmv8
 =sOoX
 -----END PGP SIGNATURE-----

Merge tag 'ux500-dt-asoc-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/dt

Ux500 devicetree patches:
- Move the ab8500 compatible string from the board to the
  chipset.
- Define GPIO line names for the boards.

* tag 'ux500-dt-asoc-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson:
  ARM: dts: UX500: name the GPIO lines on HREFv60plus
  ARM: dts: Ux500: name the GPIO lines on Snowball
  ARM: dts: Ux500: move compatible string to chipset

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson 2016-06-13 15:45:18 -07:00
commit a264cc2e3c
4 changed files with 204 additions and 2 deletions

View File

@ -604,6 +604,7 @@ ab8500 {
#interrupt-cells = <2>;
ab8500_gpio: ab8500-gpio {
compatible = "stericsson,ab8500-gpio";
gpio-controller;
#gpio-cells = <2>;
};

View File

@ -223,7 +223,6 @@ msp3: msp@80125000 {
prcmu@80157000 {
ab8500 {
ab8500-gpio {
compatible = "stericsson,ab8500-gpio";
};
ab8500-regulators {

View File

@ -18,6 +18,126 @@ / {
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
soc {
/* Name the GPIO muxed rails on the HREF boards */
gpio@8012e000 {
/* GPIOs 0 - 31 */
gpio-line-names =
/* GPIO0,1 used for UART0 BT RX/TX */
"", "",
"UART_WAKE",
"BT_WAKE",
"",
"SDMMC_1V8_3V_SEL",
"FLASH_LED_SYNC (FLASH_CTRL_0)",
"XENON_READY (FLASH_CTRL_1)",
"", "", "", "", "", "", "", "",
"", "", "", "",
"",
"FLASH_LED_EN (FLASH_CTRL_3)",
"", "",
"", "", "", "", "",
/* Used by UART2 (console) */
"", "",
"MAGNETOMETER_INT";
};
gpio@8012e080 {
/* GPIOs 32 - 63 */
gpio-line-names =
"MAGNETOMETER_DRDY",
"", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
gpio@8000e000 {
/* GPIOs 64 - 95 */
gpio-line-names = "XENON_EN2 (FLASH_CTRL_4)",
"DISP1_RST",
"DISP2_RST",
"TOUCH_INT2",
"LCD_VSI0_A",
"LCD_VSI1_A",
/* GPIO 70-77 used for ETM */
"", "", "", "", "", "", "", "",
/* GPIO 78-81 used for YCBCR */
"", "", "", "",
"ACCELEROMETER_INT1_RDY",
"ACCELEROMETER_INT2",
"TOUCH_INT",
"WLAN_ENA",
"", "", "", "", "",
"FORCE_SENSING_INT",
"FORCE_SENSING_RESET",
"", "",
"SDMMC_CD";
};
gpio@8000e080 {
/* GPIOs 96 - 127 */
gpio-line-names = "",
"FORCE_SENSING_WU",
"", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
gpio@8000e100 {
/* GPIOs 128 - 159 */
gpio-line-names = "", "", "", "", "", "", "", "",
"", "", "",
"DIPRO_INT", /* GPIO139 */
"XSHUTDOWN_SECONDARY_SENSOR",
"XSHUTDOWN_PRIMARY_SENSOR",
"NFC_RST (NFC_CTRL_",
"TOUCH_RST",
"NFC_IRQ (NFC_CTRL_1)",
"HAL_SW",
"TOUCH_RST2",
"", "",
"VAUDIO_HF_EN", /* GPIO149 */
"", "", "", "", "", "", "", "", "", "";
};
gpio@8000e180 {
/* GPIOs 160 - 191 */
gpio-line-names = "", "", "", "", "", "", "", "",
"",
"SDMMC_EN",
"XENON_CHARGE (FLASH_CONTROL_5)",
"GBF_ENA_RESET",
"", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
gpio@8011e000 {
/* GPIOs 192 - 223 */
gpio-line-names = "HDTV_INTN",
"", "", "",
"HDTV_RSTN",
"", "", "",
"", /* GPIO200 */
"", "", "", "", "", "", "",
/* GPIO208-216 used for WGBF_MC1 */
"", "", "", "", "", "", "", "", "",
"SW_FRONT_PROXIMITY", /* GPIO217 */
"KPD_CTRL_INT", /* Keypad controller */
"", "", "", "", "";
};
gpio@8011e080 {
/* GPIOs 224 - 255 */
gpio-line-names = "", "",
"HSIT_ACWAKE0",
"", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
// External Micro SD slot
sdi0_per1@80126000 {
cd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; // 95

View File

@ -95,6 +95,70 @@ used-led {
};
soc {
/* Name the GPIO muxed rails on the Snowball board */
gpio@8012e000 {
/* GPIOs 0 - 31 */
gpio-line-names = "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "",
"AP_GPIO31";
};
gpio@8012e080 {
/* GPIOs 32 - 63 */
gpio-line-names = "USR PB", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
gpio@8000e000 {
/* GPIOs 64 - 95 */
gpio-line-names = "", "", "", "", "AP_GPIO68", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
gpio@8000e100 {
/* GPIOs 128 - 159 */
gpio-line-names = "", "", "", "", "", "", "", "",
"", "", "", "", "IRQ_LAN", "RSTn_LAN",
"USR_LED", "", "", "", "", "", "",
"", "", "AP_GPIO151", "AP_GPIO152",
"", "", "", "", "", "", "";
};
gpio@8000e180 {
/* GPIOs 160 - 191 */
gpio-line-names = "", "AP_GPIO161", "AP_GPIO162",
"ACCELEROMETER_INT1_RDY",
"ACCELEROMETER_INT2", "MAG_DRDY",
"GYRO_DRDY", "RSTn_MLC", "RSTn_SLC",
"GYRO_INT", "UART_WAKE", "GBF_RESET",
"", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
gpio@8011e000 {
/* GPIOs 192 - 223 */
gpio-line-names = "HDTV_INTn", "", "", "", "HDTV_RST",
"", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "",
"WLAN_RESETN", "WLAN_IRQ", "MMC_EN",
"MMC_CD", "", "", "", "", "";
};
gpio@8011e080 {
/* GPIOs 224 - 255 */
gpio-line-names = "", "", "", "", "SD_SEL", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "";
};
usb_per5@a03e0000 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&musb_default_mode>;
@ -352,7 +416,25 @@ thermal@801573c0 {
ab8500 {
ab8500-gpio {
compatible = "stericsson,ab8500-gpio";
/*
* AB8500 GPIOs are numbered starting from 1, so the first
* index 0 is what in the datasheet is called "GPIO1", and
* the second is "GPIO2" and so forth. Confusingly, the
* Snowball schematic then names the "GPIO2" line "PM_GPIO1".
* while later naming "GPIO4" as "PM_GPIO4".
*/
gpio-line-names = "", /* AB8500 GPIO1 */
"PM_GPIO1", /* AB8500 GPIO2 */
"WLAN_CLK_REQ", /* AB8500 GPIO3 */
"PM_GPIO4", /* AB8500 GPIO4 */
"", "", "", "", "", "", "", "", "", "", "",
"EN_3V6", /* AB8500 GPIO16 */
"", "", "", "" ,"", "", "", "", "",
"EN_3V3", /* AB8500 GPIO26 */
"", "", "", "", "", "", "", "", "", "", "", "", "",
"PM_GPIO40", /* AB8500 GPIO40 */
"PM_GPIO41", /* AB8500 GPIO41 */
"PM_GPIO42"; /* AB8500 GPIO42 */
};
ext_regulators: ab8500-ext-regulators {