Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 1 | /dts-v1/; |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 2 | /include/ "bcm2835.dtsi" |
| 3 | |
| 4 | / { |
| 5 | compatible = "raspberrypi,model-b", "brcm,bcm2835"; |
| 6 | model = "Raspberry Pi Model B"; |
| 7 | |
| 8 | memory { |
| 9 | reg = <0 0x10000000>; |
| 10 | }; |
Daniel Mack | 805b4db | 2013-04-28 22:49:52 +0200 | [diff] [blame] | 11 | |
| 12 | leds { |
| 13 | compatible = "gpio-leds"; |
| 14 | |
| 15 | act { |
| 16 | label = "ACT"; |
| 17 | gpios = <&gpio 16 1>; |
| 18 | default-state = "keep"; |
| 19 | linux,default-trigger = "heartbeat"; |
| 20 | }; |
| 21 | }; |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 22 | }; |
Stephen Warren | 805504a | 2012-09-27 21:54:21 -0600 | [diff] [blame] | 23 | |
| 24 | &gpio { |
| 25 | pinctrl-names = "default"; |
Mark Brown | 667bbd5 | 2014-09-16 19:51:36 -0600 | [diff] [blame] | 26 | pinctrl-0 = <&gpioout &alt0 &alt2 &alt3>; |
Stephen Warren | 5631e7f | 2013-12-26 19:43:10 -0700 | [diff] [blame] | 27 | |
| 28 | gpioout: gpioout { |
| 29 | brcm,pins = <6>; |
| 30 | brcm,function = <1>; /* GPIO out */ |
| 31 | }; |
Stephen Warren | 805504a | 2012-09-27 21:54:21 -0600 | [diff] [blame] | 32 | |
| 33 | alt0: alt0 { |
Stephen Warren | 5631e7f | 2013-12-26 19:43:10 -0700 | [diff] [blame] | 34 | brcm,pins = <0 1 2 3 4 5 7 8 9 10 11 14 15 40 45>; |
Stephen Warren | 805504a | 2012-09-27 21:54:21 -0600 | [diff] [blame] | 35 | brcm,function = <4>; /* alt0 */ |
| 36 | }; |
| 37 | |
| 38 | alt3: alt3 { |
| 39 | brcm,pins = <48 49 50 51 52 53>; |
| 40 | brcm,function = <7>; /* alt3 */ |
| 41 | }; |
Mark Brown | 667bbd5 | 2014-09-16 19:51:36 -0600 | [diff] [blame] | 42 | |
| 43 | /* I2S interface */ |
| 44 | alt2: alt2 { |
| 45 | brcm,pins = <28 29 30 31>; |
| 46 | brcm,function = <6>; /* alt2 */ |
| 47 | }; |
Stephen Warren | 805504a | 2012-09-27 21:54:21 -0600 | [diff] [blame] | 48 | }; |
Stephen Warren | 5186bf2 | 2012-12-24 21:58:56 -0700 | [diff] [blame] | 49 | |
Stephen Warren | 232fed4 | 2012-12-31 23:26:45 -0700 | [diff] [blame] | 50 | &i2c0 { |
| 51 | status = "okay"; |
| 52 | clock-frequency = <100000>; |
| 53 | }; |
| 54 | |
| 55 | &i2c1 { |
| 56 | status = "okay"; |
| 57 | clock-frequency = <100000>; |
| 58 | }; |
| 59 | |
Stephen Warren | 5186bf2 | 2012-12-24 21:58:56 -0700 | [diff] [blame] | 60 | &sdhci { |
| 61 | status = "okay"; |
| 62 | bus-width = <4>; |
| 63 | }; |