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