Exynos5: Pinmux: Add fdt for pinmux
Subsystems (3)
PATCH v5 1/1 Exynos5: Pinmux: Add fdt for pinmux
This patch adds fdt nodes for peripherals which require pin muxing and configuration. Device tree bindings for pinctrl are kept same as required for Linux. Existing pinmux code modified to retrieve gpio range and function related info from fdt.
Depends-on: [U-Boot] [PATCH 0/4 V3] EXYNOS5: Add GPIO numbering feature
URL: http://lists.denx.de/pipermail/u-boot/2013-February/146151.html
---
Changes since v1:
- Device tree bindings changed to linux style.
- Added documentation for samsung pinctrl.
Changes since v2:
- Rebased as per new version of GPIO numbering patch-set.
Changes since v3:
- Added comments to reduce ambiguity and increase readability.
- Fixed few other nits.
Changes since v4:
- Added support for reading peripheral pinctrl subnode names from preipheral's node instead of hard coding.
arch/arm/cpu/armv7/exynos/pinmux.c | 357 +++++++------- arch/arm/dts/exynos5250-pinctrl.dtsi | 675 +++++++++++++++++++++++++++ arch/arm/dts/exynos5250.dtsi | 92 ++++ board/samsung/dts/exynos5250-smdk5250.dts | 11 + doc/device-tree-bindings/samsung-pinctrl.txt | 253 ++++++++++ include/fdtdec.h | 4 + lib/fdtdec.c | 4 + 7 files changed, 1231 insertions(+), 165 deletions(-) create mode 100644 arch/arm/dts/exynos5250-pinctrl.dtsi create mode 100644 doc/device-tree-bindings/samsung-pinctrl.txt
arch/arm/cpu/armv7/exynos/pinmux.c +192 -165
@@ -23,10 +23,20 @@#include <common.h> #include <fdtdec.h> +#include <linux/ctype.h> #include <asm/arch/gpio.h> #include <asm/arch/pinmux.h> #include <asm/arch/sromc.h> +DECLARE_GLOBAL_DATA_PTR ; + +/* Struct for temporarily storing pin related info */ +struct pin_group { +uint8_t function;/* Pin function */ +uint8_t pull_mode;/* Pin pull mode */ +uint8_t drive_strength;/* Pin drive strength */ +}; +struct gpio_name_num_table exynos5_gpio_table[] = { {'a' ,GPIO_A00 }, {'b' ,GPIO_B00 },
@@ -42,252 +52,271 @@ struct gpio_name_num_table exynos5_gpio_table[] = { { 'z', GPIO_Z0 }, }; -static void exynos5_uart_config (int peripheral) +/* Extract and set pins in a particular pinctrl node */ +static void pinmux_set_pins (const char *fprop_data, +struct pin_group *pingrp) { -int i, start, count; +int i; +char gpio[5 ]; + +/* +* Get all the pin names from fdt and fill the gpio array +* with corresponding enum values(Pin numbers). +*/ +for (i =0 ; !(fprop_data[i] == (int )NULL && + fprop_data[i+1 ] == (int )NULL ); i +=7 ) { +int pin_num =-1 ; + +/* +* Modify pin name retrieved from fdt, +* so that name_to_gpio may understand. +*/ + gpio[0 ] = fprop_data[i]; + gpio[1 ] = fprop_data[i +1 ]; + gpio[2 ] = fprop_data[i +2 ]; + gpio[3 ] = fprop_data[i +3 ]; + gpio[4 ] = fprop_data[i +5 ]; + + pin_num =name_to_gpio (gpio); + +/* +* If pin number is valid, add it to the pin array +* and increment pin count. +*/ +if (pin_num >=0 ) { +gpio_cfg_pin (pin_num, +S5P_GPIO_FUNC (pingrp->function)); +gpio_set_pull (pin_num, pingrp->pull_mode); +gpio_set_drv (pin_num, pingrp->drive_strength); + } + } +} + +/* Extract all the config info from pinctrl periph subnodei */ +static int pinmux_do_config (struct pin_group *pingrp,const char * dev_name) +{ +int node, subnode; +const char *fprop_data; + +/* Loop for all pinctrl nodes in fdt */ +for (node =fdtdec_next_compatible (gd->fdt_blob,0 , +COMPAT_SAMSUNG_PINCTRL ); node >=0 ; + node =fdtdec_next_compatible (gd->fdt_blob, node, +COMPAT_SAMSUNG_PINCTRL )) { +/* Get the subnode from FDT for this peripheral*/ + subnode =fdt_subnode_offset (gd->fdt_blob, + node, dev_name); +if (subnode <0 ) +continue ; + +/* Get names of pins to be configured from fdt */ + fprop_data =fdt_getprop (gd->fdt_blob, + subnode,"samsung,pins" ,NULL ); + +/* Get the pin function from fdt */ + pingrp->function =fdtdec_get_int (gd->fdt_blob, + subnode,"samsung,pin-function" ,0 ); + +/* Get the pull mode for pins from fdt */ + pingrp->pull_mode =fdtdec_get_int (gd->fdt_blob, + subnode,"samsung,pin-pud" ,0 ); + +/* Get the drive strength for pins from fdt */ + pingrp->drive_strength =fdtdec_get_int (gd->fdt_blob, + subnode,"samsung,pin-drv" ,0 ); + +/* Convert pin names to pin numbers */ +pinmux_set_pins (fprop_data, pingrp); + +return 0 ; + } + +return -1 ; +} + +/* Set configuration for all pins as per fdt for a peripheral */ +static int pinmux_group_set (struct pin_group *pingrp,int pnode) +{ +int err, i =0 ; +const char *fprop_data; +const char *dev_name; + + fprop_data =fdt_getprop (gd->fdt_blob, pnode, +"samsung,pinctrl-names" ,NULL ); + +do { + dev_name = (fprop_data + i); + err =pinmux_do_config (pingrp, dev_name); +if (err) +break ; +while (fprop_data[i] != (int )NULL ) + i++; + }while (isalnum (fprop_data[++i])); + +return err; +} + +static int exynos5_uart_config (int peripheral) +{ +int suffix, pnode; +struct pin_group pingrp;switch (peripheral) {case PERIPH_ID_UART0 : - start =GPIO_A00 ; - count =4 ; + suffix =0 ;break ;case PERIPH_ID_UART1 : - start =GPIO_D00 ; - count =4 ; + suffix =1 ;break ;case PERIPH_ID_UART2 : - start =GPIO_A10 ; - count =4 ; + suffix =2 ;break ;case PERIPH_ID_UART3 : - start =GPIO_A14 ; - count =2 ; + suffix =3 ;break ; } -for (i = start; i < start + count; i++) { -gpio_set_pull (i,S5P_GPIO_PULL_NONE ); -gpio_cfg_pin (i,S5P_GPIO_FUNC (0x2 )); - } + + pnode =fdtdec_next_alias (gd->fdt_blob,"uart" , +COMPAT_SAMSUNG_EXYNOS_UART , &suffix); + +return pinmux_group_set (&pingrp, pnode); } -static int exynos5_mmc_config (int peripheral,int flags) +static int exynos5_mmc_config (int peripheral) { -int i, start, start_ext, gpio_func =0 ; +int suffix, pnode; +struct pin_group pingrp;switch (peripheral) {case PERIPH_ID_SDMMC0 : - start =GPIO_C00 ; - start_ext =GPIO_C10 ; - gpio_func =S5P_GPIO_FUNC (0x2 ); + suffix =0 ;break ;case PERIPH_ID_SDMMC1 : - start =GPIO_C20 ; - start_ext =0 ; + suffix =1 ;break ;case PERIPH_ID_SDMMC2 : - start =GPIO_C30 ; - start_ext =GPIO_C43 ; - gpio_func =S5P_GPIO_FUNC (0x3 ); + suffix =2 ;break ;case PERIPH_ID_SDMMC3 : - start =GPIO_C40 ; - start_ext =0 ; + suffix =3 ;break ; } -if ((flags &PINMUX_FLAG_8BIT_MODE ) && !start_ext) { -debug ("SDMMC device %d does not support 8bit mode" , - peripheral); -return -1 ; - } -if (flags &PINMUX_FLAG_8BIT_MODE ) { -for (i = start_ext; i <= (start_ext +3 ); i++) { -gpio_cfg_pin (i, gpio_func); -gpio_set_pull (i,S5P_GPIO_PULL_UP ); -gpio_set_drv (i,S5P_GPIO_DRV_4X ); - } - } -for (i =0 ; i <2 ; i++) { -gpio_cfg_pin (start + i,S5P_GPIO_FUNC (0x2 )); -gpio_set_pull (start + i,S5P_GPIO_PULL_NONE ); -gpio_set_drv (start + i,S5P_GPIO_DRV_4X ); - } -for (i =3 ; i <=6 ; i++) { -gpio_cfg_pin (start + i,S5P_GPIO_FUNC (0x2 )); -gpio_set_pull (start + i,S5P_GPIO_PULL_UP ); -gpio_set_drv (start + i,S5P_GPIO_DRV_4X ); - } -return 0 ; + pnode =fdtdec_next_alias (gd->fdt_blob,"mshc" , +COMPAT_SAMSUNG_EXYNOS_MSHC , &suffix); + +return pinmux_group_set (&pingrp, pnode); } -static void exynos5_sromc_config (int flags) +static int exynos5_sromc_config (void ) { -int i; - -/* -* SROM:CS1 and EBI -* -* GPY0[0] SROM_CSn[0] -* GPY0[1] SROM_CSn[1](2) -* GPY0[2] SROM_CSn[2] -* GPY0[3] SROM_CSn[3] -* GPY0[4] EBI_OEn(2) -* GPY0[5] EBI_EEn(2) -* -* GPY1[0] EBI_BEn[0](2) -* GPY1[1] EBI_BEn[1](2) -* GPY1[2] SROM_WAIT(2) -* GPY1[3] EBI_DATA_RDn(2) -*/ -gpio_cfg_pin (GPIO_Y00 + (flags &PINMUX_FLAG_BANK ), -S5P_GPIO_FUNC (2 )); -gpio_cfg_pin (GPIO_Y04 ,S5P_GPIO_FUNC (2 )); -gpio_cfg_pin (GPIO_Y05 ,S5P_GPIO_FUNC (2 )); - -for (i =0 ; i <4 ; i++) -gpio_cfg_pin (GPIO_Y10 + i,S5P_GPIO_FUNC (2 )); - -/* -* EBI: 8 Addrss Lines -* -* GPY3[0] EBI_ADDR[0](2) -* GPY3[1] EBI_ADDR[1](2) -* GPY3[2] EBI_ADDR[2](2) -* GPY3[3] EBI_ADDR[3](2) -* GPY3[4] EBI_ADDR[4](2) -* GPY3[5] EBI_ADDR[5](2) -* GPY3[6] EBI_ADDR[6](2) -* GPY3[7] EBI_ADDR[7](2) -* -* EBI: 16 Data Lines -* -* GPY5[0] EBI_DATA[0](2) -* GPY5[1] EBI_DATA[1](2) -* GPY5[2] EBI_DATA[2](2) -* GPY5[3] EBI_DATA[3](2) -* GPY5[4] EBI_DATA[4](2) -* GPY5[5] EBI_DATA[5](2) -* GPY5[6] EBI_DATA[6](2) -* GPY5[7] EBI_DATA[7](2) -* -* GPY6[0] EBI_DATA[8](2) -* GPY6[1] EBI_DATA[9](2) -* GPY6[2] EBI_DATA[10](2) -* GPY6[3] EBI_DATA[11](2) -* GPY6[4] EBI_DATA[12](2) -* GPY6[5] EBI_DATA[13](2) -* GPY6[6] EBI_DATA[14](2) -* GPY6[7] EBI_DATA[15](2) -*/ -for (i =0 ; i <8 ; i++) { -gpio_cfg_pin (GPIO_Y30 + i,S5P_GPIO_FUNC (2 )); -gpio_set_pull (GPIO_Y30 + i,S5P_GPIO_PULL_UP ); +int pnode; +static struct pin_group pingrp; -gpio_cfg_pin (GPIO_Y50 + i,S5P_GPIO_FUNC (2 )); -gpio_set_pull (GPIO_Y50 + i,S5P_GPIO_PULL_UP ); + pnode =fdtdec_next_compatible (gd->fdt_blob,0 , +COMPAT_SAMSUNG_EXYNOS5_SROMC ); -gpio_cfg_pin (GPIO_Y60 + i,S5P_GPIO_FUNC (2 )); -gpio_set_pull (GPIO_Y60 + i,S5P_GPIO_PULL_UP ); - } +return pinmux_group_set (&pingrp, pnode); } -static void exynos5_i2c_config (int peripheral,int flags) +static int exynos5_i2c_config (int peripheral) { +int suffix, pnode; +struct pin_group pingrp;switch (peripheral) {case PERIPH_ID_I2C0 : -gpio_cfg_pin (GPIO_B30 ,S5P_GPIO_FUNC (0x2 )); -gpio_cfg_pin (GPIO_B31 ,S5P_GPIO_FUNC (0x2 )); + suffix =0 ;break ;case PERIPH_ID_I2C1 : -gpio_cfg_pin (GPIO_B32 ,S5P_GPIO_FUNC (0x2 )); -gpio_cfg_pin (GPIO_B33 ,S5P_GPIO_FUNC (0x2 )); + suffix =1 ;break ;case PERIPH_ID_I2C2 : -gpio_cfg_pin (GPIO_A06 ,S5P_GPIO_FUNC (0x3 )); -gpio_cfg_pin (GPIO_A07 ,S5P_GPIO_FUNC (0x3 )); + suffix =2 ;break ;case PERIPH_ID_I2C3 : -gpio_cfg_pin (GPIO_A12 ,S5P_GPIO_FUNC (0x3 )); -gpio_cfg_pin (GPIO_A13 ,S5P_GPIO_FUNC (0x3 )); + suffix =3 ;break ;case PERIPH_ID_I2C4 : -gpio_cfg_pin (GPIO_A20 ,S5P_GPIO_FUNC (0x3 )); -gpio_cfg_pin (GPIO_A21 ,S5P_GPIO_FUNC (0x3 )); + suffix =4 ;break ;case PERIPH_ID_I2C5 : -gpio_cfg_pin (GPIO_A22 ,S5P_GPIO_FUNC (0x3 )); -gpio_cfg_pin (GPIO_A23 ,S5P_GPIO_FUNC (0x3 )); + suffix =5 ;break ;case PERIPH_ID_I2C6 : -gpio_cfg_pin (GPIO_B13 ,S5P_GPIO_FUNC (0x4 )); -gpio_cfg_pin (GPIO_B14 ,S5P_GPIO_FUNC (0x4 )); + suffix =6 ;break ;case PERIPH_ID_I2C7 : -gpio_cfg_pin (GPIO_B22 ,S5P_GPIO_FUNC (0x3 )); -gpio_cfg_pin (GPIO_B23 ,S5P_GPIO_FUNC (0x3 )); + suffix =7 ;break ; } + + pnode =fdtdec_next_alias (gd->fdt_blob,"i2c" , +COMPAT_SAMSUNG_S3C2440_I2C , &suffix); + +return pinmux_group_set (&pingrp, pnode); } -static void exynos5_i2s_config (int peripheral) +static int exynos5_i2s_config (int peripheral) { -int i; +int suffix, pnode; +struct pin_group pingrp; + +if (peripheral ==PERIPH_ID_I2S1 ) { + suffix =1 ; + pnode =fdtdec_next_alias (gd->fdt_blob,"i2s" , +COMPAT_SAMSUNG_EXYNOS_I2S , &suffix); + } -for (i =0 ; i <5 ; i++) -gpio_cfg_pin (GPIO_B00 +i,S5P_GPIO_FUNC (0x02 )); +return pinmux_group_set (&pingrp, pnode); } -void exynos5_spi_config (int peripheral) +int exynos5_spi_config (int peripheral) { -int cfg =0 , pin =0 , i; +int suffix, pnode; +static struct pin_group pingrp;switch (peripheral) {case PERIPH_ID_SPI0 : - cfg =S5P_GPIO_FUNC (0x2 ); - pin =GPIO_A20 ; + suffix =0 ;break ;case PERIPH_ID_SPI1 : - cfg =S5P_GPIO_FUNC (0x2 ); - pin =GPIO_A24 ; + suffix =1 ;break ;case PERIPH_ID_SPI2 : - cfg =S5P_GPIO_FUNC (0x5 ); - pin =GPIO_B11 ; + suffix =2 ;break ;case PERIPH_ID_SPI3 : - cfg =S5P_GPIO_FUNC (0x2 ); - pin =GPIO_F10 ; + suffix =3 ;break ;case PERIPH_ID_SPI4 : -for (i =0 ; i <2 ; i++) { -gpio_cfg_pin (GPIO_F02 + i,S5P_GPIO_FUNC (0x4 )); -gpio_cfg_pin (GPIO_E04 + i,S5P_GPIO_FUNC (0x4 )); - } + suffix =4 ;break ; } -if (peripheral !=PERIPH_ID_SPI4 ) { -for (i = pin; i < pin +4 ; i++) -gpio_cfg_pin (i, cfg); - } + + pnode =fdtdec_next_alias (gd->fdt_blob,"spi" , +COMPAT_SAMSUNG_EXYNOS_SPI , &suffix); + +return pinmux_group_set (&pingrp, pnode); } -static int exynos5_pinmux_config (int peripheral,int flags) +static int exynos5_pinmux_config (int peripheral) {switch (peripheral) {case PERIPH_ID_UART0 :case PERIPH_ID_UART1 :case PERIPH_ID_UART2 :case PERIPH_ID_UART3 : -exynos5_uart_config (peripheral); +return exynos5_uart_config (peripheral);break ;case PERIPH_ID_SDMMC0 :case PERIPH_ID_SDMMC1 :case PERIPH_ID_SDMMC2 :case PERIPH_ID_SDMMC3 : -return exynos5_mmc_config (peripheral, flags); +return exynos5_mmc_config (peripheral); +break ;case PERIPH_ID_SROMC : -exynos5_sromc_config (flags); +return exynos5_sromc_config ();break ;case PERIPH_ID_I2C0 :case PERIPH_ID_I2C1 :
@@ -297,24 +326,22 @@ static int exynos5_pinmux_config(int peripheral, int flags)case PERIPH_ID_I2C5 :case PERIPH_ID_I2C6 :case PERIPH_ID_I2C7 : -exynos5_i2c_config (peripheral, flags); +return exynos5_i2c_config (peripheral);break ;case PERIPH_ID_I2S1 : -exynos5_i2s_config (peripheral); +return exynos5_i2s_config (peripheral);break ;case PERIPH_ID_SPI0 :case PERIPH_ID_SPI1 :case PERIPH_ID_SPI2 :case PERIPH_ID_SPI3 :case PERIPH_ID_SPI4 : -exynos5_spi_config (peripheral); +return exynos5_spi_config (peripheral);break ;default :debug ("%s: invalid peripheral %d" , __func__, peripheral);return -1 ; } - -return 0 ; }static void exynos4_i2c_config (int peripheral,int flags)
@@ -427,7 +454,7 @@ static int exynos4_pinmux_config(int peripheral, int flags)int exynos_pinmux_config (int peripheral,int flags) {if (cpu_is_exynos5 ()) -return exynos5_pinmux_config (peripheral, flags); +return exynos5_pinmux_config (peripheral);else if (cpu_is_exynos4 ())return exynos4_pinmux_config (peripheral, flags);else {
@@ -495,6 +522,6 @@ int name_to_gpio(const char *name)if (i ==ARRAY_SIZE (exynos5_gpio_table))return -1 ; - +return num; }
arch/arm/dts/exynos5250-pinctrl.dtsi new file +675 -0
675 lines not on this page · raw message
arch/arm/dts/exynos5250.dtsi +92 -0
186 lines not on this page · raw message
board/samsung/dts/exynos5250-smdk5250.dts +11 -0
@@ -30,6 +30,17 @@ spi2 = "/spi at 12d40000"; spi3 = "/spi at 131a0000"; spi4 = "/spi at 131b0000"; + mshc0 = "/dwmmc at 12200000"; + mshc1 = "/dwmmc at 12210000"; + mshc2 = "/dwmmc at 12220000"; + mshc3 = "/dwmmc at 12230000"; + uart0 = "/serial at 12C00000"; + uart1 = "/serial at 12C10000"; + uart2 = "/serial at 12C20000"; + uart3 = "/serial at 12C30000"; + i2s0 = "/i2s at 03830000"; + i2s1 = "/sound at 12d60000"; + i2s2 = "/i2s at 12D70000"; }; sromc at 12250000 {
doc/device-tree-bindings/samsung-pinctrl.txt new file +253 -0
253 lines not on this page · raw message
include/fdtdec.h +4 -0
@@ -81,6 +81,10 @@ enum fdt_compat_id {COMPAT_SAMSUNG_EXYNOS_EHCI ,/* Exynos EHCI controller */ COMPAT_SAMSUNG_EXYNOS_USB_PHY ,/* Exynos phy controller for usb2.0 */ COMPAT_MAXIM_MAX77686_PMIC ,/* MAX77686 PMIC */ +COMPAT_SAMSUNG_EXYNOS_UART ,/* Exynos serial */ +COMPAT_SAMSUNG_EXYNOS_MSHC ,/* Exynos MMC controller */ +COMPAT_SAMSUNG_EXYNOS_I2S ,/* Exynos MMC controller */ +COMPAT_SAMSUNG_PINCTRL ,/* PINCTRL */ COMPAT_COUNT, };
lib/fdtdec.c +4 -0
@@ -56,6 +56,10 @@ static const char * const compat_names[COMPAT_COUNT] = {COMPAT (SAMSUNG_EXYNOS_EHCI ,"samsung,exynos-ehci" ),COMPAT (SAMSUNG_EXYNOS_USB_PHY ,"samsung,exynos-usb-phy" ),COMPAT (MAXIM_MAX77686_PMIC ,"maxim,max77686_pmic" ), +COMPAT (SAMSUNG_EXYNOS_UART ,"samsung,exynos-uart" ), +COMPAT (SAMSUNG_EXYNOS_MSHC ,"samsung,exynos-mshc" ), +COMPAT (SAMSUNG_EXYNOS_I2S ,"samsung,exynos-i2s" ), + COMPAT(SAMSUNG_PINCTRL, "samsung,pinctrl"), };const char *fdtdec_get_compatible (enum fdt_compat_id id)
Signature · 1 line
1.8.0
PATCH v5 1/1 Exynos5: Pinmux: Add fdt for pinmux
Hi Akshay,
Quoted 17 lines · Akshay Saraswat
This patch adds fdt nodes for peripherals which require pin muxing and configuration. Device tree bindings for pinctrl are kept same as required for Linux. Existing pinmux code modified to retrieve gpio range and function related info from fdt.
Depends-on: [U-Boot] [PATCH 0/4 V3] EXYNOS5: Add GPIO numbering feature
URL: http://lists.denx.de/pipermail/u-boot/2013-February/146151.htmlSigned-off-by Akshay Saraswat <[email protected]>---
Changes since v1:
- Device tree bindings changed to linux style.
- Added documentation for samsung pinctrl.Changes since v2:
- Rebased as per new version of GPIO numbering patch-set.
Quoted 7 lines
Changes since v3:
- Added comments to reduce ambiguity and increase readability.
- Fixed few other nits.Changes since v4:
- Added support for reading peripheral pinctrl subnode names from preipheral's node instead of hard coding.
Well I have to say this is looking really nice. From what I can tell you are using the Linux binding for samsung,pinctrl-names - please can you add in that binding information to your binding file - I can't see it there?
The interesting thing is that you should at some point (further patch) be able to remove the alias stuff and have the driver's pass their node offset into this function. Then we can drop the peripheral IDs altogether perhaps?
Quoted 11 lines
arch/arm/cpu/armv7/exynos/pinmux.c | 357 +++++++------- arch/arm/dts/exynos5250-pinctrl.dtsi | 675 +++++++++++++++++++++++++++ arch/arm/dts/exynos5250.dtsi | 92 ++++ board/samsung/dts/exynos5250-smdk5250.dts | 11 + doc/device-tree-bindings/samsung-pinctrl.txt | 253 ++++++++++ include/fdtdec.h | 4 + lib/fdtdec.c | 4 + 7 files changed, 1231 insertions(+), 165 deletions(-) create mode 100644 arch/arm/dts/exynos5250-pinctrl.dtsi create mode 100644 doc/device-tree-bindings/samsung-pinctrl.txt
[..]
Quoted 20 lines
include/fdtdec.h +4
-0@@ -81,6 +81,10 @@ enum fdt_compat_id {COMPAT_SAMSUNG_EXYNOS_EHCI ,/* Exynos EHCI controller */ COMPAT_SAMSUNG_EXYNOS_USB_PHY ,/* Exynos phy controller for usb2.0 */ COMPAT_MAXIM_MAX77686_PMIC ,/* MAX77686 PMIC */ +COMPAT_SAMSUNG_EXYNOS_UART ,/* Exynos serial */ +COMPAT_SAMSUNG_EXYNOS_MSHC ,/* Exynos MMC controller */ +COMPAT_SAMSUNG_EXYNOS_I2S ,/* Exynos MMC controller */ +COMPAT_SAMSUNG_PINCTRL ,/* PINCTRL */ COMPAT_COUNT, };lib/fdtdec.c +0
-0
lib/fdtdec.c static const char * const compat_names[COMPAT_COUNT] = { · line 62
Quoted 7 lines
lib/fdtdec.c +4
-0@@ -56,6 +56,10 @@ static const char * const compat_names[COMPAT_COUNT] = {COMPAT (SAMSUNG_EXYNOS_EHCI ,"samsung,exynos-ehci" ),COMPAT (SAMSUNG_EXYNOS_USB_PHY ,"samsung,exynos-usb-phy" ),COMPAT (MAXIM_MAX77686_PMIC ,"maxim,max77686_pmic" ), +COMPAT (SAMSUNG_EXYNOS_UART ,"samsung,exynos-uart" ), +COMPAT (SAMSUNG_EXYNOS_MSHC ,"samsung,exynos-mshc" ), +COMPAT (SAMSUNG_EXYNOS_I2S ,"samsung,exynos-i2s" ), + COMPAT(SAMSUNG_PINCTRL, "samsung,pinctrl"),
Do these match the kernel names?
Quoted 6 lines
lib/fdtdec.c +0
-1};const char *fdtdec_get_compatible (enum fdt_compat_id id) --1.8.0
Regards,
Simon