Lines Matching +full:gpio +full:- +full:config
8 // http://www.apache.org/licenses/LICENSE-2.0
21 #include <phosphor-logging/elog-errors.hpp>
22 #include <phosphor-logging/lg2.hpp>
57 // load cpld config from gpio defs json file and create button interface in main()
82 // load gpio config from gpio defs json file and create button interface in main()
91 buttonCfg.type = ConfigType::gpio; in main()
93 /* The following code checks if the gpio config read in main()
94 from json file is single gpio config or group gpio config, in main()
96 lg2::debug("Found button config : {FORM_FACTOR_NAME}", in main()
102 for (const auto& config : groupGpio) in main() local
105 if (config.contains("pin")) in main()
108 gpioCfg.number = getGpioNum(config.at("pin")); in main()
113 gpioCfg.number = config.at("num").get<uint32_t>(); in main()
115 gpioCfg.direction = config["direction"]; in main()
116 gpioCfg.name = config["name"]; in main()
117 gpioCfg.polarity = (config["polarity"] == "active_high") in main()
141 /* There are additional gpio configs present in some platforms in main()
142 that are not supported in phosphor-buttons. in main()
164 ret = -1; in main()