内核版本:4.14.0
平台:ZYNQ
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
/ {
leds {
compatible = "gpio-leds";
ps_led0 {
label = "ps_led0";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "on";
};
};
beeper {
compatible = "navigator,beeper";
status = "okay";
default-state = "off";
beeper-gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
keys {
compatible = "gpio-keys";
autorepeat;
ps_key0 {
label = "ps_key0";
linux,code = <KEY_0>;
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
debounce-interval = <15>;
};
};
};
&i2c0 {
clock-frequency = <100000>;
rtc@51{
compatible = "nxp,pcf8563";
reg = <0x51>;
};
};
&spi0 {
spidev {
compatible = "navigator,spidev";
spi-max-frequency = <8000000>;
reg = <0>;
};
};
&PWM_0 {
compatible = "navigator,axi-pwm";
clock-names = "pwm-clock";
npwm = <1>;
};