From patchwork Sat Nov 26 11:46:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 628822 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 1B7F1C43217 for ; Sat, 26 Nov 2022 11:48:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229751AbiKZLsG (ORCPT ); Sat, 26 Nov 2022 06:48:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbiKZLrT (ORCPT ); Sat, 26 Nov 2022 06:47:19 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84C0E222AB for ; Sat, 26 Nov 2022 03:46:56 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id z4so10163892wrr.3 for ; Sat, 26 Nov 2022 03:46:56 -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=OsavIE1bo+xr4BTsOMKWHI0myLUl6S60mtyJIfXk49zzZG6X4V4BRLwMW96Xhx/uIQ AYQuKzyUN33/7zLyDavm+/RhhOkseMS8WK8tjm1gMKZriYmQXm5v4xaSLxgE5wrm7jQH QaYzmd8WpxXqqP8tr27VITNl+IeJXADn51Ao4IM32TUNGwuBXjvNuiCG4ErWhxj9VB4r 7oqfEDIuh7RJ01tQ7BQSEKu1XCzrm9cD/xorpFTdQoyvVJ2xCjhYCLi16akRRtnI/cjc 28B9y1eGVCHRC5ciRIJctQ+TqcmJdsKBEQyWIbbtrEroD0a8RrJoH5fXgS/M/CcpTJTw KYYw== 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=61xsIhGt+NS6crENKrjHldi0/AbbWyWLB5AHMULKI3NGG1w/kOiunCVOtZ+H7JD356 j4bqGM2CH9YYCYRCENYKwBeGVUG6rGFb2e3KTypCajqmBnTErmGRrMdnZPo3X/Juzxu5 zD7ERopZ5IjZBsk0TcOFuYTTGE9lTwjcRAQ9tNi4Fe2hVc6O4H58JN5ndQZ2qrH0VIT7 ZLCWdv0YgmRkK8DoXq3ZopbHxekPnghiQB+hFeFL1usUHrCt/neEHJyc8LzeL4v2BVlU GDM6HKbkFWgk93hf08lg4GyofYpdAYdLe3oSGZq5DYiYD6T5tjGad6l7VhBIv9NJ0qDb Dk7A== X-Gm-Message-State: ANoB5pkG+pUuzvxYC1/lohlEg05e6dP7UrNfJFTqUPOvzst/e2KGMGQm wibWwjroPKiuZTdvjvCyNNCoPQ== X-Google-Smtp-Source: AA0mqf71ZbicIZ0fx9baauqKRUNGlRKCtiDz8xNzabAfQZbN4wosJTgOUlljCB61C6c/IfR0r5A9Bw== X-Received: by 2002:a5d:4dc7:0:b0:236:5726:f1b with SMTP id f7-20020a5d4dc7000000b0023657260f1bmr25794960wru.231.1669463215093; Sat, 26 Nov 2022 03:46:55 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id h5-20020adfa4c5000000b0023659925b2asm5942621wrb.51.2022.11.26.03.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Nov 2022 03:46:53 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Sai Prakash Ranjan , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH v3 08/10] arm64: dts: qcom: Add PMK8550 pmic dtsi Date: Sat, 26 Nov 2022 13:46:15 +0200 Message-Id: <20221126114617.497677-9-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221126114617.497677-1-abel.vesa@linaro.org> References: <20221126114617.497677-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>; + }; + }; +};