Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2419748rda; Wed, 25 Oct 2023 02:04:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHC9aAHx6KbyuoQeecxwDBE06T/D0itOIBr2zrhN5NSeQd+v6UtFkB0Dw8Sn0y4NBfBlopT X-Received: by 2002:a05:6830:1d43:b0:6b9:1917:b2f3 with SMTP id p3-20020a0568301d4300b006b91917b2f3mr14702461oth.33.1698224670252; Wed, 25 Oct 2023 02:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698224670; cv=none; d=google.com; s=arc-20160816; b=RqzUsV+RZFqSkEO2xM9nGGbZ3opkS/KnR1KK/Mvzqg11FAyMAP6KLNU1RDBWWtaQfM KdGfhm8CIW8zPcGxlI9eV2SPuyRvetKpLmTzuxggio6FPKcJMhG8yeOVpDHnQQReP9CD P25IvdBMIMnDyJade9+srd8WSCZLcYqhYXz7gu0wA32X2PMD6mruES9N37pRxnYqcwmU bV2moYcI/Ab+4I12C5LrGnEI3UbUHKS2yNwSSzQPpo4lBZGtPitBtVtj8Djq2rh2HBHh hsAJ6gvCDjR2zm0mGEniB/tGEumLnrKQuGpf2Won9pyerNX4rDurE2guFXkn7vnMHOl9 oQ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bwqtBumwvsSky/L+7g/MDCUKQ2coD9udsLw+AiD5Cb0=; fh=uPUez/eP80LG2HsI5uMLA237Inzf8bd9bZ6/GIvRQmA=; b=Ak7413UwnUoO4u8ioe7HL9vaLfovenQzpPxSEzeawCdh9OvlCR6I6j9YiCGWFHpPAA W0Tldps3XSfjiMcNFeFtzVutpv7ZcW8KU3HBdNYw3sdddumaq4lgs8l4K886J7nAHEOb WgmL38w+z5IKM8oJ0FRmfG0KsaJ/uIRn7fosEMxYfS7L4jqQYNy4J4L+VtYFNDP0Scx5 BRqiWF2CqI/TQJ0o271EJxSTPe49+T5odXNa4CwYKRwmnoLP6dce6QQT4qBVxkr+Hqax Z4vJo3ZuTXCKMSm5yVhgNO5nOvsKdYccI7aGBybnzy1CI3htwebi45yhrC3gAqnc6noF B+1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHbwfGLr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t127-20020a815f85000000b005a8a753979esi11300657ywb.245.2023.10.25.02.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHbwfGLr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4254780FC162; Wed, 25 Oct 2023 02:04:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234543AbjJYJEN (ORCPT + 99 others); Wed, 25 Oct 2023 05:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234618AbjJYJEA (ORCPT ); Wed, 25 Oct 2023 05:04:00 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4939E189 for ; Wed, 25 Oct 2023 02:03:58 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6ce31c4a653so3372365a34.3 for ; Wed, 25 Oct 2023 02:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698224637; x=1698829437; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bwqtBumwvsSky/L+7g/MDCUKQ2coD9udsLw+AiD5Cb0=; b=XHbwfGLrVxK6+Ef396LR+e6Bug/QJSsc9Y/K0BZ5k26c5Cs8OGtJq68Tji+IoBm4Dr 4lgc8E7Y4i0oN1rDkke9+WILPRApkbhSzEn/3tvHlzqchK4RP5x65ZOpAkKMZtipLXwc GcnolUSbUvhvAf5NfBQdPbN18FlSpCDROQ2xFbeINFQq/dhG6bD5gVpgAN4J9rOXIkE0 SHsDxh7pZCVs+ApUoWUvTUjtdbJvENcqWAr2W31Ux9Un7mjtXk5iVgXAW17hGjqcbvqN d9t3LQ6F/aqVn/PMDhzXA26Gn1CRCIcbQPrlyjhItHv8VBTM+wVY36dv5xxsWrqld8Mq L+Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698224637; x=1698829437; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bwqtBumwvsSky/L+7g/MDCUKQ2coD9udsLw+AiD5Cb0=; b=i/3cEtEwWFV7qWduMiDixJdqu7EEgPsnxaBtxg8yyfYwbsxZyi/y3KsFa5the5H6gY CkfnJiLOjJMZSllo9eziltuJ5B3eD1Bk/Tshk1aI1pD40jOfPi1C4iOd0dmWD/GzHj6M 5XhC7kUq9WqeorKX77HgXVUACRooww3muD4vUQPOPofM3VxwPUdIglrobHfRimwYjUaz QDlCAajzn9QRLCQ9o57hp7s5hAgb5VCWJpnG9O+KnsnrFpmGKBZYH7GDvQGSKiKsQHgk rlHNfa8Z51m9GvufYpxRsjl1XP/v8J40Cs6KIz+NfLm/TJkiBrC6HrrFhDaF/CNlI96l 638A== X-Gm-Message-State: AOJu0YziYD+/IVogePiakpthFTA8dYKgpVdXVjfmizfJtIMLBZkROVj8 UEBnH+Ne9BtYZ2+Gh/NW8phSPyT5DUuT6lrdGw9QRdLJXcN2XGNj X-Received: by 2002:a05:6830:3499:b0:6ce:28e6:cf41 with SMTP id c25-20020a056830349900b006ce28e6cf41mr19967197otu.3.1698224637525; Wed, 25 Oct 2023 02:03:57 -0700 (PDT) MIME-Version: 1.0 References: <20231025-topic-sm8650-upstream-dt-v1-0-a821712af62f@linaro.org> <20231025-topic-sm8650-upstream-dt-v1-3-a821712af62f@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-dt-v1-3-a821712af62f@linaro.org> From: Dmitry Baryshkov Date: Wed, 25 Oct 2023 12:03:46 +0300 Message-ID: Subject: Re: [PATCH RFC 3/8] arm64: dts: qcom: pm8550ve: make PMK8550VE SID configurable To: Neil Armstrong Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:04:27 -0700 (PDT) On Wed, 25 Oct 2023 at 11:00, Neil Armstrong wrote: > > The pm8550ve can be found with a different SID on SM8650 platforms, > make it configurable. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/qcom/pm8550ve.dtsi | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi > index c47646a467be..fbd8a386cef2 100644 > --- a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi > +++ b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi > @@ -6,6 +6,11 @@ > #include > #include > > +/* (Sadly) this PMIC can be configured to be at different SIDs */ > +#ifndef PMK8550VE_SID > + #define PMK8550VE_SID 5 > +#endif Please drop the #ifndef wrapping and move the define to all files including this dtsi. > + > / { > thermal-zones { > pm8550ve-thermal { > @@ -33,16 +38,16 @@ trip1 { > > > &spmi_bus { > - pm8550ve: pmic@5 { > + pm8550ve: pmic@PMK8550VE_SID { > compatible = "qcom,pm8550", "qcom,spmi-pmic"; > - reg = <0x5 SPMI_USID>; > + reg = ; > #address-cells = <1>; > #size-cells = <0>; > > pm8550ve_temp_alarm: temp-alarm@a00 { > compatible = "qcom,spmi-temp-alarm"; > reg = <0xa00>; > - interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > + interrupts = ; > #thermal-sensor-cells = <0>; > }; > > > -- > 2.34.1 > -- With best wishes Dmitry