cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

bcm2836-rpi-2-b.dts (2327B)


      1// SPDX-License-Identifier: GPL-2.0
      2/dts-v1/;
      3#include "bcm2836.dtsi"
      4#include "bcm2836-rpi.dtsi"
      5#include "bcm283x-rpi-smsc9514.dtsi"
      6#include "bcm283x-rpi-usb-host.dtsi"
      7
      8/ {
      9	compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
     10	model = "Raspberry Pi 2 Model B";
     11
     12	memory@0 {
     13		device_type = "memory";
     14		reg = <0 0x40000000>;
     15	};
     16
     17	leds {
     18		led-act {
     19			gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
     20		};
     21
     22		led-pwr {
     23			label = "PWR";
     24			gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
     25			default-state = "keep";
     26			linux,default-trigger = "default-on";
     27		};
     28	};
     29};
     30
     31&gpio {
     32	/*
     33	 * Taken from rpi_SCH_2b_1p2_reduced.pdf and
     34	 * the official GPU firmware DT blob.
     35	 *
     36	 * Legend:
     37	 * "FOO" = GPIO line named "FOO" on the schematic
     38	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
     39	 */
     40	gpio-line-names = "ID_SDA",
     41			  "ID_SCL",
     42			  "SDA1",
     43			  "SCL1",
     44			  "GPIO_GCLK",
     45			  "GPIO5",
     46			  "GPIO6",
     47			  "SPI_CE1_N",
     48			  "SPI_CE0_N",
     49			  "SPI_MISO",
     50			  "SPI_MOSI",
     51			  "SPI_SCLK",
     52			  "GPIO12",
     53			  "GPIO13",
     54			  /* Serial port */
     55			  "TXD0",
     56			  "RXD0",
     57			  "GPIO16",
     58			  "GPIO17",
     59			  "GPIO18",
     60			  "GPIO19",
     61			  "GPIO20",
     62			  "GPIO21",
     63			  "GPIO22",
     64			  "GPIO23",
     65			  "GPIO24",
     66			  "GPIO25",
     67			  "GPIO26",
     68			  "GPIO27",
     69			  "SDA0",
     70			  "SCL0",
     71			  "", /* GPIO30 */
     72			  "LAN_RUN",
     73			  "CAM_GPIO1",
     74			  "", /* GPIO33 */
     75			  "", /* GPIO34 */
     76			  "PWR_LOW_N",
     77			  "", /* GPIO36 */
     78			  "", /* GPIO37 */
     79			  "USB_LIMIT",
     80			  "", /* GPIO39 */
     81			  "PWM0_OUT",
     82			  "CAM_GPIO0",
     83			  "SMPS_SCL",
     84			  "SMPS_SDA",
     85			  "ETH_CLK",
     86			  "PWM1_OUT",
     87			  "HDMI_HPD_N",
     88			  "STATUS_LED",
     89			  /* Used by SD Card */
     90			  "SD_CLK_R",
     91			  "SD_CMD_R",
     92			  "SD_DATA0_R",
     93			  "SD_DATA1_R",
     94			  "SD_DATA2_R",
     95			  "SD_DATA3_R";
     96
     97	pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
     98
     99	/* I2S interface */
    100	i2s_alt0: i2s_alt0 {
    101		brcm,pins = <18 19 20 21>;
    102		brcm,function = <BCM2835_FSEL_ALT0>;
    103	};
    104};
    105
    106&hdmi {
    107	hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
    108	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
    109	status = "okay";
    110};
    111
    112&pwm {
    113	pinctrl-names = "default";
    114	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
    115	status = "okay";
    116};
    117
    118&sdhost {
    119	pinctrl-names = "default";
    120	pinctrl-0 = <&sdhost_gpio48>;
    121	bus-width = <4>;
    122	status = "okay";
    123};
    124
    125&uart0 {
    126	pinctrl-names = "default";
    127	pinctrl-0 = <&uart0_gpio14>;
    128	status = "okay";
    129};