164a45c98SPatrice ChotardST Ericsson abx500 pinmux controller 264a45c98SPatrice Chotard 364a45c98SPatrice ChotardRequired properties: 464a45c98SPatrice Chotard- compatible: "stericsson,ab8500-gpio", "stericsson,ab8540-gpio", 564a45c98SPatrice Chotard "stericsson,ab8505-gpio", "stericsson,ab9540-gpio", 664a45c98SPatrice Chotard 764a45c98SPatrice ChotardPlease refer to pinctrl-bindings.txt in this directory for details of the 864a45c98SPatrice Chotardcommon pinctrl bindings used by client devices, including the meaning of the 964a45c98SPatrice Chotardphrase "pin configuration node". 1064a45c98SPatrice Chotard 11*4944d2caSLinus WalleijST Ericsson's pin configuration nodes use the generic pin multiplexing 12*4944d2caSLinus Walleijand pin configuration bindings, see pinctrl-bindings.txt 1364a45c98SPatrice Chotard 1464a45c98SPatrice ChotardExample board file extract: 1564a45c98SPatrice Chotard 1664a45c98SPatrice Chotard&pinctrl_abx500 { 1764a45c98SPatrice Chotard pinctrl-names = "default"; 1864a45c98SPatrice Chotard pinctrl-0 = <&sysclkreq2_default_mode>, <&sysclkreq3_default_mode>, <&gpio3_default_mode>, <&sysclkreq6_default_mode>, <&pwmout1_default_mode>, <&pwmout2_default_mode>, <&pwmout3_default_mode>, <&adi1_default_mode>, <&dmic12_default_mode>, <&dmic34_default_mode>, <&dmic56_default_mode>, <&sysclkreq5_default_mode>, <&batremn_default_mode>, <&service_default_mode>, <&pwrctrl0_default_mode>, <&pwrctrl1_default_mode>, <&pwmextvibra1_default_mode>, <&pwmextvibra2_default_mode>, <&gpio51_default_mode>, <&gpio52_default_mode>, <&gpio53_default_mode>, <&gpio54_default_mode>, <&pdmclkdat_default_mode>; 1964a45c98SPatrice Chotard 2064a45c98SPatrice Chotard sysclkreq2 { 2164a45c98SPatrice Chotard sysclkreq2_default_mode: sysclkreq2_default { 2264a45c98SPatrice Chotard default_mux { 23*4944d2caSLinus Walleij function = "sysclkreq"; 24*4944d2caSLinus Walleij groups = "sysclkreq2_d_1"; 2564a45c98SPatrice Chotard }; 2664a45c98SPatrice Chotard default_cfg { 27*4944d2caSLinus Walleij pins = "GPIO1"; 2864a45c98SPatrice Chotard bias-disable; 2964a45c98SPatrice Chotard }; 3064a45c98SPatrice Chotard }; 3164a45c98SPatrice Chotard }; 3264a45c98SPatrice Chotard sysclkreq3 { 3364a45c98SPatrice Chotard sysclkreq3_default_mode: sysclkreq3_default { 3464a45c98SPatrice Chotard default_mux { 35*4944d2caSLinus Walleij function = "sysclkreq"; 36*4944d2caSLinus Walleij groups = "sysclkreq3_d_1"; 3764a45c98SPatrice Chotard }; 3864a45c98SPatrice Chotard default_cfg { 39*4944d2caSLinus Walleij pins = "GPIO2"; 4064a45c98SPatrice Chotard output-low; 4164a45c98SPatrice Chotard }; 4264a45c98SPatrice Chotard }; 4364a45c98SPatrice Chotard }; 4464a45c98SPatrice Chotard gpio3 { 4564a45c98SPatrice Chotard gpio3_default_mode: gpio3_default { 4664a45c98SPatrice Chotard default_mux { 47*4944d2caSLinus Walleij function = "gpio"; 48*4944d2caSLinus Walleij groups = "gpio3_a_1"; 4964a45c98SPatrice Chotard }; 5064a45c98SPatrice Chotard default_cfg { 51*4944d2caSLinus Walleij pins = "GPIO3"; 5264a45c98SPatrice Chotard output-low; 5364a45c98SPatrice Chotard }; 5464a45c98SPatrice Chotard }; 5564a45c98SPatrice Chotard }; 5664a45c98SPatrice Chotard sysclkreq6 { 5764a45c98SPatrice Chotard sysclkreq6_default_mode: sysclkreq6_default { 5864a45c98SPatrice Chotard default_mux { 59*4944d2caSLinus Walleij function = "sysclkreq"; 60*4944d2caSLinus Walleij groups = "sysclkreq6_d_1"; 6164a45c98SPatrice Chotard }; 6264a45c98SPatrice Chotard default_cfg { 63*4944d2caSLinus Walleij pins = "GPIO4"; 6464a45c98SPatrice Chotard bias-disable; 6564a45c98SPatrice Chotard }; 6664a45c98SPatrice Chotard }; 6764a45c98SPatrice Chotard }; 6864a45c98SPatrice Chotard pwmout1 { 6964a45c98SPatrice Chotard pwmout1_default_mode: pwmout1_default { 7064a45c98SPatrice Chotard default_mux { 71*4944d2caSLinus Walleij function = "pwmout"; 72*4944d2caSLinus Walleij groups = "pwmout1_d_1"; 7364a45c98SPatrice Chotard }; 7464a45c98SPatrice Chotard default_cfg { 75*4944d2caSLinus Walleij pins = "GPIO14"; 7664a45c98SPatrice Chotard output-low; 7764a45c98SPatrice Chotard }; 7864a45c98SPatrice Chotard }; 7964a45c98SPatrice Chotard }; 8064a45c98SPatrice Chotard pwmout2 { 8164a45c98SPatrice Chotard pwmout2_default_mode: pwmout2_default { 8264a45c98SPatrice Chotard pwmout2_default_mux { 83*4944d2caSLinus Walleij function = "pwmout"; 84*4944d2caSLinus Walleij groups = "pwmout2_d_1"; 8564a45c98SPatrice Chotard }; 8664a45c98SPatrice Chotard pwmout2_default_cfg { 87*4944d2caSLinus Walleij pins = "GPIO15"; 8864a45c98SPatrice Chotard output-low; 8964a45c98SPatrice Chotard }; 9064a45c98SPatrice Chotard }; 9164a45c98SPatrice Chotard }; 9264a45c98SPatrice Chotard pwmout3 { 9364a45c98SPatrice Chotard pwmout3_default_mode: pwmout3_default { 9464a45c98SPatrice Chotard pwmout3_default_mux { 95*4944d2caSLinus Walleij function = "pwmout"; 96*4944d2caSLinus Walleij groups = "pwmout3_d_1"; 9764a45c98SPatrice Chotard }; 9864a45c98SPatrice Chotard pwmout3_default_cfg { 99*4944d2caSLinus Walleij pins = "GPIO16"; 10064a45c98SPatrice Chotard output-low; 10164a45c98SPatrice Chotard }; 10264a45c98SPatrice Chotard }; 10364a45c98SPatrice Chotard }; 10464a45c98SPatrice Chotard adi1 { 10564a45c98SPatrice Chotard 10664a45c98SPatrice Chotard adi1_default_mode: adi1_default { 10764a45c98SPatrice Chotard adi1_default_mux { 108*4944d2caSLinus Walleij function = "adi1"; 109*4944d2caSLinus Walleij groups = "adi1_d_1"; 11064a45c98SPatrice Chotard }; 11164a45c98SPatrice Chotard adi1_default_cfg1 { 112*4944d2caSLinus Walleij pins = "GPIO17","GPIO19","GPIO20"; 11364a45c98SPatrice Chotard bias-disable; 11464a45c98SPatrice Chotard }; 11564a45c98SPatrice Chotard adi1_default_cfg2 { 116*4944d2caSLinus Walleij pins = "GPIO18"; 11764a45c98SPatrice Chotard output-low; 11864a45c98SPatrice Chotard }; 11964a45c98SPatrice Chotard }; 12064a45c98SPatrice Chotard }; 12164a45c98SPatrice Chotard dmic12 { 12264a45c98SPatrice Chotard dmic12_default_mode: dmic12_default { 12364a45c98SPatrice Chotard dmic12_default_mux { 124*4944d2caSLinus Walleij function = "dmic"; 125*4944d2caSLinus Walleij groups = "dmic12_d_1"; 12664a45c98SPatrice Chotard }; 12764a45c98SPatrice Chotard dmic12_default_cfg1 { 128*4944d2caSLinus Walleij pins = "GPIO27"; 12964a45c98SPatrice Chotard output-low; 13064a45c98SPatrice Chotard }; 13164a45c98SPatrice Chotard dmic12_default_cfg2 { 132*4944d2caSLinus Walleij pins = "GPIO28"; 13364a45c98SPatrice Chotard bias-disable; 13464a45c98SPatrice Chotard }; 13564a45c98SPatrice Chotard }; 13664a45c98SPatrice Chotard }; 13764a45c98SPatrice Chotard dmic34 { 13864a45c98SPatrice Chotard dmic34_default_mode: dmic34_default { 13964a45c98SPatrice Chotard dmic34_default_mux { 140*4944d2caSLinus Walleij function = "dmic"; 141*4944d2caSLinus Walleij groups = "dmic34_d_1"; 14264a45c98SPatrice Chotard }; 14364a45c98SPatrice Chotard dmic34_default_cfg1 { 144*4944d2caSLinus Walleij pins = "GPIO29"; 14564a45c98SPatrice Chotard output-low; 14664a45c98SPatrice Chotard }; 14764a45c98SPatrice Chotard dmic34_default_cfg2 { 148*4944d2caSLinus Walleij pins = "GPIO30"; 14964a45c98SPatrice Chotard bias-disable;{ 15064a45c98SPatrice Chotard 15164a45c98SPatrice Chotard }; 15264a45c98SPatrice Chotard }; 15364a45c98SPatrice Chotard }; 15464a45c98SPatrice Chotard dmic56 { 15564a45c98SPatrice Chotard dmic56_default_mode: dmic56_default { 15664a45c98SPatrice Chotard dmic56_default_mux { 157*4944d2caSLinus Walleij function = "dmic"; 158*4944d2caSLinus Walleij groups = "dmic56_d_1"; 15964a45c98SPatrice Chotard }; 16064a45c98SPatrice Chotard dmic56_default_cfg1 { 161*4944d2caSLinus Walleij pins = "GPIO31"; 16264a45c98SPatrice Chotard output-low; 16364a45c98SPatrice Chotard }; 16464a45c98SPatrice Chotard dmic56_default_cfg2 { 165*4944d2caSLinus Walleij pins = "GPIO32"; 16664a45c98SPatrice Chotard bias-disable; 16764a45c98SPatrice Chotard }; 16864a45c98SPatrice Chotard }; 16964a45c98SPatrice Chotard }; 17064a45c98SPatrice Chotard sysclkreq5 { 17164a45c98SPatrice Chotard sysclkreq5_default_mode: sysclkreq5_default { 17264a45c98SPatrice Chotard sysclkreq5_default_mux { 173*4944d2caSLinus Walleij function = "sysclkreq"; 174*4944d2caSLinus Walleij groups = "sysclkreq5_d_1"; 17564a45c98SPatrice Chotard }; 17664a45c98SPatrice Chotard sysclkreq5_default_cfg { 177*4944d2caSLinus Walleij pins = "GPIO42"; 17864a45c98SPatrice Chotard output-low; 17964a45c98SPatrice Chotard }; 18064a45c98SPatrice Chotard }; 18164a45c98SPatrice Chotard }; 18264a45c98SPatrice Chotard batremn { 18364a45c98SPatrice Chotard batremn_default_mode: batremn_default { 18464a45c98SPatrice Chotard batremn_default_mux { 185*4944d2caSLinus Walleij function = "batremn"; 186*4944d2caSLinus Walleij groups = "batremn_d_1"; 18764a45c98SPatrice Chotard }; 18864a45c98SPatrice Chotard batremn_default_cfg { 189*4944d2caSLinus Walleij pins = "GPIO43"; 19064a45c98SPatrice Chotard bias-disable; 19164a45c98SPatrice Chotard }; 19264a45c98SPatrice Chotard }; 19364a45c98SPatrice Chotard }; 19464a45c98SPatrice Chotard service { 19564a45c98SPatrice Chotard service_default_mode: service_default { 19664a45c98SPatrice Chotard service_default_mux { 197*4944d2caSLinus Walleij function = "service"; 198*4944d2caSLinus Walleij groups = "service_d_1"; 19964a45c98SPatrice Chotard }; 20064a45c98SPatrice Chotard service_default_cfg { 201*4944d2caSLinus Walleij pins = "GPIO44"; 20264a45c98SPatrice Chotard bias-disable; 20364a45c98SPatrice Chotard }; 20464a45c98SPatrice Chotard }; 20564a45c98SPatrice Chotard }; 20664a45c98SPatrice Chotard pwrctrl0 { 20764a45c98SPatrice Chotard pwrctrl0_default_mux: pwrctrl0_mux { 20864a45c98SPatrice Chotard pwrctrl0_default_mux { 209*4944d2caSLinus Walleij function = "pwrctrl"; 210*4944d2caSLinus Walleij groups = "pwrctrl0_d_1"; 21164a45c98SPatrice Chotard }; 21264a45c98SPatrice Chotard }; 21364a45c98SPatrice Chotard pwrctrl0_default_mode: pwrctrl0_default { 21464a45c98SPatrice Chotard pwrctrl0_default_cfg { 215*4944d2caSLinus Walleij pins = "GPIO45"; 21664a45c98SPatrice Chotard bias-disable; 21764a45c98SPatrice Chotard }; 21864a45c98SPatrice Chotard }; 21964a45c98SPatrice Chotard }; 22064a45c98SPatrice Chotard pwrctrl1 { 22164a45c98SPatrice Chotard pwrctrl1_default_mux: pwrctrl1_mux { 22264a45c98SPatrice Chotard pwrctrl1_default_mux { 223*4944d2caSLinus Walleij function = "pwrctrl"; 224*4944d2caSLinus Walleij groups = "pwrctrl1_d_1"; 22564a45c98SPatrice Chotard }; 22664a45c98SPatrice Chotard }; 22764a45c98SPatrice Chotard pwrctrl1_default_mode: pwrctrl1_default { 22864a45c98SPatrice Chotard pwrctrl1_default_cfg { 229*4944d2caSLinus Walleij pins = "GPIO46"; 23064a45c98SPatrice Chotard bias-disable; 23164a45c98SPatrice Chotard }; 23264a45c98SPatrice Chotard }; 23364a45c98SPatrice Chotard }; 23464a45c98SPatrice Chotard pwmextvibra1 { 23564a45c98SPatrice Chotard pwmextvibra1_default_mode: pwmextvibra1_default { 23664a45c98SPatrice Chotard pwmextvibra1_default_mux { 237*4944d2caSLinus Walleij function = "pwmextvibra"; 238*4944d2caSLinus Walleij groups = "pwmextvibra1_d_1"; 23964a45c98SPatrice Chotard }; 24064a45c98SPatrice Chotard pwmextvibra1_default_cfg { 241*4944d2caSLinus Walleij pins = "GPIO47"; 24264a45c98SPatrice Chotard bias-disable; 24364a45c98SPatrice Chotard }; 24464a45c98SPatrice Chotard }; 24564a45c98SPatrice Chotard }; 24664a45c98SPatrice Chotard pwmextvibra2 { 24764a45c98SPatrice Chotard pwmextvibra2_default_mode: pwmextvibra2_default { 24864a45c98SPatrice Chotard pwmextvibra2_default_mux { 249*4944d2caSLinus Walleij function = "pwmextvibra"; 250*4944d2caSLinus Walleij groups = "pwmextvibra2_d_1"; 25164a45c98SPatrice Chotard }; 25264a45c98SPatrice Chotard pwmextvibra1_default_cfg { 253*4944d2caSLinus Walleij pins = "GPIO48"; 25464a45c98SPatrice Chotard bias-disable; 25564a45c98SPatrice Chotard }; 25664a45c98SPatrice Chotard }; 25764a45c98SPatrice Chotard }; 25864a45c98SPatrice Chotard gpio51 { 25964a45c98SPatrice Chotard gpio51_default_mode: gpio51_default { 26064a45c98SPatrice Chotard gpio51_default_mux { 261*4944d2caSLinus Walleij function = "gpio"; 262*4944d2caSLinus Walleij groups = "gpio51_a_1"; 26364a45c98SPatrice Chotard }; 26464a45c98SPatrice Chotard gpio51_default_cfg { 265*4944d2caSLinus Walleij pins = "GPIO51"; 26664a45c98SPatrice Chotard output-low; 26764a45c98SPatrice Chotard }; 26864a45c98SPatrice Chotard }; 26964a45c98SPatrice Chotard }; 27064a45c98SPatrice Chotard gpio52 { 27164a45c98SPatrice Chotard gpio52_default_mode: gpio52_default { 27264a45c98SPatrice Chotard gpio52_default_mux { 273*4944d2caSLinus Walleij function = "gpio"; 274*4944d2caSLinus Walleij groups = "gpio52_a_1"; 27564a45c98SPatrice Chotard }; 27664a45c98SPatrice Chotard gpio52_default_cfg { 277*4944d2caSLinus Walleij pins = "GPIO52"; 27864a45c98SPatrice Chotard bias-pull-down; 27964a45c98SPatrice Chotard }; 28064a45c98SPatrice Chotard }; 28164a45c98SPatrice Chotard }; 28264a45c98SPatrice Chotard gpio53 { 28364a45c98SPatrice Chotard gpio53_default_mode: gpio53_default { 28464a45c98SPatrice Chotard gpio53_default_mux { 285*4944d2caSLinus Walleij function = "gpio"; 286*4944d2caSLinus Walleij groups = "gpio53_a_1"; 28764a45c98SPatrice Chotard }; 28864a45c98SPatrice Chotard gpio53_default_cfg { 289*4944d2caSLinus Walleij pins = "GPIO53"; 29064a45c98SPatrice Chotard bias-pull-down; 29164a45c98SPatrice Chotard }; 29264a45c98SPatrice Chotard }; 29364a45c98SPatrice Chotard }; 29464a45c98SPatrice Chotard gpio54 { 29564a45c98SPatrice Chotard gpio54_default_mode: gpio54_default { 29664a45c98SPatrice Chotard gpio54_default_mux { 297*4944d2caSLinus Walleij function = "gpio"; 298*4944d2caSLinus Walleij groups = "gpio54_a_1"; 29964a45c98SPatrice Chotard }; 30064a45c98SPatrice Chotard gpio54_default_cfg { 301*4944d2caSLinus Walleij pins = "GPIO54"; 30264a45c98SPatrice Chotard output-low; 30364a45c98SPatrice Chotard }; 30464a45c98SPatrice Chotard }; 30564a45c98SPatrice Chotard }; 30664a45c98SPatrice Chotard pdmclkdat { 30764a45c98SPatrice Chotard pdmclkdat_default_mode: pdmclkdat_default { 30864a45c98SPatrice Chotard pdmclkdat_default_mux { 309*4944d2caSLinus Walleij function = "pdm"; 310*4944d2caSLinus Walleij groups = "pdmclkdat_d_1"; 31164a45c98SPatrice Chotard }; 31264a45c98SPatrice Chotard pdmclkdat_default_cfg { 313*4944d2caSLinus Walleij pins = "GPIO55", "GPIO56"; 31464a45c98SPatrice Chotard bias-disable; 31564a45c98SPatrice Chotard }; 31664a45c98SPatrice Chotard }; 31764a45c98SPatrice Chotard }; 31864a45c98SPatrice Chotard}; 319