• 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 = "linux_gpio_adapter";
28                    deviceMatchAttr = "linux_gpio_adapter";
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
52            device_uart :: device {
53                device0 :: deviceNode {
54                    policy = 1;
55                    priority = 40;
56                    permission = 0644;
57                    moduleName = "HDF_PLATFORM_UART";
58                    serviceName = "HDF_PLATFORM_UART_0";
59                    deviceMatchAttr = "hisilicon_hi35xx_uart_0";
60                }
61                device1 :: deviceNode {
62                    policy = 2;
63                    permission = 0644;
64                    priority = 40;
65                    moduleName = "HDF_PLATFORM_UART";
66                    serviceName = "HDF_PLATFORM_UART_1";
67                    deviceMatchAttr = "hisilicon_hi35xx_uart_1";
68                }
69/*
70                device2 :: deviceNode {
71                    policy = 2;
72                    priority = 40;
73                    permission = 0644;
74                    moduleName = "HDF_PLATFORM_UART";
75                    serviceName = "HDF_PLATFORM_UART_2";
76                    deviceMatchAttr = "hisilicon_hi35xx_uart_2";
77                }
78                device3 :: deviceNode {
79                    policy = 2;
80                    priority = 40;
81                    permission = 0644;
82                    moduleName = "HDF_PLATFORM_UART";
83                    serviceName = "HDF_PLATFORM_UART_3";
84                    deviceMatchAttr = "hisilicon_hi35xx_uart_3";
85                }
86*/
87            }
88            device_i2c :: device {
89                device0 :: deviceNode {
90                    policy = 2;
91                    priority = 50;
92                    permission = 0644;
93                    moduleName = "HDF_PLATFORM_I2C_MANAGER";
94                    serviceName = "HDF_PLATFORM_I2C_MANAGER";
95                    deviceMatchAttr = "hdf_platform_i2c_manager";
96                }
97                device1 :: deviceNode {
98                    policy = 0;
99                    priority = 55;
100                    permission = 0644;
101                    moduleName = "linux_i2c_adapter";
102                    deviceMatchAttr = "linux_i2c_adapter";
103                }
104            }
105/*            device_dmac :: device {
106                device0 :: deviceNode {
107                    policy = 1;
108                    priority = 50;
109                    preload = 0;
110                    moduleName = "HDF_PLATFORM_DMAC";
111                    serviceName = "HDF_PLATFORM_DMAC0";
112                    deviceMatchAttr = "hisilicon_hi35xx_dmac_0";
113                }
114            }
115*/
116            device_spi :: device {
117                device0 :: deviceNode {
118                    policy = 1;
119                    priority = 60;
120                    permission = 0644;
121                    moduleName = "HDF_PLATFORM_SPI";
122                    serviceName = "HDF_PLATFORM_SPI_0";
123                    deviceMatchAttr = "hisilicon_hi35xx_spi_0";
124                }
125                device1 :: deviceNode {
126                    policy = 1;
127                    priority = 60;
128                    permission = 0644;
129                    moduleName = "HDF_PLATFORM_SPI";
130                    serviceName = "HDF_PLATFORM_SPI_1";
131                    deviceMatchAttr = "hisilicon_hi35xx_spi_1";
132                }
133                device2 :: deviceNode {
134                    policy = 1;
135                    priority = 60;
136                    permission = 0644;
137                    moduleName = "HDF_PLATFORM_SPI";
138                    serviceName = "HDF_PLATFORM_SPI_2";
139                    deviceMatchAttr = "hisilicon_hi35xx_spi_2";
140                }
141            }
142            device_sdio :: device {
143                device0 :: deviceNode {
144                    policy = 1;
145                    priority = 20;
146                    permission = 0644;
147                    moduleName = "HDF_PLATFORM_SDIO";
148                    serviceName = "HDF_PLATFORM_MMC_2";
149                    deviceMatchAttr = "hisilicon_hi35xx_sdio_0";
150                }
151            }
152            device_emmc :: device {
153                device0 :: deviceNode {
154                    policy = 2;
155                    priority = 20;
156                    permission = 0644;
157                    moduleName = "HDF_PLATFORM_EMMC";
158                    serviceName = "HDF_PLATFORM_MMC_0";
159                    deviceMatchAttr = "hisilicon_hi35xx_emmc_0";
160                }
161            }
162            device_pwm :: device {
163                device0 :: deviceNode {
164                    policy = 1;
165                    priority = 80;
166                    permission = 0644;
167                    moduleName = "HDF_PLATFORM_PWM";
168                    serviceName = "HDF_PLATFORM_PWM_0";
169                    deviceMatchAttr = "hisilicon_hi35xx_pwm_0";
170               }
171               device1 :: deviceNode {
172                    policy = 1;
173                    priority = 80;
174                    permission = 0644;
175                    moduleName = "HDF_PLATFORM_PWM";
176                    serviceName = "HDF_PLATFORM_PWM_1";
177                    deviceMatchAttr = "hisilicon_hi35xx_pwm_1";
178               }
179           }
180            device_mipi_dsi:: device {
181               device0 :: deviceNode {
182                   policy = 0;
183                   priority = 150;
184                   permission = 0644;
185                   moduleName = "HDF_MIPI_TX";
186                   serviceName = "HDF_MIPI_TX";
187               }
188           }
189/*           device_hisi_sdk:: device {
190               device0 :: deviceNode {
191                   policy = 1;
192                   priority = 180;
193                   permission = 0644;
194                   moduleName = "HDF_PLATFORM_HISI_SDK";
195                   serviceName = "HDF_PLATFORM_HISI_SDK";
196                }
197            }
198*/
199        }
200        display :: host {
201            hostName = "display_host";
202            device_hdf_disp :: device {
203                device0 :: deviceNode {
204                    policy = 2;
205                    priority = 140;
206                    permission = 0660;
207                    moduleName = "HDF_DISP";
208                    serviceName = "hdf_disp";
209                }
210            }
211            device_hi35xx_disp :: device {
212                device0 :: deviceNode {
213                    policy = 0;
214                    priority = 120;
215                    moduleName = "HI351XX_DISP";
216                }
217            }
218            device_lcd :: device {
219                device0 :: deviceNode {
220                    policy = 0;
221                    priority = 100;
222                    preload = 0;
223                    moduleName = "LCD_ICN9700";
224                }
225            }
226            device_pwm_bl :: device {
227                device0 :: deviceNode {
228                    policy = 0;
229                    priority = 95;
230                    preload = 0;
231                    moduleName = "PWM_BL";
232                    deviceMatchAttr = "pwm_bl_dev";
233                }
234            }
235            device_backlight :: device {
236                device0 :: deviceNode {
237                    policy = 2;
238                    priority = 90;
239                    preload = 0;
240                    permission = 0660;
241                    moduleName = "HDF_BL";
242                    serviceName = "hdf_bl";
243                }
244            }
245        }
246
247        input :: host {
248            hostName = "input_host";
249            priority = 100;
250            device_input_manager :: device {
251                device0 :: deviceNode {
252                    policy = 2;
253                    priority = 100;
254                    preload = 0;
255                    permission = 0660;
256                    moduleName = "HDF_INPUT_MANAGER";
257                    serviceName = "hdf_input_host";
258                    deviceMatchAttr = "";
259                }
260            }
261            device_hdf_touch :: device {
262                device0 :: deviceNode {
263                    policy = 2;
264                    priority = 120;
265                    preload = 0;
266                    permission = 0660;
267                    moduleName = "HDF_TOUCH";
268                    serviceName = "hdf_input_event1";
269                    deviceMatchAttr = "touch_device1";
270                }
271            }
272
273            device_touch_chip :: device {
274                device0 :: deviceNode {
275                    policy = 0;
276                    priority = 130;
277                    preload = 0;
278                    permission = 0660;
279                    moduleName = "HDF_TOUCH_GT911";
280                    serviceName = "hdf_touch_gt911_service";
281                    deviceMatchAttr = "zsj_gt911_5p5";
282                }
283            }
284            device_hdf_hid :: device {
285                device0 :: deviceNode {
286                    policy = 2;
287                    priority = 200;
288                    preload = 0;
289                    permission = 0660;
290                    moduleName = "HDF_HID";
291                }
292            }
293        }
294
295        network :: host {
296            hostName = "network_host";
297            device_wifi :: device {
298                device0 :: deviceNode {
299                    policy = 2;
300                    priority = 100;
301                    preload = 0;
302                    permission = 0664;
303                    moduleName = "HDF_WIFI";
304                    deviceMatchAttr = "hdf_wlan_driver";
305                    serviceName = "hdfwifi";
306                }
307            }
308            device_wlan_chips :: device {
309                device0 :: deviceNode {
310                    policy = 0;
311                    preload = 2;
312                    moduleName = "HDF_WLAN_CHIPS";
313                    deviceMatchAttr = "hdf_wlan_chips_hi3881";
314                    serviceName = "hisi";
315                }
316            }
317        }
318        sensor :: host {
319            hostName = "sensor_host";
320            device_sensor_manager :: device {
321                device0 :: deviceNode {
322                    policy = 2;
323                    priority = 100;
324                    preload = 0;
325                    permission = 0664;
326                    moduleName = "HDF_SENSOR_MGR_AP";
327                    serviceName = "hdf_sensor_manager_ap";
328                }
329            }
330            device_sensor_accel :: device {
331                device0 :: deviceNode {
332                    policy = 1;
333                    priority = 110;
334                    preload = 2;
335                    permission = 0664;
336                    moduleName = "HDF_SENSOR_ACCEL";
337                    serviceName = "hdf_sensor_accel";
338                    deviceMatchAttr = "hdf_sensor_accel_driver";
339                }
340            }
341            device_sensor_bmi160 :: device {
342                device0 :: deviceNode {
343                    policy = 1;
344                    priority = 120;
345                    preload = 2;
346                    permission = 0664;
347                    moduleName = "HDF_SENSOR_ACCEL_BMI160";
348                    serviceName = "hdf_accel_bmi160";
349                    deviceMatchAttr = "hdf_sensor_accel_bmi160_driver";
350                }
351            }
352            device_sensor_gyro :: device {
353                device0 :: deviceNode {
354                    policy = 1;
355                    priority = 120;
356                    preload = 2;
357                    permission = 0664;
358                    moduleName = "HDF_SENSOR_GYRO";
359                    serviceName = "hdf_sensor_gyro";
360                    deviceMatchAttr = "hdf_sensor_gyro_driver";
361                }
362            }
363            device_sensor_barometer :: device {
364                device0 :: deviceNode {
365                    policy = 1;
366                    priority = 110;
367                    preload = 2;
368                    permission = 0664;
369                    moduleName = "HDF_SENSOR_BAROMETER";
370                    serviceName = "hdf_sensor_barometer";
371                    deviceMatchAttr = "hdf_sensor_barometer_driver";
372                }
373            }
374            device_sensor_bmp180 :: device {
375                device0 :: deviceNode {
376                    policy = 1;
377                    priority = 120;
378                    preload = 2;
379                    permission = 0664;
380                    moduleName = "HDF_SENSOR_BAROMETER_BMP180";
381                    serviceName = "hdf_barometer_bmp180";
382                    deviceMatchAttr = "hdf_sensor_barometer_bmp180_driver";
383                }
384            }
385            device_sensor_hall :: device {
386                device0 :: deviceNode {
387                    policy = 1;
388                    priority = 110;
389                    preload = 2;
390                    permission = 0664;
391                    moduleName = "HDF_SENSOR_HALL";
392                    serviceName = "hdf_sensor_hall";
393                    deviceMatchAttr = "hdf_sensor_hall_driver";
394                }
395            }
396            device_sensor_ak8789 :: device {
397                device0 :: deviceNode {
398                    policy = 1;
399                    priority = 120;
400                    preload = 2;
401                    permission = 0664;
402                    moduleName = "HDF_SENSOR_HALL_AK8789";
403                    serviceName = "hdf_hall_ak8789";
404                    deviceMatchAttr = "hdf_sensor_hall_ak8789_driver";
405                }
406            }
407        }
408        vibrator :: host {
409            hostName = "vibrator_host";
410            device_vibrator :: device {
411                device0 :: deviceNode {
412                    policy = 2;
413                    priority = 100;
414                    preload = 0;
415                    permission = 0664;
416                    moduleName = "HDF_VIBRATOR";
417                    serviceName = "hdf_misc_vibrator";
418                    deviceMatchAttr = "hdf_vibrator_driver";
419                }
420            }
421            device_linear_vibrator :: device {
422                device0 :: deviceNode {
423                    policy = 1;
424                    priority = 105;
425                    preload = 0;
426                    permission = 0664;
427                    moduleName = "HDF_LINEAR_VIBRATOR";
428                    serviceName = "hdf_misc_linear_vibrator";
429                    deviceMatchAttr = "hdf_linear_vibrator_driver";
430                }
431            }
432        }
433    }
434}