forked from Minki/linux
a95b3ba2c3
Add the GPIO driver to the device tree and, using it, support for the LEDs and the RTC chip (via I2C-GPIO), as well as the temperature sensor (via SPI-GPIO). Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jespern@axis.com>
47 lines
790 B
Plaintext
47 lines
790 B
Plaintext
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
interrupt-parent = <&intc>;
|
|
|
|
cpus {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
cpu@0 {
|
|
device_type = "cpu";
|
|
model = "axis,crisv32";
|
|
reg = <0>;
|
|
};
|
|
};
|
|
|
|
soc {
|
|
compatible = "simple-bus";
|
|
model = "etraxfs";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
|
|
intc: interrupt-controller {
|
|
compatible = "axis,crisv32-intc";
|
|
reg = <0xb001c000 0x1000>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <1>;
|
|
};
|
|
|
|
gio: gpio@b001a000 {
|
|
compatible = "axis,etraxfs-gio";
|
|
reg = <0xb001a000 0x1000>;
|
|
interrupts = <50>;
|
|
gpio-controller;
|
|
#gpio-cells = <3>;
|
|
};
|
|
|
|
serial@b00260000 {
|
|
compatible = "axis,etraxfs-uart";
|
|
reg = <0xb0026000 0x1000>;
|
|
interrupts = <68>;
|
|
status = "disabled";
|
|
};
|
|
};
|
|
};
|