Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6846879rwp; Tue, 18 Jul 2023 06:45:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGVQCRYgBhLvIQMdzGYwxoGvicn2nG3TB+oaAgbL8TfNEradq4zp8sX6l0ogRckB89RnR4N X-Received: by 2002:a17:903:48c:b0:1b8:7483:d47a with SMTP id jj12-20020a170903048c00b001b87483d47amr12206379plb.37.1689687916588; Tue, 18 Jul 2023 06:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689687916; cv=none; d=google.com; s=arc-20160816; b=HN+4C9rR8y1F8spMOfAaAtRyfwVEQvdOZyNic427vJVdpRebHBFTB9h7o5kjQ61J9Y OwfUSS42ox+uVMgnAT6vZNKvy4qdyLc0Z3IMjlU1OSm6BvFhWQGjRndi6U0GtHalhL/z GLfOWEUrrfWxTSJXKZHJEkAhYyJPlih+ZEnNA7lCoRnUQObStSC26c+uievYWfVd23GE dS94yn9EzgztgqTJGxRelm5d6tTAAtBGtak05EYCfa8Hoqx9ldS7cPYfF77oe6ILj724 md/6NWsywfgicFdgmxSPSVqQ0L43K4CZXmgVBeKpU0NW+4McneZFByi6OBFRDS6dB1ZR fnPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=cwF5nt29KeS1cw4tYrs90/ypdLt4g+/snxj0mPn4a4E=; fh=FIUVmPj/SRHpIWwb0zVQuVZ0yJisMztgcTgytcFx9J8=; b=wO+Z7aLoitY0/uyZFrA6KD+GDnGDhfEK26i1tK4WiYdRjHiE2h2ozz1B3wDaiUgKRb tshRzlPD7RI9agUGpVIUTUGV/CDNUHP4E4mdijcwKF3z5R/It0aRkrgI5FjvtiiqM8c2 w7g0E5v2WsW0OCx4ZAdFY7PfVVoPNQpohIqS6Lyfte32PcsMEzRpVx8HHMdHl8k6rymD A/c9iUgInx6En21uLKCYpMHc3CSBCYSdTybNFr/3BwF90O8ZWklIiwNZasY2h5FpewjK JSYdu9VmgxUoa408Gl1kOgXjEADvEiEtTOuPKVrwkgcrnUitcAzy4Vg4sEgcQTImy9Bn D9HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BFRlenQh; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a632315000000b0055b0f40083csi1515823pgj.639.2023.07.18.06.45.04; Tue, 18 Jul 2023 06:45:16 -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=@linaro.org header.s=google header.b=BFRlenQh; 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 S232704AbjGRNWD (ORCPT + 99 others); Tue, 18 Jul 2023 09:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232702AbjGRNVj (ORCPT ); Tue, 18 Jul 2023 09:21:39 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDD7170A for ; Tue, 18 Jul 2023 06:21:37 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-992ca792065so788094866b.2 for ; Tue, 18 Jul 2023 06:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689686495; x=1692278495; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cwF5nt29KeS1cw4tYrs90/ypdLt4g+/snxj0mPn4a4E=; b=BFRlenQhfJIX52UbLFUtETcfgvF//qG+29HWTmgkAfexCR9ZKU8r5MPxALWsYdP+HW Uz4j5rANREmGEd18ysHiwW250+f5GDo/Gn2WLO51KmIJVGmGHKbxje3aXQzzKKdI292K OszLREp6bdktXiviFGA1/kn+9scDR4FjZNsVIy+cMxtvSnaoTl7ZAEbB+I4GmQApWqlA 3UjpkJsbQk6UXjvC2+urQSZQhYYsjATLVIc0Z6NJtJz0wY9hj+9WtSBNKq/gAjvwREJM ft83kyivf0qU2ZJ2q0WBTBmBhrmWg2Y+Cg7FYT9g8WTABgEKqEj4uNhoT58NptgnTkdl Z56A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689686495; x=1692278495; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cwF5nt29KeS1cw4tYrs90/ypdLt4g+/snxj0mPn4a4E=; b=NYujdal4jBj/wELrmOIVG5VFU+TV5dzplVgas+N2Cq3+UYpmDF09FXRmiB/ZugXmZZ hvKfmP+n610NgvDW8rwO9yPRrEjOwHhXl9Pik2GlCIhmOps9bTRReOQ10mpcPm9aFPbN J7VeUydxEcWSuzJXxFrEoo+cvSQf2zJkLqaWJqI73Zbl6JEHl4IXZOCaL+dnV+yfc8le wAdQtwsP9Uv+w3WXIOVVbXFr0QU55KCoHlPRnnTToACAtRhYZQgnLRP0DKSndzcXflPn OHjNQ6CsH0ew6RpjlblkUOqh7mSMvMm4Ce/gXtcoqOrTYSyymv+n2/taaUjY6C703NFn AhyQ== X-Gm-Message-State: ABy/qLb5/gvNBMcwjwpIb5RtR9ETIencv0vnHV+DL8s9EpuhA9UKbO48 6SQfXPdb5PEODLkgB6sUB88DYQ== X-Received: by 2002:a17:907:506:b0:98c:df38:517b with SMTP id wj6-20020a170907050600b0098cdf38517bmr11868053ejb.33.1689686495700; Tue, 18 Jul 2023 06:21:35 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id f27-20020a1709062c5b00b00992ca779f42sm1034020ejh.97.2023.07.18.06.21.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 06:21:35 -0700 (PDT) Message-ID: <5c45d89b-00c5-a330-2e1f-b99043736527@linaro.org> Date: Tue, 18 Jul 2023 15:21:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] dt-bindings: reset: Updated binding for Versal-NET reset driver Content-Language: en-US From: Krzysztof Kozlowski To: Michal Simek , Conor Dooley , Piyush Mehta Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com References: <20230717112348.1381367-1-piyush.mehta@amd.com> <20230717112348.1381367-2-piyush.mehta@amd.com> <20230717-explode-caucus-82c12e340e39@spud> <694a1314-0b25-ff5e-b19f-5a0efe07bf64@linaro.org> <22e7dc73-2411-5cb1-6cef-daa5f2af8297@linaro.org> In-Reply-To: <22e7dc73-2411-5cb1-6cef-daa5f2af8297@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 18/07/2023 15:20, Krzysztof Kozlowski wrote: > On 18/07/2023 15:11, Michal Simek wrote: >>>> >>>> That numbers in DT are virtual no matter if you use ID from 0 to max or random >>>> values it is up to code to handle them. Checking nr_pins against ID is done in >>>> core but it is up to drivers. >>> >>> No, you confuse "virtual" and "ID". IDs are not virtual. IDs are real >>> and have representation in Linux driver. You do not need to define >>> anything virtual in the bindings. >> >> Not sure how you define ID itself. But HW doesn't know ID. HW knows only >> register which you can use to perform the reset. It is not really 128bit >> register where every bit targets to different IP. >> >> And this is SW-firmware interface like SCMI reset driver. >> >> Firmware is saying that ID 0 is QSPI, ID 1 is MMC. >> Their Linux driver is asking for nr_reset via firmware call which can be >> different for different SOC and that's fine and I have no problem with it. >> But only SCMI server is dictating that ID 0 is QSPI and ID 1 is MMC. Different >> SCMI server implementation can map it differently. > > Sure, and all this points to: no need for bindings. > >> >> >>>> In our case that IDs are coming from firmware and driver itself is just matching >>>> them. >>> >>> So they are the same as if coming from hardware - no need for IDs. >> >> It is hard to say what hardware here exactly is. From my perspective and I am >> not advocating not using IDs from 0 to max, it is just a number. >> >> If my firmware knows that QSPI reset is 0xc10402dU then I will just pass it to >> reach my goal which is reset QSPI IP. >> >> If you think that we should use IDs from 0 to max NR I am happy to pass this >> message to PM team and we should extend any SW to do translation between. > > When we talk about IDs and bindings, we mean IDs meaningful to Linux. > Whatever is ignored by Linux and passed to anyone else - hardware or > firmware - is not a ID anymore from bindings point of view. It's just > some value. And just some proofs: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/dt-bindings/reset/xlnx-versal-resets.h?h=v6.5-rc2 $ git grep VERSAL_RST Results: No users. Best regards, Krzysztof