Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6859649rwp; Tue, 18 Jul 2023 06:56:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFV3dPZ/qpwy2+jeih3+UcbOXzoI/QESuzCcZGdmTdEKTnNtUFbDuxOf5UQBHrkIMi3IZUz X-Received: by 2002:a17:906:3f09:b0:992:33ba:2eb4 with SMTP id c9-20020a1709063f0900b0099233ba2eb4mr10999829ejj.71.1689688578145; Tue, 18 Jul 2023 06:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689688578; cv=none; d=google.com; s=arc-20160816; b=RhFKLGQwFq/WLmcFAgbP6/kjPB/auCmSarIPmrLbZjERa+npKpsTz4Uix2dvQfYjn7 HUUkZQBvOEWzeL77ZXVm665Y3Zy5R25KDy0Q80ZNExvkr8dXAvoD8vg8bDvRFYCWEJNm baiTzM8tNwILYyOOnuXW40V7KmmXP9XuKnefdgXUbQX+YdfTvbewUZl+Dz9MId7m4Ht9 xdoTE4y6TeA47RF+lP64KvzCb9KDmzX1BVz6CxNVKqfyTJ2KshPYzWJ+GPP1SyWQVqws F9DA3ar+ipkESXDvj7+e1FGDQP0qEaiRsj5Er5OxUN1QgRu1/4oA3ajpyCrJ0BmtEYcU VCiA== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=cWOtIA2FOFVa8PRRZ9oT4YgXxX5Q0c4ZWH1V2fHFko8=; fh=Fsj+iCyoLh2lLfAnqSO4zyQvmjKTvPhK6fwCBAlAOCU=; b=OT7rKnzjCF1DDarH2ueHp5Kc9D2kkMJORoTALFPAXMp333PH8C6bXBGZh9oaqw+8YN mDyScX80oCH84EI61AgBkx8+li21eXytXWDH5XZPTP3V7CGBqRGAnOlT0dLC3SYHU9KS Lk7rUYHD4Q09YYDmCs7qyC6E+nY/CpmGphmNnbfis1re5Y+qiV71Z72oIgiHF9vINUT5 alzbn6/yYeSnFZOYeFu4Mlf7xIq1aOER1hio/gYO+N3ZKYIvjPX2ITOc1GBy9Grr6DoC b8HFqbADCG5fc0w81HHSmflh8vpyAtG9m3SeLvTDhHUbq4G/5eTQombzrgcXrpwSq1DX ccSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tuCv5nNp; 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 lj9-20020a170906f9c900b00992c5cf17f9si1220107ejb.43.2023.07.18.06.55.54; Tue, 18 Jul 2023 06:56:18 -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=tuCv5nNp; 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 S232261AbjGRNUe (ORCPT + 99 others); Tue, 18 Jul 2023 09:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231512AbjGRNUb (ORCPT ); Tue, 18 Jul 2023 09:20:31 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2423011C for ; Tue, 18 Jul 2023 06:20:28 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51ff0e3d8c1so7705584a12.0 for ; Tue, 18 Jul 2023 06:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689686426; x=1692278426; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cWOtIA2FOFVa8PRRZ9oT4YgXxX5Q0c4ZWH1V2fHFko8=; b=tuCv5nNpIgNZNOk9InN3JuvIrDKEMvTFVXBhXyPskz8m/khI6AYxDlmAvvbwlMYeRO ZQq0+SnvDnXAIxwUeskNXgZB2AEMQf/Ge2t10snnrlfjD530P+xx3ZRqNeS9XzMEeedz T+AEKGFrwYJQQT4pgUzKmKXVw/pPXKurgcdhDpZ4ZJw/o1BRb5diEiGFgeBmTPia0D8c UMEHbm19zUUF5FNb192xqmCkGSGjTeAm8oQ353MQoVXSzx8kOO2EbwO5GBAtBlfGEZoS kSQ+X9qxyWYGn0itaFOuy2fsSXqlbDPoa6Bj/X/V7VpdHlobyxnZaaHxF8F/eHqMMbIo eFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689686426; x=1692278426; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cWOtIA2FOFVa8PRRZ9oT4YgXxX5Q0c4ZWH1V2fHFko8=; b=ed8NAArz8TfRn3lkeHB8bf6xNxBCdgipZwAKW/sszlCl3CgCHvTcyQ2owoirCenNno Ht7QV+nBiWeEG1K7dzXZdkJFYHTEdKwfTTU2h2KxGTaFa5WFQXCKj/u6Lt7YQqwL+emE S/zgkKC1+C2jWLirmc1q9UxTeok3Ux6lIWrxprP5/XIhXyOCWW2AEXzEIze+QiyTn/h7 +st4UQNpahkHKlqca6V5yj6vXlLjBQAuIEpWFmqITt8YTheHYE/TjLqGR2NOiZI0FSjP eXxaHMYyddNA5c/uOSXE+JtFaEm4yHMrXQ2Rwe/WNSzliCegaaqZrf0L6sLf7wBVqMr3 QKyw== X-Gm-Message-State: ABy/qLafPpvOiK28/DC8cYa1UEML2WNZnYTA6S4xX8uTMjEslYbJWl6W uLKAgviBrFlNalo/U+S3Lk2pkg== X-Received: by 2002:aa7:da51:0:b0:51e:22dd:5e90 with SMTP id w17-20020aa7da51000000b0051e22dd5e90mr11657748eds.4.1689686426505; Tue, 18 Jul 2023 06:20:26 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id c18-20020aa7c752000000b00514a5f7a145sm1232174eds.37.2023.07.18.06.20.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 06:20:25 -0700 (PDT) Message-ID: <22e7dc73-2411-5cb1-6cef-daa5f2af8297@linaro.org> Date: Tue, 18 Jul 2023 15:20:24 +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 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> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: 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=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 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. Best regards, Krzysztof