|
| 1 | +/dts-v1/; |
| 2 | + |
| 3 | +#include "bcm2710.dtsi" |
| 4 | + |
| 5 | +/ { |
| 6 | + compatible = "brcm,bcm2710","brcm,bcm2709"; |
| 7 | + model = "Raspberry Pi Compute Module 3"; |
| 8 | +}; |
| 9 | + |
| 10 | +&gpio { |
| 11 | + |
| 12 | + mmc_pins: mmc_pins { |
| 13 | + brcm,pins = <48 49 50 51 52 53>; |
| 14 | + brcm,function = <7>; /* alt3 */ |
| 15 | + brcm,pull = <0 2 2 2 2 2>; |
| 16 | + }; |
| 17 | + |
| 18 | + spi0_pins: spi0_pins { |
| 19 | + brcm,pins = <9 10 11>; |
| 20 | + brcm,function = <4>; /* alt0 */ |
| 21 | + }; |
| 22 | + |
| 23 | + spi0_cs_pins: spi0_cs_pins { |
| 24 | + brcm,pins = <8 7>; |
| 25 | + brcm,function = <1>; /* output */ |
| 26 | + }; |
| 27 | + |
| 28 | + i2c0_pins: i2c0 { |
| 29 | + brcm,pins = <0 1>; |
| 30 | + brcm,function = <4>; |
| 31 | + }; |
| 32 | + |
| 33 | + i2c1_pins: i2c1 { |
| 34 | + brcm,pins = <2 3>; |
| 35 | + brcm,function = <4>; |
| 36 | + }; |
| 37 | + |
| 38 | + i2s_pins: i2s { |
| 39 | + brcm,pins = <18 19 20 21>; |
| 40 | + brcm,function = <4>; /* alt0 */ |
| 41 | + }; |
| 42 | + |
| 43 | + uart0_pins: uart0_pins { |
| 44 | + brcm,pins; |
| 45 | + brcm,function; |
| 46 | + brcm,pull = <0 2>; |
| 47 | + }; |
| 48 | + |
| 49 | + audio_pins: audio_pins { |
| 50 | + brcm,pins; |
| 51 | + brcm,function; |
| 52 | + }; |
| 53 | +}; |
| 54 | + |
| 55 | +&mmc { |
| 56 | + pinctrl-names = "default"; |
| 57 | + pinctrl-0 = <&mmc_pins>; |
| 58 | + non-removable; |
| 59 | + bus-width = <4>; |
| 60 | + status = "okay"; |
| 61 | + brcm,overclock-50 = <0>; |
| 62 | +}; |
| 63 | + |
| 64 | +&soc { |
| 65 | + virtgpio: virtgpio { |
| 66 | + compatible = "brcm,bcm2835-virtgpio"; |
| 67 | + gpio-controller; |
| 68 | + #gpio-cells = <2>; |
| 69 | + firmware = <&firmware>; |
| 70 | + status = "okay"; |
| 71 | + }; |
| 72 | +}; |
| 73 | + |
| 74 | +&fb { |
| 75 | + status = "okay"; |
| 76 | +}; |
| 77 | + |
| 78 | +&uart0 { |
| 79 | + pinctrl-names = "default"; |
| 80 | + pinctrl-0 = <&uart0_pins>; |
| 81 | + status = "okay"; |
| 82 | +}; |
| 83 | + |
| 84 | +&spi0 { |
| 85 | + pinctrl-names = "default"; |
| 86 | + pinctrl-0 = <&spi0_pins &spi0_cs_pins>; |
| 87 | + cs-gpios = <&gpio 8 1>, <&gpio 7 1>; |
| 88 | + |
| 89 | + spidev0: spidev@0{ |
| 90 | + compatible = "spidev"; |
| 91 | + reg = <0>; /* CE0 */ |
| 92 | + #address-cells = <1>; |
| 93 | + #size-cells = <0>; |
| 94 | + spi-max-frequency = <500000>; |
| 95 | + }; |
| 96 | + |
| 97 | + spidev1: spidev@1{ |
| 98 | + compatible = "spidev"; |
| 99 | + reg = <1>; /* CE1 */ |
| 100 | + #address-cells = <1>; |
| 101 | + #size-cells = <0>; |
| 102 | + spi-max-frequency = <500000>; |
| 103 | + }; |
| 104 | +}; |
| 105 | + |
| 106 | +&i2c0 { |
| 107 | + pinctrl-names = "default"; |
| 108 | + pinctrl-0 = <&i2c0_pins>; |
| 109 | + clock-frequency = <100000>; |
| 110 | +}; |
| 111 | + |
| 112 | +&i2c1 { |
| 113 | + pinctrl-names = "default"; |
| 114 | + pinctrl-0 = <&i2c1_pins>; |
| 115 | + clock-frequency = <100000>; |
| 116 | +}; |
| 117 | + |
| 118 | +&i2c2 { |
| 119 | + clock-frequency = <100000>; |
| 120 | +}; |
| 121 | + |
| 122 | +&i2s { |
| 123 | + #sound-dai-cells = <0>; |
| 124 | + pinctrl-names = "default"; |
| 125 | + pinctrl-0 = <&i2s_pins>; |
| 126 | +}; |
| 127 | + |
| 128 | +&random { |
| 129 | + status = "okay"; |
| 130 | +}; |
| 131 | + |
| 132 | +&leds { |
| 133 | + act_led: act { |
| 134 | + label = "led0"; |
| 135 | + linux,default-trigger = "mmc0"; |
| 136 | + gpios = <&virtgpio 0 0>; |
| 137 | + }; |
| 138 | +}; |
| 139 | + |
| 140 | +&hdmi { |
| 141 | + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
| 142 | +}; |
| 143 | + |
| 144 | +&audio { |
| 145 | + pinctrl-names = "default"; |
| 146 | + pinctrl-0 = <&audio_pins>; |
| 147 | +}; |
| 148 | + |
| 149 | +/ { |
| 150 | + __overrides__ { |
| 151 | + uart0 = <&uart0>,"status"; |
| 152 | + uart0_clkrate = <&clk_uart0>,"clock-frequency:0"; |
| 153 | + uart1 = <&uart1>,"status"; |
| 154 | + i2s = <&i2s>,"status"; |
| 155 | + spi = <&spi0>,"status"; |
| 156 | + i2c0 = <&i2c0>,"status"; |
| 157 | + i2c1 = <&i2c1>,"status"; |
| 158 | + i2c2_iknowwhatimdoing = <&i2c2>,"status"; |
| 159 | + i2c0_baudrate = <&i2c0>,"clock-frequency:0"; |
| 160 | + i2c1_baudrate = <&i2c1>,"clock-frequency:0"; |
| 161 | + i2c2_baudrate = <&i2c2>,"clock-frequency:0"; |
| 162 | + core_freq = <&clk_core>,"clock-frequency:0"; |
| 163 | + |
| 164 | + act_led_gpio = <&act_led>,"gpios:4"; |
| 165 | + act_led_activelow = <&act_led>,"gpios:8"; |
| 166 | + act_led_trigger = <&act_led>,"linux,default-trigger"; |
| 167 | + |
| 168 | + audio = <&audio>,"status"; |
| 169 | + watchdog = <&watchdog>,"status"; |
| 170 | + random = <&random>,"status"; |
| 171 | + sd_overclock = <&sdhost>,"brcm,overclock-50:0"; |
| 172 | + sd_force_pio = <&sdhost>,"brcm,force-pio?"; |
| 173 | + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0"; |
| 174 | + sd_debug = <&sdhost>,"brcm,debug"; |
| 175 | + }; |
| 176 | +}; |
0 commit comments