mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Add the bare minimum needed to boot BCM2708 from a Device Tree. Signed-off-by: Noralf Tronnes <notro@tronnes.org> BCM2708: DT: change 'axi' nodename to 'soc' Change DT node named 'axi' to 'soc' so it matches ARCH_BCM2835. The VC4 bootloader fills in certain properties in the 'axi' subtree, but since this is part of an upstreaming effort, the name is changed. Signed-off-by: Noralf Tronnes notro@tronnes.org BCM2708_DT: Correct length of the peripheral space Use dts-dirs feature for overlays. The kernel makefiles have a dts-dirs target that is for vendor subdirectories. Using this fixes the install_dtbs target, which previously did not install the overlays. BCM270X_DT: configure I2S DMA channels Signed-off-by: Matthias Reichl <hias@horus.com> BCM270X_DT: switch to bcm2835-i2s I2S soundcard drivers with proper devicetree support (i.e. not linking to the cpu_dai/platform via name but to cpu/platform via of_node) will work out of the box without any modifications. When the kernel is compiled without devicetree support the platform code will instantiate the bcm2708-i2s driver and I2S soundcard drivers will link to it via name, as before. Signed-off-by: Matthias Reichl <hias@horus.com>
40 lines
685 B
Plaintext
40 lines
685 B
Plaintext
// Definitions for w1-gpio module (without external pullup)
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
/ {
|
|
compatible = "brcm,bcm2708";
|
|
|
|
fragment@0 {
|
|
target-path = "/";
|
|
__overlay__ {
|
|
|
|
w1: onewire@0 {
|
|
compatible = "w1-gpio";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&w1_pins>;
|
|
gpios = <&gpio 4 0>;
|
|
rpi,parasitic-power = <0>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&gpio>;
|
|
__overlay__ {
|
|
w1_pins: w1_pins {
|
|
brcm,pins = <4>;
|
|
brcm,function = <0>; // in (initially)
|
|
brcm,pull = <0>; // off
|
|
};
|
|
};
|
|
};
|
|
|
|
__overrides__ {
|
|
gpiopin = <&w1>,"gpios:4",
|
|
<&w1_pins>,"brcm,pins:0";
|
|
pullup = <&w1>,"rpi,parasitic-power:0";
|
|
};
|
|
};
|