From patchwork Fri Jan 6 20:10:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 639799 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 35DDFC3DA7A for ; Fri, 6 Jan 2023 20:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236457AbjAFULz (ORCPT ); Fri, 6 Jan 2023 15:11:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236529AbjAFULP (ORCPT ); Fri, 6 Jan 2023 15:11:15 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C37F7FEE9 for ; Fri, 6 Jan 2023 12:11:06 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id m3so1848370wmq.0 for ; Fri, 06 Jan 2023 12:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oCy2ZKkP+o5zw4JnVQxbpcd6lL2PTAKfa9gdKzWsPa8=; b=HHMP2ksosCdx5cqyhLhZm8oFg6ajA438iWAHtoOM9Yk6IxwKu72iFgolF4TxRb7/5d n8Za+LvSUiP0TZ1IOUuv4TsKs1UwHf9nSQw2+LfypNGKZk0G6VKkdLz8f+EPpwnmZ31/ QR5afuZBQh6JaVolNj7YH4rcIJZb3/T0XUKJDeSQhumHgHb9KQ+nATjG3gyRQbPw4Phb W87HHWjaejooPs/M+UWpKq8XabiDKdNKsWpv69QE6wkjwf8SI+FUMlfCPGFug3vYFY/Y WKoHK7zeJmDQLM9c9sIsu5vzANSjW7yFDD7Dx7nJG89VUcppFzJRYtcf1VtZq4Blr140 Vg7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oCy2ZKkP+o5zw4JnVQxbpcd6lL2PTAKfa9gdKzWsPa8=; b=s4a1cAA1SjTOKMEckbTlJuaids2hWOZSCJ9ErdQoBgE7Vn+bAXen1J4qXFcaez0iZ4 QsAg8qQIYjDMgmc/6642WVyAit1TwFGxkt+PxQATl7oRa5hOi8mCVxZzc5qbmd+SpfQD 9ut1PGLIKUV7Fk6EJpu6OKtVF3Lo3MN4BavBse5t+p0LMokcGktbbjSbJNgCvyVlBzhz 75tYN/6XVuTP+doDvxX/2IHx8SIrP5W1tBQwVhAIRz0oCXpSN4U6I47z4jH6aOtT+oPy M+DiOJobDhnIjX4dCim32Dt1K8tJ+deT+V8awlwQNlz6zSbfegT/u0xzYs1NAHKZ9kWy sWqQ== X-Gm-Message-State: AFqh2koHo6NYn4SuZ2AJUnmdefqhsZ+FphXQbaIhgw/3SkwOSbpm/Tuv Tp6HEnVYvoUWh0DO98soH6BV1g== X-Google-Smtp-Source: AMrXdXuxPnDBcXa5O/8+oMBp61vkQ0CzeMKyh7t8C0Vd49Z4gNW5cWalTplEmwRsZUTby+50V4geDg== X-Received: by 2002:a05:600c:1819:b0:3cf:8d51:fae1 with SMTP id n25-20020a05600c181900b003cf8d51fae1mr40612212wmp.0.1673035864582; Fri, 06 Jan 2023 12:11:04 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id z14-20020a05600c220e00b003d99fad7511sm2665240wml.22.2023.01.06.12.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 12:11:04 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Dmitry Baryshkov Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v9 08/10] arm64: dts: qcom: Add PMK8550 pmic dtsi Date: Fri, 6 Jan 2023 22:10:45 +0200 Message-Id: <20230106201047.337409-9-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230106201047.337409-1-abel.vesa@linaro.org> References: <20230106201047.337409-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Neil Armstrong Add nodes for PMK8550 in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pmk8550.dtsi | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmk8550.dtsi diff --git a/arch/arm64/boot/dts/qcom/pmk8550.dtsi b/arch/arm64/boot/dts/qcom/pmk8550.dtsi new file mode 100644 index 000000000000..47213d05bf92 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmk8550.dtsi @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include +#include +#include + +&spmi_bus { + pmk8550: pmic@0 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmk8550_pon: pon@1300 { + compatible = "qcom,pm8998-pon"; + reg = <0x1300>, <0x800>; + reg-names = "hlos", "pbs"; + + pon_pwrkey: pwrkey { + compatible = "qcom,pmk8350-pwrkey"; + interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>; + linux,code = ; + status = "disabled"; + }; + + pon_resin: resin { + compatible = "qcom,pmk8350-resin"; + interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; + status = "disabled"; + }; + }; + + pmk8550_rtc: rtc@6100 { + compatible = "qcom,pmk8350-rtc"; + reg = <0x6100>, <0x6200>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; + status = "disabled"; + }; + + pmk8550_gpios: gpio@8800 { + compatible = "qcom,pmk8550-gpio", "qcom,spmi-gpio"; + reg = <0xb800>; + gpio-controller; + gpio-ranges = <&pmk8550_gpios 0 0 6>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};