qcom-ipq4018-meshpoint-one.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /* Copyright (c) 2019, CRISIS INNOVATION LAB d.o.o.
  3. * Author: Robert Marko <[email protected]>
  4. */
  5. #include <dt-bindings/leds/common.h>
  6. #include "qcom-ipq4018-jalapeno.dtsi"
  7. / {
  8. model = "Crisis Innovation Lab MeshPoint.One";
  9. compatible = "cilab,meshpoint-one";
  10. aliases {
  11. led-boot = &led_status;
  12. led-failsafe = &led_status;
  13. led-running = &led_status;
  14. led-upgrade = &led_status;
  15. };
  16. soc {
  17. i2c-gpio {
  18. status = "okay";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. compatible = "i2c-gpio";
  22. gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
  23. &tlmm 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
  24. >;
  25. bme280@76 {
  26. status = "okay";
  27. compatible = "bosch,bme280";
  28. reg = <0x76>;
  29. };
  30. pcf2129@51 {
  31. status = "okay";
  32. compatible = "nxp,pcf2129";
  33. reg = <0x51>;
  34. };
  35. ina230@40 {
  36. status = "okay";
  37. compatible = "ti,ina230";
  38. reg = <0x40>;
  39. shunt-resistor = <2000>;
  40. };
  41. ina230@44 {
  42. status = "okay";
  43. compatible = "ti,ina230";
  44. reg = <0x44>;
  45. shunt-resistor = <2000>;
  46. };
  47. };
  48. };
  49. keys {
  50. compatible = "gpio-keys";
  51. reset {
  52. label = "reset";
  53. gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_RESTART >;
  55. };
  56. };
  57. leds {
  58. compatible = "gpio-leds";
  59. led_status: status {
  60. function = LED_FUNCTION_STATUS;
  61. color = <LED_COLOR_ID_BLUE>;
  62. gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
  63. };
  64. };
  65. };