^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Driver for BCM6358 memory-mapped LEDs, based on leds-syscon.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright 2015 Álvaro Fernández Rojas <noltari@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <linux/delay.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/leds.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/spinlock.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define BCM6358_REG_MODE 0x0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define BCM6358_REG_CTRL 0x4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define BCM6358_SLED_CLKDIV_MASK 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define BCM6358_SLED_CLKDIV_1 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define BCM6358_SLED_CLKDIV_2 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define BCM6358_SLED_CLKDIV_4 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define BCM6358_SLED_CLKDIV_8 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define BCM6358_SLED_POLARITY BIT(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define BCM6358_SLED_BUSY BIT(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define BCM6358_SLED_MAX_COUNT 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define BCM6358_SLED_WAIT 100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) * struct bcm6358_led - state container for bcm6358 based LEDs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * @cdev: LED class device for this LED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) * @mem: memory resource
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) * @lock: memory lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) * @pin: LED pin number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) * @active_low: LED is active low
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) struct bcm6358_led {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) struct led_classdev cdev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) void __iomem *mem;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) spinlock_t *lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) unsigned long pin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) bool active_low;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) static void bcm6358_led_write(void __iomem *reg, unsigned long data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #ifdef CONFIG_CPU_BIG_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) iowrite32be(data, reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) writel(data, reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) static unsigned long bcm6358_led_read(void __iomem *reg)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #ifdef CONFIG_CPU_BIG_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) return ioread32be(reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) return readl(reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) static unsigned long bcm6358_led_busy(void __iomem *mem)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) unsigned long val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) while ((val = bcm6358_led_read(mem + BCM6358_REG_CTRL)) &
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) BCM6358_SLED_BUSY)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) udelay(BCM6358_SLED_WAIT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) return val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) static void bcm6358_led_set(struct led_classdev *led_cdev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) enum led_brightness value)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) struct bcm6358_led *led =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) container_of(led_cdev, struct bcm6358_led, cdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) unsigned long flags, val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) spin_lock_irqsave(led->lock, flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) bcm6358_led_busy(led->mem);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) val = bcm6358_led_read(led->mem + BCM6358_REG_MODE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) if ((led->active_low && value == LED_OFF) ||
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) (!led->active_low && value != LED_OFF))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) val |= BIT(led->pin);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) val &= ~(BIT(led->pin));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) bcm6358_led_write(led->mem + BCM6358_REG_MODE, val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) spin_unlock_irqrestore(led->lock, flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) void __iomem *mem, spinlock_t *lock)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) struct led_init_data init_data = {};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) struct bcm6358_led *led;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) const char *state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) int rc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) if (!led)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) led->pin = reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) led->mem = mem;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) led->lock = lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) if (of_property_read_bool(nc, "active-low"))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) led->active_low = true;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) if (!of_property_read_string(nc, "default-state", &state)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) if (!strcmp(state, "on")) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) led->cdev.brightness = LED_FULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) } else if (!strcmp(state, "keep")) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) unsigned long val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) val = bcm6358_led_read(led->mem + BCM6358_REG_MODE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) val &= BIT(led->pin);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) if ((led->active_low && !val) ||
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) (!led->active_low && val))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) led->cdev.brightness = LED_FULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) led->cdev.brightness = LED_OFF;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) } else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) led->cdev.brightness = LED_OFF;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) } else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) led->cdev.brightness = LED_OFF;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) bcm6358_led_set(&led->cdev, led->cdev.brightness);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) led->cdev.brightness_set = bcm6358_led_set;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) init_data.fwnode = of_fwnode_handle(nc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) rc = devm_led_classdev_register_ext(dev, &led->cdev, &init_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) if (rc < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) return rc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) dev_dbg(dev, "registered LED %s\n", led->cdev.name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) static int bcm6358_leds_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) struct device *dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) struct device_node *np = dev_of_node(&pdev->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) struct device_node *child;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) void __iomem *mem;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) spinlock_t *lock; /* memory lock */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) unsigned long val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) u32 clk_div;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) mem = devm_platform_ioremap_resource(pdev, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) if (IS_ERR(mem))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) return PTR_ERR(mem);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) lock = devm_kzalloc(dev, sizeof(*lock), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) if (!lock)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) spin_lock_init(lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) val = bcm6358_led_busy(mem);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) val &= ~(BCM6358_SLED_POLARITY | BCM6358_SLED_CLKDIV_MASK);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) if (of_property_read_bool(np, "brcm,clk-dat-low"))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) val |= BCM6358_SLED_POLARITY;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) of_property_read_u32(np, "brcm,clk-div", &clk_div);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) switch (clk_div) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) case 8:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) val |= BCM6358_SLED_CLKDIV_8;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) case 4:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) val |= BCM6358_SLED_CLKDIV_4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) case 2:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) val |= BCM6358_SLED_CLKDIV_2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) default:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) val |= BCM6358_SLED_CLKDIV_1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) bcm6358_led_write(mem + BCM6358_REG_CTRL, val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) for_each_available_child_of_node(np, child) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) int rc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) u32 reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) if (of_property_read_u32(child, "reg", ®))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) continue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) if (reg >= BCM6358_SLED_MAX_COUNT) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) dev_err(dev, "invalid LED (%u >= %d)\n", reg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) BCM6358_SLED_MAX_COUNT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) continue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) rc = bcm6358_led(dev, child, reg, mem, lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) if (rc < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) of_node_put(child);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) return rc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) static const struct of_device_id bcm6358_leds_of_match[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) { .compatible = "brcm,bcm6358-leds", },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) { },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) MODULE_DEVICE_TABLE(of, bcm6358_leds_of_match);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) static struct platform_driver bcm6358_leds_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) .probe = bcm6358_leds_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) .driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) .name = "leds-bcm6358",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) .of_match_table = bcm6358_leds_of_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) module_platform_driver(bcm6358_leds_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_AUTHOR("Álvaro Fernández Rojas <noltari@gmail.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) MODULE_DESCRIPTION("LED driver for BCM6358 controllers");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) MODULE_LICENSE("GPL v2");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) MODULE_ALIAS("platform:leds-bcm6358");