/* * 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-universal-pins.dtsi" #include / { model = "TI AM335x BeagleBone Blue"; compatible = "ti,am335x-bone-blue", "ti,am33xx"; cpus { cpu@0 { cpu0-supply = <&dcdc2_reg>; }; }; memory@80000000 { device_type = "memory"; reg = <0x80000000 0x20000000>; /* 512 MB */ }; chosen { stdout-path = &uart0; }; leds { pinctrl-names = "default"; pinctrl-0 = <&user_leds_s0>; compatible = "gpio-leds"; usr_0_led { label = "beaglebone:green:usr0"; gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; default-state = "off"; }; usr_1_led { label = "beaglebone:green:usr1"; gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; default-state = "off"; }; usr_2_led { label = "beaglebone:green:usr2"; gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; linux,default-trigger = "cpu0"; default-state = "off"; }; usr_3_led { label = "beaglebone:green:usr3"; gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc1"; default-state = "off"; }; wifi_led { label = "wifi"; gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; default-state = "off"; linux,default-trigger = "phy0assoc"; }; red_led { label = "red"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; default-state = "off"; }; green_led { label = "green"; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; default-state = "off"; }; batt_1_led { label = "bat25"; gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; default-state = "off"; }; batt_2_led { label = "bat50"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; default-state = "off"; }; batt_3_led { label = "bat75"; gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>; default-state = "off"; }; batt_4_led { label = "bat100"; gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; default-state = "off"; }; }; vmmcsd_fixed: fixedregulator0 { compatible = "regulator-fixed"; regulator-name = "vmmcsd_fixed"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; wlan_en_reg: fixedregulator@2 { compatible = "regulator-fixed"; regulator-name = "wlan-en-regulator"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; startup-delay-us= <70000>; /* WL_EN */ gpio = <&gpio3 9 0>; enable-active-high; }; bt_en { pinctrl-names = "default"; pinctrl-0 = <&bt_pins>; compatible = "gpio-leds"; wl18xx_bt_en { label = "wl18xx_bt_en"; gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; default-state = "off"; }; }; }; &sgx { status = "okay"; }; &cpu0_opp_table { /* * All PG 2.0 silicon may not support 1GHz but some of the early * BeagleBone Blacks have PG 2.0 silicon which is guaranteed * to support 1GHz OPP so enable it for PG 2.0 on this board. */ oppnitro-1000000000 { opp-supported-hw = <0x06 0x0100>; }; }; &am33xx_pinmux { /*************************************************************************** * Static Pinmux ***************************************************************************/ mux_helper_pins: pins { pinctrl-single,pins = < /* GPIO Inputs */ 0x09c 0x37 /*P8.9 Pause BUTTON, input pullup*/ 0x098 0x37 /*P8.10 MODE BUTTON input pullup*/ 0x1AC 0x37 /*P9.25 MPU-9150 INTERRUPT IN*/ /* Motor Control GPIO Out*/ 0x088 ( PIN_OUTPUT | MUX_MODE7 ) /* (T13) gpmc_csn3.gpio2[0] - MDIR_1A different from cape! */ 0x074 ( PIN_OUTPUT | MUX_MODE7 ) /* (U17) gpmc_wpn.gpio0[31] - P9.13, MDIR_1B */ 0x040 ( PIN_OUTPUT | MUX_MODE7 ) /* (R13) gpmc_a0.gpio1[16] - P9.15, MDIR_2A */ 0x0D8 ( PIN_OUTPUT | MUX_MODE7 ) /* (V4) lcd_data14.gpio0[10] - P8.31, MDIR_2B different from cape! */ 0x0AC ( PIN_OUTPUT | MUX_MODE7 ) /* (R4) lcd_data3.gpio2[9] - P8.44, MDIR_3A */ 0x0A8 ( PIN_OUTPUT | MUX_MODE7 ) /* (R3) lcd_data2.gpio2[8] - P8.43, MDIR_3B */ 0x0A0 ( PIN_OUTPUT | MUX_MODE7 ) /* (R1) lcd_data0.gpio2[6] - P8.45, MDIR_4A */ 0x0A4 ( PIN_OUTPUT | MUX_MODE7 ) /* (R2) lcd_data1.gpio2[7] - P8.46, MDIR_4B */ 0x1B4 ( PIN_OUTPUT | MUX_MODE7 ) /* (D14) xdma_event_intr1.gpio0[20] - P9.41, MOT_STBY */ /* PRU encoder input */ 0x038 0x36 /* P8_16,PRU0_r31_16,MODE6 */ /* PRU Servo output */ 0x0e0 0x05 /*pru1_pru_r30_8, MODE5*/ 0x0e8 0x05 /*pru1_pru_r30_10, MODE5 */ 0x0e4 0x05 /*pr1_pru1_pru_r30_9, MODE5 */ 0x0ec 0x05 /*pru1_pru_r30_11, MODE5 */ 0x0b8 0x05 /*pru1_pru_r30_6, MODE5 */ 0x0bc 0x05 /*pru1_pru_r30_7, MODE5 */ 0x0b0 0x05 /*pru1_pru_r30_4, MODE5 */ 0x0b4 0x05 /*pru1_pru_r30_5, MODE5 */ 0x0C8 0x0F /*P8.36, SERVO_PWR GPIO OUT*/ /* WILINK 8 */ 0x08c 0x0F /*P8.18 V12 A2DP FSYNC */ 0x078 0x0F /*P9.12 A2DP_CLOCK*/ >; }; user_leds_s0: user_leds_s0 { pinctrl-single,pins = < AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* (V15) gpmc_a5.gpio1[21] - USR_LED_0 */ AM33XX_IOPAD(0x858, PIN_OUTPUT | MUX_MODE7) /* (U15) gpmc_a6.gpio1[22] - USR_LED_1 */ AM33XX_IOPAD(0x85c, PIN_OUTPUT | MUX_MODE7) /* (T15) gpmc_a7.gpio1[23] - USR_LED_2 */ AM33XX_IOPAD(0x860, PIN_OUTPUT | MUX_MODE7) /* (V16) gpmc_a8.gpio1[24] - USR_LED_3 */ AM33XX_IOPAD(0x9b0, PIN_OUTPUT | MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] - WIFI_LED */ AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE7) /* (R7) gpmc_advn_ale.gpio2[2] - P8.7, LED_RED, GP1_PIN_5 */ AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE7) /* (T7) gpmc_oen_ren.gpio2[3] - P8.8, LED_GREEN, GP1_PIN_6 */ AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE7) /* (U12) gpmc_ad11.gpio0[27] - P8.17, BATT_LED_1 */ AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE7) /* (T5) lcd_data15.gpio0[11] - P8.32, BATT_LED_2 */ AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE7) /* (V6) gpmc_csn0.gpio1[29] - P8.26, BATT_LED_3 */ AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE7) /* (T11) gpmc_ad10.gpio0[26] - P8.14, BATT_LED_4 */ >; }; i2c0_pins: pinmux_i2c0_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* (C17) I2C0_SDA.I2C0_SDA */ AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* (C16) I2C0_SCL.I2C0_SCL */ >; }; i2c1_pins: pinmux_i2c1_pins { pinctrl-single,pins = < 0x15C 0x32 /* P9.17,i2c1_scl,INPUT_PULLUP,MODE2 */ 0x158 0x32 /* P9.18,i2c1_sda,INPUT_PULLUP,MODE2 */ >; }; i2c2_pins: pinmux_i2c2_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3) /* (D18) uart1_ctsn.I2C2_SDA */ AM33XX_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE3) /* (D17) uart1_rtsn.I2C2_SCL */ >; }; uart0_pins: pinmux_uart0_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* (E15) uart0_rxd.uart0_rxd */ AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* (E16) uart0_txd.uart0_txd */ >; }; uart5_pins: pinmux_uart5_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x8C4, PIN_INPUT_PULLUP | MUX_MODE4) /* (U2) lcd_data9.uart5_rxd */ AM33XX_IOPAD(0x8C0, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* (U1) lcd_data8.uart5_txd */ >; }; mmc1_pins: pinmux_mmc1_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* (C15) spi0_cs1.gpio0[6] */ >; }; mmc2_pins: pinmux_mmc2_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* (U9) gpmc_csn1.mmc1_clk */ AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* (V9) gpmc_csn2.mmc1_cmd */ AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* (U7) gpmc_ad0.mmc1_dat0 */ AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* (V7) gpmc_ad1.mmc1_dat1 */ AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* (R8) gpmc_ad2.mmc1_dat2 */ AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* (T8) gpmc_ad3.mmc1_dat3 */ AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* (U8) gpmc_ad4.mmc1_dat4 */ AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* (V8) gpmc_ad5.mmc1_dat5 */ AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* (R9) gpmc_ad6.mmc1_dat6 */ AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* (T9) gpmc_ad7.mmc1_dat7 */ >; }; mmc3_pins: pinmux_mmc3_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE6) /* (L15) gmii1_rxd1.mmc2_clk */ AM33XX_IOPAD(0x914, PIN_INPUT_PULLUP | MUX_MODE6) /* (J16) gmii1_txen.mmc2_cmd */ AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE5) /* (J17) gmii1_rxdv.mmc2_dat0 */ AM33XX_IOPAD(0x91c, PIN_INPUT_PULLUP | MUX_MODE5) /* (J18) gmii1_txd3.mmc2_dat1 */ AM33XX_IOPAD(0x920, PIN_INPUT_PULLUP | MUX_MODE5) /* (K15) gmii1_txd2.mmc2_dat2 */ AM33XX_IOPAD(0x908, PIN_INPUT_PULLUP | MUX_MODE5) /* (H16) gmii1_col.mmc2_dat3 */ >; }; bt_pins: pinmux_bt_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLUP | MUX_MODE7) /* (K17) gmii1_txd0.gpio0[28] - BT_EN */ >; }; uart3_pins: pinmux_uart3_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */ AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */ AM33XX_IOPAD(0x948, PIN_INPUT | MUX_MODE3) /* (M17) mdio_data.uart3_ctsn */ AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (M18) mdio_clk.uart3_rtsn */ >; }; wl18xx_pins: pinmux_wl18xx_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] - WL_EN */ AM33XX_IOPAD(0x924, PIN_INPUT_PULLUP | MUX_MODE7) /* (K16) gmii1_txd1.gpio0[21] - WL_IRQ */ AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLUP | MUX_MODE7) /* (L18) gmii1_rxclk.gpio3[10] - LS_BUF_EN */ >; }; /* DCAN */ dcan1_pins: pinmux_dcan1_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x96c, PIN_INPUT | MUX_MODE2) /* (E17) uart0_rtsn.dcan1_rx */ AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE2) /* (E18) uart0_ctsn.dcan1_tx */ AM33XX_IOPAD(0x940, PIN_OUTPUT | MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */ >; }; ehrpwm1_pins: pinmux_ehrpwm1_pins { pinctrl-single,pins = < 0x020 0x24 /* P8_19_pwm_pin */ 0x024 0x24 /* P8_13_pwm_pin */ >; }; ehrpwm2_pins: pinmux_ehrpwm2_pins { pinctrl-single,pins = < 0x048 0x26 /* P9_14_pwm_pin */ 0x04c 0x26 /* P9_16_pwm_pin */ >; }; eqep0_pins: pinmux_eqep0_pins { pinctrl-single,pins = < 0x1a0 0x21 /* P9_92_qep_pin */ 0x1a4 0x21 /* P9_27_qep_pin */ >; }; eqep1_pins: pinmux_eqep1_pins { pinctrl-single,pins = < 0x0d4 0x22 /* P8_33_qep_pin */ 0x0d0 0x22 /* P8_35_qep_pin */ >; }; eqep2_pins: pinmux_eqep2_pins { pinctrl-single,pins = < 0x030 0x24 /* P8_12_qep_pin */ 0x034 0x24 /* P8_11_qep_pin */ >; }; /* H18 SPI1_SS1 default SPI*/ H18_default_pin: pinmux_H18_default_pin { pinctrl-single,pins = < 0x144 ( PIN_OUTPUT | MUX_MODE2 ) >; }; H18_gpio_pin: pinmux_H18_gpio_pin { pinctrl-single,pins = < 0x144 ( PIN_OUTPUT | MUX_MODE7 ) >; }; H18_gpio_pu_pin: pinmux_H18_gpio_pu_pin { pinctrl-single,pins = < 0x144 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; H18_gpio_pd_pin: pinmux_H18_gpio_pd_pin { pinctrl-single,pins = < 0x144 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) >; }; H18_spi_pin: pinmux_H18_spi_pin { pinctrl-single,pins = < 0x144 ( PIN_OUTPUT | MUX_MODE2 ) >; }; /* C18 SPI1_SS2 default spi*/ C18_default_pin: pinmux_C18_default_pin { pinctrl-single,pins = < 0x164 ( PIN_OUTPUT | MUX_MODE2 ) >; }; C18_gpio_pin: pinmux_C18_gpio_pin { pinctrl-single,pins = < 0x164 ( PIN_OUTPUT | MUX_MODE7 ) >; }; C18_gpio_pu_pin: pinmux_C18_gpio_pu_pin { pinctrl-single,pins = < 0x164 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; C18_gpio_pd_pin: pinmux_C18_gpio_pd_pin { pinctrl-single,pins = < 0x164 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) >; }; C18_spi_pin: pinmux_C18_spi_pin { pinctrl-single,pins = < 0x164 ( PIN_OUTPUT | MUX_MODE2 ) >; }; /* D13 BLUE_GP0_PIN_5 gpio 3_20 */ D13_default_pin: pinmux_D13_default_pin { pinctrl-single,pins = < 0x1A8 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; D13_gpio_pin: pinmux_D13_gpio_pin { pinctrl-single,pins = < 0x1A8 ( PIN_OUTPUT | MUX_MODE7 ) >; }; D13_gpio_pu_pin: pinmux_D13_gpio_pu_pin { pinctrl-single,pins = < 0x1A8 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; D13_gpio_pd_pin: pinmux_D13_gpio_pd_pin { pinctrl-single,pins = < 0x1A8 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) >; }; /* H17 BLUE_GP1_PIN_4 gpio 3_1 */ H17_default_pin: pinmux_H17_default_pin { pinctrl-single,pins = < 0x10C ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; H17_gpio_pin: pinmux_H17_gpio_pin { pinctrl-single,pins = < 0x10C ( PIN_OUTPUT | MUX_MODE7 ) >; }; H17_gpio_pu_pin: pinmux_H17_gpio_pu_pin { pinctrl-single,pins = < 0x10C ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; H17_gpio_pd_pin: pinmux_H17_gpio_pd_pin { pinctrl-single,pins = < 0x10C ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) >; }; /* J15 BLUE_GP1_PIN_3 gpio 3_2 */ J15_default_pin: pinmux_J15_default_pin { pinctrl-single,pins = < 0x110 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; J15_gpio_pin: pinmux_J15_gpio_pin { pinctrl-single,pins = < 0x110 ( PIN_OUTPUT | MUX_MODE7 ) >; }; J15_gpio_pu_pin: pinmux_J15_gpio_pu_pin { pinctrl-single,pins = < 0x110 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; J15_gpio_pd_pin: pinmux_J15_gpio_pd_pin { pinctrl-single,pins = < 0x110 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) >; }; /* U16 BLUE_GP0_PIN_3 gpio 1_25 */ U16_default_pin: pinmux_U16_default_pin { pinctrl-single,pins = < 0x064 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; U16_gpio_pin: pinmux_U16_gpio_pin { pinctrl-single,pins = < 0x064 ( PIN_OUTPUT | MUX_MODE7 ) >; }; U16_gpio_pu_pin: pinmux_U16_gpio_pu_pin { pinctrl-single,pins = < 0x064 ( PIN_INPUT_PULLUP | MUX_MODE7 ) >; }; U16_gpio_pd_pin: pinmux_U16_gpio_pd_pin { pinctrl-single,pins = < 0x064 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) >; }; }; &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins>; status = "okay"; }; &uart1 { status = "okay"; }; &uart2 { status = "okay"; }; &uart4 { pinctrl-names = "default"; status = "okay"; }; &uart5 { pinctrl-names = "default"; pinctrl-0 = <&uart5_pins>; status = "okay"; }; &usb { status = "okay"; }; &usb_ctrl_mod { status = "okay"; }; &usb0_phy { status = "okay"; }; &usb1_phy { status = "okay"; }; &usb0 { status = "okay"; dr_mode = "peripheral"; interrupts-extended = <&intc 18 &tps 0>; interrupt-names = "mc", "vbus"; }; &usb1 { status = "okay"; dr_mode = "host"; }; &cppi41dma { status = "okay"; }; &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; status = "okay"; clock-frequency = <400000>; tps: tps@24 { reg = <0x24>; }; baseboard_eeprom: baseboard_eeprom@50 { compatible = "atmel,24c256"; reg = <0x50>; #address-cells = <1>; #size-cells = <1>; baseboard_data: baseboard_data@0 { reg = <0 0x100>; }; }; }; &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; status = "okay"; clock-frequency = <400000>; }; &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins>; status = "okay"; clock-frequency = <400000>; }; /include/ "tps65217.dtsi" &tps { interrupts = <7>; /* NMI */ interrupt-parent = <&intc>; ti,pmic-shutdown-controller; charger { status = "okay"; }; pwrbutton { status = "okay"; }; regulators { dcdc1_reg: regulator@0 { regulator-name = "vdds_dpr"; regulator-always-on; }; dcdc2_reg: regulator@1 { /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ regulator-name = "vdd_mpu"; regulator-min-microvolt = <925000>; regulator-max-microvolt = <1351500>; regulator-boot-on; regulator-always-on; }; dcdc3_reg: regulator@2 { /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ regulator-name = "vdd_core"; regulator-min-microvolt = <925000>; regulator-max-microvolt = <1150000>; regulator-boot-on; regulator-always-on; }; ldo1_reg: regulator@3 { regulator-name = "vio,vrtc,vdds"; regulator-always-on; }; ldo2_reg: regulator@4 { regulator-name = "vdd_3v3aux"; regulator-always-on; }; ldo3_reg: regulator@5 { regulator-name = "vdd_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; }; ldo4_reg: regulator@6 { regulator-name = "vdd_3v3a"; regulator-always-on; }; }; }; &mmc1 { status = "okay"; vmmc-supply = <&vmmcsd_fixed>; bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; &mmc2 { status = "okay"; vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; }; &mmc3 { dmas = <&edma_xbar 12 0 1 &edma_xbar 13 0 2>; dma-names = "tx", "rx"; status = "okay"; vmmc-supply = <&wlan_en_reg>; bus-width = <4>; non-removable; cap-power-off-card; ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>; #address-cells = <1>; #size-cells = <0>; wlcore: wlcore@2 { compatible = "ti,wl1835"; reg = <2>; interrupt-parent = <&gpio0>; interrupts = <21 IRQ_TYPE_EDGE_RISING>; }; }; //&tscadc { // status = "okay"; // adc { // ti,adc-channels = <0 1 2 3 4 5 6 7>; // }; //}; &uart3 { pinctrl-names = "default"; //pinctrl-0 = <&uart3_pins &bt_pins>; pinctrl-0 = <&uart3_pins>; status = "okay"; // bluetooth { // compatible = "ti,wl1835-st"; // enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; // }; }; &aes { status = "okay"; }; &sham { status = "okay"; }; &rtc { system-power-controller; }; &wkup_m3_ipc { ti,scale-data-fw = "am335x-bone-scale-data.bin"; }; //&pruss_soc_bus { // status = "okay"; // // pruss: pruss@0 { // status = "okay"; // }; //}; &dcan1 { pinctrl-names = "default"; pinctrl-0 = <&dcan1_pins>; status = "okay"; }; &gpio3 { ls_buf_en { gpio-hog; gpios = <10 GPIO_ACTIVE_HIGH>; output-high; line-name = "LS_BUF_EN"; }; }; &ocp { /* activate the static pinmux helper list of pin modes above */ test_helper: helper { compatible = "bone-pinmux-helper"; pinctrl-names = "default"; pinctrl-0 = <&mux_helper_pins>; status = "okay"; }; /* UART 2 RX GPS */ P9_22_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "spi", "uart", "i2c", "pwm"; pinctrl-0 = <&P9_22_uart_pin>; pinctrl-1 = <&P9_22_gpio_pin>; pinctrl-2 = <&P9_22_gpio_pu_pin>; pinctrl-3 = <&P9_22_gpio_pd_pin>; pinctrl-4 = <&P9_22_spi_pin>; pinctrl-5 = <&P9_22_uart_pin>; pinctrl-6 = <&P9_22_i2c_pin>; pinctrl-7 = <&P9_22_pwm_pin>; }; /* UART 2 TX GPS*/ P9_21_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "spi", "uart", "i2c", "pwm"; pinctrl-0 = <&P9_21_uart_pin>; pinctrl-1 = <&P9_21_gpio_pin>; pinctrl-2 = <&P9_21_gpio_pu_pin>; pinctrl-3 = <&P9_21_gpio_pd_pin>; pinctrl-4 = <&P9_21_spi_pin>; pinctrl-5 = <&P9_21_uart_pin>; pinctrl-6 = <&P9_21_i2c_pin>; pinctrl-7 = <&P9_21_pwm_pin>; }; /* UART 1 RX */ P9_26_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "uart", "can", "i2c", "pruin"; pinctrl-0 = <&P9_26_uart_pin>; pinctrl-1 = <&P9_26_gpio_pin>; pinctrl-2 = <&P9_26_gpio_pu_pin>; pinctrl-3 = <&P9_26_gpio_pd_pin>; pinctrl-4 = <&P9_26_uart_pin>; pinctrl-5 = <&P9_26_can_pin>; pinctrl-6 = <&P9_26_i2c_pin>; pinctrl-7 = <&P9_26_pruin_pin>; }; /* UART 1 TX */ P9_24_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "uart", "can", "i2c", "pruin"; pinctrl-0 = <&P9_24_uart_pin>; pinctrl-1 = <&P9_24_gpio_pin>; pinctrl-2 = <&P9_24_gpio_pu_pin>; pinctrl-3 = <&P9_24_gpio_pd_pin>; pinctrl-4 = <&P9_24_uart_pin>; pinctrl-5 = <&P9_24_can_pin>; pinctrl-6 = <&P9_24_i2c_pin>; pinctrl-7 = <&P9_24_pruin_pin>; }; /* SPI MOSI */ P9_30_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pwm", "spi", "pruout", "pruin"; pinctrl-0 = <&P9_30_spi_pin>; pinctrl-1 = <&P9_30_gpio_pin>; pinctrl-2 = <&P9_30_gpio_pu_pin>; pinctrl-3 = <&P9_30_gpio_pd_pin>; pinctrl-4 = <&P9_30_pwm_pin>; pinctrl-5 = <&P9_30_spi_pin>; pinctrl-6 = <&P9_30_pruout_pin>; pinctrl-7 = <&P9_30_pruin_pin>; }; /* SPI MISO */ P9_29_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pwm", "spi", "pruout", "pruin"; pinctrl-0 = <&P9_29_spi_pin>; pinctrl-1 = <&P9_29_gpio_pin>; pinctrl-2 = <&P9_29_gpio_pu_pin>; pinctrl-3 = <&P9_29_gpio_pd_pin>; pinctrl-4 = <&P9_29_pwm_pin>; pinctrl-5 = <&P9_29_spi_pin>; pinctrl-6 = <&P9_29_pruout_pin>; pinctrl-7 = <&P9_29_pruin_pin>; }; /* SPI SCK */ P9_31_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pwm", "spi", "pruout", "pruin"; pinctrl-0 = <&P9_31_spi_pin>; pinctrl-1 = <&P9_31_gpio_pin>; pinctrl-2 = <&P9_31_gpio_pu_pin>; pinctrl-3 = <&P9_31_gpio_pd_pin>; pinctrl-4 = <&P9_31_pwm_pin>; pinctrl-5 = <&P9_31_spi_pin>; pinctrl-6 = <&P9_31_pruout_pin>; pinctrl-7 = <&P9_31_pruin_pin>; }; /* Encoder 4 (U13) */ P8_15_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "pruin_pu", "gpio", "gpio_pu", "gpio_pd", "pruin", "qep", "pruecapin_pu"; pinctrl-0 = <&P8_15_pruin_pu_pin>; pinctrl-1 = <&P8_15_pruin_pu_pin>; pinctrl-2 = <&P8_15_gpio_pin>; pinctrl-3 = <&P8_15_gpio_pu_pin>; pinctrl-4 = <&P8_15_gpio_pd_pin>; pinctrl-5 = <&P8_15_pruin_pin>; pinctrl-6 = <&P8_15_qep_pin>; pinctrl-7 = <&P8_15_pruecapin_pu_pin>; }; /* UART4 RX DSM */ P9_11_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "uart", "gpio", "gpio_pu", "gpio_pd"; pinctrl-0 = <&P9_11_uart_pin>; pinctrl-1 = <&P9_11_uart_pin>; pinctrl-2 = <&P9_11_gpio_pin>; pinctrl-3 = <&P9_11_gpio_pu_pin>; pinctrl-4 = <&P9_11_gpio_pd_pin>; }; /* U16 BLUE_GP0_PIN_3 gpio 1_25*/ U16_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd"; pinctrl-0 = <&U16_default_pin>; pinctrl-1 = <&U16_gpio_pin>; pinctrl-2 = <&U16_gpio_pu_pin>; pinctrl-3 = <&U16_gpio_pd_pin>; }; /* BLUE_GP0_PIN_3 gpio1_17*/ P9_23_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pwm"; pinctrl-0 = <&P9_23_default_pin>; pinctrl-1 = <&P9_23_gpio_pin>; pinctrl-2 = <&P9_23_gpio_pu_pin>; pinctrl-3 = <&P9_23_gpio_pd_pin>; pinctrl-4 = <&P9_23_pwm_pin>; }; /* BLUE_GP0_PIN_5 gpio3_20 */ D13_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd"; pinctrl-0 = <&D13_default_pin>; pinctrl-1 = <&D13_gpio_pin>; pinctrl-2 = <&D13_gpio_pu_pin>; pinctrl-3 = <&D13_gpio_pd_pin>; }; /* BLUE_GP0_PIN_6 gpio3_17 */ P9_28_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pwm", "spi", "pwm2", "pruout", "pruin"; pinctrl-0 = <&P9_28_default_pin>; pinctrl-1 = <&P9_28_gpio_pin>; pinctrl-2 = <&P9_28_gpio_pu_pin>; pinctrl-3 = <&P9_28_gpio_pd_pin>; pinctrl-4 = <&P9_28_pwm_pin>; pinctrl-5 = <&P9_28_spi_pin>; pinctrl-6 = <&P9_28_pwm2_pin>; pinctrl-7 = <&P9_28_pruout_pin>; pinctrl-8 = <&P9_28_pruin_pin>; }; /* BLUE_GP1_PIN_3 gpio3_2 */ J15_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd"; pinctrl-0 = <&J15_default_pin>; pinctrl-1 = <&J15_gpio_pin>; pinctrl-2 = <&J15_gpio_pu_pin>; pinctrl-3 = <&J15_gpio_pd_pin>; }; /* BLUE_GP1_PIN_4 gpio3_1 */ H17_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd"; pinctrl-0 = <&H17_default_pin>; pinctrl-1 = <&H17_gpio_pin>; pinctrl-2 = <&H17_gpio_pu_pin>; pinctrl-3 = <&H17_gpio_pd_pin>; }; //////////////////////////////////////////////////////////////////////// // Pinmux options only for BB BLue //////////////////////////////////////////////////////////////////////// /* H18 SPI1_SS1 default SPI*/ H18_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "spi"; pinctrl-0 = <&H18_spi_pin>; pinctrl-1 = <&H18_gpio_pin>; pinctrl-2 = <&H18_gpio_pu_pin>; pinctrl-3 = <&H18_gpio_pd_pin>; pinctrl-4 = <&H18_spi_pin>; }; /* C18 SPI1_SS2 default spi*/ C18_pinmux { compatible = "bone-pinmux-helper"; status = "okay"; pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "spi"; pinctrl-0 = <&C18_spi_pin>; pinctrl-1 = <&C18_gpio_pin>; pinctrl-2 = <&C18_gpio_pu_pin>; pinctrl-3 = <&C18_gpio_pd_pin>; pinctrl-4 = <&C18_spi_pin>; }; }; /******************************************************************************* * PWMSS *******************************************************************************/ &epwmss0 { status = "okay"; }; &epwmss1 { status = "okay"; }; &epwmss2 { status = "okay"; }; &ehrpwm0 { status = "okay"; }; &ehrpwm1 { pinctrl-names = "default"; pinctrl-0 = <&ehrpwm1_pins>; status = "okay"; }; &ehrpwm2 { pinctrl-names = "default"; pinctrl-0 = <&ehrpwm2_pins>; status = "okay"; }; &ecap0 { status="okay"; }; &ecap1 { status="okay"; }; &ecap2 { status="okay"; }; /******************************************************************************* * EQEP *******************************************************************************/ &eqep0 { pinctrl-names = "default"; pinctrl-0 = <&eqep0_pins>; count_mode = <0>; /* 0 - Quadrature mode, normal 90 phase offset cha & chb. 1 - Direction mode. cha input = clock, chb input = direction */ swap_inputs = <0>; /* Are channel A and channel B swapped? (0 - no, 1 - yes) */ invert_qa = <1>; /* Should we invert the channel A input? */ invert_qb = <1>; /* Should we invert the channel B input? I invert these because my encoder outputs drive transistors that pull down the pins */ invert_qi = <0>; /* Should we invert the index input? */ invert_qs = <0>; /* Should we invert the strobe input? */ status = "okay"; }; &eqep1 { pinctrl-names = "default"; pinctrl-0 = <&eqep1_pins>; count_mode = <0>; /* 0 - Quadrature mode, normal 90 phase offset cha & chb. 1 - Direction mode. cha input = clock, chb input = direction */ swap_inputs = <0>; /* Are channel A and channel B swapped? (0 - no, 1 - yes) */ invert_qa = <1>; /* Should we invert the channel A input? */ invert_qb = <1>; /* Should we invert the channel B input? I invert these because my encoder outputs drive transistors that pull down the pins */ invert_qi = <0>; /* Should we invert the index input? */ invert_qs = <0>; /* Should we invert the strobe input? */ status = "okay"; }; &eqep2 { pinctrl-names = "default"; pinctrl-0 = <&eqep2_pins>; count_mode = <0>; /* 0 - Quadrature mode, normal 90 phase offset cha & chb. 1 - Direction mode. cha input = clock, chb input = direction */ swap_inputs = <0>; /* Are channel A and channel B swapped? (0 - no, 1 - yes) */ invert_qa = <1>; /* Should we invert the channel A input? */ invert_qb = <1>; /* Should we invert the channel B input? I invert these because my encoder outputs drive transistors that pull down the pins */ invert_qi = <0>; /* Should we invert the index input? */ invert_qs = <0>; /* Should we invert the strobe input? */ status = "okay"; }; /******************************************************************************* SPI *******************************************************************************/ &spi1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; channel@0 { #address-cells = <1>; #size-cells = <0>; compatible = "spidev"; reg = <0>; spi-max-frequency = <24000000>; }; channel@1 { #address-cells = <1>; #size-cells = <0>; compatible = "spidev"; reg = <1>; spi-max-frequency = <24000000>; }; };