pinctrl:modify rk3288 dts function name
authorluowei <lw@rock-chips.com>
Tue, 18 Mar 2014 07:13:18 +0000 (15:13 +0800)
committerluowei <lw@rock-chips.com>
Tue, 18 Mar 2014 07:14:54 +0000 (15:14 +0800)
arch/arm/boot/dts/rk3288-pinctrl.dtsi
drivers/pinctrl/pinctrl-rockchip.c

index 2e9cb6539cbae94705937fbef3d29f3d0fd8aa67..b407870ecb60e05131e1b7007567736fd6394ef5 100755 (executable)
                        bias-disable;
                };
 
-               gpio1_uart0 {
+               gpio4_uart0 {
                        uart0_xfer: uart0-xfer {
                                rockchip,pins = <UART0BT_SIN>,
                                                <UART0BT_SOUT>;
                                rockchip,drive = <VALUE_DRV_DEFAULT>;
                                //rockchip,tristate = <VALUE_TRI_DEFAULT>;
                        };
+
+                       uart0_rts_gpio: uart0-rts-gpio {
+                               rockchip,pins = <FUNC_TO_GPIO(UART0BT_RTSN)>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                       };
                };
 
-               gpio1_uart1 {
+               gpio5_uart1 {
                        uart1_xfer: uart1-xfer {
                                rockchip,pins = <UART1BB_SIN>,
                                                <UART1BB_SOUT>;
                                rockchip,drive = <VALUE_DRV_DEFAULT>;
                                //rockchip,tristate = <VALUE_TRI_DEFAULT>;
                        };
+
+                       uart1_rts_gpio: uart1-rts-gpio {
+                               rockchip,pins = <FUNC_TO_GPIO(UART1BB_RTSN)>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                       };
                };
 
-               gpio1_uart2 {
+               gpio7_uart2 {
                        uart2_xfer: uart2-xfer {
                                rockchip,pins = <UART2DBG_SIN>,
                                                <UART2DBG_SOUT>;
                        /* no rts / cts for uart2 */
                };
 
-               gpio1_uart3 {
+               gpio7_uart3 {
                        uart3_xfer: uart3-xfer {
                                rockchip,pins = <UART3GPS_SIN>,
                                                <UART3GPS_SOUT>;
                        };
                };
 
-               gpio1_i2c0 {
+               gpio5_uart4 {
+                       uart4_xfer: uart4-xfer {
+                               rockchip,pins = <UART4EXP_SIN>,
+                                               <UART4EXP_SOUT>;
+                               rockchip,pull = <VALUE_PULL_DISABLE>;
+                               //rockchip,voltage = <VALUE_VOL_DEFAULT>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                               //rockchip,tristate = <VALUE_TRI_DEFAULT>;
+                       };
+
+                       uart4_cts: uart4-cts {
+                               rockchip,pins = <UART4EXP_CTSN>;
+                               rockchip,pull = <VALUE_PULL_DISABLE>;
+                               //rockchip,voltage = <VALUE_VOL_DEFAULT>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                               //rockchip,tristate = <VALUE_TRI_DEFAULT>;
+                       };
+
+                       uart4_rts: uart4-rts {
+                               rockchip,pins = <UART4EXP_RTSN>;
+                               rockchip,pull = <VALUE_PULL_DISABLE>;
+                               //rockchip,voltage = <VALUE_VOL_DEFAULT>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                               //rockchip,tristate = <VALUE_TRI_DEFAULT>;
+                       };
+               };
+
+               gpio0_i2c0 {
                        i2c0_sda:i2c0-sda {
                                rockchip,pins = <I2C0PMU_SDA>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio1_i2c1 {
+               gpio8_i2c1 {
                        i2c1_sda:i2c1-sda {
                                rockchip,pins = <I2C1SENSOR_SDA>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio1_i2c2 {
+               gpio6_i2c2 {
                        i2c2_sda:i2c2-sda {
                                rockchip,pins = <I2C2AUDIO_SDA>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio1_i2c3 {
+               gpio2_i2c3 {
                        i2c3_sda:i2c3-sda {
                                rockchip,pins = <I2C3CAM_SDA>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio1_i2c4 {
+               gpio7_i2c4 {
                        i2c4_sda:i2c4-sda {
                                rockchip,pins = <I2C4TP_SDA>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio1_i2c5 {
+               gpio7_i2c5 {
                        i2c5_sda:i2c5-sda {
                                rockchip,pins = <I2C5HDMI_SDA>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio1_spi0 {
+               gpio5_spi0 {
                        spi0_txd:spi0-txd {
                                rockchip,pins = <SPI0_TXD>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
 
                };
 
-               gpio1_spi1 {
+               gpio7_spi1 {
                        spi1_txd:spi1-txd {
                                rockchip,pins = <SPI1_TXD>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
 
                };
 
-               gpio1_i2s {
+               gpio6_i2s {
 
                        i2s_mclk:i2s-mclk {
                                rockchip,pins = <I2S_CLK>;
                        
                };
 
-               gpio1_spdif {
+               gpio6_spdif {
                        spdif_tx: spdif-tx {
                                rockchip,pins = <SPDIF_TX>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gpio3_pwm {
+               gpio7_pwm {
                        pwm0_pin:pwm0 {
                                rockchip,pins = <PWM0>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                };
                
 
-               gpio3_sdmmc0 {
+               gpio6_sdmmc0 {
                        sdmmc0_clk: sdmmc0-clk {
                                rockchip,pins = <SDMMC0_CLKOUT>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
                        };
                };
 
-               gps {
+               gpio2_gps {
                        gps_mag:gps-mag {
                                rockchip,pins = <GPS_MAG>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
 
                };
                
-               gmac {
+               gpio4_gmac {
                        mac_clk: mac-clk {
                                rockchip,pins = <MAC_CLK>;
                                rockchip,pull = <VALUE_PULL_DISABLE>;
 
 
 
-
-
-
-               
-
                vol_domain{
                        //default 3.3V
                        lcdc_vcc:lcdc-vcc {
index 41e0bfe0a42f80664a62cd44c785f635abc5656f..71cdede15e5654d1b5666c948dbd7cbf0c03e79b 100755 (executable)
@@ -1112,6 +1112,7 @@ static int rockchip_get_pull(struct rockchip_pin_bank *bank, int pin_num)
                                ? PIN_CONFIG_BIAS_PULL_PIN_DEFAULT
                                : PIN_CONFIG_BIAS_DISABLE;
        case RK3188:
+       case RK3288:
                data = readl_relaxed(reg) >> bit;
                data &= (1 << RK3188_PULL_BITS_PER_PIN) - 1;
 
@@ -1165,6 +1166,7 @@ static int rockchip_set_pull(struct rockchip_pin_bank *bank,
                spin_unlock_irqrestore(&bank->slock, flags);
                break;
        case RK3188:
+       case RK3288:
                spin_lock_irqsave(&bank->slock, flags);
 
                /* enable the write to the equivalent lower bits */
@@ -1219,8 +1221,7 @@ static bool rockchip_pinconf_pull_valid(struct rockchip_pin_ctrl *ctrl,
        case RK3188:
                return (pull != PIN_CONFIG_BIAS_PULL_PIN_DEFAULT);
        case RK3288:
-               return (pull == PIN_CONFIG_BIAS_PULL_PIN_DEFAULT ||
-                                       pull == PIN_CONFIG_BIAS_DISABLE);
+               return (pull != PIN_CONFIG_BIAS_PULL_PIN_DEFAULT);
        }
 
        return false;