Permalink
Browse files

sync: am335x-peripheral/pinmux

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
RobertCNelson committed Mar 1, 2017
1 parent 07985d9 commit 81167ca9435231ff3a567627bf067f10ded5db7c
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/* standard */
&gpio1 {
emmc_rst {
gpio-hog;
gpios = <20 0>;
output-high;
line-name = "EMMC ResetN";
};
};
@@ -0,0 +1,45 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include "am335x-peripheral-can1.dtsi"
/* cape universal */
/*
*&ocp {
* P9_24_pinmux {
* mode = "can";
* };
* P9_26_pinmux {
* mode = "can";
* };
*};
*
*&dcan1 {
* pinctrl-0 = <>;
*};
*
*/
/* standard */
&am33xx_pinmux {
dcan1_pins: pinmux_dcan1_pins {
pinctrl-single,pins = <
/* P9_26: uart1_rxd.d_can1_tx */
BONE_P9_26 (PIN_OUTPUT_PULLUP | MUX_MODE2)
/* P9_24: uart1_txd.d_can1_rx */
BONE_P9_24 (PIN_INPUT_PULLUP | MUX_MODE2)
>;
};
};
&dcan1 {
pinctrl-0 = <&dcan1_pins>;
};
@@ -0,0 +1,88 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/* Testing */
/* lsblk */
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include "am335x-peripheral-emmc.dtsi"
/* cape universal */
/*
*&ocp {
* P8_21_pinmux {
* state = "disabled";
* };
* P8_20_pinmux {
* state = "disabled";
* };
* P8_25_pinmux {
* state = "disabled";
* };
* P8_24_pinmux {
* state = "disabled";
* };
* P8_05_pinmux {
* state = "disabled";
* };
* P8_06_pinmux {
* state = "disabled";
* };
* P8_23_pinmux {
* state = "disabled";
* };
* P8_22_pinmux {
* state = "disabled";
* };
* P8_03_pinmux {
* state = "disabled";
* };
* P8_04_pinmux {
* state = "disabled";
* };
*};
*
*&mmc2 {
* pinctrl-0 = <>;
*};
*
*/
/* standard */
&am33xx_pinmux {
emmc_pins: pinmux_emmc_pins {
pinctrl-single,pins = <
/* P8_21: gpmc_csn1.mmc1_clk */
BONE_P8_21 (PIN_INPUT_PULLUP | MUX_MODE2)
/* P8_20: gpmc_csn2.mmc1_cmd */
BONE_P8_20 (PIN_INPUT_PULLUP | MUX_MODE2)
/* P8_25: gpmc_ad0.mmc1_dat0 */
BONE_P8_25 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_24: gpmc_ad1.mmc1_dat1 */
BONE_P8_24 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_05: gpmc_ad2.mmc1_dat2 */
BONE_P8_05 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_06: gpmc_ad3.mmc1_dat3 */
BONE_P8_06 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_23: gpmc_ad4.mmc1_dat4 */
BONE_P8_23 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_22: gpmc_ad5.mmc1_dat5 */
BONE_P8_22 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_03: gpmc_ad6.mmc1_dat6 */
BONE_P8_03 (PIN_INPUT_PULLUP | MUX_MODE1)
/* P8_04: gpmc_ad7.mmc1_dat7 */
BONE_P8_04 (PIN_INPUT_PULLUP | MUX_MODE1)
>;
};
};
&mmc2 {
pinctrl-0 = <&emmc_pins>;
};
@@ -0,0 +1,45 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include "am335x-peripheral-i2c2.dtsi"
/* cape universal */
/*
*&ocp {
* P9_19_pinmux {
* mode = "i2c";
* };
* P9_20_pinmux {
* mode = "i2c";
* };
*};
*
*&dcan0 {
* pinctrl-0 = <>;
*};
*
*/
/* standard */
&am33xx_pinmux {
i2c2_pins: pinmux_i2c2_pins {
pinctrl-single,pins = <
/* P9_20: uart1_ctsn.i2c2_sda */
BONE_P9_20 (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3)
/* P9_19: uart1_rtsn.i2c2_scl */
BONE_P9_19 (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3)
>;
};
};
&i2c2 {
pinctrl-0 = <&i2c2_pins>;
};
@@ -0,0 +1,120 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include "am335x-peripheral-nxp-hdmi.dtsi"
/* cape universal */
/*
*&ocp {
* P8_27_pinmux {
* state = "disabled";
* };
* P8_28_pinmux {
* state = "disabled";
* };
* P8_29_pinmux {
* state = "disabled";
* };
* P8_30_pinmux {
* state = "disabled";
* };
* P8_31_pinmux {
* state = "disabled";
* };
* P8_32_pinmux {
* state = "disabled";
* };
* P8_33_pinmux {
* state = "disabled";
* };
* P8_34_pinmux {
* state = "disabled";
* };
* P8_35_pinmux {
* state = "disabled";
* };
* P8_36_pinmux {
* state = "disabled";
* };
* P8_37_pinmux {
* state = "disabled";
* };
* P8_38_pinmux {
* state = "disabled";
* };
* P8_39_pinmux {
* state = "disabled";
* };
* P8_40_pinmux {
* state = "disabled";
* };
* P8_41_pinmux {
* state = "disabled";
* };
* P8_42_pinmux {
* state = "disabled";
* };
* P8_43_pinmux {
* state = "disabled";
* };
* P8_44_pinmux {
* state = "disabled";
* };
* P8_45_pinmux {
* state = "disabled";
* };
* P8_46_pinmux {
* state = "disabled";
* };
*};
*/
/* standard */
&am33xx_pinmux {
nxp_hdmi_pins: pinmux_nxp_hdmi_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */
AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
AM33XX_IOPAD(0x8e0, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_vsync.lcd_vsync */
AM33XX_IOPAD(0x8e4, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_hsync.lcd_hsync */
AM33XX_IOPAD(0x8e8, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_pclk.lcd_pclk */
AM33XX_IOPAD(0x8ec, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
>;
};
nxp_hdmi_off_pins: nxp_hdmi_off_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */
>;
};
};
&i2c0 {
tda19988 {
pinctrl-names = "default", "off";
pinctrl-0 = <&nxp_hdmi_bonelt_pins>;
pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>;
};
};
@@ -0,0 +1,51 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include "am335x-peripheral-spi0.dtsi"
/* cape universal */
/*
*&ocp {
* P9_17_pinmux {
* status = "disabled";
* };
* P9_18_pinmux {
* status = "disabled";
* };
* P9_21_pinmux {
* status = "disabled";
* };
* P9_22_pinmux {
* status = "disabled";
* };
*};
*
*&spi0 {
* pinctrl-0 = <>;
*};
*
*/
/* standard */
&am33xx_pinmux {
spi0_pins: pinmux_spi0_pins {
pinctrl-single,pins = <
0x150 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
0x154 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
0x158 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
0x15c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
>;
};
};
&spi0 {
pinctrl-0 = <&spi0_pins>;
};
Oops, something went wrong.

0 comments on commit 81167ca

Please sign in to comment.