Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 1 | #include <dt-bindings/power/raspberrypi-power.h> |
| 2 | |
| 3 | / { |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 4 | memory@0 { |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 5 | device_type = "memory"; |
| 6 | reg = <0 0x10000000>; |
| 7 | }; |
| 8 | |
| 9 | leds { |
| 10 | compatible = "gpio-leds"; |
| 11 | |
| 12 | act { |
| 13 | label = "ACT"; |
| 14 | default-state = "keep"; |
| 15 | linux,default-trigger = "heartbeat"; |
| 16 | }; |
| 17 | }; |
| 18 | |
| 19 | soc { |
| 20 | firmware: firmware { |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 21 | compatible = "raspberrypi,bcm2835-firmware", "simple-bus"; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 22 | mboxes = <&mailbox>; |
| 23 | }; |
| 24 | |
| 25 | power: power { |
| 26 | compatible = "raspberrypi,bcm2835-power"; |
| 27 | firmware = <&firmware>; |
| 28 | #power-domain-cells = <1>; |
| 29 | }; |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 30 | |
| 31 | vchiq: mailbox@7e00b840 { |
| 32 | compatible = "brcm,bcm2835-vchiq"; |
| 33 | reg = <0x7e00b840 0x3c>; |
| 34 | interrupts = <0 2>; |
| 35 | }; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 36 | }; |
| 37 | }; |
| 38 | |
| 39 | &gpio { |
| 40 | pinctrl-names = "default"; |
| 41 | |
| 42 | gpioout: gpioout { |
| 43 | brcm,pins = <6>; |
| 44 | brcm,function = <BCM2835_FSEL_GPIO_OUT>; |
| 45 | }; |
| 46 | |
| 47 | alt0: alt0 { |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 48 | brcm,pins = <4 5 7 8 9 10 11>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 49 | brcm,function = <BCM2835_FSEL_ALT0>; |
| 50 | }; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | &i2c0 { |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 54 | pinctrl-names = "default"; |
| 55 | pinctrl-0 = <&i2c0_gpio0>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 56 | status = "okay"; |
| 57 | clock-frequency = <100000>; |
| 58 | }; |
| 59 | |
| 60 | &i2c1 { |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 61 | pinctrl-names = "default"; |
| 62 | pinctrl-0 = <&i2c1_gpio2>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 63 | status = "okay"; |
| 64 | clock-frequency = <100000>; |
| 65 | }; |
| 66 | |
| 67 | &i2c2 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | &sdhci { |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&emmc_gpio48>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 74 | bus-width = <4>; |
| 75 | }; |
| 76 | |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 77 | &sdhost { |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&sdhost_gpio48>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 80 | status = "okay"; |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 81 | bus-width = <4>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 82 | }; |
| 83 | |
| 84 | &usb { |
| 85 | power-domains = <&power RPI_POWER_DOMAIN_USB>; |
| 86 | }; |
| 87 | |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 88 | &hdmi { |
| 89 | power-domains = <&power RPI_POWER_DOMAIN_HDMI>; |
| 90 | status = "okay"; |
| 91 | }; |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 92 | |
| 93 | &vec { |
| 94 | power-domains = <&power RPI_POWER_DOMAIN_VEC>; |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | |
| 98 | &dsi0 { |
| 99 | power-domains = <&power RPI_POWER_DOMAIN_DSI0>; |
| 100 | }; |
| 101 | |
| 102 | &dsi1 { |
| 103 | power-domains = <&power RPI_POWER_DOMAIN_DSI1>; |
| 104 | }; |