diff --git a/boards/bh/mellifera_rev1/mellifera_rev1.dts b/boards/bh/mellifera_rev1/mellifera_rev1.dts index f1a9ce4..325e769 100644 --- a/boards/bh/mellifera_rev1/mellifera_rev1.dts +++ b/boards/bh/mellifera_rev1/mellifera_rev1.dts @@ -19,6 +19,7 @@ // zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; + zephyr,display = &ssd1306; }; example_sensor: example-sensor { @@ -44,8 +45,71 @@ gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; label = "Yellow LED 3"; }; + led_rx: led_rx { + gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + label = "RX LED"; + }; + led_tx: led_tx { + gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; + label = "TX LED"; + }; + led_rx_ok: led_rx_ok { + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + label = "RX OK LED"; + }; + led_sfd: led_sfd { + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + label = "SFD LED"; + }; }; + buttons { + compatible = "gpio-keys"; + int_drdy: int_drdy { + gpios = <&gpio0 22 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "DRDYM from BMX055 9-DOF"; + zephyr,code = ; + }; + int1: int_1 { + gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt 1 from BMX055 9-DOF"; + zephyr,code = ; + }; + int2: int_2 { + gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt 2 from BMX055 9-DOF"; + zephyr,code = ; + }; + int3: int_3 { + gpios = <&gpio0 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt 3 from BMX055 9-DOF"; + zephyr,code = ; + }; + int4: int_4 { + gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt 4 from BMX055 9-DOF"; + zephyr,code = ; + }; + int5: int_5 { + gpios = <&gpio0 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt 5 from BMX055 9-DOF"; + zephyr,code = ; + }; + + int_baro: int_baro { + gpios = <&gpio0 27 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt from BMP388 barometer"; + zephyr,code = ; + }; + + int_pow: int_pow { + gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "Interrupt from current sensor"; + zephyr,code = ; + }; + }; + + blink_led: blink-led { compatible = "blink-gpio-led"; led-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; @@ -80,6 +144,21 @@ pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; + + + ssd1306: ssd1306@3d { + compatible = "solomon,ssd1306fb"; + reg = <0x3d>; + width = <128>; + height = <64>; + segment-offset = <0>; + page-offset = <0>; + display-offset = <0>; + multiplex-ratio = <63>; + segment-remap; + com-invdir; + prechargep = <0x22>; + }; }; &spi1 {