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: 13091788 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 8C9E2C54EBD for ; Fri, 6 Jan 2023 20:12:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbjAFUME (ORCPT ); Fri, 6 Jan 2023 15:12:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236611AbjAFULP (ORCPT ); Fri, 6 Jan 2023 15:11:15 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172BE7FEEA for ; Fri, 6 Jan 2023 12:11:06 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id ay2-20020a05600c1e0200b003d22e3e796dso1877675wmb.0 for ; Fri, 06 Jan 2023 12:11:06 -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=hefBWGHaIfH8zNj1hxkjWO8WWpWbHxU/oSkZtgF3l9wQ7dGqn8ygxOmsnKFyM4Bie9 8j7Yo3yRruTbAy+gX+0u2R2q12nMT/c/iMIoeUXKq3XmJyMh9R4TN5ANE98rE8br4Zyo kd1fjZCWhg8oRKTtKr2imPOPP6JQEUp0DgNZ1bRBZJCg0bcoqrTD3tzVviXYzP0boXkU afk3RJqQUxpXQBhjwsx/SHXNjElCkPRy4f6qf7e5uoYhWbEMmxjpzU1Ni2QXH2LDE+78 sm9YYkIMT3Mg+9TYNBawXITMY6pEDuFEnVJsVOQ4M7T/7pgJNiwfSTflRxJPbbU3HpiH E+Uw== X-Gm-Message-State: AFqh2kqxMdoQaqkEAKFU5yeKkk+KgRLMYYVp17GAoWVmLlsQrh9pZB4F VXLRwP32QpOoydd9EnmFw3S2TQ== 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: linux-arm-msm@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>; + }; + }; +};