Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Toradex AG |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | */ |
| 9 | |
| 10 | / { |
| 11 | chosen { |
Stefan Agner | 4f182ff | 2015-07-15 16:50:17 +0200 | [diff] [blame] | 12 | stdout-path = "serial0:115200n8"; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 13 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 14 | |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 15 | clk16m: clk16m { |
| 16 | compatible = "fixed-clock"; |
| 17 | #clock-cells = <0>; |
| 18 | clock-frequency = <16000000>; |
| 19 | }; |
| 20 | |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 21 | regulators { |
| 22 | compatible = "simple-bus"; |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <0>; |
| 25 | |
| 26 | sys_5v0_reg: regulator@0 { |
| 27 | compatible = "regulator-fixed"; |
| 28 | reg = <0>; |
| 29 | regulator-name = "5v0"; |
| 30 | regulator-min-microvolt = <5000000>; |
| 31 | regulator-max-microvolt = <5000000>; |
| 32 | regulator-always-on; |
| 33 | }; |
| 34 | |
| 35 | /* USBH_PEN */ |
| 36 | usbh_vbus_reg: regulator@1 { |
| 37 | compatible = "regulator-fixed"; |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&pinctrl_usbh1_reg>; |
| 40 | reg = <1>; |
| 41 | regulator-name = "usbh_vbus"; |
| 42 | regulator-min-microvolt = <5000000>; |
| 43 | regulator-max-microvolt = <5000000>; |
Stefan Agner | 7671395 | 2015-01-16 18:06:15 +0100 | [diff] [blame] | 44 | gpio = <&gpio2 19 GPIO_ACTIVE_LOW>; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 45 | vin-supply = <&sys_5v0_reg>; |
| 46 | }; |
| 47 | }; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | &bl { |
| 51 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 52 | default-brightness-level = <6>; |
| 53 | status = "okay"; |
| 54 | }; |
| 55 | |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 56 | &dspi1 { |
| 57 | status = "okay"; |
| 58 | |
| 59 | mcp2515can: can@0 { |
| 60 | compatible = "microchip,mcp2515"; |
| 61 | pinctrl-names = "default"; |
| 62 | pinctrl-0 = <&pinctrl_can_int>; |
| 63 | reg = <0>; |
| 64 | clocks = <&clk16m>; |
| 65 | spi-max-frequency = <10000000>; |
| 66 | interrupt-parent = <&gpio1>; |
| 67 | interrupts = <11 GPIO_ACTIVE_LOW>; |
| 68 | }; |
| 69 | }; |
| 70 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 71 | &esdhc1 { |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&pinctrl_esdhc1>; |
| 74 | bus-width = <4>; |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | |
| 78 | &fec1 { |
| 79 | phy-mode = "rmii"; |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&pinctrl_fec1>; |
| 82 | status = "okay"; |
| 83 | }; |
| 84 | |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 85 | &i2c0 { |
| 86 | status = "okay"; |
Bhuvanchandra DV | 2149b95 | 2014-11-13 10:05:32 +0530 | [diff] [blame] | 87 | |
| 88 | /* M41T0M6 real time clock on carrier board */ |
| 89 | rtc: m41t0m6@68 { |
| 90 | compatible = "st,m41t00"; |
| 91 | reg = <0x68>; |
| 92 | }; |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 93 | }; |
| 94 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 95 | &pwm0 { |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
| 99 | &pwm1 { |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | |
| 103 | &uart0 { |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | &uart1 { |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | |
| 111 | &uart2 { |
| 112 | status = "okay"; |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 113 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 114 | |
| 115 | &usbh1 { |
| 116 | vbus-supply = <&usbh_vbus_reg>; |
| 117 | }; |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 118 | |
| 119 | &iomuxc { |
| 120 | vf610-colibri { |
| 121 | pinctrl_can_int: can_int { |
| 122 | fsl,pins = < |
| 123 | VF610_PAD_PTB21__GPIO_43 0x22ed |
| 124 | >; |
| 125 | }; |
| 126 | }; |
| 127 | }; |