|
| 1 | +/dts-v1/; |
| 2 | + |
| 3 | +#include "bcm2708.dtsi" |
| 4 | +#include "bcm2708-rpi.dtsi" |
| 5 | +#include "bcm283x-rpi-smsc9514.dtsi" |
| 6 | +#include "bcm283x-rpi-csi1-2lane.dtsi" |
| 7 | +#include "bcm283x-rpi-i2c0mux_0_28.dtsi" |
| 8 | +#include "bcm283x-rpi-led-deprecated.dtsi" |
| 9 | + |
| 10 | +/ { |
| 11 | + compatible = "raspberrypi,model-b-plus", "brcm,bcm2835"; |
| 12 | + model = "Raspberry Pi Model B+"; |
| 13 | +}; |
| 14 | + |
| 15 | +&gpio { |
| 16 | + /* |
| 17 | + * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf |
| 18 | + * RPI-BPLUS sheet 1 |
| 19 | + * |
| 20 | + * Legend: |
| 21 | + * "NC" = not connected (no rail from the SoC) |
| 22 | + * "FOO" = GPIO line named "FOO" on the schematic |
| 23 | + * "FOO_N" = GPIO line named "FOO" on schematic, active low |
| 24 | + */ |
| 25 | + gpio-line-names = "ID_SDA", |
| 26 | + "ID_SCL", |
| 27 | + "SDA1", |
| 28 | + "SCL1", |
| 29 | + "GPIO_GCLK", |
| 30 | + "GPIO5", |
| 31 | + "GPIO6", |
| 32 | + "SPI_CE1_N", |
| 33 | + "SPI_CE0_N", |
| 34 | + "SPI_MISO", |
| 35 | + "SPI_MOSI", |
| 36 | + "SPI_SCLK", |
| 37 | + "GPIO12", |
| 38 | + "GPIO13", |
| 39 | + /* Serial port */ |
| 40 | + "TXD0", |
| 41 | + "RXD0", |
| 42 | + "GPIO16", |
| 43 | + "GPIO17", |
| 44 | + "GPIO18", |
| 45 | + "GPIO19", |
| 46 | + "GPIO20", |
| 47 | + "GPIO21", |
| 48 | + "GPIO22", |
| 49 | + "GPIO23", |
| 50 | + "GPIO24", |
| 51 | + "GPIO25", |
| 52 | + "GPIO26", |
| 53 | + "GPIO27", |
| 54 | + "SDA0", |
| 55 | + "SCL0", |
| 56 | + "NC", /* GPIO30 */ |
| 57 | + "LAN_RUN", /* GPIO31 */ |
| 58 | + "CAM_GPIO1", /* GPIO32 */ |
| 59 | + "NC", /* GPIO33 */ |
| 60 | + "NC", /* GPIO34 */ |
| 61 | + "PWR_LOW_N", /* GPIO35 */ |
| 62 | + "NC", /* GPIO36 */ |
| 63 | + "NC", /* GPIO37 */ |
| 64 | + "USB_LIMIT", /* GPIO38 */ |
| 65 | + "NC", /* GPIO39 */ |
| 66 | + "PWM0_OUT", /* GPIO40 */ |
| 67 | + "CAM_GPIO0", /* GPIO41 */ |
| 68 | + "NC", /* GPIO42 */ |
| 69 | + "NC", /* GPIO43 */ |
| 70 | + "ETH_CLK", /* GPIO44 */ |
| 71 | + "PWM1_OUT", /* GPIO45 */ |
| 72 | + "HDMI_HPD_N", |
| 73 | + "STATUS_LED", |
| 74 | + /* Used by SD Card */ |
| 75 | + "SD_CLK_R", |
| 76 | + "SD_CMD_R", |
| 77 | + "SD_DATA0_R", |
| 78 | + "SD_DATA1_R", |
| 79 | + "SD_DATA2_R", |
| 80 | + "SD_DATA3_R"; |
| 81 | + |
| 82 | + spi0_pins: spi0_pins { |
| 83 | + brcm,pins = <9 10 11>; |
| 84 | + brcm,function = <4>; /* alt0 */ |
| 85 | + }; |
| 86 | + |
| 87 | + spi0_cs_pins: spi0_cs_pins { |
| 88 | + brcm,pins = <8 7>; |
| 89 | + brcm,function = <1>; /* output */ |
| 90 | + }; |
| 91 | + |
| 92 | + i2c0_pins: i2c0 { |
| 93 | + brcm,pins = <0 1>; |
| 94 | + brcm,function = <4>; |
| 95 | + }; |
| 96 | + |
| 97 | + i2c1_pins: i2c1 { |
| 98 | + brcm,pins = <2 3>; |
| 99 | + brcm,function = <4>; |
| 100 | + }; |
| 101 | + |
| 102 | + i2s_pins: i2s { |
| 103 | + brcm,pins = <18 19 20 21>; |
| 104 | + brcm,function = <4>; /* alt0 */ |
| 105 | + }; |
| 106 | + |
| 107 | + audio_pins: audio_pins { |
| 108 | + brcm,pins = <40 45>; |
| 109 | + brcm,function = <4>; |
| 110 | + brcm,pull = <0>; |
| 111 | + }; |
| 112 | +}; |
| 113 | + |
| 114 | +&uart0 { |
| 115 | + status = "okay"; |
| 116 | +}; |
| 117 | + |
| 118 | +&spi0 { |
| 119 | + pinctrl-names = "default"; |
| 120 | + pinctrl-0 = <&spi0_pins &spi0_cs_pins>; |
| 121 | + cs-gpios = <&gpio 8 1>, <&gpio 7 1>; |
| 122 | + |
| 123 | + spidev0: spidev@0{ |
| 124 | + compatible = "spidev"; |
| 125 | + reg = <0>; /* CE0 */ |
| 126 | + #address-cells = <1>; |
| 127 | + #size-cells = <0>; |
| 128 | + spi-max-frequency = <125000000>; |
| 129 | + }; |
| 130 | + |
| 131 | + spidev1: spidev@1{ |
| 132 | + compatible = "spidev"; |
| 133 | + reg = <1>; /* CE1 */ |
| 134 | + #address-cells = <1>; |
| 135 | + #size-cells = <0>; |
| 136 | + spi-max-frequency = <125000000>; |
| 137 | + }; |
| 138 | +}; |
| 139 | + |
| 140 | +&i2c0if { |
| 141 | + clock-frequency = <100000>; |
| 142 | +}; |
| 143 | + |
| 144 | +&i2c1 { |
| 145 | + pinctrl-names = "default"; |
| 146 | + pinctrl-0 = <&i2c1_pins>; |
| 147 | + clock-frequency = <100000>; |
| 148 | +}; |
| 149 | + |
| 150 | +&i2c2 { |
| 151 | + clock-frequency = <100000>; |
| 152 | +}; |
| 153 | + |
| 154 | +&i2s { |
| 155 | + pinctrl-names = "default"; |
| 156 | + pinctrl-0 = <&i2s_pins>; |
| 157 | +}; |
| 158 | + |
| 159 | +&led_act { |
| 160 | + gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; |
| 161 | + default-state = "off"; |
| 162 | + linux,default-trigger = "mmc0"; |
| 163 | +}; |
| 164 | + |
| 165 | +&leds { |
| 166 | + led_pwr: led-pwr { |
| 167 | + label = "PWR"; |
| 168 | + gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; |
| 169 | + default-state = "off"; |
| 170 | + linux,default-trigger = "input"; |
| 171 | + }; |
| 172 | +}; |
| 173 | + |
| 174 | +&hdmi { |
| 175 | + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
| 176 | +}; |
| 177 | + |
| 178 | +&vchiq { |
| 179 | + pinctrl-names = "default"; |
| 180 | + pinctrl-0 = <&audio_pins>; |
| 181 | +}; |
| 182 | + |
| 183 | +&cam1_reg { |
| 184 | + gpio = <&gpio 41 GPIO_ACTIVE_HIGH>; |
| 185 | +}; |
| 186 | + |
| 187 | +cam0_reg: &cam_dummy_reg { |
| 188 | +}; |
| 189 | + |
| 190 | +i2c_arm: &i2c1 { |
| 191 | +}; |
| 192 | + |
| 193 | +i2c_vc: &i2c0 { |
| 194 | +}; |
| 195 | + |
| 196 | +/ { |
| 197 | + __overrides__ { |
| 198 | + audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=0'}"; |
| 199 | + |
| 200 | + act_led_gpio = <&led_act>,"gpios:4"; |
| 201 | + act_led_activelow = <&led_act>,"gpios:8"; |
| 202 | + act_led_trigger = <&led_act>,"linux,default-trigger"; |
| 203 | + |
| 204 | + pwr_led_gpio = <&led_pwr>,"gpios:4"; |
| 205 | + pwr_led_activelow = <&led_pwr>,"gpios:8"; |
| 206 | + pwr_led_trigger = <&led_pwr>,"linux,default-trigger"; |
| 207 | + }; |
| 208 | +}; |
0 commit comments