From nobody Mon Feb 9 19:55:05 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 D257EC00528 for ; Sun, 23 Jul 2023 14:28:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbjGWO2u (ORCPT ); Sun, 23 Jul 2023 10:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGWO2s (ORCPT ); Sun, 23 Jul 2023 10:28:48 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93039E72 for ; Sun, 23 Jul 2023 07:28:47 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-52229f084beso579088a12.2 for ; Sun, 23 Jul 2023 07:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690122526; x=1690727326; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=CnglWu01tYHwRNOL8HHkMLLSEFA+kFYQg1Vd2bg+vtE=; b=aZyOQUBhQS9KKId8c3bvqlgtAedmrTKIlVb/EH9qY+3z0bgiUmcf68YDmSpMcc4X12 ST23elE9DSDswNdPV+JFJYrZF37CLpEGL5sbMxZMLpdiCzr6coKIWe/42ZnK6Axmh4nl wIVEDpfSsGvj+Gc/0HAqTH/E1fVHQbRUpWPEil+mkFfsHF1ZOxcz98g7mZ/eB4bGDc89 m2R03kuptIzHduRdEwp9x8dpyLyk+hU3L5OirGMl+tpb56MGFUfriqepvOdfk0UVUjQX XOSNk0hlU1skQT+uR78DcMSImG0+8y6M5Fmb2qE/PvI2iqwMiapLCfZM/H9WnVNohuVu ukHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690122526; x=1690727326; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CnglWu01tYHwRNOL8HHkMLLSEFA+kFYQg1Vd2bg+vtE=; b=Zu3+tAfu5Kpq2j+gYwCr3nCtd+4uxNvwk3a8uXkNoI/y0yxN9KoZfpeARyv2Ij8zr6 nhEdUQqyAWgKNNL8Gw/p+Jl6ycxiVBAZf3jI42zY563AD2t2/d2cfELkfstF9+kE1Vsy ZAh7uFDpq8HbztxIT0hzeB3lmNbBgU/dwUG+nJFWtL+niyTwDXFZCSnWHQmjEDsAB7oc hSdq6Sjec56bEkYaiNRqITD8fXDzQDIQKH0ZeNgZsjSweUyYYh3MnLP/eoacGDuVPbxj m8Y6IeRuxInY6Xy2eLwtGojn2dfFFhHubANNvR/fh8BhpHtK8liJM474OS0sWCNI+Qqf PM6w== X-Gm-Message-State: ABy/qLa+W7jfOC/BXyW1KmyzuryNIl6dcMi3P5IyABZEXiNCgeVGgVZV cY7ZwuIc203SgclY4k/qZgHttw== X-Google-Smtp-Source: APBJJlGsft6GzVcOYUHlpDWS1vZO9h6TJLjor6mTF5Oc9u0bIh6YbPzh+jOOPYkhtRgpob9cGavFfw== X-Received: by 2002:a17:906:5a4e:b0:982:30e3:ddcb with SMTP id my14-20020a1709065a4e00b0098230e3ddcbmr7560414ejc.65.1690122526109; Sun, 23 Jul 2023 07:28:46 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id e27-20020a170906375b00b00988f168811bsm5260805ejc.135.2023.07.23.07.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:28:45 -0700 (PDT) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Lee Jones , Rob Herring , Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2] dt-bindings: mfd: maxim,max77693: Add USB connector Date: Sun, 23 Jul 2023 16:28:42 +0200 Message-Id: <20230723142842.98204-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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" Add micro-USB connector under "muic" node to properly represent the hardware. Deprecate also the old "max77693-muic" in favor of generic "muic" (this is max77693, so there is no need to state it in its child nodes). This "muic" node is used only to instantiate MUIC driver by compatible, thus actual Linux driver changes are needed. Extend the example with this new code. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Reviewed-by: Rob Herring --- Changes in v2: 1. Put connector node in the muic node (Henrik). 2. Rename max77693-muic -> muic. 3. Extend example. DTS change using this: https://lore.kernel.org/linux-samsung-soc/20230723142417.97734-1-krzysztof.= kozlowski@linaro.org/T/#u --- .../bindings/mfd/maxim,max77693.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/maxim,max77693.yaml b/Do= cumentation/devicetree/bindings/mfd/maxim,max77693.yaml index 1b06a77ec798..6a6f222b868f 100644 --- a/Documentation/devicetree/bindings/mfd/maxim,max77693.yaml +++ b/Documentation/devicetree/bindings/mfd/maxim,max77693.yaml @@ -37,6 +37,7 @@ properties: max77693-muic: type: object additionalProperties: false + deprecated: true =20 properties: compatible: @@ -45,6 +46,21 @@ properties: required: - compatible =20 + muic: + type: object + additionalProperties: false + + properties: + compatible: + const: maxim,max77693-muic + + connector: + $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + + required: + - compatible + motor-driver: type: object additionalProperties: false @@ -107,6 +123,38 @@ examples: }; }; =20 + muic { + compatible =3D "maxim,max77693-muic"; + + connector { + compatible =3D "samsung,usb-connector-11pin", + "usb-b-connector"; + label =3D "micro-USB"; + type =3D "micro"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + muic_to_usb: endpoint { + remote-endpoint =3D <&usb_to_muic>; + }; + }; + + port@3 { + reg =3D <3>; + + muic_to_mhl: endpoint { + remote-endpoint =3D <&mhl_to_muic>; + }; + }; + }; + }; + }; + motor-driver { compatible =3D "maxim,max77693-haptic"; haptic-supply =3D <&ldo26_reg>; --=20 2.34.1