Thomas Gleixner | 1802d0b | 2019-05-27 08:55:21 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Spreadtrum watchdog driver |
| 4 | * Copyright (C) 2017 Spreadtrum - http://www.spreadtrum.com |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <linux/bitops.h> |
| 8 | #include <linux/clk.h> |
| 9 | #include <linux/device.h> |
| 10 | #include <linux/err.h> |
| 11 | #include <linux/interrupt.h> |
| 12 | #include <linux/io.h> |
| 13 | #include <linux/kernel.h> |
| 14 | #include <linux/module.h> |
| 15 | #include <linux/of.h> |
| 16 | #include <linux/of_address.h> |
| 17 | #include <linux/platform_device.h> |
| 18 | #include <linux/watchdog.h> |
| 19 | |
| 20 | #define SPRD_WDT_LOAD_LOW 0x0 |
| 21 | #define SPRD_WDT_LOAD_HIGH 0x4 |
| 22 | #define SPRD_WDT_CTRL 0x8 |
| 23 | #define SPRD_WDT_INT_CLR 0xc |
| 24 | #define SPRD_WDT_INT_RAW 0x10 |
| 25 | #define SPRD_WDT_INT_MSK 0x14 |
| 26 | #define SPRD_WDT_CNT_LOW 0x18 |
| 27 | #define SPRD_WDT_CNT_HIGH 0x1c |
| 28 | #define SPRD_WDT_LOCK 0x20 |
| 29 | #define SPRD_WDT_IRQ_LOAD_LOW 0x2c |
| 30 | #define SPRD_WDT_IRQ_LOAD_HIGH 0x30 |
| 31 | |
| 32 | /* WDT_CTRL */ |
| 33 | #define SPRD_WDT_INT_EN_BIT BIT(0) |
| 34 | #define SPRD_WDT_CNT_EN_BIT BIT(1) |
| 35 | #define SPRD_WDT_NEW_VER_EN BIT(2) |
| 36 | #define SPRD_WDT_RST_EN_BIT BIT(3) |
| 37 | |
| 38 | /* WDT_INT_CLR */ |
| 39 | #define SPRD_WDT_INT_CLEAR_BIT BIT(0) |
| 40 | #define SPRD_WDT_RST_CLEAR_BIT BIT(3) |
| 41 | |
| 42 | /* WDT_INT_RAW */ |
| 43 | #define SPRD_WDT_INT_RAW_BIT BIT(0) |
| 44 | #define SPRD_WDT_RST_RAW_BIT BIT(3) |
| 45 | #define SPRD_WDT_LD_BUSY_BIT BIT(4) |
| 46 | |
| 47 | /* 1s equal to 32768 counter steps */ |
| 48 | #define SPRD_WDT_CNT_STEP 32768 |
| 49 | |
| 50 | #define SPRD_WDT_UNLOCK_KEY 0xe551 |
| 51 | #define SPRD_WDT_MIN_TIMEOUT 3 |
| 52 | #define SPRD_WDT_MAX_TIMEOUT 60 |
| 53 | |
| 54 | #define SPRD_WDT_CNT_HIGH_SHIFT 16 |
| 55 | #define SPRD_WDT_LOW_VALUE_MASK GENMASK(15, 0) |
| 56 | #define SPRD_WDT_LOAD_TIMEOUT 1000 |
| 57 | |
| 58 | struct sprd_wdt { |
| 59 | void __iomem *base; |
| 60 | struct watchdog_device wdd; |
| 61 | struct clk *enable; |
| 62 | struct clk *rtc_enable; |
| 63 | int irq; |
| 64 | }; |
| 65 | |
| 66 | static inline struct sprd_wdt *to_sprd_wdt(struct watchdog_device *wdd) |
| 67 | { |
| 68 | return container_of(wdd, struct sprd_wdt, wdd); |
| 69 | } |
| 70 | |
| 71 | static inline void sprd_wdt_lock(void __iomem *addr) |
| 72 | { |
| 73 | writel_relaxed(0x0, addr + SPRD_WDT_LOCK); |
| 74 | } |
| 75 | |
| 76 | static inline void sprd_wdt_unlock(void __iomem *addr) |
| 77 | { |
| 78 | writel_relaxed(SPRD_WDT_UNLOCK_KEY, addr + SPRD_WDT_LOCK); |
| 79 | } |
| 80 | |
| 81 | static irqreturn_t sprd_wdt_isr(int irq, void *dev_id) |
| 82 | { |
| 83 | struct sprd_wdt *wdt = (struct sprd_wdt *)dev_id; |
| 84 | |
| 85 | sprd_wdt_unlock(wdt->base); |
| 86 | writel_relaxed(SPRD_WDT_INT_CLEAR_BIT, wdt->base + SPRD_WDT_INT_CLR); |
| 87 | sprd_wdt_lock(wdt->base); |
| 88 | watchdog_notify_pretimeout(&wdt->wdd); |
| 89 | return IRQ_HANDLED; |
| 90 | } |
| 91 | |
| 92 | static u32 sprd_wdt_get_cnt_value(struct sprd_wdt *wdt) |
| 93 | { |
| 94 | u32 val; |
| 95 | |
| 96 | val = readl_relaxed(wdt->base + SPRD_WDT_CNT_HIGH) << |
| 97 | SPRD_WDT_CNT_HIGH_SHIFT; |
| 98 | val |= readl_relaxed(wdt->base + SPRD_WDT_CNT_LOW) & |
| 99 | SPRD_WDT_LOW_VALUE_MASK; |
| 100 | |
| 101 | return val; |
| 102 | } |
| 103 | |
| 104 | static int sprd_wdt_load_value(struct sprd_wdt *wdt, u32 timeout, |
| 105 | u32 pretimeout) |
| 106 | { |
| 107 | u32 val, delay_cnt = 0; |
| 108 | u32 tmr_step = timeout * SPRD_WDT_CNT_STEP; |
| 109 | u32 prtmr_step = pretimeout * SPRD_WDT_CNT_STEP; |
| 110 | |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 111 | /* |
| 112 | * Waiting the load value operation done, |
| 113 | * it needs two or three RTC clock cycles. |
| 114 | */ |
| 115 | do { |
| 116 | val = readl_relaxed(wdt->base + SPRD_WDT_INT_RAW); |
| 117 | if (!(val & SPRD_WDT_LD_BUSY_BIT)) |
| 118 | break; |
| 119 | |
| 120 | cpu_relax(); |
| 121 | } while (delay_cnt++ < SPRD_WDT_LOAD_TIMEOUT); |
| 122 | |
| 123 | if (delay_cnt >= SPRD_WDT_LOAD_TIMEOUT) |
| 124 | return -EBUSY; |
Lingling Xu | 17a3ee00 | 2020-11-09 11:00:54 +0800 | [diff] [blame] | 125 | |
| 126 | sprd_wdt_unlock(wdt->base); |
| 127 | writel_relaxed((tmr_step >> SPRD_WDT_CNT_HIGH_SHIFT) & |
| 128 | SPRD_WDT_LOW_VALUE_MASK, wdt->base + SPRD_WDT_LOAD_HIGH); |
| 129 | writel_relaxed((tmr_step & SPRD_WDT_LOW_VALUE_MASK), |
| 130 | wdt->base + SPRD_WDT_LOAD_LOW); |
| 131 | writel_relaxed((prtmr_step >> SPRD_WDT_CNT_HIGH_SHIFT) & |
| 132 | SPRD_WDT_LOW_VALUE_MASK, |
| 133 | wdt->base + SPRD_WDT_IRQ_LOAD_HIGH); |
| 134 | writel_relaxed(prtmr_step & SPRD_WDT_LOW_VALUE_MASK, |
| 135 | wdt->base + SPRD_WDT_IRQ_LOAD_LOW); |
| 136 | sprd_wdt_lock(wdt->base); |
| 137 | |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 138 | return 0; |
| 139 | } |
| 140 | |
| 141 | static int sprd_wdt_enable(struct sprd_wdt *wdt) |
| 142 | { |
| 143 | u32 val; |
| 144 | int ret; |
| 145 | |
| 146 | ret = clk_prepare_enable(wdt->enable); |
| 147 | if (ret) |
| 148 | return ret; |
| 149 | ret = clk_prepare_enable(wdt->rtc_enable); |
Alexey Khoroshilov | 3c578cd | 2018-03-09 00:21:48 +0300 | [diff] [blame] | 150 | if (ret) { |
| 151 | clk_disable_unprepare(wdt->enable); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 152 | return ret; |
Alexey Khoroshilov | 3c578cd | 2018-03-09 00:21:48 +0300 | [diff] [blame] | 153 | } |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 154 | |
| 155 | sprd_wdt_unlock(wdt->base); |
| 156 | val = readl_relaxed(wdt->base + SPRD_WDT_CTRL); |
| 157 | val |= SPRD_WDT_NEW_VER_EN; |
| 158 | writel_relaxed(val, wdt->base + SPRD_WDT_CTRL); |
| 159 | sprd_wdt_lock(wdt->base); |
| 160 | return 0; |
| 161 | } |
| 162 | |
| 163 | static void sprd_wdt_disable(void *_data) |
| 164 | { |
| 165 | struct sprd_wdt *wdt = _data; |
| 166 | |
| 167 | sprd_wdt_unlock(wdt->base); |
| 168 | writel_relaxed(0x0, wdt->base + SPRD_WDT_CTRL); |
| 169 | sprd_wdt_lock(wdt->base); |
| 170 | |
| 171 | clk_disable_unprepare(wdt->rtc_enable); |
| 172 | clk_disable_unprepare(wdt->enable); |
| 173 | } |
| 174 | |
| 175 | static int sprd_wdt_start(struct watchdog_device *wdd) |
| 176 | { |
| 177 | struct sprd_wdt *wdt = to_sprd_wdt(wdd); |
| 178 | u32 val; |
| 179 | int ret; |
| 180 | |
| 181 | ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); |
| 182 | if (ret) |
| 183 | return ret; |
| 184 | |
| 185 | sprd_wdt_unlock(wdt->base); |
| 186 | val = readl_relaxed(wdt->base + SPRD_WDT_CTRL); |
| 187 | val |= SPRD_WDT_CNT_EN_BIT | SPRD_WDT_INT_EN_BIT | SPRD_WDT_RST_EN_BIT; |
| 188 | writel_relaxed(val, wdt->base + SPRD_WDT_CTRL); |
| 189 | sprd_wdt_lock(wdt->base); |
| 190 | set_bit(WDOG_HW_RUNNING, &wdd->status); |
| 191 | |
| 192 | return 0; |
| 193 | } |
| 194 | |
| 195 | static int sprd_wdt_stop(struct watchdog_device *wdd) |
| 196 | { |
| 197 | struct sprd_wdt *wdt = to_sprd_wdt(wdd); |
| 198 | u32 val; |
| 199 | |
| 200 | sprd_wdt_unlock(wdt->base); |
| 201 | val = readl_relaxed(wdt->base + SPRD_WDT_CTRL); |
| 202 | val &= ~(SPRD_WDT_CNT_EN_BIT | SPRD_WDT_RST_EN_BIT | |
| 203 | SPRD_WDT_INT_EN_BIT); |
| 204 | writel_relaxed(val, wdt->base + SPRD_WDT_CTRL); |
| 205 | sprd_wdt_lock(wdt->base); |
| 206 | return 0; |
| 207 | } |
| 208 | |
| 209 | static int sprd_wdt_set_timeout(struct watchdog_device *wdd, |
| 210 | u32 timeout) |
| 211 | { |
| 212 | struct sprd_wdt *wdt = to_sprd_wdt(wdd); |
| 213 | |
| 214 | if (timeout == wdd->timeout) |
| 215 | return 0; |
| 216 | |
| 217 | wdd->timeout = timeout; |
| 218 | |
| 219 | return sprd_wdt_load_value(wdt, timeout, wdd->pretimeout); |
| 220 | } |
| 221 | |
| 222 | static int sprd_wdt_set_pretimeout(struct watchdog_device *wdd, |
| 223 | u32 new_pretimeout) |
| 224 | { |
| 225 | struct sprd_wdt *wdt = to_sprd_wdt(wdd); |
| 226 | |
| 227 | if (new_pretimeout < wdd->min_timeout) |
| 228 | return -EINVAL; |
| 229 | |
| 230 | wdd->pretimeout = new_pretimeout; |
| 231 | |
| 232 | return sprd_wdt_load_value(wdt, wdd->timeout, new_pretimeout); |
| 233 | } |
| 234 | |
| 235 | static u32 sprd_wdt_get_timeleft(struct watchdog_device *wdd) |
| 236 | { |
| 237 | struct sprd_wdt *wdt = to_sprd_wdt(wdd); |
| 238 | u32 val; |
| 239 | |
| 240 | val = sprd_wdt_get_cnt_value(wdt); |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 241 | return val / SPRD_WDT_CNT_STEP; |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 242 | } |
| 243 | |
| 244 | static const struct watchdog_ops sprd_wdt_ops = { |
| 245 | .owner = THIS_MODULE, |
| 246 | .start = sprd_wdt_start, |
| 247 | .stop = sprd_wdt_stop, |
| 248 | .set_timeout = sprd_wdt_set_timeout, |
| 249 | .set_pretimeout = sprd_wdt_set_pretimeout, |
| 250 | .get_timeleft = sprd_wdt_get_timeleft, |
| 251 | }; |
| 252 | |
| 253 | static const struct watchdog_info sprd_wdt_info = { |
| 254 | .options = WDIOF_SETTIMEOUT | |
| 255 | WDIOF_PRETIMEOUT | |
| 256 | WDIOF_MAGICCLOSE | |
| 257 | WDIOF_KEEPALIVEPING, |
| 258 | .identity = "Spreadtrum Watchdog Timer", |
| 259 | }; |
| 260 | |
| 261 | static int sprd_wdt_probe(struct platform_device *pdev) |
| 262 | { |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 263 | struct device *dev = &pdev->dev; |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 264 | struct sprd_wdt *wdt; |
| 265 | int ret; |
| 266 | |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 267 | wdt = devm_kzalloc(dev, sizeof(*wdt), GFP_KERNEL); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 268 | if (!wdt) |
| 269 | return -ENOMEM; |
| 270 | |
Guenter Roeck | 0f0a6a2 | 2019-04-02 12:01:53 -0700 | [diff] [blame] | 271 | wdt->base = devm_platform_ioremap_resource(pdev, 0); |
Wei Yongjun | 28e65ed | 2018-07-11 13:17:55 +0000 | [diff] [blame] | 272 | if (IS_ERR(wdt->base)) |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 273 | return PTR_ERR(wdt->base); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 274 | |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 275 | wdt->enable = devm_clk_get(dev, "enable"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 276 | if (IS_ERR(wdt->enable)) { |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 277 | dev_err(dev, "can't get the enable clock\n"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 278 | return PTR_ERR(wdt->enable); |
| 279 | } |
| 280 | |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 281 | wdt->rtc_enable = devm_clk_get(dev, "rtc_enable"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 282 | if (IS_ERR(wdt->rtc_enable)) { |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 283 | dev_err(dev, "can't get the rtc enable clock\n"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 284 | return PTR_ERR(wdt->rtc_enable); |
| 285 | } |
| 286 | |
| 287 | wdt->irq = platform_get_irq(pdev, 0); |
Stephen Boyd | 26ae6a8 | 2019-07-30 11:15:48 -0700 | [diff] [blame] | 288 | if (wdt->irq < 0) |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 289 | return wdt->irq; |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 290 | |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 291 | ret = devm_request_irq(dev, wdt->irq, sprd_wdt_isr, IRQF_NO_SUSPEND, |
| 292 | "sprd-wdt", (void *)wdt); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 293 | if (ret) { |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 294 | dev_err(dev, "failed to register irq\n"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 295 | return ret; |
| 296 | } |
| 297 | |
| 298 | wdt->wdd.info = &sprd_wdt_info; |
| 299 | wdt->wdd.ops = &sprd_wdt_ops; |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 300 | wdt->wdd.parent = dev; |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 301 | wdt->wdd.min_timeout = SPRD_WDT_MIN_TIMEOUT; |
| 302 | wdt->wdd.max_timeout = SPRD_WDT_MAX_TIMEOUT; |
| 303 | wdt->wdd.timeout = SPRD_WDT_MAX_TIMEOUT; |
| 304 | |
| 305 | ret = sprd_wdt_enable(wdt); |
| 306 | if (ret) { |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 307 | dev_err(dev, "failed to enable wdt\n"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 308 | return ret; |
| 309 | } |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 310 | ret = devm_add_action_or_reset(dev, sprd_wdt_disable, wdt); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 311 | if (ret) { |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 312 | dev_err(dev, "Failed to add wdt disable action\n"); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 313 | return ret; |
| 314 | } |
| 315 | |
| 316 | watchdog_set_nowayout(&wdt->wdd, WATCHDOG_NOWAYOUT); |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 317 | watchdog_init_timeout(&wdt->wdd, 0, dev); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 318 | |
Guenter Roeck | 78d9bfa | 2019-04-09 10:23:56 -0700 | [diff] [blame] | 319 | ret = devm_watchdog_register_device(dev, &wdt->wdd); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 320 | if (ret) { |
| 321 | sprd_wdt_disable(wdt); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 322 | return ret; |
| 323 | } |
| 324 | platform_set_drvdata(pdev, wdt); |
| 325 | |
| 326 | return 0; |
| 327 | } |
| 328 | |
| 329 | static int __maybe_unused sprd_wdt_pm_suspend(struct device *dev) |
| 330 | { |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 331 | struct sprd_wdt *wdt = dev_get_drvdata(dev); |
| 332 | |
Shuiqing Li | 39e68d9 | 2019-11-08 18:57:12 +0800 | [diff] [blame] | 333 | if (watchdog_active(&wdt->wdd)) |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 334 | sprd_wdt_stop(&wdt->wdd); |
| 335 | sprd_wdt_disable(wdt); |
| 336 | |
| 337 | return 0; |
| 338 | } |
| 339 | |
| 340 | static int __maybe_unused sprd_wdt_pm_resume(struct device *dev) |
| 341 | { |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 342 | struct sprd_wdt *wdt = dev_get_drvdata(dev); |
| 343 | int ret; |
| 344 | |
| 345 | ret = sprd_wdt_enable(wdt); |
| 346 | if (ret) |
| 347 | return ret; |
| 348 | |
Lingling Xu | f71f75a | 2020-10-29 10:39:31 +0800 | [diff] [blame] | 349 | if (watchdog_active(&wdt->wdd)) |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 350 | ret = sprd_wdt_start(&wdt->wdd); |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 351 | |
Lingling Xu | f71f75a | 2020-10-29 10:39:31 +0800 | [diff] [blame] | 352 | return ret; |
Eric Long | 4776034 | 2017-11-06 10:46:28 +0800 | [diff] [blame] | 353 | } |
| 354 | |
| 355 | static const struct dev_pm_ops sprd_wdt_pm_ops = { |
| 356 | SET_SYSTEM_SLEEP_PM_OPS(sprd_wdt_pm_suspend, |
| 357 | sprd_wdt_pm_resume) |
| 358 | }; |
| 359 | |
| 360 | static const struct of_device_id sprd_wdt_match_table[] = { |
| 361 | { .compatible = "sprd,sp9860-wdt", }, |
| 362 | {}, |
| 363 | }; |
| 364 | MODULE_DEVICE_TABLE(of, sprd_wdt_match_table); |
| 365 | |
| 366 | static struct platform_driver sprd_watchdog_driver = { |
| 367 | .probe = sprd_wdt_probe, |
| 368 | .driver = { |
| 369 | .name = "sprd-wdt", |
| 370 | .of_match_table = sprd_wdt_match_table, |
| 371 | .pm = &sprd_wdt_pm_ops, |
| 372 | }, |
| 373 | }; |
| 374 | module_platform_driver(sprd_watchdog_driver); |
| 375 | |
| 376 | MODULE_AUTHOR("Eric Long <eric.long@spreadtrum.com>"); |
| 377 | MODULE_DESCRIPTION("Spreadtrum Watchdog Timer Controller Driver"); |
| 378 | MODULE_LICENSE("GPL v2"); |