126a07553SMauro Carvalho Chehab.. SPDX-License-Identifier: GPL-2.0 226a07553SMauro Carvalho Chehab 326a07553SMauro Carvalho Chehab=================================== 426a07553SMauro Carvalho ChehabKernel driver for Spreadtrum SC27XX 526a07553SMauro Carvalho Chehab=================================== 626a07553SMauro Carvalho Chehab 726a07553SMauro Carvalho Chehab/sys/class/leds/<led>/hw_pattern 826a07553SMauro Carvalho Chehab-------------------------------- 926a07553SMauro Carvalho Chehab 1026a07553SMauro Carvalho ChehabSpecify a hardware pattern for the SC27XX LED. For the SC27XX 1126a07553SMauro Carvalho ChehabLED controller, it only supports 4 stages to make a single 1226a07553SMauro Carvalho Chehabhardware pattern, which is used to configure the rise time, 1326a07553SMauro Carvalho Chehabhigh time, fall time and low time for the breathing mode. 1426a07553SMauro Carvalho Chehab 1526a07553SMauro Carvalho ChehabFor the breathing mode, the SC27XX LED only expects one brightness 1626a07553SMauro Carvalho Chehabfor the high stage. To be compatible with the hardware pattern 1726a07553SMauro Carvalho Chehabformat, we should set brightness as 0 for rise stage, fall 1826a07553SMauro Carvalho Chehabstage and low stage. 1926a07553SMauro Carvalho Chehab 2026a07553SMauro Carvalho Chehab- Min stage duration: 125 ms 2126a07553SMauro Carvalho Chehab- Max stage duration: 31875 ms 2226a07553SMauro Carvalho Chehab 2326a07553SMauro Carvalho ChehabSince the stage duration step is 125 ms, the duration should be 2426a07553SMauro Carvalho Chehaba multiplier of 125, like 125ms, 250ms, 375ms, 500ms ... 31875ms. 2526a07553SMauro Carvalho Chehab 2626a07553SMauro Carvalho ChehabThus the format of the hardware pattern values should be: 2726a07553SMauro Carvalho Chehab"0 rise_duration brightness high_duration 0 fall_duration 0 low_duration". 28