• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 root {
2    device_info {
3        match_attr = "hdf_manager";
4        template host {
5            hostName = "";
6            priority = 100;
7            template device {
8                template deviceNode {
9                    policy = 0;
10                    priority = 100;
11                    preload = 0;
12                    permission = 0664;
13                    moduleName = "";
14                    serviceName = "";
15                    deviceMatchAttr = "";
16                }
17            }
18        }
19        platform :: host {
20            hostName = "platform_host";
21            priority = 50;
22            device_gpio :: device {
23                device0 :: deviceNode {
24                    policy = 0;
25                    priority = 10;
26                    permission = 0644;
27                    moduleName = "hisi_pl061_driver";
28                    deviceMatchAttr = "hisilicon_hi35xx_pl061";
29                }
30            }
31            device_watchdog :: device {
32                device0 :: deviceNode {
33                    policy = 1;
34                    priority = 20;
35                    permission = 0644;
36                    moduleName = "HDF_PLATFORM_WATCHDOG";
37                    serviceName = "HDF_PLATFORM_WATCHDOG_0";
38                    deviceMatchAttr = "hisilicon_hi35xx_watchdog_0";
39                }
40            }
41            device_rtc :: device {
42                device0 :: deviceNode {
43                    policy = 1;
44                    priority = 30;
45                    permission = 0644;
46                    moduleName = "HDF_PLATFORM_RTC";
47                    serviceName = "HDF_PLATFORM_RTC";
48                    deviceMatchAttr = "hisilicon_hi35xx_rtc";
49                }
50            }
51            device_uart :: device {
52                device0 :: deviceNode {
53                    policy = 1;
54                    priority = 40;
55                    permission = 0644;
56                    moduleName = "HDF_PLATFORM_UART";
57                    serviceName = "HDF_PLATFORM_UART_0";
58                    deviceMatchAttr = "hisilicon_hi35xx_uart_0";
59                }
60                device1 :: deviceNode {
61                    policy = 2;
62                    permission = 0644;
63                    priority = 40;
64                    moduleName = "HDF_PLATFORM_UART";
65                    serviceName = "HDF_PLATFORM_UART_1";
66                    deviceMatchAttr = "hisilicon_hi35xx_uart_1";
67                }
68                device2 :: deviceNode {
69                    policy = 2;
70                    priority = 40;
71                    permission = 0644;
72                    moduleName = "HDF_PLATFORM_UART";
73                    serviceName = "HDF_PLATFORM_UART_2";
74                    deviceMatchAttr = "hisilicon_hi35xx_uart_2";
75                }
76                device3 :: deviceNode {
77                    policy = 2;
78                    priority = 40;
79                    permission = 0644;
80                    moduleName = "HDF_PLATFORM_UART";
81                    serviceName = "HDF_PLATFORM_UART_3";
82                    deviceMatchAttr = "hisilicon_hi35xx_uart_3";
83                }
84            }
85            device_i2c :: device {
86                device0 :: deviceNode {
87                    policy = 2;
88                    priority = 50;
89                    permission = 0644;
90                    moduleName = "HDF_PLATFORM_I2C_MANAGER";
91                    serviceName = "HDF_PLATFORM_I2C_MANAGER";
92                    deviceMatchAttr = "hdf_platform_i2c_manager";
93                }
94                device1 :: deviceNode {
95                    policy = 0;
96                    priority = 55;
97                    permission = 0644;
98                    moduleName = "hi35xx_i2c_driver";
99                    serviceName = "HI35XX_I2C_DRIVER";
100                    deviceMatchAttr = "hisilicon_hi35xx_i2c";
101                }
102            }
103            device_dmac :: device {
104                device0 :: deviceNode {
105                    policy = 1;
106                    priority = 50;
107                    preload = 0;
108                    moduleName = "HDF_PLATFORM_DMAC";
109                    serviceName = "HDF_PLATFORM_DMAC0";
110                    deviceMatchAttr = "hisilicon_hi35xx_dmac_0";
111                }
112            }
113			device_i2s :: device {
114                device0 :: deviceNode {
115                    policy = 1;
116                    priority = 60;
117                    permission = 0644;
118                    moduleName = "HDF_PLATFORM_I2S";
119                    serviceName = "HDF_PLATFORM_I2S_0";
120                    deviceMatchAttr = "hisilicon_hi35xx_i2s_0";
121                }
122            }
123            device_spi :: device {
124                device0 :: deviceNode {
125                    policy = 1;
126                    priority = 60;
127                    permission = 0644;
128                    moduleName = "HDF_PLATFORM_SPI";
129                    serviceName = "HDF_PLATFORM_SPI_0";
130                    deviceMatchAttr = "hisilicon_hi35xx_spi_0";
131                }
132                device1 :: deviceNode {
133                    policy = 1;
134                    priority = 60;
135                    permission = 0644;
136                    moduleName = "HDF_PLATFORM_SPI";
137                    serviceName = "HDF_PLATFORM_SPI_1";
138                    deviceMatchAttr = "hisilicon_hi35xx_spi_1";
139                }
140                device2 :: deviceNode {
141                    policy = 1;
142                    priority = 60;
143                    permission = 0644;
144                    moduleName = "HDF_PLATFORM_SPI";
145                    serviceName = "HDF_PLATFORM_SPI_2";
146                    deviceMatchAttr = "hisilicon_hi35xx_spi_2";
147                }
148            }
149            device_mmc:: device {
150                device0 :: deviceNode {
151                    policy = 2;
152                    priority = 10;
153                    permission = 0644;
154                    moduleName = "hi3516_mmc_driver";
155                    serviceName = "HDF_PLATFORM_MMC_0";
156                    deviceMatchAttr = "hi3516_mmc_emmc";
157                }
158                device1 :: deviceNode {
159                    policy = 1;
160                    priority = 20;
161                    permission = 0644;
162                    moduleName = "hi3516_mmc_driver";
163                    serviceName = "HDF_PLATFORM_MMC_1";
164                    deviceMatchAttr = "hi3516_mmc_sd";
165                }
166                device2 :: deviceNode {
167                    policy = 1;
168                    priority = 30;
169                    permission = 0644;
170                    moduleName = "hi3516_mmc_driver";
171                    serviceName = "HDF_PLATFORM_MMC_2";
172                    deviceMatchAttr = "hi3516_mmc_sdio";
173                }
174            }
175            device_pwm :: device {
176                device0 :: deviceNode {
177                    policy = 1;
178                    priority = 80;
179                    permission = 0644;
180                    moduleName = "HDF_PLATFORM_PWM";
181                    serviceName = "HDF_PLATFORM_PWM_0";
182                    deviceMatchAttr = "hisilicon_hi35xx_pwm_0";
183                }
184                device1 :: deviceNode {
185                    policy = 1;
186                    priority = 80;
187                    permission = 0644;
188                    moduleName = "HDF_PLATFORM_PWM";
189                    serviceName = "HDF_PLATFORM_PWM_1";
190                    deviceMatchAttr = "hisilicon_hi35xx_pwm_1";
191                }
192            }
193            device_mipi_dsi:: device {
194                device0 :: deviceNode {
195                    policy = 0;
196                    priority = 150;
197                    permission = 0644;
198                    moduleName = "HDF_MIPI_TX";
199                    serviceName = "HDF_MIPI_TX";
200                }
201            }
202            device_hisi_sdk:: device {
203                device0 :: deviceNode {
204                    policy = 1;
205                    priority = 180;
206                    permission = 0644;
207                    moduleName = "HDF_PLATFORM_HISI_SDK";
208                    serviceName = "HDF_PLATFORM_HISI_SDK";
209                }
210            }
211        }
212        display :: host {
213            hostName = "display_host";
214            device_hdf_disp :: device {
215                device0 :: deviceNode {
216                    policy = 2;
217                    priority = 200;
218                    permission = 0660;
219                    moduleName = "HDF_DISP";
220                    serviceName = "hdf_disp";
221                }
222            }
223            device_hi35xx_disp :: device {
224                device0 :: deviceNode {
225                    policy = 0;
226                    priority = 199;
227                    moduleName = "HI351XX_DISP";
228                }
229            }
230            device_lcd :: device {
231                device0 :: deviceNode {
232                    policy = 0;
233                    priority = 100;
234                    preload = 1;
235                    moduleName = "LITE_LCDKIT";
236                    deviceMatchAttr = "hdf_lcdkit_driver";
237                }
238                device1 :: deviceNode {
239                    policy = 0;
240                    priority = 100;
241                    preload = 0;
242                    moduleName = "LCD_ICN9700";
243                }
244                device2 :: deviceNode {
245                    policy = 0;
246                    priority = 100;
247                    preload = 1;
248                    moduleName = "LCD_ST7789";
249                }
250            }
251        }
252
253        input :: host {
254            hostName = "input_host";
255            priority = 100;
256            device_input_manager :: device {
257                device0 :: deviceNode {
258                    policy = 2;
259                    priority = 100;
260                    preload = 0;
261                    permission = 0660;
262                    moduleName = "HDF_INPUT_MANAGER";
263                    serviceName = "input_dev_manager";
264                    deviceMatchAttr = "";
265                }
266            }
267            device_hdf_touch :: device {
268                device0 :: deviceNode {
269                    policy = 2;
270                    priority = 120;
271                    preload = 0;
272                    permission = 0660;
273                    moduleName = "HDF_TOUCH";
274                    serviceName = "event1";
275                    deviceMatchAttr = "touch_device1";
276                }
277            }
278
279            device_touch_chip :: device {
280                device0 :: deviceNode {
281                    policy = 0;
282                    priority = 130;
283                    preload = 0;
284                    permission = 0660;
285                    moduleName = "HDF_TOUCH_GT911";
286                    serviceName = "hdf_touch_gt911_service";
287                    deviceMatchAttr = "zsj_gt911_5p5";
288                }
289/*
290                device1 :: deviceNode {
291                    policy = 0;
292                    priority = 140;
293                    preload = 0;
294                    permission = 0660;
295                    moduleName = "HDF_TOUCH_GT911";
296                    serviceName = "hdf_touch_gt911_service";
297                    deviceMatchAttr = "zsj_gt911_4p0";
298                }
299
300                device2 :: deviceNode {
301                    policy = 0;
302                    priority = 150;
303                    preload = 0;
304                    permission = 0660;
305                    moduleName = "HDF_TOUCH_GT911";
306                    serviceName = "hdf_touch_gt911_service";
307                    deviceMatchAttr = "tg_gt911_7p0";
308                }
309                device0 :: deviceNode {
310                    policy = 0;
311                    priority = 130;
312                    preload = 0;
313                    permission = 0660;
314                    moduleName = "HDF_TOUCH_FT6336";
315                    serviceName = "hdf_touch_ft6336_service";
316                    deviceMatchAttr = "st_ft6336_2p35";
317                }
318*/
319            }
320            device_hdf_hid :: device {
321                device0 :: deviceNode {
322                    policy = 2;
323                    priority = 140;
324                    preload = 1;
325                    permission = 0660;
326                    moduleName = "HDF_HID";
327                    serviceName = "event2";
328                }
329            }
330/*
331            device_hdf_key :: device {
332                device0 :: deviceNode {
333                    policy = 2;
334                    priority = 130;
335                    preload = 0;
336                    permission = 0660;
337                    moduleName = "HDF_KEY";
338                    serviceName = "hdf_key_service0";
339                    deviceMatchAttr = "key_device0";
340                }
341            }
342*/
343        }
344
345        network :: host {
346            hostName = "network_host";
347            device_wifi :: device {
348                device0 :: deviceNode {
349                    policy = 2;
350                    priority = 100;
351                    preload = 0;
352                    permission = 0664;
353                    moduleName = "HDF_WIFI";
354                    deviceMatchAttr = "hdf_wlan_driver";
355                    serviceName = "hdfwifi";
356                }
357            }
358            device_wlan_chips :: device {
359                device0 :: deviceNode {
360                    policy = 0;
361                    preload = 1;
362                    moduleName = "HDF_WLAN_CHIPS";
363                    deviceMatchAttr = "hdf_wlan_chips_hi3881";
364                    serviceName = "hisi";
365                }
366            }
367        }
368        sensor :: host {
369            hostName = "sensor_host";
370            device_sensor_manager :: device {
371                device0 :: deviceNode {
372                    policy = 2;
373                    priority = 100;
374                    preload = 0;
375                    permission = 0664;
376                    moduleName = "HDF_SENSOR_MGR_AP";
377                    serviceName = "hdf_sensor_manager_ap";
378                }
379            }
380            device_sensor :: device {
381                device_accel :: deviceNode {
382                    policy = 0;
383                    priority = 101;
384                    preload = 0;
385                    permission = 0664;
386                    moduleName = "HDF_SENSOR_ACCEL";
387                }
388            }
389        }
390        storage :: host {
391
392        }
393        media :: host {
394
395        }
396    }
397}
398