2014-02-04 06:45:21 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Linaro Ltd.
|
|
|
|
*
|
|
|
|
* The code contained herein is licensed under the GNU General Public
|
|
|
|
* License. You may obtain a copy of the GNU General Public License
|
|
|
|
* Version 2 or later at the following locations:
|
|
|
|
*
|
|
|
|
* http://www.opensource.org/licenses/gpl-license.html
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
soc {
|
|
|
|
prcmu@80157000 {
|
|
|
|
ab8505 {
|
|
|
|
ab8505-gpio {
|
|
|
|
/* Hog a few default settings */
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&gpio2_default_mode>,
|
|
|
|
<&gpio10_default_mode>,
|
|
|
|
<&gpio11_default_mode>,
|
|
|
|
<&gpio13_default_mode>,
|
|
|
|
<&gpio34_default_mode>,
|
|
|
|
<&gpio50_default_mode>,
|
|
|
|
<&pwm_default_mode>,
|
|
|
|
<&adi2_default_mode>,
|
|
|
|
<&modsclsda_default_mode>,
|
|
|
|
<&resethw_default_mode>,
|
|
|
|
<&service_default_mode>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Pins 2, 10, 11, 13, 34 and 50
|
|
|
|
* are muxed in as GPIO, and configured as INPUT PULL DOWN
|
|
|
|
*/
|
|
|
|
gpio2 {
|
|
|
|
gpio2_default_mode: gpio2_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio2_a_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO2_R5";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gpio10 {
|
|
|
|
gpio10_default_mode: gpio10_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio10_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO10_B16";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gpio11 {
|
|
|
|
gpio11_default_mode: gpio11_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio11_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO11_B17";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gpio13 {
|
|
|
|
gpio13_default_mode: gpio13_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio13_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO13_D17";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gpio34 {
|
|
|
|
gpio34_default_mode: gpio34_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio34_a_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO34_H14";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gpio50 {
|
|
|
|
gpio50_default_mode: gpio50_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio50_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO50_L4";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/* This sets up the PWM pin 14 */
|
|
|
|
pwm {
|
|
|
|
pwm_default_mode: pwm_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "pwmout";
|
|
|
|
groups = "pwmout1_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO14_C16";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/* This sets up audio interface 2 */
|
|
|
|
adi2 {
|
|
|
|
adi2_default_mode: adi2_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "adi2";
|
|
|
|
groups = "adi2_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO17_P2",
|
2014-02-04 06:45:21 +08:00
|
|
|
"GPIO18_N3",
|
|
|
|
"GPIO19_T1",
|
|
|
|
"GPIO20_P3";
|
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/* Modem I2C setup (SCL and SDA pins) */
|
|
|
|
modsclsda {
|
|
|
|
modsclsda_default_mode: modsclsda_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "modsclsda";
|
|
|
|
groups = "modsclsda_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO40_J15",
|
2014-02-04 06:45:21 +08:00
|
|
|
"GPIO41_J14";
|
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
resethw {
|
|
|
|
resethw_default_mode: resethw_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "resethw";
|
|
|
|
groups = "resethw_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO52_D16";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
service {
|
|
|
|
service_default_mode: service_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "service";
|
|
|
|
groups = "service_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO53_D15";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/*
|
|
|
|
* Clock output pins associated with regulators.
|
|
|
|
*/
|
|
|
|
sysclkreq2 {
|
|
|
|
sysclkreq2_default_mode: sysclkreq2_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "sysclkreq";
|
|
|
|
groups = "sysclkreq2_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO1_N4";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
sysclkreq2_sleep_mode: sysclkreq2_sleep {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio1_a_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO1_N4";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
sysclkreq4 {
|
|
|
|
sysclkreq4_default_mode: sysclkreq4_default {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "sysclkreq";
|
|
|
|
groups = "sysclkreq4_d_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO3_P5";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
sysclkreq4_sleep_mode: sysclkreq4_sleep {
|
|
|
|
default_mux {
|
2014-09-30 18:10:11 +08:00
|
|
|
function = "gpio";
|
|
|
|
groups = "gpio3_a_1";
|
2014-02-04 06:45:21 +08:00
|
|
|
};
|
|
|
|
default_cfg {
|
2014-09-30 18:19:40 +08:00
|
|
|
pins = "GPIO3_P5";
|
2014-02-04 06:45:21 +08:00
|
|
|
input-enable;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|