1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 2 /dts-v1/; 3 #include "bcm2835.dtsi" 3 #include "bcm2835.dtsi" 4 #include "bcm2835-rpi.dtsi" 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9512.dtsi" 7 #include "bcm283x-rpi-smsc9512.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 9 9 10 / { 10 / { 11 compatible = "raspberrypi,model-b-rev2 11 compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835"; 12 model = "Raspberry Pi Model B rev2"; 12 model = "Raspberry Pi Model B rev2"; 13 13 14 memory@0 { 14 memory@0 { 15 device_type = "memory"; 15 device_type = "memory"; 16 reg = <0 0x10000000>; 16 reg = <0 0x10000000>; 17 }; 17 }; 18 }; 18 }; 19 19 20 &gpio { 20 &gpio { 21 /* 21 /* 22 * Taken from Raspberry-Pi-Rev-2.0-Mod 22 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf 23 * RPI00022 sheet 02 23 * RPI00022 sheet 02 24 * 24 * 25 * Legend: 25 * Legend: 26 * "FOO" = GPIO line named "FOO" on th 26 * "FOO" = GPIO line named "FOO" on the schematic 27 * "FOO_N" = GPIO line named "FOO" on 27 * "FOO_N" = GPIO line named "FOO" on schematic, active low 28 */ 28 */ 29 gpio-line-names = "SDA0", 29 gpio-line-names = "SDA0", 30 "SCL0", 30 "SCL0", 31 "SDA1", 31 "SDA1", 32 "SCL1", 32 "SCL1", 33 "GPIO_GCLK", 33 "GPIO_GCLK", 34 "CAM_CLK", 34 "CAM_CLK", 35 "LAN_RUN", 35 "LAN_RUN", 36 "SPI_CE1_N", 36 "SPI_CE1_N", 37 "SPI_CE0_N", 37 "SPI_CE0_N", 38 "SPI_MISO", 38 "SPI_MISO", 39 "SPI_MOSI", 39 "SPI_MOSI", 40 "SPI_SCLK", 40 "SPI_SCLK", 41 "", /* GPIO12 */ 41 "", /* GPIO12 */ 42 "", /* GPIO13 */ 42 "", /* GPIO13 */ 43 /* Serial port */ 43 /* Serial port */ 44 "TXD0", 44 "TXD0", 45 "RXD0", 45 "RXD0", 46 "STATUS_LED_N", 46 "STATUS_LED_N", 47 "GPIO17", 47 "GPIO17", 48 "GPIO18", 48 "GPIO18", 49 "", /* GPIO19 */ 49 "", /* GPIO19 */ 50 "", /* GPIO20 */ 50 "", /* GPIO20 */ 51 "CAM_GPIO", 51 "CAM_GPIO", 52 "GPIO22", 52 "GPIO22", 53 "GPIO23", 53 "GPIO23", 54 "GPIO24", 54 "GPIO24", 55 "GPIO25", 55 "GPIO25", 56 "", /* GPIO26 */ 56 "", /* GPIO26 */ 57 "GPIO27", 57 "GPIO27", 58 "GPIO28", 58 "GPIO28", 59 "GPIO29", 59 "GPIO29", 60 "GPIO30", 60 "GPIO30", 61 "GPIO31", 61 "GPIO31", 62 "", /* GPIO32 */ 62 "", /* GPIO32 */ 63 "", /* GPIO33 */ 63 "", /* GPIO33 */ 64 "", /* GPIO34 */ 64 "", /* GPIO34 */ 65 "", /* GPIO35 */ 65 "", /* GPIO35 */ 66 "", /* GPIO36 */ 66 "", /* GPIO36 */ 67 "", /* GPIO37 */ 67 "", /* GPIO37 */ 68 "", /* GPIO38 */ 68 "", /* GPIO38 */ 69 "", /* GPIO39 */ 69 "", /* GPIO39 */ 70 "PWM0_OUT", 70 "PWM0_OUT", 71 "", /* GPIO41 */ 71 "", /* GPIO41 */ 72 "", /* GPIO42 */ 72 "", /* GPIO42 */ 73 "", /* GPIO43 */ 73 "", /* GPIO43 */ 74 "", /* GPIO44 */ 74 "", /* GPIO44 */ 75 "PWM1_OUT", 75 "PWM1_OUT", 76 "HDMI_HPD_P", 76 "HDMI_HPD_P", 77 "SD_CARD_DET", 77 "SD_CARD_DET", 78 /* Used by SD Card * 78 /* Used by SD Card */ 79 "SD_CLK_R", 79 "SD_CLK_R", 80 "SD_CMD_R", 80 "SD_CMD_R", 81 "SD_DATA0_R", 81 "SD_DATA0_R", 82 "SD_DATA1_R", 82 "SD_DATA1_R", 83 "SD_DATA2_R", 83 "SD_DATA2_R", 84 "SD_DATA3_R"; 84 "SD_DATA3_R"; 85 85 86 pinctrl-names = "default"; 86 pinctrl-names = "default"; 87 pinctrl-0 = <&gpioout &alt0 &i2s_alt2> 87 pinctrl-0 = <&gpioout &alt0 &i2s_alt2>; 88 88 89 /* I2S interface */ 89 /* I2S interface */ 90 i2s_alt2: i2s_alt2 { 90 i2s_alt2: i2s_alt2 { 91 brcm,pins = <28 29 30 31>; 91 brcm,pins = <28 29 30 31>; 92 brcm,function = <BCM2835_FSEL_ 92 brcm,function = <BCM2835_FSEL_ALT2>; 93 }; 93 }; 94 }; 94 }; 95 95 96 &hdmi { 96 &hdmi { 97 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH 97 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>; 98 power-domains = <&power RPI_POWER_DOMA 98 power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 99 status = "okay"; 99 status = "okay"; 100 }; 100 }; 101 101 102 &led_act { 102 &led_act { 103 gpios = <&gpio 16 GPIO_ACTIVE_LOW>; 103 gpios = <&gpio 16 GPIO_ACTIVE_LOW>; 104 }; 104 }; 105 105 106 &pwm { 106 &pwm { 107 pinctrl-names = "default"; 107 pinctrl-names = "default"; 108 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45 108 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>; 109 status = "okay"; 109 status = "okay"; 110 }; 110 }; 111 111 112 &sdhost { 112 &sdhost { 113 pinctrl-names = "default"; 113 pinctrl-names = "default"; 114 pinctrl-0 = <&sdhost_gpio48>; 114 pinctrl-0 = <&sdhost_gpio48>; 115 bus-width = <4>; 115 bus-width = <4>; 116 status = "okay"; 116 status = "okay"; 117 }; 117 }; 118 118 119 &uart0 { 119 &uart0 { 120 pinctrl-names = "default"; 120 pinctrl-names = "default"; 121 pinctrl-0 = <&uart0_gpio14>; 121 pinctrl-0 = <&uart0_gpio14>; 122 status = "okay"; 122 status = "okay"; 123 }; 123 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.