Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2709 platform for Raspberry Pi 2
- Loading branch information
1 parent
2cbc0c0
commit e897b67
Showing
65 changed files
with
8,999 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/dts-v1/; | ||
|
||
/include/ "bcm2709.dtsi" | ||
|
||
/ { | ||
compatible = "brcm,bcm2709"; | ||
model = "Raspberry Pi 2 Model B"; | ||
|
||
aliases { | ||
soc = &soc; | ||
spi0 = &spi0; | ||
i2c0 = &i2c0; | ||
i2c1 = &i2c1; | ||
i2s = &i2s; | ||
gpio = &gpio; | ||
intc = &intc; | ||
leds = &leds; | ||
sound = &sound; | ||
}; | ||
|
||
sound: sound { | ||
}; | ||
}; | ||
|
||
&gpio { | ||
spi0_pins: spi0_pins { | ||
brcm,pins = <7 8 9 10 11>; | ||
brcm,function = <4>; /* alt0 */ | ||
}; | ||
|
||
i2c0_pins: i2c0 { | ||
brcm,pins = <0 1>; | ||
brcm,function = <4>; | ||
}; | ||
|
||
i2c1_pins: i2c1 { | ||
brcm,pins = <2 3>; | ||
brcm,function = <4>; | ||
}; | ||
|
||
i2s_pins: i2s { | ||
brcm,pins = <18 19 20 21>; | ||
brcm,function = <4>; /* alt0 */ | ||
}; | ||
}; | ||
|
||
&spi0 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&spi0_pins>; | ||
|
||
spidev@0{ | ||
compatible = "spidev"; | ||
reg = <0>; /* CE0 */ | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
spi-max-frequency = <500000>; | ||
}; | ||
|
||
spidev@1{ | ||
compatible = "spidev"; | ||
reg = <1>; /* CE1 */ | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
spi-max-frequency = <500000>; | ||
}; | ||
}; | ||
|
||
&i2c0 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c0_pins>; | ||
clock-frequency = <100000>; | ||
}; | ||
|
||
&i2c1 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c1_pins>; | ||
clock-frequency = <100000>; | ||
}; | ||
|
||
&i2s { | ||
#sound-dai-cells = <0>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2s_pins>; | ||
}; | ||
|
||
&act_led { | ||
gpios = <&gpio 47 0>; | ||
}; | ||
|
||
/ { | ||
__overrides__ { | ||
i2s = <&i2s>,"status"; | ||
spi = <&spi0>,"status"; | ||
i2c0 = <&i2c0>,"status"; | ||
i2c1 = <&i2c1>,"status"; | ||
|
||
act_led_gpio = <&act_led>,"gpios:4"; | ||
act_led_activelow = <&act_led>,"gpios:8"; | ||
act_led_trigger = <&act_led>,"linux,default-trigger"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
/include/ "skeleton.dtsi" | ||
|
||
/ { | ||
compatible = "brcm,bcm2709"; | ||
model = "BCM2709"; | ||
|
||
interrupt-parent = <&intc>; | ||
|
||
chosen { | ||
/* No padding required - the boot loader can do that. */ | ||
bootargs = ""; | ||
}; | ||
|
||
soc: soc { | ||
compatible = "simple-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0x7e000000 0x3f000000 0x01000000>; | ||
|
||
intc: interrupt-controller { | ||
compatible = "brcm,bcm2708-armctrl-ic"; | ||
reg = <0x7e00b200 0x200>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
gpio: gpio { | ||
compatible = "brcm,bcm2835-gpio"; | ||
reg = <0x7e200000 0xb4>; | ||
interrupts = <2 17>, <2 18>; | ||
|
||
gpio-controller; | ||
#gpio-cells = <2>; | ||
|
||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
i2s: i2s@7e203000 { | ||
compatible = "brcm,bcm2708-i2s"; | ||
reg = <0x7e203000 0x20>, | ||
<0x7e101098 0x02>; | ||
|
||
//dmas = <&dma 2>, | ||
// <&dma 3>; | ||
dma-names = "tx", "rx"; | ||
status = "disabled"; | ||
}; | ||
|
||
spi0: spi@7e204000 { | ||
compatible = "brcm,bcm2708-spi"; | ||
reg = <0x7e204000 0x1000>; | ||
interrupts = <2 22>; | ||
clocks = <&clk_spi>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "disabled"; | ||
}; | ||
|
||
i2c0: i2c@7e205000 { | ||
compatible = "brcm,bcm2708-i2c"; | ||
reg = <0x7e205000 0x1000>; | ||
interrupts = <2 21>; | ||
clocks = <&clk_i2c>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "disabled"; | ||
}; | ||
|
||
i2c1: i2c@7e804000 { | ||
compatible = "brcm,bcm2708-i2c"; | ||
reg = <0x7e804000 0x1000>; | ||
interrupts = <2 21>; | ||
clocks = <&clk_i2c>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "disabled"; | ||
}; | ||
|
||
leds: leds { | ||
compatible = "gpio-leds"; | ||
|
||
act_led: act { | ||
label = "ACT"; | ||
linux,default-trigger = "mmc0"; | ||
}; | ||
}; | ||
}; | ||
|
||
clocks { | ||
compatible = "simple-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
clk_i2c: i2c { | ||
compatible = "fixed-clock"; | ||
reg = <1>; | ||
#clock-cells = <0>; | ||
clock-frequency = <250000000>; | ||
}; | ||
|
||
clk_spi: clock@2 { | ||
compatible = "fixed-clock"; | ||
reg = <2>; | ||
#clock-cells = <0>; | ||
clock-output-names = "spi"; | ||
clock-frequency = <250000000>; | ||
}; | ||
}; | ||
|
||
timer { | ||
compatible = "arm,armv7-timer"; | ||
clock-frequency = <19200000>; | ||
interrupts = <3 0>, // PHYS_SECURE_PPI | ||
<3 1>, // PHYS_NONSECURE_PPI | ||
<3 3>, // VIRT_PPI | ||
<3 2>; // HYP_PPI | ||
}; | ||
|
||
cpus: cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
v7_cpu0: cpu@0 { | ||
device_type = "cpu"; | ||
compatible = "arm,cortex-a7"; | ||
reg = <0xf00>; | ||
clock-frequency = <800000000>; | ||
}; | ||
|
||
v7_cpu1: cpu@1 { | ||
device_type = "cpu"; | ||
compatible = "arm,cortex-a7"; | ||
reg = <0xf01>; | ||
clock-frequency = <800000000>; | ||
}; | ||
|
||
v7_cpu2: cpu@2 { | ||
device_type = "cpu"; | ||
compatible = "arm,cortex-a7"; | ||
reg = <0xf02>; | ||
clock-frequency = <800000000>; | ||
}; | ||
|
||
v7_cpu3: cpu@3 { | ||
device_type = "cpu"; | ||
compatible = "arm,cortex-a7"; | ||
reg = <0xf03>; | ||
clock-frequency = <800000000>; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
arm_freq = <&v7_cpu0>, "clock-frequency:0", | ||
<&v7_cpu1>, "clock-frequency:0", | ||
<&v7_cpu2>, "clock-frequency:0", | ||
<&v7_cpu3>, "clock-frequency:0"; | ||
}; | ||
}; |
Oops, something went wrong.