mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 22:45:23 +07:00
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>
68 lines
1.0 KiB
Plaintext
68 lines
1.0 KiB
Plaintext
/dts-v1/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/include/ "etraxfs.dtsi"
|
|
|
|
/ {
|
|
model = "Axis 88 Developer Board";
|
|
compatible = "axis,dev88";
|
|
|
|
aliases {
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
soc {
|
|
uart0: serial@b00260000 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
spi {
|
|
compatible = "spi-gpio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
gpio-sck = <&gio 1 0 0xd>;
|
|
gpio-miso = <&gio 4 0 0xd>;
|
|
gpio-mosi = <&gio 0 0 0xd>;
|
|
cs-gpios = <&gio 3 0 0xd>;
|
|
num-chipselects = <1>;
|
|
|
|
temp-sensor@0 {
|
|
compatible = "ti,lm70";
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <100000>;
|
|
};
|
|
};
|
|
|
|
i2c {
|
|
compatible = "i2c-gpio";
|
|
gpios = <&gio 5 0 0xd>, <&gio 6 0 0xd>;
|
|
i2c-gpio,delay-us = <2>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
rtc@51 {
|
|
compatible = "nxp,pcf8563";
|
|
reg = <0x51>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
network {
|
|
label = "network";
|
|
gpios = <&gio 2 GPIO_ACTIVE_LOW 0xa>;
|
|
};
|
|
|
|
status {
|
|
label = "status";
|
|
gpios = <&gio 3 GPIO_ACTIVE_LOW 0xa>;
|
|
linux,default-trigger = "heartbeat";
|
|
};
|
|
};
|
|
};
|