compatible = "rockchip,rk3288-hdmi";
reg = <0xff980000 0x20000>;
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
- pinctrl-names = "default", "gpio";
+ pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c5_sda &i2c5_scl>;
pinctrl-1 = <&i2c5_gpio>;
clocks = <&clk_gates16 9>, <&clk_gates5 12>;
static void rk3288_hdmi_early_suspend(void)
{
struct hdmi *hdmi_drv = &hdmi_dev->driver;
- struct pinctrl_state *gpio_state;
if (hdmi_drv->suspend)
return;
flush_delayed_work(&hdmi_drv->delay_work);
/* iomux to gpio and pull down when suspend */
- gpio_state = pinctrl_lookup_state(hdmi_dev->dev->pins->p, "gpio");
- pinctrl_select_state(hdmi_dev->dev->pins->p, gpio_state);
+ pinctrl_select_state(hdmi_dev->dev->pins->p,
+ hdmi_dev->dev->pins->sleep_state);
rk3288_hdmi_clk_disable(hdmi_dev);
return;
}