Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F077DC6FD18 for ; Wed, 19 Apr 2023 18:53:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3AD31861F2; Wed, 19 Apr 2023 20:53:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hfHQ+IJm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C3F2C86287; Wed, 19 Apr 2023 20:53:08 +0200 (CEST) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 73DF185B6E for ; Wed, 19 Apr 2023 20:53:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-504efe702d5so186534a12.3 for ; Wed, 19 Apr 2023 11:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681930386; x=1684522386; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QRcdqgmcaCYXLcoASv9+gX4YF3dtAm1fz0PgnwBy9gQ=; b=hfHQ+IJmFFg8PaHfcYPWcA1l7UfA6AKkQXH5DBWOo0xlho/VsONQnSlqqqEQzoHKTj yN/KuxeVuJaHIix3qwwrNUTmGNKKzM8Tu0I2XDk1rTiKRN9rj48CNxOsJTgox0IFVKXm TOTcgthTP9WMU2YE7wWknPpmN4SXeYEnIC0un642Og7OeI+3WcXmAyyMcbMb6AbSW5RM uKU51WAkrtTvXqJN4WzgcsE8HL3kP4x3iTMI3ydbB8FYQwrvQPHqKNQvjPUMR3C0vVCx FnWVrqfw09ffCUHLI43Dzgbpub5rGn7Ah3nDB1G0vsIDZpdiWCzKJ3/a3JVYJDEtKCRp jY4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681930386; x=1684522386; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QRcdqgmcaCYXLcoASv9+gX4YF3dtAm1fz0PgnwBy9gQ=; b=SvuMdwlkmE04onaRga3+Zx7I1DjP+StpwtSva+vURP7qK1SPM5i6NYq8Fwd+BqliU+ M07DeP8q0RrxTY3/8wF2gOuRNJkf1EgaWj46IZvw8zs7+LFSU9mVswjvmikdn0+6SwQd tJ1CDlrJ/M5ska4tLg/FwbdqDLzdSXmFwHflKGpt2d70URQXQpa8+cubR5LA7rOxPrna /3MjUpfYMvWwxayHEzpUy3AmsvJOPOCUJy97D8neq50wEf+HdP4zw2GyLMTQeYYjmRSG EQUcjwFKB/kny5f4GM6ceik4SLEKrhdOONPfWKSJhh7mAskQEN0XGYjLe7zH7hzOtJEx qXsQ== X-Gm-Message-State: AAQBX9ee05jfkMIv2Q1ZqT5nBstU9q9iWabOSEGDXswteYzs7do0DuHl EWOrF1ETLox/sm1Z4luk/+Y= X-Google-Smtp-Source: AKy350bWVnRk/D8LTdhaTC7IzV74VK6RYSpJQ5zObPjnIlsScN35985uqJxQ0QrqJDDCjWBYE+TT2A== X-Received: by 2002:aa7:d945:0:b0:506:9765:6de7 with SMTP id l5-20020aa7d945000000b0050697656de7mr6644718eds.20.1681930385745; Wed, 19 Apr 2023 11:53:05 -0700 (PDT) Received: from xeon.. ([188.163.112.59]) by smtp.gmail.com with ESMTPSA id m21-20020a509995000000b0050684020babsm7027078edb.27.2023.04.19.11.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 11:53:05 -0700 (PDT) From: Svyatoslav Ryhel To: Marek Vasut , Stefan Roese , Simon Glass , Svyatoslav Ryhel Cc: u-boot@lists.denx.de Subject: [PATCH v1 0/1] Add MAX14526 MUIC driver Date: Wed, 19 Apr 2023 21:52:47 +0300 Message-Id: <20230419185248.9430-1-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean MAX14526 MUIC is used by LG P880/P895 which are currently in the process of merging. Unfortunately U-Boot has no extcon driver model so I used a MISC model for now. MAX14526 is a powerful extcon device which has the ability to accurately determine plugged devices. In this implementation muic can be configured to represent 3 modes: CP-USB/UART and AP-USB. Unfortunately AP-UART was disabled on P880/P895. Additionally the driver configures some stuff required by the charger. Svyatoslav Ryhel (1): misc: extcon: add MAX14526 MUIC support drivers/misc/Kconfig | 2 + drivers/misc/Makefile | 1 + drivers/misc/extcon/Kconfig | 8 ++ drivers/misc/extcon/Makefile | 2 + drivers/misc/extcon/extcon-max14526.c | 153 ++++++++++++++++++++++++++ 5 files changed, 166 insertions(+) create mode 100644 drivers/misc/extcon/Kconfig create mode 100644 drivers/misc/extcon/Makefile create mode 100644 drivers/misc/extcon/extcon-max14526.c -- 2.37.2