Rostislav Lisovy | 5b5e49a | 2015-02-09 15:48:05 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 Jablotron s.r.o. -- http://www.jablotron.com/ |
| 3 | * Author: Rostislav Lisovy <lisovy@jablotron.cz> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | */ |
| 9 | /dts-v1/; |
| 10 | #include "am335x-chilisom.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "AM335x Chiliboard"; |
| 14 | compatible = "grinn,am335x-chiliboard", "grinn,am335x-chilisom", |
| 15 | "ti,am33xx"; |
| 16 | |
| 17 | leds { |
| 18 | compatible = "gpio-leds"; |
| 19 | pinctrl-names = "default"; |
| 20 | pinctrl-0 = <&led_gpio_pins>; |
| 21 | |
| 22 | led0 { |
| 23 | label = "led0"; |
| 24 | gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; |
| 25 | default-state = "keep"; |
| 26 | linux,default-trigger = "heartbeat"; |
| 27 | }; |
| 28 | |
| 29 | led1 { |
| 30 | label = "led1"; |
| 31 | gpios = <&gpio3 8 GPIO_ACTIVE_LOW>; |
| 32 | default-state = "keep"; |
| 33 | }; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | &am33xx_pinmux { |
| 38 | usb1_drvvbus: usb1_drvvbus { |
| 39 | pinctrl-single,pins = < |
| 40 | 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usb1_drvvbus.usb1_drvvbus */ |
| 41 | >; |
| 42 | }; |
| 43 | |
| 44 | sd_pins: pinmux_sd_card { |
| 45 | pinctrl-single,pins = < |
| 46 | 0xf0 (PIN_INPUT | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ |
| 47 | 0xf4 (PIN_INPUT | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ |
| 48 | 0xf8 (PIN_INPUT | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ |
| 49 | 0xfc (PIN_INPUT | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ |
| 50 | 0x100 (PIN_INPUT | MUX_MODE0) /* mmc0_clk.mmc0_clk */ |
| 51 | 0x104 (PIN_INPUT | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ |
| 52 | 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ |
| 53 | >; |
| 54 | }; |
| 55 | |
| 56 | led_gpio_pins: led_gpio_pins { |
| 57 | pinctrl-single,pins = < |
| 58 | 0x1e4 (PIN_OUTPUT | MUX_MODE7) /* emu0.gpio3_7 */ |
| 59 | 0x1e8 (PIN_OUTPUT | MUX_MODE7) /* emu1.gpio3_8 */ |
| 60 | >; |
| 61 | }; |
| 62 | }; |
| 63 | |
| 64 | &ldo4_reg { |
| 65 | regulator-min-microvolt = <3300000>; |
| 66 | regulator-max-microvolt = <3300000>; |
| 67 | }; |
| 68 | |
| 69 | /* Ethernet */ |
| 70 | &cpsw_emac0 { |
| 71 | phy_id = <&davinci_mdio>, <0>; |
| 72 | phy-mode = "rmii"; |
| 73 | }; |
| 74 | |
| 75 | &phy_sel { |
| 76 | rmii-clock-ext; |
| 77 | }; |
| 78 | |
| 79 | /* USB */ |
| 80 | &usb { |
| 81 | status = "okay"; |
| 82 | }; |
| 83 | |
| 84 | &usb_ctrl_mod { |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | &usb1_phy { |
| 89 | status = "okay"; |
| 90 | }; |
| 91 | |
| 92 | &usb1 { |
| 93 | pinctrl-names = "default"; |
| 94 | pinctrl-0 = <&usb1_drvvbus>; |
| 95 | |
| 96 | status = "okay"; |
| 97 | dr_mode = "host"; |
| 98 | }; |
| 99 | |
| 100 | &cppi41dma { |
| 101 | status = "okay"; |
| 102 | }; |
| 103 | |
| 104 | /* microSD */ |
| 105 | &mmc1 { |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&sd_pins>; |
| 108 | vmmc-supply = <&ldo4_reg>; |
| 109 | bus-width = <0x4>; |
| 110 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; |
| 111 | status = "okay"; |
| 112 | }; |