Skip to content
Snippets Groups Projects
Commit 25938565 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added a dts file for the darthvader robot.

parent ecaaeea3
No related branches found
No related tags found
No related merge requests found
/*
* 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.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "BB-BONE-AUDI-02";
version = "00A0", "A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.31", /* mcasp0: mcasp0_aclkx */
"P9.29", /* mcasp0: mcasp0_fsx */
"P9.28", /* mcasp0: mcasp0_axr2 */
"P9.25", /* mcasp0: mcasp0_ahclkx */
"P9.27", /* mcasp0: mcasp0_fsr */
"P9.30", /* mcasp0: mcasp0_axr0 */
"P9.42", /* mcasp0: mcasp0_aclkr */
/* the pin header uses */
"P9.18", /* i2c1_sda */
"P9.17", /* i2c1_scl */
/* uart 4 pins */
"P9.13", /* uart4_txd */
"P9.11", /* uart4_rxd */
/* the hardware ip uses */
"i2c1",
"uart4",
"mcasp0";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
bone_audio_cape_audio_pins: pinmux_bone_audio_cape_audio_pins {
pinctrl-single,pins = <
0x190 0x20 /* mcasp0_aclkr.mcasp0_aclkx, MODE0 | OUTPUT_PULLDOWN */
0x194 0x20 /* mcasp0_fsx, MODE0 | OUTPUT */
0x19c 0x22 /* mcasp0_axr2, MODE2 | OUTPUT */
0x1ac 0x00 /* mcasp0_ahclkx, MODE0 | INPUT */
0x1a4 0x20 /* mcasp0_fsr, MODE0 | OUPUT */
0x198 0x20 /* mcasp0_axr0, MODE0 | OUTPUT */
0x1a0 0x20 /* mcasp0_aclkr, MODE0 | OUTPUT */
>;
};
bb_i2c1_pins: pinmux_bb_i2c1_pins {
pinctrl-single,pins = <
0x158 0x72 /* spi0_d1.i2c1_sda, SLEWCTRL_SLOW | INPUT_PULLUP | MODE2 */
0x15c 0x72 /* spi0_cs0.i2c1_scl, SLEWCTRL_SLOW | INPUT_PULLUP | MODE2 */
>;
};
bb_uart4_pins: pinmux_bb_uart4_pins {
pinctrl-single,pins = <
0x070 0x26 /* gpmc_wait0.uart4_rxd | MODE6 */
0x074 0x06 /* gpmc_wpn.uart4_txd | MODE6 */
>;
};
};
};
fragment@1 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <100000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&bb_i2c1_pins>;
tlv320aic23: tlv320aic23@1A {
compatible = "ti,tlv320aic23";
reg = <0x1A>;
status = "okay";
};
};
};
fragment@2 {
target = <&mcasp0>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&bone_audio_cape_audio_pins>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
num-serializer = <16>;
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
1 0 2 0
0 0 0 0
0 0 0 0
0 0 0 0
>;
tx-num-evt = <1>;
rx-num-evt = <1>;
};
};
fragment@3 {
target = <&ocp>;
__overlay__ {
sound {
compatible = "ti,bbb_bioloid_cape";
ti,model = "DA830 EVM";
ti,audio-codec = <&tlv320aic23>;
ti,mcasp-controller = <&mcasp0>;
ti,codec-clock-rate = <12000000>;
ti,audio-routing =
"Headphone Jack", "LHPOUT",
"Headphone Jack", "RHPOUT",
"LLINEIN", "Line In",
"RLINEIN", "Line In",
"Line Out", "LOUT",
"Line Out", "ROUT";
};
};
};
fragment@4 {
target = <&uart5>; /* really uart4 */
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&bb_uart4_pins>;
};
};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment