Lines Matching +full:4 +full:- +full:inch
1 // SPDX-License-Identifier: GPL-2.0
26 #define PWM_BL_MASK GENMASK(4, 0)
44 if (state->polarity != PWM_POLARITY_NORMAL) in rpi_panel_v2_pwm_apply()
45 return -EINVAL; in rpi_panel_v2_pwm_apply()
47 if (!state->enabled) in rpi_panel_v2_pwm_apply()
66 .parent = &i2c->dev, in rpi_panel_v2_i2c_probe()
73 pc = devm_pwmchip_alloc(&i2c->dev, 1, 0); in rpi_panel_v2_i2c_probe()
77 pc->ops = &rpi_panel_v2_pwm_ops; in rpi_panel_v2_i2c_probe()
81 return dev_err_probe(&i2c->dev, PTR_ERR(regmap), "Failed to allocate regmap\n"); in rpi_panel_v2_i2c_probe()
88 ret = PTR_ERR_OR_ZERO(devm_gpio_regmap_register(&i2c->dev, &gconfig)); in rpi_panel_v2_i2c_probe()
90 return dev_err_probe(&i2c->dev, ret, "Failed to create gpiochip\n"); in rpi_panel_v2_i2c_probe()
94 return devm_pwmchip_add(&i2c->dev, pc); in rpi_panel_v2_i2c_probe()
106 { .compatible = "raspberrypi,touchscreen-panel-regulator-v2" },
124 MODULE_DESCRIPTION("Regulator device driver for Raspberry Pi 7-inch V2 touchscreen");