dalzentwo_nrf9151_common.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /*
  2. * Copyright (c) 2023 Nordic Semiconductor ASA
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include "dalzentwo_nrf9151_common-pinctrl.dtsi"
  7. #include <zephyr/dt-bindings/input/input-event-codes.h>
  8. / {
  9. model = "Lamox Dalzen Two NRF9151";
  10. compatible = "nordic,dalzentwo-nrf9151";
  11. chosen {
  12. zephyr,console = &uart0;
  13. zephyr,shell-uart = &uart0;
  14. zephyr,uart-mcumgr = &uart0;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. led0: led_0 {
  19. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  20. label = "Green LED 1";
  21. };
  22. led1: led_1 {
  23. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  24. label = "Green LED 2";
  25. };
  26. led2: led_2 {
  27. gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  28. label = "Green LED 3";
  29. };
  30. led3: led_3 {
  31. gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  32. label = "Green LED 4";
  33. };
  34. };
  35. pwmleds {
  36. compatible = "pwm-leds";
  37. pwm_led0: pwm_led_0 {
  38. pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
  39. };
  40. };
  41. buttons {
  42. compatible = "gpio-keys";
  43. button0: button_0 {
  44. gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  45. label = "Push button 1";
  46. zephyr,code = <INPUT_KEY_0>;
  47. };
  48. button1: button_1 {
  49. gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  50. label = "Push button 2";
  51. zephyr,code = <INPUT_KEY_1>;
  52. };
  53. button2: button_2 {
  54. gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  55. label = "Push button 3";
  56. zephyr,code = <INPUT_KEY_2>;
  57. };
  58. button3: button_3 {
  59. gpios = <&gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  60. label = "Push button 4";
  61. zephyr,code = <INPUT_KEY_3>;
  62. };
  63. };
  64. nrf5340_reset: gpio-reset {
  65. compatible = "nordic,dalzentwo-nrf5340-reset";
  66. status = "disabled";
  67. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  68. };
  69. arduino_header: connector {
  70. compatible = "arduino-header-r3";
  71. #gpio-cells = <2>;
  72. gpio-map-mask = <0xffffffff 0xffffffc0>;
  73. gpio-map-pass-thru = <0 0x3f>;
  74. gpio-map = <0 0 &gpio0 14 0>, /* A0 */
  75. <1 0 &gpio0 15 0>, /* A1 */
  76. <2 0 &gpio0 16 0>, /* A2 */
  77. <3 0 &gpio0 17 0>, /* A3 */
  78. <4 0 &gpio0 18 0>, /* A4 */
  79. <5 0 &gpio0 19 0>, /* A5 */
  80. <6 0 &gpio0 0 0>, /* D0 */
  81. <7 0 &gpio0 1 0>, /* D1 */
  82. <8 0 &gpio0 2 0>, /* D2 */
  83. <9 0 &gpio0 3 0>, /* D3 */
  84. <10 0 &gpio0 4 0>, /* D4 */
  85. <11 0 &gpio0 5 0>, /* D5 */
  86. <12 0 &gpio0 6 0>, /* D6 */
  87. <13 0 &gpio0 7 0>, /* D7 */
  88. <14 0 &gpio0 8 0>, /* D8 */
  89. <15 0 &gpio0 9 0>, /* D9 */
  90. <16 0 &gpio0 10 0>, /* D10 */
  91. <17 0 &gpio0 11 0>, /* D11 */
  92. <18 0 &gpio0 12 0>, /* D12 */
  93. <19 0 &gpio0 13 0>, /* D13 */
  94. <20 0 &gpio0 30 0>, /* D14 */
  95. <21 0 &gpio0 31 0>; /* D15 */
  96. };
  97. arduino_adc: analog-connector {
  98. compatible = "arduino,uno-adc";
  99. #io-channel-cells = <1>;
  100. io-channel-map = <0 &adc 1>, /* A0 = P0.14 = AIN1 */
  101. <1 &adc 2>, /* A1 = P0.15 = AIN2 */
  102. <2 &adc 3>, /* A2 = P0.16 = AIN3 */
  103. <3 &adc 4>, /* A3 = P0.17 = AIN4 */
  104. <4 &adc 5>, /* A4 = P0.18 = AIN5 */
  105. <5 &adc 6>; /* A5 = P0.19 = AIN6 */
  106. };
  107. /* These aliases are provided for compatibility with samples */
  108. aliases {
  109. led0 = &led0;
  110. led1 = &led1;
  111. led2 = &led2;
  112. led3 = &led3;
  113. pwm-led0 = &pwm_led0;
  114. sw0 = &button0;
  115. sw1 = &button1;
  116. sw2 = &button2;
  117. sw3 = &button3;
  118. bootloader-led0 = &led0;
  119. mcuboot-button0 = &button0;
  120. mcuboot-led0 = &led0;
  121. watchdog0 = &wdt0;
  122. };
  123. };
  124. &adc {
  125. status = "okay";
  126. };
  127. &gpiote {
  128. status = "okay";
  129. };
  130. &gpio0 {
  131. status = "okay";
  132. };
  133. &uart0 {
  134. status = "okay";
  135. current-speed = <115200>;
  136. pinctrl-0 = <&uart0_default>;
  137. pinctrl-1 = <&uart0_sleep>;
  138. pinctrl-names = "default", "sleep";
  139. };
  140. arduino_serial: &uart1 {
  141. status = "okay";
  142. current-speed = <115200>;
  143. pinctrl-0 = <&uart1_default>;
  144. pinctrl-1 = <&uart1_sleep>;
  145. pinctrl-names = "default", "sleep";
  146. };
  147. arduino_i2c: &i2c2 {
  148. compatible = "nordic,nrf-twim";
  149. status = "okay";
  150. pinctrl-0 = <&i2c2_default>;
  151. pinctrl-1 = <&i2c2_sleep>;
  152. pinctrl-names = "default", "sleep";
  153. clock-frequency = <I2C_BITRATE_FAST>;
  154. pcal6408a: pcal6408a@21 {
  155. compatible = "nxp,pcal6408a";
  156. status = "disabled";
  157. reg = <0x21>;
  158. gpio-controller;
  159. #gpio-cells = <2>;
  160. ngpios = <8>;
  161. int-gpios = <&gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  162. };
  163. };
  164. &pwm0 {
  165. status = "okay";
  166. pinctrl-0 = <&pwm0_default>;
  167. pinctrl-1 = <&pwm0_sleep>;
  168. pinctrl-names = "default", "sleep";
  169. };
  170. arduino_spi: &spi3 {
  171. compatible = "nordic,nrf-spim";
  172. status = "okay";
  173. cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>, /* D10 */
  174. <&gpio0 20 GPIO_ACTIVE_LOW>;
  175. pinctrl-0 = <&spi3_default>;
  176. pinctrl-1 = <&spi3_sleep>;
  177. pinctrl-names = "default", "sleep";
  178. gd25wb256: gd25wb256e3ir@1 {
  179. compatible = "jedec,spi-nor";
  180. status = "disabled";
  181. reg = <1>;
  182. spi-max-frequency = <8000000>;
  183. size = <268435456>;
  184. has-dpd;
  185. t-enter-dpd = <3000>;
  186. t-exit-dpd = <40000>;
  187. sfdp-bfp = [
  188. e5 20 f3 ff ff ff ff 0f 44 eb 08 6b 08 3b 42 bb
  189. ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
  190. 10 d8 00 ff 44 7a c9 fe 83 67 26 62 ec 82 18 44
  191. 7a 75 7a 75 04 c4 d5 5c 00 06 74 00 08 50 00 01
  192. ];
  193. jedec-id = [c8 65 19];
  194. };
  195. };
  196. /* Include default memory partition configuration file */
  197. #include <common/nordic/nrf91xx_partition.dtsi>