From nobody Tue Jun 23 02:06:26 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87663C433EF for ; Sat, 12 Mar 2022 18:42:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232440AbiCLSnS (ORCPT ); Sat, 12 Mar 2022 13:43:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiCLSnQ (ORCPT ); Sat, 12 Mar 2022 13:43:16 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0D326A019; Sat, 12 Mar 2022 10:42:10 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id g17so20484517lfh.2; Sat, 12 Mar 2022 10:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fuqg1BCHR8jyJiR0saNeZmDLCOyYBw2/8GqF2Qylz9Q=; b=fxNA1THozvIQG3ZA7C1TAg7j+N2GP5bYf1CSczFvph4SqnYyyL15FCom8LeAdtw3Hq D/qTyWsz+ocLsysShoisIXHLiTOYIdIvB6z79O+r19edsiSV6d1Y0ptB5KwAcyvGM3N0 EpGtE88Yw190eX4LcQlb1uxd9fsJnduvJBFFhPsmzxpD843+wwQomnjClpN+4L6gDmsK bc+WqMtdof8+MmpKZq0Q+AV5EyzWNZhM1XRgAlDXCdPZl6UTg8UEuRprBPxx89t4OiZy dvmAwbIniOnBK18SM/5dOxc26q4TR3/G4tsZheOoFIGmxa6Vl5ppTbkKOtRPK5U4j1YZ t0XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fuqg1BCHR8jyJiR0saNeZmDLCOyYBw2/8GqF2Qylz9Q=; b=THVl+KxnRB7dZZ8Pg7muqofw4Fs2+oFMkTMhTMZnNLSRqrcElPOkA4L+18PL2J4U1E PS6tw0OAOKdFBFddkXYbHs1EVEILG8lMrg38R3EMgPh7bub4s5JThYKQDxeTH7ONt7hq Y1wIfeNUPitudpvNxPVWnTdKFjZ0207LB68bYF7Rrg5R54rPcB31cUICqp63ZRVQ4+Xe csfYZoTpev7ymDBJuKJFKGymIeo/0gRfOrbHAXu8wyXm9PqRW5O294+qFlsyHQubkFUK OMc+lMM26CtEpS3YJw332K0Tzvi8eyKyXQS4SEyoFelWy8GPXRbxbacp2Eey4TyJuXn4 PUuw== X-Gm-Message-State: AOAM530QZ1CZVBGbW4fhSnb2UFuPBONVXfKL9tTIC5IB9BM1yYZLB9Ob Z8wnRUNBWim8vCvBI56RcTkzKwxOOa4e1SqI X-Google-Smtp-Source: ABdhPJxkW13aKF4nAnEeGLYbnDbBM8SD+QZ04cSOG0mjKD5rBygN61ANadBtB7hpcqDH8rvtpyrnlQ== X-Received: by 2002:a05:6512:c01:b0:448:6aec:65c5 with SMTP id z1-20020a0565120c0100b004486aec65c5mr6934738lfu.193.1647110528767; Sat, 12 Mar 2022 10:42:08 -0800 (PST) Received: from localhost.localdomain ([194.39.226.133]) by smtp.gmail.com with ESMTPSA id b1-20020ac247e1000000b0044842b76861sm2311236lfp.140.2022.03.12.10.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 10:42:08 -0800 (PST) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, ~postmarketos-upstreaming@lists.sr.ht, Markuss Broks , MyungJoo Ham , Chanwoo Choi , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: extcon: bindings for SM5703 Date: Sat, 12 Mar 2022 20:41:53 +0200 Message-Id: <20220312184156.24912-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220312184156.24912-1-markuss.broks@gmail.com> References: <20220312184156.24912-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This patch adds device-tree bindings for Silicon Mitus SM5703 MUIC. Signed-off-by: Markuss Broks Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-m= uic.yaml b/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-mui= c.yaml index fd2e55088888..7a224b2f0977 100644 --- a/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml +++ b/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml @@ -20,11 +20,12 @@ properties: enum: - siliconmitus,sm5502-muic - siliconmitus,sm5504-muic + - siliconmitus,sm5703-muic =20 reg: maxItems: 1 - description: I2C slave address of the device. Usually 0x25 for SM5502, - 0x14 for SM5504. + description: I2C slave address of the device. Usually 0x25 for SM5502 + and SM5703, 0x14 for SM5504. =20 interrupts: maxItems: 1 --=20 2.35.1 From nobody Tue Jun 23 02:06:26 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67136C433EF for ; Sat, 12 Mar 2022 18:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232455AbiCLSnY (ORCPT ); Sat, 12 Mar 2022 13:43:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbiCLSnT (ORCPT ); Sat, 12 Mar 2022 13:43:19 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F0F46A038; Sat, 12 Mar 2022 10:42:13 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id h11so16420994ljb.2; Sat, 12 Mar 2022 10:42:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g1uGOM5u14MmhWi9rlkVl0ueDCnCUd0QgmfYxjyLPSc=; b=Z4FtFIHnrBs7Bo7clCb9t3fLwNx468Jj88pgZxP6sJMo4S5aiVj+ZE5Q+0kJ280rS1 zY3T8SzGFrB72+A4x9ZSpSql4Zn1C8waUytrhkahQQ/70zNjQuARP3r+UR/TDMQCUI0E a/0N71LoJpc5yEZ3btQw1d+EvlNst37lVk8hnFEJfZxEcTeP1xbFI3AC//OeLNpdrhKY AajyDBgEzz3XkJ+iMEobjGjCDi084v0vQKqFrCH7EHk5Mc/wH6hsZwJOaM+fMK5ukaLX 1h3j0RiaW7/Jxhzq4ip9HyrG8/tlEzvbYivJpENh+ekzTGEMZzTI8vWYxCEF+US6iTFg ydiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g1uGOM5u14MmhWi9rlkVl0ueDCnCUd0QgmfYxjyLPSc=; b=m35IyY40/oSDOIyGbSc5C+DtGkJoNkOSkPBt6cOU3pzP48bz/UUgko7zM2F8SA4+NY RosyuAUXeiHSec+EOGy5eAeXCZ8b2svgNxNnfjjQqN3sry0SxNzZhZ5UC8GL2m8kMQQM ff+8PvFMg2xBGnA+TG8S2DTEt60vNyaCIF1YGd5xI/hDXIkOnXD3ff3qCvgwIEiQmsWO bFmTkS0oXS0msALp9i61ZkQcMSgjgxyMtuJwT3xz6rdEYIIxW8dHgNC6T2Vyh3guZmmJ g5SrILHNuAnITVCN/rkuCuPLSXD5jlF4+rit3pjxxxI9cH9hDQH5YmZdLJyHhRsdVMKB pIFA== X-Gm-Message-State: AOAM532Gr1SbizDaSeBpQMC21CQp4m4eIBahj21XlG06gIRIDrBkAjym yGC7GvhEDhl0e6jI4cmdt/+WYHIq44LiO0zV X-Google-Smtp-Source: ABdhPJxNolyjlitctLsfFGw0Iq5X8GG9Jj2XPpzo27cyK/1MpnmQZpOOMTK9SCSE2ehkP6rkwejY3A== X-Received: by 2002:a05:651c:a08:b0:247:eb2e:fb04 with SMTP id k8-20020a05651c0a0800b00247eb2efb04mr9442297ljq.524.1647110531727; Sat, 12 Mar 2022 10:42:11 -0800 (PST) Received: from localhost.localdomain ([194.39.226.133]) by smtp.gmail.com with ESMTPSA id b1-20020ac247e1000000b0044842b76861sm2311236lfp.140.2022.03.12.10.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 10:42:11 -0800 (PST) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, ~postmarketos-upstreaming@lists.sr.ht, Markuss Broks , MyungJoo Ham , Chanwoo Choi , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Subject: [PATCH v1 2/2] extcon: sm5502: Add support for SM5703 Date: Sat, 12 Mar 2022 20:41:54 +0200 Message-Id: <20220312184156.24912-3-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220312184156.24912-1-markuss.broks@gmail.com> References: <20220312184156.24912-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" SM5703 is another MFD from Silicon Mitus which has a very similar MUIC unit to the one in SM5502. The only difference I've noticed is slightly dif= ferent configuration only enables the interrupts which are exactly the same as on = SM5502. If we make use of different interrupts in the future, this can be improved = by having a separate struct for SM5703, but the main functionality (detecting cable o= r OTG adapter) is working properly. Signed-off-by: Markuss Broks --- drivers/extcon/Kconfig | 2 +- drivers/extcon/extcon-sm5502.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index 0d42e49105dd..88a8b3d7d78a 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/extcon/Kconfig @@ -156,7 +156,7 @@ config EXTCON_RT8973A from abnormal high input voltage (up to 28V). =20 config EXTCON_SM5502 - tristate "Silicon Mitus SM5502/SM5504 EXTCON support" + tristate "Silicon Mitus SM5502/SM5504/SM5703 EXTCON support" depends on I2C select IRQ_DOMAIN select REGMAP_I2C diff --git a/drivers/extcon/extcon-sm5502.c b/drivers/extcon/extcon-sm5502.c index 93da2d8379b1..17a40c3782ee 100644 --- a/drivers/extcon/extcon-sm5502.c +++ b/drivers/extcon/extcon-sm5502.c @@ -798,6 +798,7 @@ static const struct sm5502_type sm5504_data =3D { static const struct of_device_id sm5502_dt_match[] =3D { { .compatible =3D "siliconmitus,sm5502-muic", .data =3D &sm5502_data }, { .compatible =3D "siliconmitus,sm5504-muic", .data =3D &sm5504_data }, + { .compatible =3D "siliconmitus,sm5703-muic", .data =3D &sm5502_data }, { }, }; MODULE_DEVICE_TABLE(of, sm5502_dt_match); @@ -830,6 +831,7 @@ static SIMPLE_DEV_PM_OPS(sm5502_muic_pm_ops, static const struct i2c_device_id sm5502_i2c_id[] =3D { { "sm5502", (kernel_ulong_t)&sm5502_data }, { "sm5504", (kernel_ulong_t)&sm5504_data }, + { "sm5703", (kernel_ulong_t)&sm5502_data }, { } }; MODULE_DEVICE_TABLE(i2c, sm5502_i2c_id); --=20 2.35.1