From patchwork Thu Nov 24 13:56:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 25559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3412064wrr; Thu, 24 Nov 2022 06:00:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MSUKz1a2fagTLKO6e0etRll8QVV4PmIplLxpGKaeCf6mhqqDcE8Fpkm1HsdDddtRqQ2xS X-Received: by 2002:a17:907:c208:b0:7ad:79c0:547a with SMTP id ti8-20020a170907c20800b007ad79c0547amr17712635ejc.41.1669298421971; Thu, 24 Nov 2022 06:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669298421; cv=none; d=google.com; s=arc-20160816; b=M9TbGYXQjMCBX886D0ZTErEHkJk2SFec6rk3gZEsnCjlNDYUyoVKyErmeNml0xKurB Ym1hIIXxaMkKUYtxUHKYPGv7mVENQ2qqnsx+ZnuvNKODId41i9CsPxA39FeeUWzq0bDd JhRV9c1kldtIFlGiZiERJRTSWLwCXNzk0Vou/l/7TGNDhXSsfC64EJVpiTJ54BcnOqol PLiL8n/APFrUTYZK4OQvMMFjneFiZ0VmxFr8FeHmoAxjApSMxZ2fdgKFuJusOyxyHiAv enw4SLa8yxR2sSk3RbLONIx6tDY7er4UrHkmhoShlvce2hb1ccwjGHGL1UbyLi2XCVBm 31fg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RwYQ735SUBtDuMQ7DwTR5cdR1UgTXPek1jxsDhE3/Fw=; b=XwDUSgK1PKzR6x+oU0bcLLvzAlVz+RjVdXMXlmFwx50uLrsc/0tyCzbEWh0Ta2IpMV +agJwgTEhNGMUhx9Oc2TXPnFv5BqalBknNfvMjYus+i6tTPtR5eJd7wI2ye+XHrPo51W UGVhLQnsW3K5AMGks/SgOy02y3OZP8qUbnIxTOidqHpb6v5a2bSV0Qq4NjonAq2Hvibt 4fkTw5eSco18EEbXFSNX+G62kJth/PWMsdp+oHDU5iDNtlRPYGX/F0RWnRQZe97f4p3f 53pwxhewF5Pso2hpmbXNltTwYN1h8Jiy0m+Ib0sGUMYf+4922gyESs9n0KanR6GguEFy mXlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jR3BhqlY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho13-20020a1709070e8d00b007bad1338dd3si987145ejc.851.2022.11.24.05.59.47; Thu, 24 Nov 2022 06:00:21 -0800 (PST) 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=@linaro.org header.s=google header.b=jR3BhqlY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbiKXN7A (ORCPT + 99 others); Thu, 24 Nov 2022 08:59:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230365AbiKXN6Q (ORCPT ); Thu, 24 Nov 2022 08:58:16 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F8012F40E for ; Thu, 24 Nov 2022 05:57:13 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id m7-20020a05600c090700b003cf8a105d9eso1289725wmp.5 for ; Thu, 24 Nov 2022 05:57:12 -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=RwYQ735SUBtDuMQ7DwTR5cdR1UgTXPek1jxsDhE3/Fw=; b=jR3BhqlYD0vL/n+SqZakUIShxC95IzJcCkMiaTyTZwaxYHvzgu9CEgT6aEJuMUx1DR 3kmKm/kI4kRnWAxGo+KXq3Hd6h4PLcUBXt4wA/qPS0Kisx+W+fpuaoUfiJ3XRM2pvV/I sgRiMiUMA0GMGt7VflNx+Zecrb0HEpRdrppnLUhxh5A9L64XhHweNZmoxlPZl0v1Q016 Yqrh/GOLWKqe7pJwyFb9UlDjryMkp905zTzbP3a5Q2ddbhhwaZSRrKv4UJ7Ftb5YopDg S5gstPrP/dmBIIzEO2Cc3Qibeg/eF1FZ0kdUESmydXxA/hLyQpwyUGCG5nnsxagvrsVr SJPQ== 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=RwYQ735SUBtDuMQ7DwTR5cdR1UgTXPek1jxsDhE3/Fw=; b=6BqA1SKRqxoPSl4sgP6Awwe+OfikMUw0g1OY6yZ0byfETFB868fSRwRjD4JAzFkJB3 M9viXNntfcUc1+ERdwRdps23UIIMfJUPVRQFUAauJCFzF+QxA+tXmdtAXquL3EJ45yAx IFC9N6bkBQ23gGcfaSN3dSDmcqbMxtsZY5Fkq9K1ABNwQDCbEJrQXR7N587G5ke+Ra4K /GMgtx3b200tv8KAXhzqzmSpVvstbJSsJMywyt6pgttZv3B0UNRroTSXfpR9r6+LIJ0Z L/LjWPjVfWd88T7Od8W4e2WOyW3a92h7G2OBnlqhZUXnL8C/1T2fkjH3syuzHdPMW0uI TsJA== X-Gm-Message-State: ANoB5pkTtdjmblvHo7pqnvqguE3fDEJ0fUexiyz4YsT9buqG2c/WiVv1 +dald8yuF1eAxNNlFUz66OjNEw== X-Received: by 2002:a05:600c:1c9d:b0:3cf:69ec:9628 with SMTP id k29-20020a05600c1c9d00b003cf69ec9628mr23909529wms.79.1669298221631; Thu, 24 Nov 2022 05:57:01 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id v14-20020adfebce000000b00241d21d4652sm1414322wrn.21.2022.11.24.05.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 05:57:01 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Neil Armstrong Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 08/10] arm64: dts: qcom: Add PMK8550 pmic dtsi Date: Thu, 24 Nov 2022 15:56:44 +0200 Message-Id: <20221124135646.1952727-9-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124135646.1952727-1-abel.vesa@linaro.org> References: <20221124135646.1952727-1-abel.vesa@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750386261990305044?= X-GMAIL-MSGID: =?utf-8?q?1750386261990305044?= From: Neil Armstrong Add nodes for PMK8550 in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- Changes since v1: * added the PBS reg and reg-name * added Konrad's R-b tag 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>; + }; + }; +};