Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp727387rwl; Fri, 7 Apr 2023 04:40:19 -0700 (PDT) X-Google-Smtp-Source: AKy350aeZDn8Pj9XLpDAxIp+RAiiyflITjDG3zScARJJQFVR9L3yhKEgCWqloQyCRROx+iyo9+pb X-Received: by 2002:a17:902:ce81:b0:19d:778:ff5 with SMTP id f1-20020a170902ce8100b0019d07780ff5mr2725617plg.15.1680867619490; Fri, 07 Apr 2023 04:40:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680867619; cv=pass; d=google.com; s=arc-20160816; b=UT3A1/BAtDo9+qmRWBJ1W4O4LDQjiwsoNUK9Ss8C6myciCDJ+9exAj2bEDEkzW80/J CZ7Q4Z91VQxJr49Ie1HKtOg0eUa37U0JlLW9X6iyz2WdJurE838me49AdTT7XRV5U1Oc DIw514JLNnsfKSq7+/8HTDzg901NfBshpiDIFgjMHqHx/MfbqM7Xes3/cEgb6tJjoT+l 9SeANazvR8Z5v98QmWtiDk+hPBQxFbE9HAX7R0snm0wig/Geb9pH5g95oyEAVhCa9US7 kwZE+4a4maUMoz6zOXHVB4WuiQOARKMw7wJ16BALsE38KS2dssXI/lN/oyt0S0/xhcMt onjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=WtcNgXXpAMGIIst+4wNEMLyfSz80SI4jFwbanGxvG/Q=; b=aBipcycCh8LMjw79NZpj74DXjkxn0/xboYS0NF/9axPe+cdvxDC6ZMJc92bdExHTX2 fkU+J3h7uNl2Mdcqy68sKsDmNCK02FjxZyVHyEympcFfyfHs4UvGSf0YzzSf4KsMck7/ JafZ7g+buqHYG3L8WakyzCDqlZ8ZpzbpkTW7PZesDzDX2IEAudAyUpe0yEK6NTEmThKz kV1dyy7g05+z8gGqER9n8nM9zvQ/1cw9A5BIrS+kgNfgrwU1ww82ZKCK+UuMCcxYQcvU xxSbpwAE7GUE+/j1LeOBdt3iLvc7IYAn2nEsHVvn3yzhMp3f8imH1ABISuEG7GyuhQFa 1QTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=iHGE9XIf; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=i0CxDF4R; arc=pass (i=1); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a632b0c000000b005134ad7aeccsi3495505pgr.812.2023.04.07.04.40.07; Fri, 07 Apr 2023 04:40:19 -0700 (PDT) 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=@gerhold.net header.s=strato-dkim-0002 header.b=iHGE9XIf; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=i0CxDF4R; arc=pass (i=1); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240351AbjDGLhO (ORCPT + 99 others); Fri, 7 Apr 2023 07:37:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbjDGLhM (ORCPT ); Fri, 7 Apr 2023 07:37:12 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D766561BA; Fri, 7 Apr 2023 04:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680867426; cv=none; d=strato.com; s=strato-dkim-0002; b=ogRunCNgf+X6hfZj9vHay1N/BYg+q+7s/1dfjsC+8RTk7X8gjgYIqtwNTTVisXz+Y6 FIxjGmM/ADJNViLFAPTcMkKzDlevFupgS6K1fKr2MzO4+wc+UR/964SO/vMZoa+92D8c MzVoyOf1e4HwcmMve9ZoOiEKkqQW/1jg/THlWwveRtFTPxiQiA1oV+y7boltyQnn73vW fGb9PuAv+QBfVk2PPShUpF5hm7oBbg9QvEhzfq+iqxwbQTB/ktOvmcc+QelcxFQ+H6pp GPx8SEIrJLcPh9SRHiNVDq7vXo5yplJUV9wFbT5qi38O3MfXT8E+uPJtYDGDeWUOzdEA F5EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1680867426; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=WtcNgXXpAMGIIst+4wNEMLyfSz80SI4jFwbanGxvG/Q=; b=OO5HfLoSxoJVpcRKU8doKTrqfjTNAiltE5BdxrNjMUM+2TWhfzwDNhPIaEFa6CsoJu 47D50paIQQDTHBtogO9B/rgUcBPgoUXPupoqW4dzzhT/MeTg7IcGcaIIFnoTvDgp4tf8 SLG5UPK7dNvSUcDe5jjFa4R8ZKe1NF7+UTnIAHRSZclJlo2sU0HofJbtOjI5YfvH03PP +DrNKTbiA6G3P6jAmRHemOqZ99fNCZ+2Dg2kPi/W5D42N3mtEDMpBd0xax1EE8l28z1f /3rzHk2TAhVYcUQHhFcrMXCtq++0f//vxeebOQ7vgXnQLAvK7BLGKQrX/MsX9VM+Zfua zgwQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1680867426; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=WtcNgXXpAMGIIst+4wNEMLyfSz80SI4jFwbanGxvG/Q=; b=iHGE9XIfJ2DdIkkqA1bmAhW+soPFstURSvpietIs6Nm9xO3k9ifiBmgvmCrC0fdhQZ jHwxfZg5YpusNqrzBqvdNkZyeDc4/u+uFyZ3mYUd/zZ6hUpb4janhbDNVvEWzftSP5hM 1t/dRWkrtSk5zemcqKPFTihveetuicv9lgXHUrG3zVaFo9weo4FQenGwulhi5ynEAStF BTrZw3mZiJRjWo9OMAeqxdukwnTPrCW2eSLhtXrB4hd4K000o1YUbMzs20R7XPyN8CPD coeIPD7ifP0aLyrz1z574uygI/31V+A8aohE2t2WGOjRPVQgKakw/2X5X2nbe1eHYjtS 4XUw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1680867426; s=strato-dkim-0003; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=WtcNgXXpAMGIIst+4wNEMLyfSz80SI4jFwbanGxvG/Q=; b=i0CxDF4R99oPsYjvqWrjelIewiROralEB2uJPLlQKvJpwu4EkBy/m2S3I2oW+vKy2O oEN8LEYVFrvF+TXlG7Dw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u261EJF5OxJD4paA8Z+J1A==" Received: from gerhold.net by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id j6420az37Bb5Ed8 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 7 Apr 2023 13:37:05 +0200 (CEST) Date: Fri, 7 Apr 2023 13:36:55 +0200 From: Stephan Gerhold To: Konrad Dybcio Cc: Krzysztof Kozlowski , Rob Herring , Thomas Gleixner , Andy Gross , linux-kernel@vger.kernel.org, Shawn Guo , Marijn Suijten , Krzysztof Kozlowski , Bjorn Andersson , Marc Zyngier , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle Message-ID: References: <20230328-topic-msgram_mpm-v2-0-e24a48e57f0d@linaro.org> <20230328-topic-msgram_mpm-v2-1-e24a48e57f0d@linaro.org> <168069726278.2356075.14351594478003012447.robh@kernel.org> <20230405134727.GA2461305-robh@kernel.org> <1e6e2590-ac78-400b-35ce-321d5e52f385@linaro.org> <9df12111-ec84-c4f7-fbcb-bccaef91b048@linaro.org> <3ce9b5ec-8b02-537a-c663-c849e80cab66@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ce9b5ec-8b02-537a-c663-c849e80cab66@linaro.org> Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE 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 On Thu, Apr 06, 2023 at 09:55:40PM +0200, Konrad Dybcio wrote: > [...] > I don't really know what kind.. I can add something like: > > rpm { > compatible = "qcom,rpm", "simple-mfd"; > > mpm: interrupt-controller { > ... > }; > IMO we should indeed add something like this, because the current representation of the RPM below the top level /smd node is misleading. "SMD" is not a device, bus, component or anything like that. It is just the communication protocol. There should not be a top-level DT node for this. Instead there should be a dedicated device tree node for the RPM like in your example above, which will allow adding properties and subnodes to it as needed. For unrelated reasons I actually have some patches for this, that switch the /smd top-level node to a "remoteproc-like" node dedicated to the RPM, similar to how WCNSS/ADSP/Modem/etc are represented. I need this to add additional (optional) properties like "resets" and "iommus" for the RPM, but it would allow adding arbitrary subnodes as well: https://github.com/msm8916-mainline/linux/commit/35231ac28703805daa8220f1233847c7df34589e I could finish those up and post them if that would help... Thanks, Stephan diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index dcbc5972248b22..1c24b01bd268c8 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -310,10 +310,10 @@ }; }; - smd { - compatible = "qcom,smd"; + rpm: remoteproc-rpm { + compatible = "qcom,msm8916-rpm-proc", "qcom,rpm-proc"; - rpm { + smd-edge { interrupts = ; qcom,ipc = <&apcs 8 0>; qcom,smd-edge = <15>;