From patchwork Wed May 3 13:10:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 678911 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 43888C7EE22 for ; Wed, 3 May 2023 13:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbjECNKo (ORCPT ); Wed, 3 May 2023 09:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjECNKm (ORCPT ); Wed, 3 May 2023 09:10:42 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B1B75593 for ; Wed, 3 May 2023 06:10:41 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f315735514so23377305e9.1 for ; Wed, 03 May 2023 06:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683119440; x=1685711440; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9NGIFkLLmK4Sr9kuOcuriuzObhMgDByOLRoFZOnzEg8=; b=WSIpp0AyUyNK8ejbmI+2AA2CkhtIQRzo7l1bt4nzDfp84pk0uBpzNmaZM/bHoydPnE JiNy2urDUO6Vj45zDRMZ5TzWPxOTn8iM4ySriyZIDj/V5rjhHTX+ryfsWePIU9DTPWMO n7dBIt2gl3WR/oXRGd7t/Y2rI6p3+W/D3Y2VSZHYCgvUvfrz27A5hxXMUUOQGIZV1LAW mxBbB72PcyiGAnvHnRo1USE4igrVcqZQySARze936WOuQbcnyRDray1o5J5G02dgbIYg 9qRBAVhxRuyZDKgk2ATkg7SaeUK2FMmmiLDPxTZT+Adx+JXol46FCaWINZIBwbW2lhP0 PIaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683119440; x=1685711440; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9NGIFkLLmK4Sr9kuOcuriuzObhMgDByOLRoFZOnzEg8=; b=a7e6Zl8gAPLrFZ8VlntkoiaGIolm9z34/lmWl+AqsN8l4uB2Ko8T3qQS9bT715HqiK 3ctQjY2+OYaSeZ6FT8lkP/IJPREQ/t3tw4/+QMlxYNSF2BpPVWvCba60O5jw59J7v27/ jOJqVWHIuhSU3OjV2bAkMut7lqBdvrjNnYSD06U8PqTEf/ozwutyFCrkkz5aldX4vp4H OIrKk6dgpRnAYzPQg1aQGamIHcdT/dlmDTk1rOTa0J/tm+YwD1bJTm2YjwT14BLkJJmc aYuIEwrJYdO6umohn1jSFR0qe4g7xeQyhNJMiuBxXZe8ifwxzIuGUOuDS3OfrZvVHjD8 eY4g== X-Gm-Message-State: AC+VfDyxjdt+Eex6WAQzB8OvIfYe6MWkKq90z202NL8RdIJR+4z9ycGh ukPDYIiyJc8eAgioNDr294fNNA== X-Google-Smtp-Source: ACHHUZ7MaD2EXQSyw90at3uuaScaXT0UHcM6Rth7weJFdKvGqxQTPpiwEAzlT35+ZqTu5SsRlQh8OQ== X-Received: by 2002:adf:f5c9:0:b0:2f8:33bd:a170 with SMTP id k9-20020adff5c9000000b002f833bda170mr1615972wrp.32.1683119439757; Wed, 03 May 2023 06:10:39 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id c10-20020adffb0a000000b00306344eaebfsm5413479wrr.28.2023.05.03.06.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 06:10:39 -0700 (PDT) From: Neil Armstrong Date: Wed, 03 May 2023 15:10:33 +0200 Subject: [PATCH 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v1-1-d1ee9397f2a6@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1091; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=ht6a5DmmF0kzfbJ/xYkExLJE+gjvRhpNJMZTSQyBu3s=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkUl1LZr/WEoMmnAXZ2nsJdqWSKijmZ4ONtGaZKPYP vI1wON2JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZFJdSwAKCRB33NvayMhJ0Xp5D/ 0dbCCEjSD1BdP2zDtjdEUJjp8r7LYcR5nbJoVBq1awsPj50NqEboKoqF716e+5MifuMq+cTEVsgeQs PVV/xGHN37Tg/mZJPwJZvDtlX9u0lmCeP07x9fTXvEwTUYnddr4xi56O0BxjyUd6eORhnkMJFxvJew Fgm+oaHpKvsPO9lF5wfIdYcyPZ/wfxvn71rkctEgWusRgDEwr/H2sRsemePsscyo6DWE5dHUoAD1mg x15dk9iN8q7JTIGCOXobqqrEHUfEA/BzWS7F2ZGGsnEUhWO+yXhmImRHd3O13gMut9hDiLqaQCWLXg LUf7wS2Lu2KrDCuLAl9vU7Kgf1r5CIKFsYN8Jur/M0rvPzE4LxSETVvDIEIAsGvauYOEKMa0s6yEnX Dczb9kBAwH5y0QkLeFCdbA3CZEnFWgaJHAg97ouL4oZx5bva0YL3YF/tSiyX8X4o05EkXoK6FA5ZuB Fds3/+/5NJ9DOR+zqN9ozNJ4UXOBK2Q9d/dN/wl1+cwfH6QxJx/LSqSftkWc75JmwVf1D5xs4V4PdO riOlnbJoyMA3bAY0Zhul6Ur8Ig7btMmrRbSyrmIhBASt4ElE4Kr+EnPRGtAjm68ZUmHIsZM5VPT2UA WIJIcFMkGJjPBKXfZvs6E8r38psNp6TMFbFXuwpNiOmIGoVRCWYS7C2aRD8A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the USB3+DP Combo QMP PHY port subnodes in the SM8350 SoC DTSI to avoid duplication in the devices DTs. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index ebcb481571c2..d048f4d35c89 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2149,6 +2149,32 @@ usb_1_qmpphy: phy@88e9000 { #phy-cells = <1>; status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_1_qmpphy_out: endpoint { + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + usb_1_qmpphy_usb_ss_in: endpoint@0 { + reg = <0>; + }; + + usb_1_qmpphy_dp_in: endpoint@1 { + reg = <1>; + }; + }; + }; }; usb_2_qmpphy: phy-wrapper@88eb000 { From patchwork Wed May 3 13:10:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 678910 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 C799AC7EE22 for ; Wed, 3 May 2023 13:10:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbjECNKv (ORCPT ); Wed, 3 May 2023 09:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjECNKs (ORCPT ); Wed, 3 May 2023 09:10:48 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B50315B9C for ; Wed, 3 May 2023 06:10:44 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3063afa2372so1639401f8f.0 for ; Wed, 03 May 2023 06:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683119443; x=1685711443; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Mgnb7olp8WsAGre/rjyOBmnAxn0zQrK1napy4mUiZ7c=; b=LBzLfd6iwdjc82euMrcwbO5DrdxdgrYIto1dXumjAUCDiEeVMkd+p8eIVWqNc5arMD TxwhAU12RWvcJ7kjxvmbFSdFmZU/EDCL+eI5OTcA75A+uqEOaaXyMZzWn++KzP3ZXeKO 9Mk+Mt7bbcMp+pIM+1bNZ/XDSJZ4clOhBRQ3Lipomb9t8QUon7kCRLO42Qwuj6ZDBXjA /+vc0HFmbyFFnXCksqv5xvC78YrK9hTmQUre3xxAzPI6JUFTOkBKPkJ/r/rmclvo4eBM DFP3id+kcJKvHwQQGUrbxN3qC9JSOhoUqzA8vtEVJRUixQFFOljytd7oKg+VrJJOHoXi vvAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683119443; x=1685711443; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Mgnb7olp8WsAGre/rjyOBmnAxn0zQrK1napy4mUiZ7c=; b=mEDxUvHpCbd0VJeKu4I9bHPPJIXETcE083+TaQd07JY4gGSHPjC3J+2rzb9MXOAY0r UTlX8IBDqUBvlmciiXcxMFxGAM0llLlj1SOfhyURZFEX1l0t6rbueqIsLyNvQlBN5usG p7KnLadQI7fQYeCSnH+bnWr21pmpVY1MvygOty9e8BM2oSDEX3s8DxN5PlIKiWC2EuB0 6bZgvBnIIMH10R7M/eS5XHo5wikBfwmonG2h3cuO/JR3QaJvh0UZCg6Ap89zj0AJ1wJR Nv6gUkFgL7icd8FyDygdn62aefjHYgr5iPFsPAQyoJEj5xEx/SPtDUnIdSHbWs6COnCq noYA== X-Gm-Message-State: AC+VfDwtJJvdugys++NKCheb3FYObWul9bKPBgi29ApJ8D+NXjBkEcF0 YlkrKTnxOb6mOVzChFBN6cXi5Q== X-Google-Smtp-Source: ACHHUZ5onCrk1ZGwnojRx6Fmv0L11HQqcNEMV8jAhZN2+tOFWR1L3qHGyd8YXq52eqrfy0QexubjLA== X-Received: by 2002:adf:e948:0:b0:2f4:fcd:98dd with SMTP id m8-20020adfe948000000b002f40fcd98ddmr81717wrn.4.1683119443204; Wed, 03 May 2023 06:10:43 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id c10-20020adffb0a000000b00306344eaebfsm5413479wrr.28.2023.05.03.06.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 06:10:42 -0700 (PDT) From: Neil Armstrong Date: Wed, 03 May 2023 15:10:37 +0200 Subject: [PATCH 5/6] arm64: defconfig: enable FSA4480 driver as module MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v1-5-d1ee9397f2a6@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=658; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=Ikn25ScmA3SvVEXK30s7bBDPVtR1+xG0E4owtB5JoJs=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkUl1NI53nTosyH2S+NdPlBq0zcFvS0oMpzKzvbjob zl3xDCmJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZFJdTQAKCRB33NvayMhJ0R/gEA DOn45TLjrU4TgLfa+a2LbpBKMyy+JyTNXyOVgAm6TpTvr9AF76sZL1bYn25QHSxjEHzRuFa1OvwwXj ieOTugcP7tiyaY0eCJIhqoIlDp6zaVUGZfw1Z6ndtwuX7P0/l9ynwI/rDlmYFl+MnfGv4OJ2vfkXVo lLLqD9z4jk/AXUNeSPbom00HTK/3X4G/vdT0485W28ac+64ld9KD93iKmyDkmVs+mZC5I/4iOr50Vb MdIvKrrdxqLhmJIPnlRoUjwT2cXIyFalSFnFXUZJxPoJ2ERJURslKjHxlmuZQQaWHNHqC2izxMYpOS LkKAkjLC3UJB3R2EqxNX3xGHCH+hhbb8xwHRi3NA2nNOJKEGbHq0bea/sjlRu4X0Gm7JXw2gOFYdSJ vCFzkulXe5TtXhXDMESW10QIEwz3u4bvMaU2JJSbklcTzn3zal+NZ9MAZvQgdA3jhed6eoEwP/Eeon mMOJ79mqtGFkiLllml8HvuA4uoVpuG68tcCL1ynJEza3WPZpnveKhQ0LhidJmYPdiraD6aHlT4tLmT vzxB20d9c09yCVL1ax0PCEyKm00Ebb7vmiVObpXQU+Uu4cTqoldZK9E3PF7XSctBsFniNUCXPgcm5X chSnrBRWKn9Iebel4k5UJuPnjMb6PYrXGswOLg9YvXQdeBGQ0alm+O/QdO8Q== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the FSA4480 driver as module for HDK8350 and HDK8450 platforms to permit USB-C Altmode support. Signed-off-by: Neil Armstrong --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index a24609e14d50..e548bb52260e 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -992,6 +992,7 @@ CONFIG_TYPEC_FUSB302=m CONFIG_TYPEC_TPS6598X=m CONFIG_TYPEC_HD3SS3220=m CONFIG_TYPEC_UCSI=m +CONFIG_TYPEC_MUX_FSA4480=m CONFIG_UCSI_CCG=m CONFIG_TYPEC_MUX_GPIO_SBU=m CONFIG_MMC=y From patchwork Wed May 3 13:10:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 678909 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 D855BC7EE22 for ; Wed, 3 May 2023 13:10:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbjECNK5 (ORCPT ); Wed, 3 May 2023 09:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjECNKu (ORCPT ); Wed, 3 May 2023 09:10:50 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FBFD5FC9 for ; Wed, 3 May 2023 06:10:45 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f1728c2a57so51728525e9.0 for ; Wed, 03 May 2023 06:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683119444; x=1685711444; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dqfFtZjpBwpHnbanMeS8saew2f7WSD17vQFnp7exxSY=; b=X5e6nqdeOr1LhOT2w/el4JzYGIvop1TUIUA4iuy12YgJensJNeBpHZUaRoKhT6XH8a u3bnyRS1QOhwA4nS0cG/hdhqxUuMTEpSO/BqO2iTGX5bx0ZQWhAho2CVy2vEBmOl5fXG lAffKN3jTYXLMBX1ln7NJi/54k2kdpgCTG5wH2ODSON0X+zAZa0gzWrR5MywWELPA+aB CWkunyqovCogsBaWQTkFN4opqP3s8GZ0FTVghh45le+FlSOSl3jTTiUOO5yNoUrzc9Wx fWt1dJFqXC6JaQ8Kw/+bgQfzzfI+MZh0dk1/t04bbutsAe666GuocpNGEjhzkyJW/Ufb vmWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683119444; x=1685711444; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dqfFtZjpBwpHnbanMeS8saew2f7WSD17vQFnp7exxSY=; b=cpJUsebS7cBDf37yJWS0YMM3GylLVEq+bqlqTpZxh5rOy7XVmIc6DQLg/wg831/w2w MH+pRyKKOv+Q5Ilzv9nucRQM0csH/ewKDSOv2KrAe6xjGUhyKU4zRLohE8IU1kL2DGsH ySI+nq6gPA9ULpAgrvrlX+n+RBFTBoGw7K+FeVQTJiz1xH1xauteSejDYVmXXYn762ft ZG+WFkrWduIBjeIZsHevpLmrkatcXIqlilyNOPtC3vtZzuo+iskc3dKWtRmYC5GXk/qs Xsdy8x8gtSie4HQ13ID0AyPDAvsRRAP8uQM7KFe+lbnkRGnp2KFzzKvi2CzLBeSPxROh 6wIw== X-Gm-Message-State: AC+VfDwmN4etZ4LYoYnGQbuXes6NGv9i/iqozlGNfQYNjw8yvl86VkmV av0jTeSbeEVbGfQaLq639TXPFA== X-Google-Smtp-Source: ACHHUZ7MqVtgOQb7P5ctA+ifWc9qBzWFe18a8FP1dLDAbK8Jws0XBRT1oGq5jHOfhrx+tCkcCQQSEQ== X-Received: by 2002:a7b:cb85:0:b0:3f1:7136:dd45 with SMTP id m5-20020a7bcb85000000b003f17136dd45mr14793376wmi.30.1683119444023; Wed, 03 May 2023 06:10:44 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id c10-20020adffb0a000000b00306344eaebfsm5413479wrr.28.2023.05.03.06.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 06:10:43 -0700 (PDT) From: Neil Armstrong Date: Wed, 03 May 2023 15:10:38 +0200 Subject: [PATCH 6/6] qcom: pmic_glink: enable altmode for SM8450 MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v1-6-d1ee9397f2a6@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1399; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=qkASJFOC8Sum3nf8ciK4XNKG+cxf4hgwBJ+cUAn3rO4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkUl1NKRunTI8gTuu1bmZf0rFwrWODpoC9Ruv+xEWx dqZglNOJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZFJdTQAKCRB33NvayMhJ0f1yEA DAHeZRXxPUb4hZtFMNqS8d/kOp/k4sNXsY/IAWHPTsRBj14r04Gq7SWME1lm2Q82PRKdnyGOZSHkYw CPhKE82yL7J6D5xPEy1mxlFFMCd8e2J2XOBXIYO7hl7IXx3qLlkQSLaDfY1YlYSUoVFzVSWX8PY1O4 hLu7+a4PkFE/b6jGzu5RMuze6qGz5RguPb1XCQvb3Q8MiixJeAy+Es5vp7+RFsIbVj1ukmjx7BszKr mlsC6LKI5+Uz0KXr2QLmdp78YyJF6UsXqSVbIz6w4mqRNaEsokKPtufIx2zcvl6JBd/xZLQvnIT4fk G7dTJ7OyBQ/80sABtv3HxWjzxFFidNwBbbPPSUoydVNOSlAR+1fygt0HVSOIgqAdWlQbWPhuY5u1NU Fs7cbB1vlhrFg5uRckf8PsN0qZWnSnvW+UKfQtGpY0R6H+dOXbfAGkDKWvdt1A12+Tti2v/vQyZM7h lGc0TYKlVgHoYj2cq3n2Ya+8n12OINqsdAN5/kmtUTcGDSGUawiOkY8EwZn6Sl+nu7Wn3r7zeyoob9 aUy7jcI/oqRzJTcvmvD0d7t969uAf800JjPx79ZHbQ0POfZYUlftJ4c8fH+YyOtFQ3t4dUlKk3FsiR SRTWTpmFONG0+TEaC+nJm1QNvBdXhHLV0O2f8/DgVJKfoJivz7hoDRwN/gAQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Create a separate bitmask for sm8550 and enable altmode aux driver for sm8450 platform to enable pmic-glink altmode events. Signed-off-by: Neil Armstrong --- drivers/soc/qcom/pmic_glink.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c index 8bf95df0a56a..c87056769ebd 100644 --- a/drivers/soc/qcom/pmic_glink.c +++ b/drivers/soc/qcom/pmic_glink.c @@ -338,13 +338,17 @@ static int pmic_glink_remove(struct platform_device *pdev) return 0; } -/* Do not handle altmode for now on those platforms */ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) | + BIT(PMIC_GLINK_CLIENT_ALTMODE) | + BIT(PMIC_GLINK_CLIENT_UCSI); + +/* Do not handle altmode for now on those platforms */ +static const unsigned long pmic_glink_sm8550_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) | BIT(PMIC_GLINK_CLIENT_UCSI); static const struct of_device_id pmic_glink_of_match[] = { { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, - { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, + { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8550_client_mask }, { .compatible = "qcom,pmic-glink" }, {} };