Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp397297pxa; Wed, 26 Aug 2020 13:42:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoNM08IfiOxVsowu+Waa+J3Lr+QI5mTzPERRE0B3LSpfYyU17xH8x68yED7an7n/VRojsg X-Received: by 2002:a17:906:1f43:: with SMTP id d3mr11717677ejk.295.1598474553403; Wed, 26 Aug 2020 13:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598474553; cv=none; d=google.com; s=arc-20160816; b=Kmn81Ay3m8T5DXAH6b4pMVnh5BQRVkxC0dqwFSvsOU06D++UYo+7Wz/YNG2zUSecI3 OZJM2MIkzoR9PFwCuXIU+NS6aprOBgE1n0IO8pFRnMOmq7vzEvtrDuaWlO0Z00yj66xI MskMoLpuBUBJwNNcaw9uBqdgkieZCesjpa+M2qNZ8wdW0yHNGTJDEod/kDVxpsGnr83i Zv9mCrREIrfiTcapXTTPL42rcfDCHhl4/QtgUzvXOT4H1YZFaYLvdIVFySAW2kQmBnWc S8ccszqL5kH6Yh+oALPXK6TO2smlpiTVBi4yELnUytaZVqSMzksUUvhdW4b9IwEI2Wy0 6z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OEHNQBqIQ3j/x1FwJ86oOM9T7cjlrKj+42ssBtV3FXk=; b=coAI3l6ppHtBE5bVJ/+VZqtGr9u36IWUeb1BWgRZA86L1icL3tNmR39HyeUCe/lk6u XSfcSGv36rebpgSS1jIlfmbtrvDg1wzn2Q1j19eB/QEsf/RuNKYCOr5wfOHCloyXeDqm HAxmStpJapbtLoCnr+Z0ljfsSNel4IYWGo4PgPNmavxnVlhMqHDCFGrHskDpWFAkTFT6 /ol+Tblp5cgFNy+Rfbb1GHkC7YyL0AvVV4JmxfyPQxzqbIkWhQEB8IAzDQvKp6RoAlGc 5XilS+wDzQFsDxRghu2LSNcm5RU8znWook93j6KLfXnjKXbc2fGbyBWveP2NF24A8jZs YZWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TECBFGlJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si76824edv.460.2020.08.26.13.42.09; Wed, 26 Aug 2020 13:42:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TECBFGlJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbgHZUlQ (ORCPT + 99 others); Wed, 26 Aug 2020 16:41:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgHZUlP (ORCPT ); Wed, 26 Aug 2020 16:41:15 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0D1C061574; Wed, 26 Aug 2020 13:41:14 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id oz20so4706461ejb.5; Wed, 26 Aug 2020 13:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OEHNQBqIQ3j/x1FwJ86oOM9T7cjlrKj+42ssBtV3FXk=; b=TECBFGlJdGKHvGXEafJ76TE80s9bCzMPLCkkaVJSbAgl7oEv0TMR3/KYBsV3U3gOGD pvOmYSJ0UqLVpejELnLu2igAhl/2HA8QhEcykNDUGysro/vEJKREraYNvMFdpndC28kT h8CH2i1zkiNPVTOQuMIG/HsA2M9FwCp1I9TQh+JwKCMsWOYhvP+uW1y+qP5WogxAqLN8 nuijRkpK3TuUsaat5uu1xRkI1cDeBRy1FWoO5SnZ/XCCHVRq+ETvYKrKjruOtt45j8u5 svUlHP+lUUywlvNkuJ3NuYZ6zbmdL6Ov4s7L00SsmdcLYi5Jmg8Ei2HkJ7DZ6x3V74WP d+SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OEHNQBqIQ3j/x1FwJ86oOM9T7cjlrKj+42ssBtV3FXk=; b=W0kzmGqEj597i8+kkTq/vAbkRsNhz0AOl/onrVOIxpq5ESRaUUOIZJHh5RF/PWVc96 dcKM6oYgZ0Hdy6H9LMnMw5epcFav7cByyylmQDHG+eArne9VH3W90uXG1ahgkkERRBKM EXnx8QAzSqd3601tqGcSWq6HFPIA2tBibLPdQ5oDL2KqjDWhCYJ7g7gEP9RK7l46VMaB RtKCCFT8XSsZdBXEtAiffTdQTabgEeViTb6A9eQY6XwevsFhFHZixxI0dgDrP21ky9MF Wv5ErlIQD7vv9vAdfkX3POyjlZrgYu0NOdKloVtVgVGUaxD41pCbN1Z8ARRx3u5UmgzP YA9A== X-Gm-Message-State: AOAM531ljccmBvxiqiOEaBhh3CSQPsBMiBbRATdtudJAE7C2zinyrJGV 1HLYar0d6KsHiA+VIhAhGes= X-Received: by 2002:a17:906:4f11:: with SMTP id t17mr14820025eju.371.1598474471373; Wed, 26 Aug 2020 13:41:11 -0700 (PDT) Received: from skbuf ([86.126.22.216]) by smtp.gmail.com with ESMTPSA id i25sm2860688edt.1.2020.08.26.13.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 13:41:10 -0700 (PDT) Date: Wed, 26 Aug 2020 23:41:08 +0300 From: Vladimir Oltean To: Andy Shevchenko Cc: kuldip dwivedi , Mark Brown , linux-spi , Linux Kernel Mailing List , Qiang Zhao , Pankaj Bansal , Varun Sethi , tanveer , "Rafael J. Wysocki" , ACPI Devel Maling List Subject: Re: [PATCH] spi: spi-fsl-dspi: Add ACPI support Message-ID: <20200826204108.reuy7ieqabutwuwo@skbuf> References: <20200821131029.11440-1-kuldip.dwivedi@puresoftware.com> <20200822183342.6sdhp6yq6i7yvdia@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 10:34:04PM +0300, Andy Shevchenko wrote: > On Sat, Aug 22, 2020 at 9:37 PM Vladimir Oltean wrote: > > On Fri, Aug 21, 2020 at 06:40:29PM +0530, kuldip dwivedi wrote: > > > Just noticed this now. > > So for device tree, spi-fsl-dspi supports the following compatibles: > > > > fsl,vf610-dspi > > fsl,ls1021a-v1.0-dspi > > fsl,ls1012a-dspi > > fsl,ls1028a-dspi > > fsl,ls1043a-dspi > > fsl,ls1046a-dspi > > fsl,ls2080a-dspi > > fsl,ls2085a-dspi > > fsl,lx2160a-dspi > > > > Depending on the compatible string, the driver knows whether to use DMA > > or XSPI mode, and what the FIFO size is. > > > > Now, of course not all of the above SoCs are going to support ACPI, but > > it is reasonable to expect that more than one will. And in that case, > > the driver should still be able to know on what SoC it's running, > > because for example LS1043A doesn't support DMA, and LS2085A doesn't > > support XSPI. > > > > How is this dealt with in ACPI? > > Theoretically you may declare your HID in the same / similar way as > PRP0001 and use same compatible strings and all other DT properties > (when they make sense and not duplicate ACPI functionality). > But better if ACPI people can tell you (I Cc'ed Rafael and ACPI > mailing list) if it is gonna work. > Something doesn't look right about PRP0001, what's the catch?