1/* 2 * Copyright (c) 2020 Lemonbeat GmbH 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include "lpcxpresso55s28-pinctrl.dtsi" 8 9/ { 10 aliases{ 11 led0 = &red_led; 12 led1 = &green_led; 13 led2 = &blue_led; 14 spi-8 = &hs_lspi; 15 usart-0 = &flexcomm0; 16 accel0 = &mma8652fc; 17 }; 18 19 leds { 20 compatible = "gpio-leds"; 21 green_led: led_1 { 22 gpios = <&gpio1 7 0>; 23 label = "User LD2"; 24 status = "disabled"; 25 }; 26 blue_led: led_2 { 27 gpios = <&gpio1 4 0>; 28 label = "User LD3"; 29 status = "disabled"; 30 }; 31 red_led: led_3 { 32 gpios = <&gpio1 6 0>; 33 label = "User LD4"; 34 status = "disabled"; 35 }; 36 }; 37 38 mikrobus_header: mikrobus-connector { 39 compatible = "mikro-bus"; 40 #gpio-cells = <2>; 41 gpio-map-mask = <0xffffffff 0xffffffc0>; 42 gpio-map-pass-thru = <0 0x3f>; 43 gpio-map = <0 0 &gpio0 16 0>, /* AN */ 44 /* Not a GPIO*/ /* RST */ 45 <2 0 &gpio1 1 0>, /* CS */ 46 <3 0 &gpio1 2 0>, /* SCK */ 47 <4 0 &gpio1 3 0>, /* MISO */ 48 <5 0 &gpio0 26 0>, /* MOSI */ 49 /* +3.3V */ 50 /* GND */ 51 <6 0 &gpio1 5 0>, /* PWM */ 52 <7 0 &gpio1 18 0>, /* INT */ 53 <8 0 &gpio1 24 0>, /* RX */ 54 <9 0 &gpio0 27 0>, /* TX */ 55 <10 0 &gpio1 20 0>, /* SCL */ 56 <11 0 &gpio1 21 0>; /* SDA */ 57 /* +5V */ 58 /* GND */ 59 }; 60 61 arduino_header: arduino-connector { 62 compatible = "arduino-header-r3"; 63 #gpio-cells = <2>; 64 gpio-map-mask = <0xffffffff 0xffffffc0>; 65 gpio-map-pass-thru = <0 0x3f>; 66 gpio-map = <0 0 &gpio0 16 0>, /* A0 */ 67 <1 0 &gpio0 23 0>, /* A1 */ 68 <2 0 &gpio0 0 0>, /* A2 */ 69 <3 0 &gpio1 31 0>, /* A3 */ 70 <4 0 &gpio0 13 0>, /* A4 */ 71 <5 0 &gpio0 14 0>, /* A5 */ 72 <6 0 &gpio1 24 0>, /* D0 */ 73 <7 0 &gpio0 27 0>, /* D1 */ 74 <8 0 &gpio0 15 0>, /* D2 */ 75 <9 0 &gpio1 6 0>, /* D3 */ 76 <10 0 &gpio1 7 0>, /* D4 */ 77 <11 0 &gpio1 4 0>, /* D5 */ 78 <12 0 &gpio1 10 0>, /* D6 */ 79 <13 0 &gpio1 9 0>, /* D7 */ 80 <14 0 &gpio1 8 0>, /* D8 */ 81 <15 0 &gpio1 5 0>, /* D9 */ 82 <16 0 &gpio1 1 0>, /* D10 */ 83 <17 0 &gpio0 26 0>, /* D11 */ 84 <18 0 &gpio1 3 0>, /* D12 */ 85 <19 0 &gpio1 2 0>, /* D13 */ 86 <20 0 &gpio1 21 0>, /* D14 */ 87 <21 0 &gpio1 20 0>; /* D15 */ 88 }; 89}; 90 91&flexcomm0 { 92 compatible = "nxp,lpc-usart"; 93 current-speed = <115200>; 94 pinctrl-0 = <&pinmux_flexcomm0_usart>; 95 pinctrl-names = "default"; 96 dmas = <&dma0 4>, <&dma0 5>; 97 dma-names = "rx", "tx"; 98}; 99 100arduino_i2c: &flexcomm4 { 101 compatible = "nxp,lpc-i2c"; 102 clock-frequency = <I2C_BITRATE_STANDARD>; 103 #address-cells = <1>; 104 #size-cells = <0>; 105 pinctrl-0 = <&pinmux_flexcomm4_i2c>; 106 pinctrl-names = "default"; 107 108 mma8652fc: mma8652fc@1d { 109 compatible = "nxp,fxos8700","nxp,mma8652fc"; 110 reg = <0x1d>; 111 int1-gpios = <&gpio1 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 112 }; 113}; 114 115arduino_spi: &hs_lspi { 116 pinctrl-0 = <&pinmux_hs_lspi>; 117 pinctrl-names = "default"; 118}; 119 120arduino_gpio: &gpio1 { 121}; 122 123mikrobus_spi: &hs_lspi { 124}; 125