From patchwork Fri Apr 5 08:27:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 786197 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp54556wrw; Fri, 5 Apr 2024 01:27:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUnn19GKaCd8j01deAYynyH2Al0aVkx5VitQY2nPaUwvIUDLmbXsew0FcEh0RPonzYfD53n0TcjxM/S45qvClIh X-Google-Smtp-Source: AGHT+IFFW6CkRmCXjsDWXnqoCDfkU17PqoxLIwqZIOFzoGCTKb8sQK2jKUWOZeN9vdtpE9jgRHZr X-Received: by 2002:a17:907:72c3:b0:a51:902f:8cb2 with SMTP id du3-20020a17090772c300b00a51902f8cb2mr597202ejc.0.1712305654568; Fri, 05 Apr 2024 01:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712305654; cv=none; d=google.com; s=arc-20160816; b=Asd3Oe/h4DBxAjlvEP3iGw8p8AURlLvgolMLLQJOKR1jA+eY5gz0GG5XKfGba4i6o5 9z2DgTrtG7ylVDQ4zj7bAshH1mPqHY5yLQqJidjVsZKG0GaaHUNFDoOPnnRqxJ+Dq2RD uiUYWvpy0Bmam/WDVNVyW3UhBp26GLyPFNwzkaynoZi7QdWgCRVgjoB3TY15KCx0H0Qa fQBQiOXxI7+telORPub5YewmV5RsSV+xmi4O6GPlmjYq6dyq2sTAGlJon78RSENcy7OJ iHUAqtvsgMIPT4MyKPHPlbf6ePiCXjkIgKx6h9GzoqYNXsbgWdHJX5HnDYO4kTk5BUiA KHIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=xJcp9hmvAoMlvXzYzEK7jxartaDKyXNrkigcbLCsLQk=; fh=y0POlIXJecwqoNcbCPvw+3TUnABdVL07VhiAHap2cn4=; b=a4KCT8mb/PVrUsCMqjGbx+4YTUmQJ+hdCba/zaImwxdoTiiYsJcHO+yLtx6Qejs1IH bbbkKhWbWFH33ZnBI709OuJ5P3ffhdMwloKOycNyojv9dr1xkhxDzZNoV98dZzznaTn/ Dop+e0Yg9G8TOfVyB8TBg5VU5gpaPipCsT5n0zthkS0wfVgFSWO3Gc7mAzsy0hlNdfIh z6Ot4k42oVyWQVtv/eBWrbcYb3I2cNgtkbCWhqH0MVcg+VPXNL4nau+Ib4FZ2jJAIhUc Q+eaOWOCYfvBGoA4MFiyeXGHOGVc7fc9eZOp9XHBsjFcKiwmu0Ud2rpaTlp8iM9iX5Te Tcbg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kuHrC/nI"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id x25-20020a170906135900b00a5198910903si485109ejb.70.2024.04.05.01.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kuHrC/nI"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B34E4884B4; Fri, 5 Apr 2024 10:27:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="kuHrC/nI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F84D884B8; Fri, 5 Apr 2024 10:27:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 431A388433 for ; Fri, 5 Apr 2024 10:27:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2d848973b57so23496471fa.3 for ; Fri, 05 Apr 2024 01:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712305648; x=1712910448; darn=lists.denx.de; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=xJcp9hmvAoMlvXzYzEK7jxartaDKyXNrkigcbLCsLQk=; b=kuHrC/nIVGNLdm0zg95Uc2y2whHVVTQU/XstFVPtNCYPUljj8jegIyKsIr0S78BX58 fWnkBPx+encxKTZste4nuQFd88SoMomoprVRp01R2eSjh5pO3tjJ3uste1qewV4t7//P XD/1YXwSgMQxZ7gb3r2PiJxBwW5J+MXHsOLOSRKZVQTtKCDs1bczi+2yPCtjLsLlhJ8J Z99BVjXUp7GXd7zRt6pv8oiS/74A/c8NZtKOBd5/ZAE5/uWmyZfUzjSk+45uxlvLHwDY dLsOIkPg8VdUPIcg7jqL4MIYWvOmfqAWla9x2Ee6jRMg0Xb1FnXL7B0I49VtXxPDVo2o fFnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712305648; x=1712910448; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xJcp9hmvAoMlvXzYzEK7jxartaDKyXNrkigcbLCsLQk=; b=nr6AojhiQUHb/BXAgY8MoQGwnNXMacMbAK7eqjVsXN3q/14AsQHDKHmWX37z8ZPG3N HtY5E8djE8JMx1YjUBFj0tgQwZXkbZudBXYjHMYnnI+VCXkRfUUqHjHPgjnXRJI8BdDI V+KOxrRC0+LplDzpkDJSJXqnmoGRxYPCU2jmoDhHC+3oRqA/T4Bnyxi3X1DupWupy4FI nkeLEzwwiEsRdgcUvZny7UWywFFxWP0zT5avTpEjeOzvoVLnnvJ3RsqqxdmoJBGww98+ ScwhvHFE3zyb0YshYTwn7ho7ydChNfK4JkOhDWp+1hN/i5W/U7QPT1w0Uoi3mfiSLKjy P0Pg== X-Gm-Message-State: AOJu0YwdcTa1UZCI2M+oOMC65nWv0aNx14zDzOPB4G2QE36NH5mpa02D d5WCUKgLQBnQSOWtnOy2e0X5CdJSqfV1QAMbsEP6YY4C8wfyy6yKFwO44Emjuk4= X-Received: by 2002:a2e:8e86:0:b0:2d8:6104:f95a with SMTP id z6-20020a2e8e86000000b002d86104f95amr623966ljk.23.1712305648264; Fri, 05 Apr 2024 01:27:28 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id s11-20020a05600c45cb00b004162d06768bsm2721593wmo.21.2024.04.05.01.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:27:27 -0700 (PDT) From: Neil Armstrong Subject: [PATCH 0/3] qcom: support SPMI buttons on SM8550 and SM8650 Date: Fri, 05 Apr 2024 10:27:23 +0200 Message-Id: <20240405-topic-sm8x50-spmi-clients-v1-0-c28603ebcf18@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOu1D2YC/x2MQQqAIBAAvyJ7bsGiKPtKdBDbaqFU3Agh+nsSc 5rDzANCiUlgVA8kulk4+CJ1pcDt1m+EvBSHRjetLuAVIjuUc8idRoknozuY/CW4GKuHzloyvYH Sx0Qr5/89ze/7AamMm0prAAAA To: Caleb Connolly , Sumit Garg , Tom Rini Cc: u-boot@lists.denx.de, Neil Armstrong X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=837; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=4/yqgowGk+H3j3q2Lr5g45Y3uH0ONXBPW08sdsJxohc=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmD7Xt7rpQLUakxCnE2hvoHnET4bvGbIv3EEXu8WDT Trkv6/uJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZg+17QAKCRB33NvayMhJ0fWQD/ wJ0Dab+YHytD303r0EwBpCeXJOwOreZvbenDx9CWnKTLMALd6lPgh6UYXvYDQgJeODhgWMt1EKaw87 9hnwdkXFd3ImhjQOOrIckeuOfW+V8Z7Sd50PrI7CW75pYliO8n687duwbFM10vkaGlXU8p3P4Rcg9d JgDaZTiU9vYEvJ3vIEK5Pn1ySEXWyJ0it2oHWRb3y8ZPweo4TqPbdQUeTs74kvcx9WfTXeRgPF0I2S P5Og/jSpafIoOvN+bUU+wpNl10eG1tWEGnkPyZO+zSYY0J+DdV/GTCxVwI62NPBMGBqg6UUJ063D8v /3teDAT8sjhh8DG5tJACJ8hqANhN+0mOSCDyCl3DFxzgWyWfJ68EKtJKcb7H4gwa6iqUNwAuqBfTwl GrLnXy4GVx8gmwdxZkUm7pVjDjHSofD94/LQ4M/fXCuD1Y1sG1fkHsy0hX88v8asoAkYKgAszZsCai zVng9OFApNJR2FySnUrM5vQi0EiRll6BUywquixUecZa68sd21qJ0uox0A12KXap/dzlSHPLD4XlLi c8JfsMotnwqU6rwJeLH7HLdQgsFxauO8jCLSS48xn9ozD8V2Xl6VvaOIZlpw+Vcxmg3Qs/XXyKZVU2 jqeCpPdhcNPaYY9YjUfKMTxy/GZ8x4bGp9cScglfv/0XYx7WmN7UzL9YTLrA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE 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 First add PMIC gpio variant on pm8550-gpio, then rework the qcom-pmic button driver to support data structs for each PMIC variant and finally add the data for the pmk8350 button configs. Signed-off-by: Neil Armstrong --- Neil Armstrong (3): gpio: qcom_pmic_gpio: add support for pm8550-gpio button: qcom-pmic: move node name checks to btn_data struct button: qcom-pmic: add support for pmk8350 button configs drivers/button/button-qcom-pmic.c | 98 ++++++++++++++++++++++++++++----------- drivers/gpio/qcom_pmic_gpio.c | 18 ++++++- 2 files changed, 86 insertions(+), 30 deletions(-) --- base-commit: f0e6aba1218bca578605697eed8aa94582bf57bb change-id: 20240404-topic-sm8x50-spmi-clients-d9a085aae979 Best regards,