Thread (52 messages) 52 messages, 8 authors, 2022-08-04

Re: [PATCH v6 07/13] mfd: mt6370: Add MediaTek MT6370 support

From: Andy Shevchenko <hidden>
Date: 2022-07-25 08:00:08
Also in: dri-devel, linux-devicetree, linux-fbdev, linux-iio, linux-leds, linux-mediatek, linux-pm, linux-usb, lkml

On Fri, Jul 22, 2022 at 12:25 PM ChiaEn Wu [off-list ref] wrote:
From: ChiYuan Huang <redacted>

This adds support for the MediaTek MT6370 SubPMIC. MediaTek MT6370 is a
SubPMIC consisting of a single cell battery charger with ADC monitoring,
RGB LEDs, dual channel flashlight, WLED backlight driver, display bias
voltage supply, one general purpose LDO, and the USB Type-C & PD controller
complies with the latest USB Type-C and PD standards.
...
+#define MT6370_REG_DEV_INFO    0x100
+#define MT6370_REG_CHG_IRQ1    0x1C0
+#define MT6370_REG_CHG_MASK1   0x1E0
+
+#define MT6370_VENID_MASK      GENMASK(7, 4)
+
+#define MT6370_NUM_IRQREGS     16
+#define MT6370_USBC_I2CADDR    0x4E
+#define MT6370_REG_ADDRLEN     2
+#define MT6370_REG_MAXADDR     0x1FF
These two more logically to have near to other _REG_* definitions above.

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help