• 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 = 2;
25                    priority = 10;
26                    permission = 0644;
27                    moduleName = "HDF_PLATFORM_GPIO_MANAGER";
28                    serviceName = "HDF_PLATFORM_GPIO_MANAGER";
29                }
30                device1 :: deviceNode {
31                    policy = 0;
32                    priority = 10;
33                    permission = 0644;
34                    moduleName = "HDF_PLATFORM_GPIO";
35                    serviceName = "HDF_PLATFORM_GPIO";
36                    deviceMatchAttr = "st_stm32mp1_gpio";
37                }
38            }
39            device_iwdg :: device {
40                device0 :: deviceNode {
41                    policy = 2;
42                    priority = 20;
43                    permission = 0644;
44                    moduleName = "stm32mp1_iwdg";
45                    serviceName = "HDF_PLATFORM_WATCHDOG_0";
46                    deviceMatchAttr = "stm32mp1_iwdg_0";
47                }
48                device1 :: deviceNode {
49                    policy = 2;
50                    priority = 20;
51                    permission = 0644;
52                    moduleName = "stm32mp1_iwdg";
53                    serviceName = "HDF_PLATFORM_WATCHDOG_1";
54                    deviceMatchAttr = "stm32mp1_iwdg_1";
55                }
56            }
57
58            device_uart :: device {
59                device0 :: deviceNode {
60                    policy = 2;
61                    priority = 40;
62                    permission = 0644;
63                    moduleName = "stm32mp1_uart";
64                    serviceName = "HDF_PLATFORM_UART_4";
65                    deviceMatchAttr = "stm32mp1_uart_4";
66                }
67                device2 :: deviceNode {
68                    policy = 2;
69                    priority = 40;
70                    permission = 0644;
71                    moduleName = "stm32mp1_uart";
72                    serviceName = "HDF_PLATFORM_UART_5";
73                    deviceMatchAttr = "stm32mp1_uart_5";
74                }
75            }
76            device_spi :: device {
77                device0 :: deviceNode {
78                    policy = 2;
79                    priority = 40;
80                    permission = 0644;
81                    moduleName = "stm32mp1_spi_driver";
82                    serviceName = "HDF_PLATFORM_SPI_1";
83                    deviceMatchAttr = "st_stm32mp157_spi_1";
84                }
85            }
86            device_mmc:: device {
87                device0 :: deviceNode {
88                    policy = 2;
89                    priority = 10;
90                    permission = 0644;
91                    moduleName = "HDF_PLATFORM_SDMMC";
92                    serviceName = "HDF_PLATFORM_MMC_0";
93                    deviceMatchAttr = "st_stm32mp1_sdmmc_emmc";
94                }
95                device1 :: deviceNode {
96                    policy = 2;
97                    priority = 20;
98                    permission = 0644;
99                    moduleName = "HDF_PLATFORM_SDMMC";
100                    serviceName = "HDF_PLATFORM_MMC_1";
101                    deviceMatchAttr = "st_stm32mp1_sdmmc_sd";
102                }
103                device2 :: deviceNode {
104                    policy = 1;
105                    priority = 30;
106                    permission = 0644;
107                    moduleName = "HDF_PLATFORM_SDMMC";
108                    serviceName = "HDF_PLATFORM_MMC_2";
109                    deviceMatchAttr = "st_stm32mp1_sdmmc_sdio";
110                }
111            }
112            device_ltdc:: device {
113                device0 :: deviceNode {
114                    policy = 0;
115                    priority = 170;
116                    permission = 0644;
117                    moduleName = "HDF_PLATFORM_LTDC";
118                    serviceName = "HDF_PLATFORM_LTDC";
119                    deviceMatchAttr = "st_stm32mp1_ltdc";
120                }
121            }
122            device_i2c :: device {
123                device0 :: deviceNode {
124                    policy = 2;
125                    priority = 50;
126                    permission = 0644;
127                    moduleName = "HDF_PLATFORM_I2C_MANAGER";
128                    serviceName = "HDF_PLATFORM_I2C_MANAGER";
129                    deviceMatchAttr = "hdf_platform_i2c_manager";
130                }
131                device1 :: deviceNode {
132                    policy = 0;
133                    priority = 55;
134                    permission = 0644;
135                    moduleName = "HDF_PLATFORM_I2C";
136                    serviceName = "HDF_PLATFORM_I2C";
137                    deviceMatchAttr = "st_stm32mp1_i2c";
138                }
139            }
140            device_adc :: device {
141                device0 :: deviceNode {
142                    policy = 2;
143                    priority = 50;
144                    permission = 0644;
145                    moduleName = "HDF_PLATFORM_ADC_MANAGER";
146                    serviceName = "HDF_PLATFORM_ADC_MANAGER";
147                    deviceMatchAttr = "hdf_platform_adc_manager";
148                }
149                device1 :: deviceNode {
150                    policy = 0;
151                    priority = 55;
152                    permission = 0644;
153                    moduleName = "stm32mp1_adc_driver";
154                    deviceMatchAttr = "st_stm32mp1_adc";
155                }
156            }
157            device_pwm :: device {
158                device0 :: deviceNode {
159                    policy = 2;
160                    priority = 80;
161                    permission = 0644;
162                    moduleName = "HDF_PLATFORM_PWM";
163                    serviceName = "HDF_PLATFORM_PWM_0";
164                    deviceMatchAttr = "st_stm32mp1_pwm_0";
165                }
166            }
167        }
168        display :: host {
169            hostName = "display_host";
170            device_hdf_disp :: device {
171                device0 :: deviceNode {
172                    policy = 2;
173                    priority = 140;
174                    permission = 0660;
175                    moduleName = "HDF_DISP";
176                    serviceName = "hdf_disp";
177                }
178            }
179        }
180        input :: host {
181            hostName = "input_host";
182            priority = 100;
183            device_input_manager :: device {
184                device0 :: deviceNode {
185                    policy = 2;
186                    priority = 100;
187                    preload = 0;
188                    permission = 0660;
189                    moduleName = "HDF_INPUT_MANAGER";
190                    serviceName = "hdf_input_host";
191                    deviceMatchAttr = "";
192                }
193            }
194            device_hdf_touch :: device {
195                device0 :: deviceNode {
196                    policy = 2;
197                    priority = 120;
198                    preload = 0;
199                    permission = 0660;
200                    moduleName = "HDF_TOUCH";
201                    serviceName = "hdf_input_event1";
202                    deviceMatchAttr = "touch_device1";
203                }
204            }
205
206            device_touch_chip :: device {
207                device0 :: deviceNode {
208                    policy = 0;
209                    priority = 130;
210                    preload = 0;
211                    permission = 0660;
212                    moduleName = "HDF_TOUCH_GT911";
213                    serviceName = "hdf_touch_gt911_service";
214                    deviceMatchAttr = "zsj_gt911_5p5";
215                }
216            }
217        }
218        network :: host {
219            hostName = "network_host";
220            device_wifi :: device {
221                device0 :: deviceNode {
222                    policy = 2;
223                    priority = 100;
224                    preload = 0;
225                    permission = 0664;
226                    moduleName = "HDF_WIFI";
227                    deviceMatchAttr = "hdf_wlan_driver";
228                    serviceName = "hdfwifi";
229                }
230            }
231            device_wlan_chips :: device {
232                device0 :: deviceNode {
233                    policy = 0;
234                    preload = 2;
235                    moduleName = "HDF_WLAN_CHIPS";
236                    deviceMatchAttr = "hdf_wlan_chips_hi3881";
237                    serviceName = "hisi";
238                }
239            }
240        }
241    }
242}
243