31 lines
644 B
Plaintext
31 lines
644 B
Plaintext
&pio {
|
|
leds_opc: led_pins {
|
|
pins = "PA15";
|
|
function = "gpio_out";
|
|
};
|
|
|
|
lmg6202ulyt_opc: lmg6202ulyt_pins {
|
|
pins = "PA12", "PA3";
|
|
function = "gpio_in"; /* initial configuration */
|
|
#gpio-cells = <3>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <3>;
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
lmg6202ulyt@0 {
|
|
compatible = "hitachi,lmg6202ulyt";
|
|
reg = <0x0>;
|
|
spi-max-frequency = <2000000>;
|
|
cs-gpios = <0>, <&pio 0 3 GPIO_ACTIVE_LOW>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&lmg6202ulyt_opc>;
|
|
irq-gpios = <&pio 0 12 GPIO_ACTIVE_LOW>;
|
|
interrupt-parent = <&pio>;
|
|
/*interrupts = <GIC_SPI 12 IRQ_TYPE_EDGE_FALLING>;*/
|
|
};
|
|
};
|