From patchwork Wed Dec 29 12:46:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 529354 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 E716BC43217 for ; Wed, 29 Dec 2021 12:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238761AbhL2MrK (ORCPT ); Wed, 29 Dec 2021 07:47:10 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:39710 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238641AbhL2MrH (ORCPT ); Wed, 29 Dec 2021 07:47:07 -0500 Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 22B803FFDB for ; Wed, 29 Dec 2021 12:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640782026; bh=r9HPg3JSAEOg9NmbHzzSoR6SujxmeJ0M4OI/ixjeZrc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fnUNrjX3Z8YThMizjVjXe9+YvCWVdW1crqKGMEp9vC9lrtHTwQcTB8BFYjB89v7aj aKHsmQgPttoHq5CL9q5TeuwRWElUGxqvI/BX9ZV5RWQPT/VOqkwkawH/o3gOMlJj3G Yok5kI1cQFkac4dMwWoRPgkgU6TFMr7zhU5YhSXQsWW19coYMwgaj5II4+U4ucStBV 11/Emup20ofDxI90rH1s7TqfVxeelLB2JEL7FFGaI/VwMjEvzn6KXkeVSn4Ogvy4vu 6eB4zbRbTHsdmysHdACID5rL4uoF/BHuO6GkZtXm3ormEUrqeop9ByTtFDB3DOiBjs s5lmYewgNgQwQ== Received: by mail-lf1-f69.google.com with SMTP id g2-20020a19e042000000b00425cfac0e67so4470656lfj.10 for ; Wed, 29 Dec 2021 04:47:06 -0800 (PST) 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=r9HPg3JSAEOg9NmbHzzSoR6SujxmeJ0M4OI/ixjeZrc=; b=D/L7EoXg137Vc80QQ5LFco1w9/7Hbw6Q7ZRmOPzjr6lmeHyyJ7wlaV45CSGweUUAPG p5sS+yjr3XMUSXKx1hId1untFsGYYdvfEJtJ02RFu7m4TH3rdH+iymtRLIp+1xm6myfq sku6Mv6X5wQnn1GAchkYVO3avYyR2rr1daHwZsMtFPpDEe0BEZImeZeS3gVwthc3Yykm ocxNpVI2bn/GWGyzTmieRJaQoc04UHrWU4fAiP5Hy0B1i/kqhkjCyFQjVqY0vUoi94Re 6PODoYAHH/5mXfNt+uafUNLGaCyyo7PwbtdK6HJe3OwDwURhECHiomfGSv64t9W34lu+ MWcw== X-Gm-Message-State: AOAM532iQVAg7ROvJffILy4kuIFZL+96Fpp3ffWutIMkk0Qi9W4pUexH i5cpNm3GxyGAuO5LuQqti9SNUXOp/+glURsv9DRcSXa4IGAe2rEBC8k3TIR5sHt82vNY2Le05Or DyjXoIr3M0kZd/Le7dgD5rvEYsDBjjGk3jrq7kW0= X-Received: by 2002:a05:651c:54f:: with SMTP id q15mr16468106ljp.319.1640782021617; Wed, 29 Dec 2021 04:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ5KP8xCMo76zySy7IgcVerWkV4lDnBlSblfUvCTCSfXuM2Uh2jh+Nf/55i9Fuz7F9pVdknQ== X-Received: by 2002:a05:651c:54f:: with SMTP id q15mr16468087ljp.319.1640782021346; Wed, 29 Dec 2021 04:47:01 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id e11sm711158ljn.73.2021.12.29.04.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 04:47:00 -0800 (PST) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , MyungJoo Ham , Rob Herring , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Inki Dae , Jaewon Kim , Beomho Seo Subject: [PATCH 1/5] arm64: dts: exynos: Align MAX77843 nodes with dtschema on TM2 Date: Wed, 29 Dec 2021 13:46:27 +0100 Message-Id: <20211229124631.21576-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> References: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The newly introduced dtschema for MAX77843 MUIC require the children to have proper naming and a port@0 property. This should not have actual impact on MFD children driver binding, because the max77843 MFD driver uses compatibles. The port@0 is disabled to avoid any impact. Signed-off-by: Krzysztof Kozlowski --- Please kindly test or even better - fix the DTS and extcon driver. --- .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index cbcc01a66aab..03f7c9acaacb 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -858,10 +858,10 @@ pmic@66 { interrupts = <5 IRQ_TYPE_EDGE_FALLING>; reg = <0x66>; - muic: max77843-muic { + muic: extcon { compatible = "maxim,max77843-muic"; - musb_con: musb-connector { + musb_con: connector { compatible = "samsung,usb-connector-11pin", "usb-b-connector"; label = "micro-USB"; @@ -871,6 +871,17 @@ ports { #address-cells = <1>; #size-cells = <0>; + port@0 { + /* + * TODO: The DTS this is based on does not have + * port@0 which is a required property. The ports + * look incomplete and need fixing. + * Add a disabled port just to satisfy dtschema. + */ + reg = <0>; + status = "disabled"; + }; + port@3 { reg = <3>; musb_con_to_mhl: endpoint { @@ -910,7 +921,7 @@ charger_reg: CHARGER { }; }; - haptic: max77843-haptic { + haptic: motor-driver { compatible = "maxim,max77843-haptic"; haptic-supply = <&ldo38_reg>; pwms = <&pwm 0 33670 0>; From patchwork Wed Dec 29 12:46:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528875 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 45C3EC433F5 for ; Wed, 29 Dec 2021 12:47:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238885AbhL2MrY (ORCPT ); Wed, 29 Dec 2021 07:47:24 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:39784 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238599AbhL2MrJ (ORCPT ); Wed, 29 Dec 2021 07:47:09 -0500 Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id BF229402E8 for ; Wed, 29 Dec 2021 12:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640782026; bh=iLh2tlnNUtVUmnMt4eZqM7IntfyNeEM0k2CAHpGK5VM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Xt6pXXmUBbMxdEqk5szvOEw9YSCCjQt3evSRfTXUCEa0kUZ1/2bW8vD0u2Yi7pCS8 NFKgB3DJy/FruQVkUDsggPZxbjYPcLyCZxDXTKdknQRwq5sdT8NNeMOlzuGzXbLyqM mm5/yb2qKK5E01xw6Vsq/rwFGPfL0Ct4E3s7hmV/hXrpWwP2A0Muq8KVfAtGn/eGd+ 9BeXox8qlwwZk+bSeflTJT8JzH/zrNKi1JsviJf3jbZMOMM14JjJJNAZAq58D/zmuJ yCIQJQPSSzFH2D1o9LW7Qm/gzKXkkauGe8D8+QWu2LUzP0uOdrjirB8RjuaSUJN6Zo ysyVnj0O5/MsA== Received: by mail-lj1-f200.google.com with SMTP id r20-20020a2eb894000000b0021a4e932846so7246553ljp.6 for ; Wed, 29 Dec 2021 04:47:06 -0800 (PST) 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=iLh2tlnNUtVUmnMt4eZqM7IntfyNeEM0k2CAHpGK5VM=; b=UAulUl7O1kNFsO6CdYkZp7QBEI9q92ULFzIytIvuBgFmIRaK8hRP0vHvdpfE2G3Mmr tJRJHWntSbmwgFKO5X1DQNPZSg6vpXFBTgcm/pHIOT/SY48EFcQRF5zq3mTlctKbaKiA 9SeRXsM8JyzSBWAzU6S6zNybxYm5lMuFbziFIA0inpfAlfFithDgXrQ/qbJqEPN4TPeG vOtFq86Ayuu9y7gxYEj1CLMJ9Zcq/QlDqTAFnDEpw/4EQ6dMa+tFatdzc4k7LToSNS6+ u3xO98Tm71NqYMeesri4Y3vaTiAr2Or/xuzo+XSQRzLwVzWatPjkkSka2E0+eYR8Iyd+ xmFQ== X-Gm-Message-State: AOAM530zDp2VKMxh4ZPAB9uZSqIJ67cu/EUqw7pujWDX9yQ3zO635o0D aETsf9Ga4ylaYi19IW4mi8A0PePKGxkTSH6miv1dwJovF/JJNx0ObnB0AMLf6YqoLs8c7/iGAjH Fs1V1/k3+zvMThbu1dInawrvXRT5kYw12l5lir3U= X-Received: by 2002:ac2:5f55:: with SMTP id 21mr23246719lfz.283.1640782022892; Wed, 29 Dec 2021 04:47:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQwlfEHGHgz1XhNgkfKoJmRVwi/su6Y8k5CHBskV1bmWZtSjIVx4kz65FqRHcXJCAf0dw7zw== X-Received: by 2002:ac2:5f55:: with SMTP id 21mr23246702lfz.283.1640782022719; Wed, 29 Dec 2021 04:47:02 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id e11sm711158ljn.73.2021.12.29.04.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 04:47:02 -0800 (PST) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , MyungJoo Ham , Rob Herring , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Inki Dae , Jaewon Kim , Beomho Seo Subject: [PATCH 2/5] dt-bindings: extcon: maxim,max77843: add MAX77843 bindings Date: Wed, 29 Dec 2021 13:46:28 +0100 Message-Id: <20211229124631.21576-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> References: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the bindings for MAX77843 MUIC/extcon driver, based on Exynos5433 TM2 devicetree. These are neither accurate nor finished bindings but at least allow parsing existing DTS files. Signed-off-by: Krzysztof Kozlowski --- .../bindings/extcon/maxim,max77843.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/maxim,max77843.yaml diff --git a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml new file mode 100644 index 000000000000..1f15a6c700f6 --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/extcon/maxim,max77843.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77843 MicroUSB and Companion Power Management IC Extcon + +maintainers: + - Chanwoo Choi + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX77843 MicroUSB + Integrated Circuit (MUIC). + + See also Documentation/devicetree/bindings/mfd/maxim,max77843.yaml for + additional information and example. + +properties: + compatible: + const: maxim,max77843-muic + + connector: + $ref: ../connector/usb-connector.yaml# + + ports: + $ref: /schemas/graph.yaml#/properties/port + description: + Any connector to the data bus of this controller should be modelled using + the OF graph bindings specified + properties: + port: + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - connector + +additionalProperties: false From patchwork Wed Dec 29 12:46:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528877 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 9ACDBC433EF for ; Wed, 29 Dec 2021 12:47:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238653AbhL2MrJ (ORCPT ); Wed, 29 Dec 2021 07:47:09 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:34516 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238624AbhL2MrH (ORCPT ); Wed, 29 Dec 2021 07:47:07 -0500 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id CCC61407C2 for ; Wed, 29 Dec 2021 12:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640782025; bh=NVZDNZbcxMe60AjIyWq0dP9vH4MaxZTaIUYRQc7qGok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Omi+qO22L3hJW2xcbtWzULFS165huVz60aHfge2Bpw6ErPj5S4Pnw4VLhO3P1sKOE KjZJeXEGHEt5Nxt1pUImzFpLSgHpgnO4YSC4jmBmDdmIb/YzREMLJsb5Ni7tIdO7Tm disGyuN+15b8wBpE89xKShfZtwEdpRJdKjgWDcV72GuLW0d/srMKB67y3rGkYcDqPk JA4q4A4kJVDTzNnvMFefFlpRkh8MRkKjeH10f9bpRIb4cMmNLIsGehZQK1H4c6WqLp 6cnVYvC1zMxOC4qwskdoj1MQBAGDPEDpmgbw7Jw6IGibUF2KOzMYzo42+emmRjCPed ySrImDitvPS0g== Received: by mail-lj1-f198.google.com with SMTP id c20-20020a2e9d94000000b0021cf7c089d0so3173862ljj.21 for ; Wed, 29 Dec 2021 04:47:05 -0800 (PST) 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=NVZDNZbcxMe60AjIyWq0dP9vH4MaxZTaIUYRQc7qGok=; b=hrFRi1xdiwXOOlMZRsyc/rJdL+me8KWUXCaloJR4Yq8uZv37hX4c9yz4XNhEP3+KVz xWp0rIKB5JtRMg7QFUXx0q5w3M+Uw5eU3uo1F/g2Zeay30U45ItU9t2wvj4dnTU4DmLH nG8Mgv4rrd5A5RAVizkHNux6KRf/KR1jOOLaTrOZyefPd7gAS4+NI9coPWJNKP3RZ0J1 MI47v7l+jZhKpcKem+BG7uvYfL0JQiMn3x4IcOV5MOJszyXCrpqMESik0BHzda4Ijet5 0TAPxVnWcN+Pzp1+17dljNjCs6gutBb7tk+Y2gITa+4JwMLQwEaoQ/ly0K7r7DQscIuB Q75Q== X-Gm-Message-State: AOAM532yGfkS3BuV/+/U0/1KUEy/fK+R/OLfjMwyVwVBfZ7DAOfBs64z 35t51rKyfls9B1poJ5BKQuipjzWYzvOTu/kf1MQjSy/l4tWvqJEpd9wPqQa3sG1aONtJDEZfx2C vh5xAgqU8GJI+ghebwAej63BJCCv4SfQ9roetfQs= X-Received: by 2002:a2e:a58e:: with SMTP id m14mr9998759ljp.172.1640782024270; Wed, 29 Dec 2021 04:47:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJysgtAYCi/aDd+5Ib3QCtjvGG5GYx3B+fcDxG5/MXwsPeTVwy8kTmO4sA8Z7NWAnwKjLlaM4g== X-Received: by 2002:a2e:a58e:: with SMTP id m14mr9998733ljp.172.1640782024076; Wed, 29 Dec 2021 04:47:04 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id e11sm711158ljn.73.2021.12.29.04.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 04:47:03 -0800 (PST) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , MyungJoo Ham , Rob Herring , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Inki Dae , Jaewon Kim , Beomho Seo Subject: [PATCH 3/5] regulator: dt-bindings: maxim,max77843: add MAX77843 bindings Date: Wed, 29 Dec 2021 13:46:29 +0100 Message-Id: <20211229124631.21576-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> References: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the bindings for MAX77843 regulator driver. The bindings are almost identical to MAX77693 bindings, except the actual names of regulators. Signed-off-by: Krzysztof Kozlowski --- .../bindings/regulator/maxim,max77843.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77843.yaml diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77843.yaml b/Documentation/devicetree/bindings/regulator/maxim,max77843.yaml new file mode 100644 index 000000000000..1ab58c756d7c --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/maxim,max77843.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/maxim,max77843.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77843 MicroUSB and Companion Power Management IC regulators + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX77843 MicroUSB Integrated + Circuit (MUIC). + + See also Documentation/devicetree/bindings/mfd/maxim,max77843.yaml for + additional information and example. + +properties: + compatible: + const: maxim,max77843-regulator + +patternProperties: + "^SAFEOUT[12]$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: | + Safeout LDO regulator. + + properties: + regulator-min-microvolt: true + regulator-max-microvolt: true + + required: + - regulator-name + + "^CHARGER$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: | + Current regulator. + + properties: + regulator-min-microamp: true + regulator-max-microamp: true + + required: + - regulator-name + +required: + - compatible + +additionalProperties: false From patchwork Wed Dec 29 12:46:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528876 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 0585FC433EF for ; Wed, 29 Dec 2021 12:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238744AbhL2MrO (ORCPT ); Wed, 29 Dec 2021 07:47:14 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:34572 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238685AbhL2MrI (ORCPT ); Wed, 29 Dec 2021 07:47:08 -0500 Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id A6423406EC for ; Wed, 29 Dec 2021 12:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640782026; bh=OwXVxDUNHiNBsMlyx2vvQ9vqNwzXFDkR9fITbhvv6ps=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=suy8u90G4rUI1suy+HRcW4qWKx3f3fIdCH+RCHrbbHxUHZFsU07VyC8VtISdtCR6v W8uEuOEErnDJgItXQgdyMFZLR+iz3wvNUTBR/dcIKuJ5yt86q/DzZx47z1KIeT/t5o /DDyk8twWqtWWy3C97NwoH6eJigOob+m6M4TE02CHKg3novpXUiK6mhfac3PCkqafZ Q8WRojBKVZnMT5IYqMscqBvSlDFDI7uYANOGQkf2cVrosecJcR8eWIgLzc+IFkMS+H cQFdwGjbbpf94ZyVcTXDWNxeVR+ZBhTPfVkBDLXkowxN9u3t5/1qTBOuB4BmknccYw XCsBiTspotzjA== Received: by mail-lj1-f200.google.com with SMTP id y8-20020a2e9788000000b0022df5cf52d1so1549732lji.18 for ; Wed, 29 Dec 2021 04:47:06 -0800 (PST) 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=OwXVxDUNHiNBsMlyx2vvQ9vqNwzXFDkR9fITbhvv6ps=; b=EuSrP+FnxIcdNCRbs47IE9s+uY7FXYbJPvZCytaNyo4Auhx0ZjX3iXJTM4AnuRDnEy VqI7ech5Jqi9bIQ0HHUUF94tnYrARE9LAKCVwtXOLaZ+WU45NaaArTf8u/nsR+VQY3be BEce48wQZMs8gVeGIgrGCf6eAKHqrWGDFO3CHBaDW/k2/eS1ZGl6sbdLVHtdGbt9BV5r Lok8WwVVVQLnK4xJuFGjRuRKcIXfsjGL9YNfmQcrrUBCAznHjwz97F20zlDSYs38sWdC sa7rG/YnOzP1c/6MwOjv6D7/Vlf0QRXydQPst6lxX4dye3YYT/+alGec+n8QFgAkBlUF gvNw== X-Gm-Message-State: AOAM533RZVc7+xdncByOqC1QlAgw+dSWr+9t+Zoh2PkdXBnOmgDt1JZj d7N0EGoq1lU7f80VIl8cv4jULjVRDcN2iqRcHtpaOsh4QMHJvytnKDHlXWtxjReWgGTdWGxLAY/ +/T71qCfI+vT3v8tbEwVCUbtR39gGhvMOi1Pin7w= X-Received: by 2002:ac2:51bc:: with SMTP id f28mr22837352lfk.222.1640782025650; Wed, 29 Dec 2021 04:47:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxlGSDNuVy9A0zTlQuoOwthlW7pXRr59PjrQaxjdZcO/w8Pf78FJV3HvNi8hIKJtFoMm3G1w== X-Received: by 2002:ac2:51bc:: with SMTP id f28mr22837340lfk.222.1640782025478; Wed, 29 Dec 2021 04:47:05 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id e11sm711158ljn.73.2021.12.29.04.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 04:47:04 -0800 (PST) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , MyungJoo Ham , Rob Herring , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Inki Dae , Jaewon Kim , Beomho Seo Subject: [PATCH 4/5] dt-bindings: mfd: maxim,max77843: add MAX77843 bindings Date: Wed, 29 Dec 2021 13:46:30 +0100 Message-Id: <20211229124631.21576-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> References: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the bindings for MAX77843 MFD driver, based on Exynos5433 TM2 devicetree. These are neither accurate nor finished bindings but at least allow parsing existing DTS files. The example DTS was copied from existing DTS (exynos5433-tm2-common.dtsi), so keep the license as GPL-2.0-only. Signed-off-by: Krzysztof Kozlowski --- .../bindings/mfd/maxim,max77843.yaml | 144 ++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77843.yaml diff --git a/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml b/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml new file mode 100644 index 000000000000..7f3d74f254af --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml @@ -0,0 +1,144 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max77843.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77843 MicroUSB and Companion Power Management IC + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX77843 MicroUSB + Integrated Circuit (MUIC). + + The Maxim MAX77843 is a MicroUSB and Companion Power Management IC which + includes voltage current regulators, charger, fuel-gauge, haptic motor driver + and MicroUSB management IC. + +properties: + compatible: + const: maxim,max77843 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + extcon: + $ref: ../extcon/maxim,max77843.yaml + + motor-driver: + type: object + properties: + compatible: + const: maxim,max77843-haptic + + haptic-supply: + description: Power supply to the haptic motor + + pwms: + maxItems: 1 + + required: + - compatible + - haptic-supply + - pwms + + regulators: + $ref: ../regulator/maxim,max77843.yaml + +required: + - compatible + - interrupts + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@66 { + compatible = "maxim,max77843"; + interrupt-parent = <&gpa1>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + reg = <0x66>; + + extcon { + compatible = "maxim,max77843-muic"; + + connector { + compatible = "samsung,usb-connector-11pin", + "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + /* + * TODO: The DTS this is based on does not have + * port@0 which is a required property. The ports + * look incomplete and need fixing. + * Add a disabled port just to satisfy dtschema. + */ + reg = <0>; + status = "disabled"; + }; + + port@3 { + reg = <3>; + endpoint { + remote-endpoint = <&mhl_to_musb_con>; + }; + }; + }; + }; + + ports { + port { + endpoint { + remote-endpoint = <&usb_to_muic>; + }; + }; + }; + }; + + regulators { + compatible = "maxim,max77843-regulator"; + + SAFEOUT1 { + regulator-name = "SAFEOUT1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <4950000>; + }; + + SAFEOUT2 { + regulator-name = "SAFEOUT2"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <4950000>; + }; + + CHARGER { + regulator-name = "CHARGER"; + regulator-min-microamp = <100000>; + regulator-max-microamp = <3150000>; + }; + }; + + motor-driver { + compatible = "maxim,max77843-haptic"; + haptic-supply = <&ldo38_reg>; + pwms = <&pwm 0 33670 0>; + }; + }; + }; From patchwork Wed Dec 29 12:46:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 529353 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 25AD9C433EF for ; Wed, 29 Dec 2021 12:47:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238836AbhL2MrP (ORCPT ); Wed, 29 Dec 2021 07:47:15 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:39808 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238920AbhL2MrM (ORCPT ); Wed, 29 Dec 2021 07:47:12 -0500 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id BC2EB402EA for ; Wed, 29 Dec 2021 12:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640782031; bh=b8unpukURFoj9tYv6hEHKZIOPqKdbI+UT8tS2dxzJ3A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R4ZIwpfuxfIM8Fel1C+ZHbPMbz/8dB64avjBxLCwqNhsguXVTn8rbVU2Vuci4ic93 1xr6BuQMSIy3gMMjX8Gg+POP09tLBICqyiguX3eD8FZZp4eb7OmWN5hR/nfcqUKDNz Z6U/zv36ahIqJF2vvcPfLOkji6gVN5sKgD6WCaAJowVB6Gmt5cH+nrK7wMMVqiMhZI 7LB+oUFscOiXd8JGDbD7u9qR60LJbRndTM0m3F/Fy+Sc4qPkqJcUe9Oyzya+1uTsy+ SlnBKhwYdO4ZBdAqJVGi/vQtTGRTKPbHqAzegSBIBJPgeDW1r6kD5eQkauamA69bu5 nFVLQWRtBeSkA== Received: by mail-lj1-f197.google.com with SMTP id c31-20020a2ebf1f000000b0022d87a28911so7080205ljr.1 for ; Wed, 29 Dec 2021 04:47:11 -0800 (PST) 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=b8unpukURFoj9tYv6hEHKZIOPqKdbI+UT8tS2dxzJ3A=; b=1zyjv6uwpUHzxnosbu270g2JL2uhxia/WTxXoXAslIMs6YYsKoRO93i8qInSGUZxpe r9XfKNbxqDxu+JIQcUvdIt/h/VuDonh3eVuvjZ4dyqegR2tgQzqyQ7R9JbNkqETZtjHL J4Fba0/TK9KOtM3asw2Ox5ttBLkELNGBov+91WfK1n8HtWWyYk8Hm6LdACs9zeo5uXAr yQhIoCZQJ+T71jQbxjUHpWV/g1KaKnrvIl3I66gSFlTlx+n+f46YP+Ny3cIv8CSICmXV r+dL3/+9EbkEeAxZXgg4HkI5jQXZHFx3D7ZAMvyWmjXS8ILMaoR95NdB5ULEV5bAc46t 58Mg== X-Gm-Message-State: AOAM531wHZhxmF88ZUq0seaWAqtkdRTW9dkYVD2jlsWZN5/wmPmiFdNt gjeF+NCDZ20Yu0Xfhn0YsN39U7aEWI2yQ1z8QJts7dz9S26lHYITBcC2AebWNWk/MpQ4ltv3fwV skn6P0edm8eGA3msX9mdS4BHT8gxuEJglNyA26CQ= X-Received: by 2002:a2e:574b:: with SMTP id r11mr16745446ljd.489.1640782027281; Wed, 29 Dec 2021 04:47:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLiHFDic96sN498wDn0DRNBEIHxbIVncu3lh3X6e7AC89ghZepVCvnmS0/L/+JzAFD33udSA== X-Received: by 2002:a2e:574b:: with SMTP id r11mr16745428ljd.489.1640782027109; Wed, 29 Dec 2021 04:47:07 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id e11sm711158ljn.73.2021.12.29.04.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 04:47:06 -0800 (PST) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , MyungJoo Ham , Rob Herring , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Inki Dae , Jaewon Kim , Beomho Seo Subject: [PATCH 5/5] MAINTAINERS: mfd: cover MAX77843 by Maxim PMIC/MUIC for Exynos boards entry Date: Wed, 29 Dec 2021 13:46:31 +0100 Message-Id: <20211229124631.21576-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> References: <20211229124631.21576-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The MAX77843 is used in Exynos5433-based TM2 boards and shares some parts of code with MAX77693 (regulator and haptic motor drivers). Include all MAX77843 drivers in the entry for Maxim PMIC/MUIC drivers for Exynos boards, so they will receive some dedicated review coverage. Signed-off-by: Krzysztof Kozlowski --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e5f2758531bc..d1f8f312f322 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11693,8 +11693,10 @@ L: linux-kernel@vger.kernel.org S: Supported F: Documentation/devicetree/bindings/*/maxim,max77686.yaml F: Documentation/devicetree/bindings/*/maxim,max77693.yaml +F: Documentation/devicetree/bindings/*/maxim,max77843.yaml F: Documentation/devicetree/bindings/clock/maxim,max77686.txt F: Documentation/devicetree/bindings/mfd/max14577.txt +F: drivers/*/*max77843.c F: drivers/*/max14577*.c F: drivers/*/max77686*.c F: drivers/*/max77693*.c