From: luowei Date: Tue, 18 Mar 2014 07:13:18 +0000 (+0800) Subject: pinctrl:modify rk3288 dts function name X-Git-Tag: firefly_0821_release~6032 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d4cd11715bf2b0f972fd6c91b92c00b506c9ba5e;p=firefly-linux-kernel-4.4.55.git pinctrl:modify rk3288 dts function name --- diff --git a/arch/arm/boot/dts/rk3288-pinctrl.dtsi b/arch/arm/boot/dts/rk3288-pinctrl.dtsi index 2e9cb6539cba..b407870ecb60 100755 --- a/arch/arm/boot/dts/rk3288-pinctrl.dtsi +++ b/arch/arm/boot/dts/rk3288-pinctrl.dtsi @@ -159,7 +159,7 @@ bias-disable; }; - gpio1_uart0 { + gpio4_uart0 { uart0_xfer: uart0-xfer { rockchip,pins = , ; @@ -184,9 +184,14 @@ rockchip,drive = ; //rockchip,tristate = ; }; + + uart0_rts_gpio: uart0-rts-gpio { + rockchip,pins = ; + rockchip,drive = ; + }; }; - gpio1_uart1 { + gpio5_uart1 { uart1_xfer: uart1-xfer { rockchip,pins = , ; @@ -211,9 +216,14 @@ rockchip,drive = ; //rockchip,tristate = ; }; + + uart1_rts_gpio: uart1-rts-gpio { + rockchip,pins = ; + rockchip,drive = ; + }; }; - gpio1_uart2 { + gpio7_uart2 { uart2_xfer: uart2-xfer { rockchip,pins = , ; @@ -225,7 +235,7 @@ /* no rts / cts for uart2 */ }; - gpio1_uart3 { + gpio7_uart3 { uart3_xfer: uart3-xfer { rockchip,pins = , ; @@ -252,7 +262,34 @@ }; }; - gpio1_i2c0 { + gpio5_uart4 { + uart4_xfer: uart4-xfer { + rockchip,pins = , + ; + rockchip,pull = ; + //rockchip,voltage = ; + rockchip,drive = ; + //rockchip,tristate = ; + }; + + uart4_cts: uart4-cts { + rockchip,pins = ; + rockchip,pull = ; + //rockchip,voltage = ; + rockchip,drive = ; + //rockchip,tristate = ; + }; + + uart4_rts: uart4-rts { + rockchip,pins = ; + rockchip,pull = ; + //rockchip,voltage = ; + rockchip,drive = ; + //rockchip,tristate = ; + }; + }; + + gpio0_i2c0 { i2c0_sda:i2c0-sda { rockchip,pins = ; rockchip,pull = ; @@ -275,7 +312,7 @@ }; }; - gpio1_i2c1 { + gpio8_i2c1 { i2c1_sda:i2c1-sda { rockchip,pins = ; rockchip,pull = ; @@ -298,7 +335,7 @@ }; }; - gpio1_i2c2 { + gpio6_i2c2 { i2c2_sda:i2c2-sda { rockchip,pins = ; rockchip,pull = ; @@ -321,7 +358,7 @@ }; }; - gpio1_i2c3 { + gpio2_i2c3 { i2c3_sda:i2c3-sda { rockchip,pins = ; rockchip,pull = ; @@ -344,7 +381,7 @@ }; }; - gpio1_i2c4 { + gpio7_i2c4 { i2c4_sda:i2c4-sda { rockchip,pins = ; rockchip,pull = ; @@ -367,7 +404,7 @@ }; }; - gpio1_i2c5 { + gpio7_i2c5 { i2c5_sda:i2c5-sda { rockchip,pins = ; rockchip,pull = ; @@ -390,7 +427,7 @@ }; }; - gpio1_spi0 { + gpio5_spi0 { spi0_txd:spi0-txd { rockchip,pins = ; rockchip,pull = ; @@ -433,7 +470,7 @@ }; - gpio1_spi1 { + gpio7_spi1 { spi1_txd:spi1-txd { rockchip,pins = ; rockchip,pull = ; @@ -468,7 +505,7 @@ }; - gpio1_i2s { + gpio6_i2s { i2s_mclk:i2s-mclk { rockchip,pins = ; @@ -590,7 +627,7 @@ }; - gpio1_spdif { + gpio6_spdif { spdif_tx: spdif-tx { rockchip,pins = ; rockchip,pull = ; @@ -601,7 +638,7 @@ }; }; - gpio3_pwm { + gpio7_pwm { pwm0_pin:pwm0 { rockchip,pins = ; rockchip,pull = ; @@ -695,7 +732,7 @@ }; - gpio3_sdmmc0 { + gpio6_sdmmc0 { sdmmc0_clk: sdmmc0-clk { rockchip,pins = ; rockchip,pull = ; @@ -741,7 +778,7 @@ }; }; - gps { + gpio2_gps { gps_mag:gps-mag { rockchip,pins = ; rockchip,pull = ; @@ -772,7 +809,7 @@ }; - gmac { + gpio4_gmac { mac_clk: mac-clk { rockchip,pins = ; rockchip,pull = ; @@ -810,11 +847,6 @@ - - - - - vol_domain{ //default 3.3V lcdc_vcc:lcdc-vcc { diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 41e0bfe0a42f..71cdede15e56 100755 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -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;