Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6900609rwp; Tue, 18 Jul 2023 07:22:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZOG39ddIjr3cG6qPmDfOCRBhYQkd439UR9N1gn9nuG0+zvhdxioTEiThdTD+nyDtl3lHz X-Received: by 2002:a05:6358:2607:b0:133:9e8:ef9a with SMTP id l7-20020a056358260700b0013309e8ef9amr14745802rwc.28.1689690179562; Tue, 18 Jul 2023 07:22:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689690179; cv=pass; d=google.com; s=arc-20160816; b=GYVgrOYtazH35uCB2XcB95nIIcof/V+UFVQlyqJi0cIB+a//ZU7UUksEQzNfyKPhzA lnNLDzZM3g8ShQqwCbX+mzr0PCZd31Qms7mqty0e7Udrw8VSK1Mmhivm6+NzoVjqpNA5 x7e6Csw8HrGRXGp8lsRQDRIM7k3j6yPb+AzEl8PotldXL57EYHn0de2LF0sAF8nB9xEr jQhdJyt3TZYr97PVv8kjv/t2UYJZ85OI5Bf/OwrgVIYHNnvq6doS4VOixr3r/cXF7AHI NeKO4Y1oFF4GQG8F0RXRPvWRrALduajYPDPYFH0G6wd1LX7dgYuOxM7sRZ6rbfK8F+j8 Kydg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=9pbFsqtQOU2hb8q1rNZaDa5bJjxv8G0U44AX2nHJSp0=; fh=aviYD9xE1isYt1zt8bHXXccWLNaVqbQ9ABSGsinM2dg=; b=t2pCnPihV2gH+satyhkvoqAkNI1BSQj5KqAfHNMTWZaRN0A5BOOB4lswN0YGcwfp9i /gPp3NAZ8+ZF3gKJwGRh9YWl8bJOu30YApu/p15wHi0KtBRPp/3jlbpBSq5vY5vRxn+h DsD2jlblVWpEqTmStYZV0q6DM1n1ywiMlEM+AAx30yap5sKpxEKSJ78YW5PCwcM/Wze+ qA2KQ8jZP6lFhHi0yiEl43Vt0GC+C4ybMUqXGYR0c4YvTTuvYQlocoNgbKAcifTS4j5r FiwxxFlEwPm9FxHpUZBO6L8sU3X6WEv+n5AFA4T8hCRzEFYhRAnfqehpLTUZ3+WTV1A1 ZtTQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kKNaUzXv; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t189-20020a6381c6000000b0055c7826dd3csi1656069pgd.821.2023.07.18.07.22.46; Tue, 18 Jul 2023 07:22:59 -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=@amd.com header.s=selector1 header.b=kKNaUzXv; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233192AbjGROET (ORCPT + 99 others); Tue, 18 Jul 2023 10:04:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233619AbjGRODm (ORCPT ); Tue, 18 Jul 2023 10:03:42 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2073.outbound.protection.outlook.com [40.107.102.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AEA0F4; Tue, 18 Jul 2023 07:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KDSxqra+36wP5JsmbEhfJSsoZ6eIi8dAcPcmOMiE1ACRx6mR6dkmliZl7oGDRUo9qK5l2VuHqFpIpi7NuKvqk4VTzZo6eMBCQ8mcRBs4jzSOMOJ5I0Z7rxXrYxqb27pUJsV+0/8qpdpujZ7SH+1M0qVlt5L3TeAcSg+qx2rf272MQF533MvmcbEyXiWQeGDnU/ImK5GSxdoUtbKJ/5h7geF7154YoJz4Ndwcme2TBQKME7HMUYfWZxo4dskwlMFvqAylGdsHP4J+TqbWmujkwL01lKa0zhmDP9aSv2Ed9S008iNpyqJ6ZYBXxcwZCzYVD3Afj2b7gwQpBjxJaCDtsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9pbFsqtQOU2hb8q1rNZaDa5bJjxv8G0U44AX2nHJSp0=; b=CYTn25suD7UKhwEy2GX003kmSOryjHoq8wWSGwYpMPcUnKxn4hLsnkhpJ/gTbh32+16QQUduDcl+NASjC3Y6vvdK5LGqaTinpz2VbnSE+6sVYb3wyxkud5hNBIsZlcesR4jXFXv25DZDLJPfT++0UwY358/0vc8Aq9fjAlUwnEepdOjSDs5VPuWMGE40GCLlASaNsy5unToCmjtl4OqT/sRchYEWMH/JibSO7q9hEYSNJiAH+I1pDS5Geq8DL1/OZpFQ0yteYAMGPTkwaBm3ZKR/zOta1hjv7jInLTtVj52TRWGURauBJTY2052CRv/UzH03JJPhmlLkqeMn0QBXaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9pbFsqtQOU2hb8q1rNZaDa5bJjxv8G0U44AX2nHJSp0=; b=kKNaUzXvObTQrQ7HeFkbPT/ZmoTmrPO9bNsIgcpUhrKKCg2rNs62cxNfwbNDuKp8D6XLTxFSpDgnpCAS82kVykOvmnK/qtVA2332BGMqrQ/JpFEbpySkTv2Nmzi2ti5pb6jFvTDmXzWXudFkvuOeRFoZ1CLL3HMmiAxfYpM3bSA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BYAPR12MB4758.namprd12.prod.outlook.com (2603:10b6:a03:a5::28) by CY5PR12MB6057.namprd12.prod.outlook.com (2603:10b6:930:2e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.23; Tue, 18 Jul 2023 14:02:02 +0000 Received: from BYAPR12MB4758.namprd12.prod.outlook.com ([fe80::be39:45a4:cd9b:4684]) by BYAPR12MB4758.namprd12.prod.outlook.com ([fe80::be39:45a4:cd9b:4684%3]) with mapi id 15.20.6588.031; Tue, 18 Jul 2023 14:02:02 +0000 Message-ID: <5df3e976-9fc2-19af-e6b4-e2bea0d64623@amd.com> Date: Tue, 18 Jul 2023 16:01:56 +0200 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 To: Krzysztof Kozlowski , 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> From: Michal Simek In-Reply-To: <22e7dc73-2411-5cb1-6cef-daa5f2af8297@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0111.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9c::15) To BYAPR12MB4758.namprd12.prod.outlook.com (2603:10b6:a03:a5::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB4758:EE_|CY5PR12MB6057:EE_ X-MS-Office365-Filtering-Correlation-Id: 01b14780-f38c-4f05-3132-08db87978f85 X-LD-Processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4XrgtupLxR1ZFwG/KcLPT7l/Z0Fo68GnRVm4TGfeNrEVH8YcyrsZ8UjA07e2Io37Rmj8NdKapJHjj7VHjGjpDj1hKgwZ4ggfqsfgXbuYdiTbFOgIUCrOPYVDohXFJrCb4IJRk/M6ZL43MzGSPJBaPkLrhiOOeE9gGy4Z1kQP8xTwnkq8kWNBvwpTu+wcuCsiDyqJvU1VoYT7fszxRP5QOcsqRp6dVzpDSlNbzMskKAa8nw4+vrNo1P7gb22sRgRuMhb7U8tkbGnygQQB6tWZwI8poblIiHf+1vEuccZlq8ZcFgcVU4i4UwmV0Rpz+yussYZsPxdFZ854coxiFRhe8GuHjrCrqbDCygwVQTslZT7PArw02rfJ0RKmlVntPMF0eYf3Lyn0D2+ME66bJ8XZ2jsHSbikglj+DmCXj3WFz7+sgausSpJXb48V2hWY29stOONFVx1NIsZbFva6rq6aLq0wc5W/bm+eRSCC08yeBzPo5xvdN2ZwCpHgZbwuVX1gF7psjDJQC6n20gv5UZr12b60+uFGC2G1igLU1hKZcxDlgycCvd4hgIsOr4tk9CjVltTgBBruxc+HU6HgtyIYgivv7Da0rHiKJxYeOxbtkjn3CFmWvBWpFKKvfn7eh/0HCkMSwa3P830hmUkV0qdfsw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB4758.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(366004)(376002)(136003)(39860400002)(396003)(451199021)(15650500001)(110136005)(83380400001)(26005)(6512007)(6506007)(53546011)(6486002)(86362001)(31696002)(6666004)(36756003)(186003)(2616005)(478600001)(2906002)(6636002)(4326008)(66556008)(66476007)(316002)(5660300002)(66946007)(44832011)(8676002)(31686004)(8936002)(41300700001)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cVlkVkQrZG53b3laVDZDS2Y0ZVBPOVZwTHo1c096ajZRQU95U3pYTUtML0hw?= =?utf-8?B?NWJNT0hjcHNRenpudzAzK3pnK29hV1d3dGJ4OW0yVWRSQXlMWXdYRm5jUXdo?= =?utf-8?B?VWdaYURqN1NGSXFBMjlUYlc5R1AyV01kVitnQmt2aHRUQ0xEL2UrYzJ2R0ls?= =?utf-8?B?blJDcGx3ZlRpckwxWlFWeklXc2x6TmNLTUtmWU1aV1dvdmU4M1BYL2w2RnFa?= =?utf-8?B?Q1E2ZDdPMUlJRlk2TTJVUkhNRnNNV1NKYnU2dVZiM1hrdmhqS2JBNzU1ZURV?= =?utf-8?B?OUN2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JtTnZoWWdQRUltSEY2K0Fh?= =?utf-8?Q?K0xtJpvEg6HplXic+r1o37Wg7?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01b14780-f38c-4f05-3132-08db87978f85 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB4758.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2023 14:02:02.3747 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: d5QyRMIUG4qIj24xvU6juyDsGsf9CBipVvxgTd75M11XyRe/K2izhK8A3vafu0qH X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6057 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 7/18/23 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. Please correct me if I am wrong. Description about ID should be removed from commit message because it is not necessary. And include/dt-bindings/reset/xlnx-versal-net-resets.h should be added when we merge also DT for versal-net SOC. Thanks, Michal