1#include "device_info.hcs" 2root { 3 platform { 4 gpio_config { 5 match_attr = "bes2600_gpio_config"; 6 pin = [0, 1]; 7 realPin = [5, 27]; 8 config = [5, 2]; 9 pinNum = 2; 10 } 11 i2c_config { 12 i2c0 { 13 match_attr = "i2c0_config"; 14 port = 0; 15 speed = 200000; 16 // TSP_SCL/SDA - I2C0 = GPIO04/GPIO05 17 scl_pin = 4; 18 sda_pin = 5; 19 use_dma = 0; 20 use_sync = 1; 21 as_master = 1; 22 address_width = 8; 23 mode = 0; 24 } 25 i2c1 { 26 match_attr = "i2c1_config"; 27 port = 1; 28 speed = 200000; 29 scl_pin = 6; 30 sda_pin = 7; 31 use_dma = 0; 32 use_sync = 1; 33 as_master = 1; 34 address_width = 8; 35 mode = 0; 36 } 37 } 38 } 39 display { 40 panel_config { 41 /*rm69330_config { 42 match_attr = "rm69330_config"; 43 // EVB_V3: RST - GPIO03, TE - GPIO21 44 rst_pin = 3; 45 te_pin = 21; 46 } 47 icna3311_config { 48 match_attr = "icna3311_config"; 49 // EVB_V3: RST - GPIO03, TE - GPIO21, VCI_EN - GPIO02 50 rst_pin = 3; 51 te_pin = 21; 52 vci_pin = 2; 53 }*/ 54 a064_config { 55 match_attr = "a064_config"; 56 // EVB_V3: RST - GPIO03, TE - GPIO21, LED_EN - GPIO26 57 rst_pin = 3; 58 te_pin = 21; 59 led_pin = 26; 60 } 61 } 62 } 63 input { 64 touch_config { 65 /*touch_ztw523 { 66 match_attr = "touch_ztw523_config"; 67 gpio_rst = 0; 68 gpio_int = 1; 69 i2c_id = 0; 70 i2c_addr = 0x20; 71 }*/ 72 touch_fts { 73 match_attr = "touch_fts_config"; 74 gpio_rst = 0; 75 gpio_int = 1; 76 i2c_id = 1; 77 i2c_addr = 0x38; 78 } 79 } 80 } 81 misc { 82 fs_config { 83 littlefs_config { 84 match_attr = "littlefs_config"; 85 mount_points = ["/data"]; 86 partitions = [10]; 87 block_size = [4096]; 88 block_count = [1024]; 89 } 90 } 91 storage_config { 92 flash_config { 93 match_attr = "flash_config"; 94 partitions = [10]; 95 owner = [0]; 96 description = ["littlefs"]; 97 start_addr = [0xB60000]; 98 length = [0x400000]; 99 options = [3]; 100 } 101 } 102 } 103} 104