Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | /* * Copyright (c) 2021 Andes Technology Corporation * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include <andes_v5_ae350.dtsi> / { model = "Andes ADP-XC7K AE350"; compatible = "andestech,adp_xc7k_ae350"; aliases { gpio-0 = &gpio0; led0 = &seg7_led1_g; led1 = &seg7_led2_g; sw0 = &user_button1; }; chosen { zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,sram = &dram; zephyr,flash = &flash0; }; leds { compatible = "gpio-leds"; seg7_led1_a: led_1 { label = "7SEG LED1 A"; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; }; seg7_led1_b: led_2 { label = "7SEG LED1 B"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; seg7_led1_c: led_3 { label = "7SEG LED1 C"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; seg7_led1_d: led_4 { label = "7SEG LED1 D"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; seg7_led1_e: led_5 { label = "7SEG LED1 E"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; seg7_led1_f: led_6 { label = "7SEG LED1 F"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; seg7_led1_g: led_7 { label = "7SEG LED1 G"; gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; }; seg7_led1_dp: led_8 { label = "7SEG LED1 DP"; gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; }; seg7_led2_a: led_9 { label = "7SEG LED2 A"; gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; }; seg7_led2_b: led_10 { label = "7SEG LED2 B"; gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; }; seg7_led2_c: led_11 { label = "7SEG LED2 C"; gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; }; seg7_led2_d: led_12 { label = "7SEG LED2 D"; gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; }; seg7_led2_e: led_13 { label = "7SEG LED2 E"; gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; }; seg7_led2_f: led_14 { label = "7SEG LED2 F"; gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; }; seg7_led2_g: led_15 { label = "7SEG LED2 G"; gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; }; seg7_led2_dp: led_16 { label = "7SEG LED2 DP"; gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; }; }; gpio_keys { compatible = "gpio-keys"; user_button1: button_1 { label = "User SW1"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; user_button2: button_2 { label = "User SW2"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; user_button3: button_3 { label = "User SW3"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; }; user_button4: button_4 { label = "User SW4"; gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; }; user_button5: button_5 { label = "User SW5"; gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; }; user_button6: button_6 { label = "User SW6"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; user_button7: button_7 { label = "User SW7"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; }; }; &uart1 { status = "okay"; clock-frequency = <19660800>; current-speed = <115200>; }; &gpio0 { status = "okay"; }; &spi0 { status = "okay"; flash0: flash@0 { compatible = "jedec,spi-nor"; label = "JEDEC SPI-NOR"; reg = <0>; size = <16777216>; spi-max-frequency = <1000000>; jedec-id = [c2 25 35]; status = "okay"; }; }; |