pinctrl: msm: GP clock for pinctrl-apq8064 binding
Subsystems (6)
PATCH 1/2 pinctrl: msm: GP clock for pinctrl-apq8064 binding
DT binding documentation for qcom,apq8064-pinctrl driver for general purpose (GP) clocks.
--- Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt +2 -1
@@ -46,7 +46,8 @@ Valid values for pins are: gpio0-gpio89 Valid values for function are: - cam_mclk, codec_mic_i2s, codec_spkr_i2s, gpio, gsbi1, gsbi2, gsbi3, gsbi4, + cam_mclk, codec_mic_i2s, codec_spkr_i2s, gp_clk_0a, gp_clk_0b, gp_clk_1a, + gp_clk_1b, gp_clk_2a, gp_clk_2b, gpio, gsbi1, gsbi2, gsbi3, gsbi4, gsbi4_cam_i2c, gsbi5, gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, gsbi6_spi_cs1, gsbi6_spi_cs2, gsbi6_spi_cs3, gsbi7, gsbi7_spi_cs1, gsbi7_spi_cs2, gsbi7_spi_cs3, gsbi_cam_i2c, hdmi, mi2s, riva_bt, riva_fm,
Signature · 1 line
2.7.4
PATCH 2/2 pinctrl: qcom: General Purpose clocks for apq8064
Add support for general purpose (GP) clocks
for apq8064
---
v1:
* only gp_clk_1b tested in nexus7 anx7808 slimport.
--- drivers/pinctrl/qcom/pinctrl-apq8064.c | 37 ++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-)
drivers/pinctrl/qcom/pinctrl-apq8064.c +31 -6
@@ -295,6 +295,12 @@ enum apq8064_functions { APQ_MUX_cam_mclk, APQ_MUX_codec_mic_i2s, APQ_MUX_codec_spkr_i2s, + APQ_MUX_gp_clk_0a, + APQ_MUX_gp_clk_0b, + APQ_MUX_gp_clk_1a, + APQ_MUX_gp_clk_1b, + APQ_MUX_gp_clk_2a, + APQ_MUX_gp_clk_2b, APQ_MUX_gpio, APQ_MUX_gsbi1, APQ_MUX_gsbi2,
@@ -354,6 +360,24 @@ static const char * const gpio_groups[] = {"gpio78" ,"gpio79" ,"gpio80" ,"gpio81" ,"gpio82" ,"gpio83" ,"gpio84" ,"gpio85" ,"gpio86" ,"gpio87" ,"gpio88" ,"gpio89" }; +static const char *const gp_clk_0a_groups[] = { +"gpio3" +}; +static const char *const gp_clk_0b_groups[] = { +"gpio34" +}; +static const char *const gp_clk_1a_groups[] = { +"gpio4" +}; +static const char *const gp_clk_1b_groups[] = { +"gpio50" +}; +static const char *const gp_clk_2a_groups[] = { +"gpio32" +}; +static const char *const gp_clk_2b_groups[] = { +"gpio25" +};static const char *const ps_hold_groups[] = {"gpio78" };
@@ -453,6 +477,7 @@ static const struct msm_function apq8064_functions[] = {FUNCTION (codec_mic_i2s),FUNCTION (codec_spkr_i2s),FUNCTION (gpio), +FUNCTION (gp_clk_1b),FUNCTION (gsbi1),FUNCTION (gsbi2), FUNCTION(gsbi3),
@@ -490,8 +515,8 @@ static const struct msm_pingroup apq8064_groups[] = {PINGROUP (0 ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (1 ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (2 ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), -PINGROUP (3 ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), -PINGROUP (4 ,NA ,NA , cam_mclk,NA ,NA ,NA ,NA ,NA ,NA ,NA ), +PINGROUP (3 ,NA , gp_clk_0a,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), +PINGROUP (4 ,NA ,NA , cam_mclk, gp_clk_1a,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (5 ,NA , cam_mclk,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (6 , gsbi3,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), PINGROUP(7, gsbi3, NA, NA, NA, NA, NA, NA, NA, NA, NA),
@@ -512,16 +537,16 @@ static const struct msm_pingroup apq8064_groups[] = {PINGROUP (22 , gsbi2,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (23 , gsbi2,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (24 , gsbi2,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), -PINGROUP (25 , gsbi2,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), +PINGROUP (25 , gsbi2, gp_clk_2b,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (26 ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (27 , mi2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (28 , mi2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (29 , mi2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (30 , mi2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (31 , mi2s,NA , gsbi5_spi_cs2, gsbi6_spi_cs2, gsbi7_spi_cs2,NA ,NA ,NA ,NA ,NA ), -PINGROUP (32 , mi2s,NA ,NA ,NA ,NA , gsbi5_spi_cs3, gsbi6_spi_cs3, gsbi7_spi_cs3,NA ,NA ), +PINGROUP (32 , mi2s, gp_clk_2a,NA ,NA ,NA , gsbi5_spi_cs3, gsbi6_spi_cs3, gsbi7_spi_cs3,NA ,NA ),PINGROUP (33 , mi2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), -PINGROUP (34 , codec_mic_i2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), +PINGROUP (34 , codec_mic_i2s, gp_clk_0b,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (35 , codec_mic_i2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (36 , codec_mic_i2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), PINGROUP(37, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
@@ -537,7 +562,7 @@ static const struct msm_pingroup apq8064_groups[] = {PINGROUP (47 , spkr_i2s, gsbi5_spi_cs1, gsbi6_spi_cs1, gsbi7_spi_cs1,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (48 , spkr_i2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (49 , spkr_i2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), -PINGROUP (50 , spkr_i2s,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), +PINGROUP (50 , spkr_i2s, gp_clk_1b,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (51 ,NA , gsbi5,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ),PINGROUP (52 ,NA , gsbi5,NA ,NA ,NA ,NA ,NA ,NA ,NA ,NA ), PINGROUP(53, NA, gsbi5, NA, NA, NA, NA, NA, NA, NA, NA),
Signature · 1 line
2.7.4
Re: [PATCH 2/2] pinctrl: qcom: General Purpose clocks for apq8064
Quoted 13 lines · Vinay Simha BN
Add support for general purpose (GP) clocks
for apq8064Signed-off-by Vinay Simha BN <[email protected]>---
v1:
* onlygp_clk_1btested in nexus7 anx7808 slimport.--- drivers/pinctrl/qcom/pinctrl-apq8064.c | 37 ++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-)drivers/pinctrl/qcom/pinctrl-apq8064.c +0
-0
[..]
drivers/pinctrl/qcom/pinctrl-apq8064.c static const struct msm_function apq8064_functions[] = { · line 480
Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-apq8064.c +1
-0@@ -453,6 +477,7 @@ static const struct msm_function apq8064_functions[] = {FUNCTION (codec_mic_i2s),FUNCTION (codec_spkr_i2s),FUNCTION (gpio), + FUNCTION(gp_clk_1b),
You missed the others variants here.
Other than that this looks good. So please add the other 5 functions and you can resend this with my Acked-by.
PS. For small incremental patches like this, feel free to send the DT binding updates in the same patch as the driver changes.
Regards,
Bjorn
Quoted 7 lines · Vinay Simha BN
DT binding documentation for qcom,apq8064-pinctrl driver for general purpose (GP) clocks.
Signed-off-by Vinay Simha BN <[email protected]>--- Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 4 lines · Vinay Simha BN
DT binding documentation for qcom,apq8064-pinctrl driver for general purpose (GP) clocks.
Signed-off-by Vinay Simha BN <[email protected]>
Patch applied with Rob's ACK.
I don't think Björn will mind.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html