0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * calao-dab-mmx.dtsi - Device Tree Include file for Calao DAB-MMX Daughter Board
0004 *
0005 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
0006 */
0007
0008 / {
0009 ahb {
0010 apb {
0011 usart1: serial@fffb4000 {
0012 status = "okay";
0013 };
0014
0015 usart3: serial@fffd0000 {
0016 status = "okay";
0017 };
0018 };
0019 };
0020
0021 i2c-gpio@0 {
0022 status = "okay";
0023 };
0024
0025 leds {
0026 compatible = "gpio-leds";
0027
0028 user_led1 {
0029 label = "user_led1";
0030 gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
0031 };
0032
0033 /*
0034 * led already used by mother board but active as high
0035 * user_led2 {
0036 * label = "user_led2";
0037 * gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
0038 * };
0039 */
0040 user_led3 {
0041 label = "user_led3";
0042 gpios = <&pioB 22 GPIO_ACTIVE_LOW>;
0043 };
0044
0045 user_led4 {
0046 label = "user_led4";
0047 gpios = <&pioB 23 GPIO_ACTIVE_LOW>;
0048 };
0049
0050 red {
0051 label = "red";
0052 gpios = <&pioB 24 GPIO_ACTIVE_LOW>;
0053 };
0054
0055 orange {
0056 label = "orange";
0057 gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
0058 };
0059
0060 green {
0061 label = "green";
0062 gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
0063 };
0064 };
0065
0066 gpio_keys {
0067 compatible = "gpio-keys";
0068 #address-cells = <1>;
0069 #size-cells = <0>;
0070
0071 user_pb1 {
0072 label = "user_pb1";
0073 gpios = <&pioB 25 GPIO_ACTIVE_LOW>;
0074 linux,code = <0x100>;
0075 };
0076
0077 user_pb2 {
0078 label = "user_pb2";
0079 gpios = <&pioB 13 GPIO_ACTIVE_LOW>;
0080 linux,code = <0x101>;
0081 };
0082
0083 user_pb3 {
0084 label = "user_pb3";
0085 gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
0086 linux,code = <0x102>;
0087 };
0088
0089 user_pb4 {
0090 label = "user_pb4";
0091 gpios = <&pioC 9 GPIO_ACTIVE_LOW>;
0092 linux,code = <0x103>;
0093 };
0094 };
0095 };