2019-10-22 03:08:39 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Vestas Wind Systems A/S
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
&arduino_spi {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
lmp90100: lmp90100@0 {
|
|
|
|
compatible = "ti,lmp90100";
|
|
|
|
reg = <0x0>;
|
|
|
|
spi-max-frequency = <1000000>;
|
|
|
|
label = "LMP90100";
|
|
|
|
/* Uncomment to use IRQ instead of polling: */
|
2020-01-26 23:58:46 +08:00
|
|
|
/* drdyb-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; */
|
2019-10-22 03:08:39 +08:00
|
|
|
#io-channel-cells = <2>;
|
|
|
|
|
2020-01-27 06:10:19 +08:00
|
|
|
lmp90100_gpio: gpio {
|
2019-10-22 03:08:39 +08:00
|
|
|
compatible = "ti,lmp90xxx-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
label = "LMP90100_GPIO";
|
2020-01-27 06:10:19 +08:00
|
|
|
/* Reduce to 6 if drdyb is used */
|
|
|
|
ngpios = <7>;
|
2019-10-22 03:08:39 +08:00
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&arduino_i2c {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
eeprom0: eeprom@57 {
|
|
|
|
compatible = "atmel,at24";
|
|
|
|
reg = <0x57>;
|
|
|
|
label = "EEPROM_LMP90100_EVB";
|
|
|
|
size = <256>;
|
|
|
|
pagesize = <8>;
|
|
|
|
address-width = <8>;
|
|
|
|
timeout = <5>;
|
|
|
|
};
|
|
|
|
};
|