Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 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/;
- /include/ "am33xx.dtsi"
- /include/ "am335x-bone-common.dtsi"
- &am33xx_pinmux {
- rstctl_pins: pinmux_rstctl_pins {
- pinctrl-single,pins = <
- /* eMMC_RSTn */
- 0x50 0x17 /* gpmc_a4.gpio1_20, OUTPUT | MODE7 | PULLUP */
- >;
- };
- pruss_pins: pruss_pins {
- pinctrl-single,pins = <
- /* Page 754 of am335x TRM */
- /* GPIOs for LEDs */
- 0x00 0x07 /* conf_gpmc_ad0.gpio1[0], OUTPUT | MODE7 */
- 0x04 0x07 /* conf_gpmc_ad1.gpio1[1], OUTPUT | MODE7 */
- 0x10 0x07 /* conf_gpmc_ad4.gpio1[4], OUTPUT | MODE7 */
- 0x7C 0x07 /* conf_gpmc_csn0.gpio1[29], OUTPUT | MODE7 */
- 0xE0 0x07 /* conf_lcd_vsync.gpio2[22], OUTPUT | MODE7 */
- 0xE4 0x07 /* conf_lcd_hsync.gpio2[23], OUTPUT | MODE7 */
- 0xE8 0x07 /* conf_lcd_pclk.gpio2[24], OUTPUT | MODE7 */
- 0xEC 0x07 /* conf_lcd_ac_bias_en.gpio2[25], OUTPUT | MODE7 */
- /* GPIOs for low-speed a/d */
- 0xB8 0x07 /* conf_lcd_data6.gpio2[12], OUTPUT | MODE7 */
- 0xBC 0x07 /* conf_lcd_data7.gpio2[13], OUTPUT | MODE7 */
- /* GPIOs for gain SPI */
- 0x2C 0x07 /* conf_gpmc_ad11.gpio0[27], OUTPUT | MODE7 */
- 0x8C 0x37 /* conf_gpmc_clk.gpio2[1], INPUT | MODE7 */
- 0x84 0x07 /* conf_gpmc_csn2.gpio1[31], OUTPUT | MODE7 */
- 0x80 0x07 /* conf_gpmc_csn1.gpio1[30], OUTPUT | MODE7 */
- 0x14 0x07 /* conf_gpmc_ad5.gpio1[5], OUTPUT | MODE7 */
- /* PRU Pins */
- 0x30 0x16 /* gpmc_ad12.pr1_pru0_pru_r30[14], OUTPUT_PULLUP | MODE6 */
- 0x34 0x16 /* gpmc_ad13.pr1_pru0_pru_r30[15], OUTPUT_PULLUP | MODE6 */
- 0x38 0x36 /* gpmc_ad14.pr1_pru0_pru_r31[14], INPUT_PULLUP | MODE6 */
- 0x3C 0x36 /* gpmc_ad15.pr1_pru0_pru_r31[15], INPUT_PULLUP | MODE6 */
- 0x190 0x15 /* conf_mcasp0_aclkx.pr1_pru0_pru_r30[0], OUTPUT_PULLUP | MODE5 */
- 0x194 0x15 /* conf_mcasp0_fsx.pr1_pru0_pru_r30[1], OUTPUT_PULLUP | MODE5 */
- 0x198 0x15 /* conf_mcasp0_axr0.pr1_pru0_pru_r30[2], OUTPUT_PULLUP | MODE5 */
- 0x19C 0x35 /* conf_mcasp0_ahclkr.pr1_pru0_pru_r31[3], OUTPUT_PULLUP | MODE5 */
- 0x1A4 0x15 /* conf_mcasp0_fsr.pr1_pru0_pru_r30[5], OUTPUT_PULLUP | MODE5 */
- 0x1AC 0x15 /* conf_mcasp0_ahclkx.pr1_pru0_pru_r30[7], OUTPUT_PULLUP | MODE5 */
- >;
- };
- spi0_pins_s0: spi0_pins_s0 {
- pinctrl-single,pins = <
- 0x150 0x30 /* spi0_sclk, INPUT_PULLUP | MODE0 */
- 0x154 0x30 /* spi0_d0, INPUT_PULLUP | MODE0 */
- 0x158 0x10 /* spi0_d1, OUTPUT_PULLUP | MODE0 */
- 0x15c 0x10 /* spi0_cs0, OUTPUT_PULLUP | MODE0 */
- 0x160 0x10 /* spi0_cs1, OUTPUT_PULLUP | MODE0 */
- >;
- };
- spi1_pins_s0: spi1_pins_s0 {
- pinctrl-single,pins = <
- 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 */
- 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */
- 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
- 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
- >;
- };
- };
- &ldo3_reg {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-always-on;
- };
- &rstctl {
- status = "okay";
- compatible = "gpio-rctrl";
- pinctrl-names = "default";
- pinctrl-0 = <&rstctl_pins>;
- #reset-cells = <2>;
- gpios = <&gpio2 20 0x00>;
- gpio-names = "eMMC_RSTn";
- };
- &mmc1 {
- vmmc-supply = <&vmmcsd_fixed>;
- };
- &mmc2 {
- vmmc-supply = <&vmmcsd_fixed>;
- bus-width = <8>;
- ti,non-removable;
- status = "okay";
- reset = <&rstctl 0 0>;
- reset-names = "eMMC_RSTn-CONSUMER";
- };
- &cpu {
- /*
- * To consider voltage drop between PMIC and SoC,
- * tolerance value is reduced to 2% from 4% and
- * voltage value is increased as a precaution.
- */
- operating-points = <
- /* kHz uV */
- 1000000 1350000
- 800000 1300000
- 600000 1112000
- 300000 969000
- >;
- };
- &spi0 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&spi0_pins_s0>;
- spidev0: spidev@0 {
- compatible = "linux,spidev";
- reg = <0>;
- spi-max-frequency = <48000000>;
- };
- };
- &spi1 {
- status = "disabled";
- pinctrl-names = "default";
- pinctrl-0 = <&spi1_pins_s0>;
- spidev1: spidev@0 {
- compatible = "linux,spidev";
- reg = <0>;
- spi-max-frequency = <48000000>;
- };
- };
- &pruss {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pruss_pins>;
- /*
- sage_sampler: sage_sampler@0 {
- compatible = "sd,sage_sampler";
- };
- */
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement