Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2820326rwl; Mon, 27 Mar 2023 05:54:07 -0700 (PDT) X-Google-Smtp-Source: AKy350am7VQIdOoiTHhJicH+Qo3vroRg/JsitDrrEhUoQ9m3LdXARtzCc4TN/5xuSDjc7jj8r4x5 X-Received: by 2002:a17:906:1685:b0:930:660d:8f92 with SMTP id s5-20020a170906168500b00930660d8f92mr12568916ejd.52.1679921646837; Mon, 27 Mar 2023 05:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679921646; cv=none; d=google.com; s=arc-20160816; b=xwXmrT3hZmqfnM49RJm7XNwpcOd86Zt2XnTMAPYu6cwZUfsoZtfYwdFxf4TLK91lbj B2RkF30iB3ByQqMHoa9+N1ln8py26wjZHmd349wg2H3Hs3dqAMsrQ8wJJDPQZgF7Bs/G eLqFPcufRKauXHdIrNfeitE+WiIJ28lcs0Y++xaUcBk4Y4aNmo0YImmnZRBEHxwgUPHQ /INKF1BlEfUwIu390eJXVVkc0AF3zPV7NNOsqPQFfXiUAloCvdX7tQ4eIYOW6bzwmd7d KTh4TW+E6/yyMwgbKDMCl+GoBHavDL5uiKJKSLFqO4XrIYZklV7Tg3jISrIsjwJHumAe 8NNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=37FpTbJ+p7al0O18ZyBtxicxMZqjHJxOYjRMTMvw+q8=; b=ljfeO57sN4AMF/uPNJpWcU19UcvCwraJmXGApagG1ErAw8jsuekytEdBf/o9Q0sLz9 w3VfgS1U/lVEN//pV40J9+Cn+9o4QemKot8EFqQMggZsN281ZTr/ZacLZDuPte4qQgFF w81vyGHROWEamrR8MYqgQavYHmJ/2ahKeaY6d73gb1HzrwbCp6oZMtuUtHq152C6Elid alK2EOSnZjBxdj7U9D10NJ7TWbDCJtY5abEIv3sdJLUlidbaiqSjX2fxFTNcKnVG9EAb i7F65C76AhpccmOgmsFDC3eJS3GO2luZN6AiOTOVO4/FYCs26L52nzlenjgYlrfw2V6J CUcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=nhPSOmDf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a170906859200b00930af710ea9si27792287ejx.664.2023.03.27.05.53.42; Mon, 27 Mar 2023 05:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=nhPSOmDf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbjC0Mxf (ORCPT + 99 others); Mon, 27 Mar 2023 08:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbjC0MxX (ORCPT ); Mon, 27 Mar 2023 08:53:23 -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 5588010F7 for ; Mon, 27 Mar 2023 05:53:21 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id j18-20020a05600c1c1200b003ee5157346cso7309487wms.1 for ; Mon, 27 Mar 2023 05:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679921600; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=37FpTbJ+p7al0O18ZyBtxicxMZqjHJxOYjRMTMvw+q8=; b=nhPSOmDfzAecbkr3paJAPzUdgz1XNBvuOjoEV2DguxIZ0YSZ888H30COiZXAw8uVjq n+Lj6/NvFO3nDf7YKxDAkziXQ/dWOT+BWYAcUsxXaAva7PmFXns0sMaEoj+6GQsRahEd dXnVGdQCKLU9yvt59jjtZx1B2nK+V15OJl0Yu27bwl6i4Sk7IG2E8+1m32/qPo8zR6Wr axD36jG+N3jpr4wgVxRu7+yblTkNvz7WCnT37RLjI2QJv1uVE0619Vvqj/lbt3ZAOHHE O21tGggGIFLTtqwKlDm+rj5WOQPPmFnyye8Lbh8sFeULJDyLTr6qotH6blWZx9G5X/OK tfRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679921600; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=37FpTbJ+p7al0O18ZyBtxicxMZqjHJxOYjRMTMvw+q8=; b=e6+YQwpdTc4iifYX2ooGYBcagxYAgLkzP4vsQ1wlTpR7vD1vO7ve3U6ApQkhjcb+x1 E3kOJrBC4Du2f17A0M7MaHbYDd7M7NzxGltAQek2BLzOZ6CZlNJhg089PqiwUKMrIpQF dmx0cOl8JTztTjc0GQz8epeUHxCUXI3IB5o2ILNiKkve/ovLOsBvXwWi8wqmoCh+Y5vs LyGKRSVDQmmlmcLVHhPRI0h6+Qspk6UlzKGgS5+nm9AHGlouIUvjTgz+Ki1tDLWkr7nc ENUbXqbs01LB/SiM7FpmJ05/gnWJWT3zcX5k1NPAotYTMgB6q6g3JzhyFtzn9Q+t/pYK veoQ== X-Gm-Message-State: AO0yUKUNPyKZ5rJfLVU/6FB94otAcwYv+JXt56x5FF0Tchu7bNJUjY0R QUoFPMwG25dg438D9UeCs6OKAw== X-Received: by 2002:a05:600c:548d:b0:3ee:c06:e942 with SMTP id iv13-20020a05600c548d00b003ee0c06e942mr8843546wmb.25.1679921599861; Mon, 27 Mar 2023 05:53:19 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:313d:a304:2790:a949]) by smtp.gmail.com with ESMTPSA id q25-20020a1ce919000000b003ee58e8c971sm13572220wmc.14.2023.03.27.05.53.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 05:53:19 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 00/18] arm64: dts: qcom: sa8775p: add basic PMIC support Date: Mon, 27 Mar 2023 14:52:58 +0200 Message-Id: <20230327125316.210812-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This adds support for a number of PMIC functionalities on sa8775p. The PMIC used on the reference board is pm8654au which is another variant of the SPMI PMIC from Qualcomm with an automotive twist. v2 -> v3: - add GPIO line names for the PMIC GPIOs on sa8775p-ride - add missing GPIO chips to the PMIC .dtsi - add missing thermal zones and alerts - add regulators (driver support and regulator settings for sa8775p-ride) - add missing PDC mappings - squash patches 7 and 8 to avoid adding code without users - dropped Krzysztof's Ack from patch 3 as it now extends the max number of mappings so most likely needs a second look v1 -> v2: - improve DT coding style where needed - don't disable the power button in PMIC's .dtsi - add debounce time for pwrkey and resin inputs - use the official PMIC's name in DT labels - add reg-names property for the PON node - add patches that tidy up the dtsi before the PMIC stuff Bartosz Golaszewski (18): arm64: dts: qcom: sa8775p: pad reg properties to 8 digits arm64: dts: qcom: sa8775p: sort soc nodes by reg property dt-bindings: interrupt-controller: qcom-pdc: add compatible for sa8775p arm64: dts: qcom: sa8775p: add the pdc node arm64: dts: qcom: sa8775p: add the spmi node dt-bindings: mfd: qcom,spmi-pmic: add compatible for pmm8654au arm64: dts: qcom: sa8775p: add support for the on-board PMICs arm64: dts: qcom: sa8775p: add the Power On device node arm64: dts: qcom: sa8775p: pmic: add the power key arm64: dts: qcom: sa8775p: pmic: add support for the pmm8654 RESIN input arm64: dts: qcom: sa8775p: pmic: add thermal zones dt-bindings: pinctrl: qcom,pmic-gpio: add compatible for pmm8654au-gpio pinctrl: qcom: spmi-gpio: add support for pmm8654au-gpio arm64: dts: qcom: sa8775p: add PMIC GPIO controller nodes arm64: dts: qcom: sa8775p-ride: set gpio-line-names for PMIC GPIOs dt-bindings: regulator: qcom,rpmh: add compatible for pmm8654au RPMH regulator: qcom-rpmh: add support for pmm8654au regulators arm64: dts: qcom: sa8775p-ride: add PMIC regulators .../interrupt-controller/qcom,pdc.yaml | 3 +- .../bindings/mfd/qcom,spmi-pmic.yaml | 1 + .../bindings/pinctrl/qcom,pmic-gpio.yaml | 2 + .../regulator/qcom,rpmh-regulator.yaml | 14 + arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 211 ++++++++ arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 285 +++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 465 ++++++++++-------- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + drivers/regulator/qcom-rpmh-regulator.c | 55 +++ 9 files changed, 838 insertions(+), 199 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi -- 2.37.2