Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp99851rdb; Thu, 25 Jan 2024 09:16:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeexXwXQONcfiitq63xXBF/EkcbjV19TkdQ/ClBfgwsbjiaGR7S/toNur+2Og6KHfgiLy4 X-Received: by 2002:a17:907:d501:b0:a2d:dfd:7ece with SMTP id wb1-20020a170907d50100b00a2d0dfd7ecemr748704ejc.114.1706203009482; Thu, 25 Jan 2024 09:16:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706203009; cv=pass; d=google.com; s=arc-20160816; b=LpSMOuISiJ9UnThtrAhccKmLsBtu1b/X9H2ZUXixe4nUUg8Dc5pOLkGlGYFNI6u2uQ AklMIQsypGawV5HwQe/elixvxqklbJPiMB8hFPP9r+GrhjsXPZbdaRoSi/QbENnb4Of6 EQWKrSBBdQuzyIGxRQAf7zNkcd/N3hheDNMIyqura1jMOc0Tv6Aq86GuIi3wJhPOJXxb +O701SDRc5MP8Vsk+PqaPhtCUAc5Y/6yTbHWMvSN3wiF5gI0WLCgaR8ULJQTB6CPRJDX 7yHFzxx7Czi6kd/ksJUwudpGQ23IHku3DK/yczi49QDV63+yQqphM43SgGzjtAA7FbtC mLYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=YQeG6rMF6lF1SnTupUwKxOtZkxnjPT+bkC4EvX2mnW4=; fh=7mtAG7VYBrWPKQzW64Io6r+dAGKccIbgp0HEnMxVuEs=; b=NWp3Rx9xCdNpp7qh24C5PZtnsQ0/XQQKuMthyv9Zdt5DsnYD3s1z/Z17P1LElOUEeE I+vaavr5KRZCaFviQ2g4k6p6ZB3uzwnSUJ+0ceGxPKmygHQj2QTsodw7pt7GhH7KZiWS vx/378vcTE5M3cY7bSAZgtClpggWT2kmI5I41C22M4fLiLyPSSk6qvwSiYBeEq0KG3Sj uH5XBceN0LyBzi1MPLKOBD8L/mBbMkjwGP3X/Dh76Px2XStzUqeR0H7b4LRA9ANjaMC1 KKYjUe/3qmdSid37sxKluTFFbtZGXw5NX4kA3YN3K2CqdQLHa72NfhuVJr90gBL2WX2L Mezg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-39015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39015-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v4-20020a1709063bc400b00a23499b189fsi1082951ejf.913.2024.01.25.09.16.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 09:16:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-39015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39015-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 411E51F2A346 for ; Thu, 25 Jan 2024 17:16:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EF07130E41; Thu, 25 Jan 2024 17:12:04 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 535D8481CB for ; Thu, 25 Jan 2024 17:12:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706202723; cv=none; b=Si/kUHzopARnPWvOKm1MSFI4uZcaK1FsCKuFkvqA+37h5l+7PomANHc74mWh0T+iBz89aEKhT8hw+1kS3d+3svfGaeFQ3XGIGetljgfUbrlHoSRtfSzRmSJHoBTbEpXAlYuMeRuDhy/m8fYLytE1MGVSEpZGxw/D6LrzyQAZINk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706202723; c=relaxed/simple; bh=NkWD/j8A67rN4utXThlvq4tYQthwoTcWcmrHRVS7C+4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LHUfB+B/cjFeetPRaavLjs26gGGVUU8JCRMb9gH7vr9W/Syc5qu3PBTLmU0EnueesRPgWJtPiW6JlLLxTcCqO37HgnEPUweYciIMF2zzp5V8OssJqxTP18S+HIDoHvNOIKDUfhGuNNpQzX/Gbjgtd3fBxEUWOML4k+/nJD0+o3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rT3GV-00061z-8M; Thu, 25 Jan 2024 18:11:47 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rT3GU-002KpY-CE; Thu, 25 Jan 2024 18:11:46 +0100 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1rT3GU-001mwF-9K; Thu, 25 Jan 2024 18:11:46 +0100 Date: Thu, 25 Jan 2024 18:11:46 +0100 From: Oleksij Rempel To: Krzysztof Kozlowski Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , kernel@pengutronix.de, linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?B?U8O4cmVu?= Andersen Subject: Re: [PATCH v2 4/8] dt-bindings: power: reset: add bindings for NVMEM hardware storing PSCR Data Message-ID: <20240125171146.GC381737@pengutronix.de> References: <20240124122204.730370-1-o.rempel@pengutronix.de> <20240124122204.730370-5-o.rempel@pengutronix.de> <4e14b7c7-7f0a-437b-aa84-20fdc30a2361@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4e14b7c7-7f0a-437b-aa84-20fdc30a2361@linaro.org> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Thu, Jan 25, 2024 at 11:57:18AM +0100, Krzysztof Kozlowski wrote: > On 24/01/2024 13:22, Oleksij Rempel wrote: > > Add device tree bindings that describe hardware implementations of > > Non-Volatile Memory (NVMEM) used for storing Power State Change Reasons > > (PSCR). > > + that stores Power State Change Reasons (PSCR). > > + > > +allOf: > > + - $ref: pscrr.yaml# > > + > > +properties: > > + compatible: > > + const: pscrr-nvmem > > + > > So that's a driver :/. Maybe Rob will like it, but it's a no from me. > Please come up with something really suiting DEVICES, not DRIVERS. If I understand your distinction between 'DEVICES' and 'DRIVERS' correctly, 'DEVICES' in the device tree context are meant to represent physical hardware components, while 'DRIVERS' refer to software abstractions of these components. However, there are numerous device tree instances, like software-based implementations for SPI, I2C, or GPIO, which could also be interpreted as 'DRIVERS' in the context of your email. Similarly, the binding for PSCRR represents functionality not fully implemented in hardware but supported by the hardware component of NVMEM, akin to how ramoops or other functionalities are represented. If I'm misunderstanding your distinction between 'DEVICES' and 'DRIVERS', please clarify with an example of how a proper binding should be implemented for a case like this. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |