Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: syscon: Change the compatibility string

This patch changes the compatibility string to match with the smallest
supported chip (EP7209). Since the DT-support for this CPU is not yet
announced, this change is safe.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Alexander Shiyan and committed by
Linus Walleij
2e607fca 1a4d458b

+4 -4
+2 -2
Documentation/devicetree/bindings/gpio/cirrus,clps711x-mctrl-gpio.txt
··· 1 1 * ARM Cirrus Logic CLPS711X SYSFLG1 MCTRL GPIOs 2 2 3 3 Required properties: 4 - - compatible: Should contain "cirrus,clps711x-mctrl-gpio". 4 + - compatible: Should contain "cirrus,ep7209-mctrl-gpio". 5 5 - gpio-controller: Marks the device node as a gpio controller. 6 6 - #gpio-cells: Should be two. The first cell is the pin number and 7 7 the second cell is used to specify the gpio polarity: ··· 11 11 Example: 12 12 sysgpio: sysgpio { 13 13 compatible = "cirrus,ep7312-mctrl-gpio", 14 - "cirrus,clps711x-mctrl-gpio"; 14 + "cirrus,ep7209-mctrl-gpio"; 15 15 gpio-controller; 16 16 #gpio-cells = <2>; 17 17 };
+2 -2
drivers/gpio/gpio-syscon.c
··· 129 129 130 130 static const struct syscon_gpio_data clps711x_mctrl_gpio = { 131 131 /* ARM CLPS711X SYSFLG1 Bits 8-10 */ 132 - .compatible = "cirrus,clps711x-syscon1", 132 + .compatible = "cirrus,ep7209-syscon1", 133 133 .flags = GPIO_SYSCON_FEAT_IN, 134 134 .bit_count = 3, 135 135 .dat_bit_offset = 0x40 * 8 + 8, ··· 168 168 169 169 static const struct of_device_id syscon_gpio_ids[] = { 170 170 { 171 - .compatible = "cirrus,clps711x-mctrl-gpio", 171 + .compatible = "cirrus,ep7209-mctrl-gpio", 172 172 .data = &clps711x_mctrl_gpio, 173 173 }, 174 174 {