Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6803884rwl; Thu, 29 Dec 2022 21:23:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXsiNDvO/+un/Kg6Io+qlFKIzSDhayQp6CCXUhNh+Zy6qGtN+qtvS5PCBAEgftIv7zLad/pp X-Received: by 2002:a05:6a20:d817:b0:ad:58d4:2a7a with SMTP id iv23-20020a056a20d81700b000ad58d42a7amr38995078pzb.22.1672377782760; Thu, 29 Dec 2022 21:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672377782; cv=none; d=google.com; s=arc-20160816; b=SUYtnnpgfRyexAJPw52YVDN4u9bScli9rqLKjCl2NnDjhHOUZsBJr5ryyRW3snjSxJ PggaKGClz+LeOrYHFAEa2UY4nQuDqDBYWzbCtSfhmSPgbZHQ6vDt8Uwxe8ooqJOtoaNe Wr/KWQBytvPGmdVjonIPme3kFHYeIl3zimBtzrp4DVfELyZ/2qZdKqLLyqFQBJuRsKKC ew+96AjUg1MzaaKG7QLDWgfwn+U1hfDWLiTg1TBAPHHtKzX/vhiGXv516uiqX3uqzuJI dO7JCDwN7CJt4gi7Wl3qfHzAVzpci6PyHKCrQ/9q+QDqubze6bof/UoAPSJPKYXaOWWh +nEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ebPCoQFLOSTZP8q0qnJ03dv4Q52UMk+W95FvRcoDLDw=; b=WWsn3qx45qWX/z217LQrqlXtYVY5bWW9F/fLtuND3SFBTQplccQaK8ZnS1YowLTsfA OP7nmCEY1jr40E7kl3xy0ebJApiF//f5F58f34lJylsI5FNwFJSuDsx3jxZw8pQqDGxr QqjDvfBUzMhyNHkMlIFnBX7O/v/k6VrvKu2zxvzts7WT8MNOOqCs7EZxpZ6jOEG/Xw3q +MYqy0HWEhBC5XdME2xWdFcJciS802xeHODAEb/QWvZgkteXPfw+kT8px5gMotL8mliS nY2aAVpfsMNZ6Eaf84J3FhQdik0ATyqeaXtYWvecBbcJXnKfucCfgYovvYhVIDHZ+oi1 IovA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R6ZDEJIh; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a631826000000b004767ae4f4aasi20549234pgl.486.2022.12.29.21.22.51; Thu, 29 Dec 2022 21:23:02 -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=@kernel.org header.s=k20201202 header.b=R6ZDEJIh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230391AbiL3FQ7 (ORCPT + 64 others); Fri, 30 Dec 2022 00:16:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiL3FQ4 (ORCPT ); Fri, 30 Dec 2022 00:16:56 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360B9640D; Thu, 29 Dec 2022 21:16:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C100FB819EB; Fri, 30 Dec 2022 05:16:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA194C433EF; Fri, 30 Dec 2022 05:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672377412; bh=j2+6UeRT2aBSsAEe8hXoqg43P5bsOp3tTR0mxHo9hWY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R6ZDEJIhlXrRnthkudDQRtSh3t1UAYZtQQfj+1U+NzPFVFY2c9aLwIzCy4l3/XlEh qN6U6EwmjCZ7qP8KUDbazGzsbwBzjkwU/pbDioOVaVS+pDGt14H5fysTuIwmSdwFBK BE2U4GAwvfME3Qo30LzU42evl2Q/o3NWxUsMfDEEj4dZs+JU/WeFCgVzEuDwVWXBf3 FPxl9Z24UyCjq5KhZv9/44lw39nd/3nTd0KBCKt6UW6t6RQS7Utc3AAql4iQpEpxKh ydkqqVm8KI63GBbGzuQoMkIRPQBNg3MCeZhuca+zDcKx6afcWHZdK2W6Ul+XdR7X0v 3GGGq+97F+3NA== Date: Fri, 30 Dec 2022 10:46:47 +0530 From: Vinod Koul To: Bjorn Andersson Cc: Krzysztof Kozlowski , Konrad Dybcio , linux-arm-msm@vger.kernel.org, agross@kernel.org, marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/7] arm64: dts: qcom: sm8450: add spmi node Message-ID: References: <20221229103212.984324-1-konrad.dybcio@linaro.org> <7b32e414-96a9-7265-efee-f872badb32b2@linaro.org> <71d7a162-569d-1443-9e53-3ba374d06ccd@linaro.org> <20221229161249.34jgdev2446rdxkf@builder.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221229161249.34jgdev2446rdxkf@builder.lan> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 29-12-22, 10:12, Bjorn Andersson wrote: > On Thu, Dec 29, 2022 at 11:57:58AM +0100, Krzysztof Kozlowski wrote: > > On 29/12/2022 11:45, Konrad Dybcio wrote: > > > > > > > > > On 29.12.2022 11:42, Krzysztof Kozlowski wrote: > > >> On 29/12/2022 11:32, Konrad Dybcio wrote: > > >>> From: Vinod Koul > > >>> > > >>> Add the spmi bus as found in the SM8450 SoC > > >>> > > >>> Signed-off-by: Vinod Koul > > >>> Reviewed-by: Konrad Dybcio > > >>> [Konrad: 0x0 -> 0, move #cells down, make reg-names a vertical list] > > >>> Signed-off-by: Konrad Dybcio > > >>> --- > > >>> v1 -> v2: > > >>> No changes > > >>> > > >>> arch/arm64/boot/dts/qcom/sm8450.dtsi | 22 ++++++++++++++++++++++ > > >>> 1 file changed, 22 insertions(+) > > >>> > > >>> diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi > > >>> index 570475040d95..b9b59c5223eb 100644 > > >>> --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi > > >>> +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi > > >>> @@ -2715,6 +2715,28 @@ aoss_qmp: power-controller@c300000 { > > >>> #clock-cells = <0>; > > >>> }; > > >>> > > >>> + spmi_bus: spmi@c42d000 { > > >> > > >> Hmm looks different than reg. > > >> > > >>> + compatible = "qcom,spmi-pmic-arb"; > > >>> + reg = <0 0x0c400000 0 0x00003000>, > > >>> + <0 0x0c500000 0 0x00400000>, > > >>> + <0 0x0c440000 0 0x00080000>, > > >>> + <0 0x0c4c0000 0 0x00010000>, > > >>> + <0 0x0c42d000 0 0x00010000>; > > >> x > > > Hm, my guess would be that Vinod chose to put the "cnfg" reg > > > instead of "core" in the unit address, as 8450 has 2 SPMI bus > > > hosts and they both share the core reg, so it would have been > > > impossible to have two spmi@core nodes.. > > > > Eh? SM8450 has 2 SPMI hosts both using 0x0c400000? How does that work? > > Usually address can be mapped only once. > > > > The SPMI controller does something like multi-master. The driver expects > the same region to be mapped multiple times and qcom,channel is used to > select which one each instance should operate on. Right, this one adds same as downstream. I agree in future we should revisit this and decide how we should model this. For now I am more inclined to get this piece closed, it been more than a year :-( lets not make it two! -- ~Vinod