Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2399926pxb; Tue, 12 Oct 2021 05:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwI68cxnnpADpH1bFSto4PqjsgGPpVNKT0sh91LGCwaHSh32Zh8i1obyy7QvUM7RtCQd3Z X-Received: by 2002:a05:6402:1057:: with SMTP id e23mr51901197edu.352.1634043420180; Tue, 12 Oct 2021 05:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634043420; cv=none; d=google.com; s=arc-20160816; b=dJP4fqxoos5ZvmQ8sqOnqwpYuA+PzrW/CGkXFzS2QuJOQe6yMrG8JjocNzR5a+oP9D MrioKfapedub6ztnmMQ2yUf39Per+DXEkJGDsj2p4nHHbj1cZL42vJskA/dRx6VAYBZ8 mLR0uNf5ClxwYZtFdC4D1K/PfAt3B/uA6EUJ0L+0AGydvsVJptDLWYx05o5YeMgvMnzS n9ccP/XuCtgJ/oDawCo7dXSgMX/7uMKF9MLB/DUrFmVpPLDqAghh5KOBVf/SdTkW7ICF s6Pq16ku7cTBGR02IaZ+rjONWdHKx5kxMRqbZAe3WjX/Mn+b3HOfdGlV2o/OdmtmYLDP uPig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GH/rUNldGDrQWZbHGHNnv3z7yGjMSKDvdbkj2ZpIpc4=; b=ltkLVdfSkCx3oSYOTBgMc1UtxQs/rVqQuha2FM6bk/YS6ZK9gFI65Bdq7ZgoK/Ksu4 8ngCczas/Mu+M9TLoPbYS2GQeVF7fP+OZoTYr1Ism6rluXF+2ZvpNSqgFuWUzMfcap9S nN9OHXdSeASqPv5qQeGRCkGEjhbBAEudfKszfEezsWm3gXOLnXrRSZVDSYy/Vn0CvEPv 3/vStY9RdazWPnDf3H+tQDI6BRyz82Xv/E2O58WKUbLZ5qs5v72JqaKgKdoxL7dLt2hy Hs7l8IcCHq6fDIUvi8z3yAV19MQkMboL3E4p5MyQSrf8dD6GUr0Ekv6bHXhw1qs5QFKM DwWA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v20si23690434edc.234.2021.10.12.05.56.35; Tue, 12 Oct 2021 05:57:00 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236655AbhJLMyW (ORCPT + 99 others); Tue, 12 Oct 2021 08:54:22 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]:43935 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236652AbhJLMyV (ORCPT ); Tue, 12 Oct 2021 08:54:21 -0400 Received: by mail-oi1-f178.google.com with SMTP id o4so28904852oia.10; Tue, 12 Oct 2021 05:52:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GH/rUNldGDrQWZbHGHNnv3z7yGjMSKDvdbkj2ZpIpc4=; b=hWQcpbafOqEfhkzZUi+fyaX7CYCmIdeQdqEUayhs6BC7hdkzeTsR/hhzqkio0rpEoU tgdUQSjKI4hwtOMG77C6HoEU4sQBSgMoeKEHe4OrrQO6g5Ms/SDQMrZnPGd1cBKTU8vJ e4dglGMrolzLoTxC/enzyqJ0BS6QxwU86H+sKOaeQfmnng6t+nK3E1SMj7YQHi4Uhhck hj2yQHVHiPAKDkLHB3tSFqbdv1Wv/VgZgmHsYqJ2HCp/T6L3ESNQ2YxeT50j0G1DFduk VLoGXYc/9fkWYakp39Oa+VS7VTlZGH0yHWnvjgt7/1k8m948RPl66A/5Z6oAK82Q2i7h kV2w== X-Gm-Message-State: AOAM531ujTCIGfAbG/2K0TEj0CjdydsOcvr516pP5q+3Ud5swqHq7Y/M NPMOmJ8XKE54/8hwkXWaEQ== X-Received: by 2002:aca:6747:: with SMTP id b7mr3524949oiy.46.1634043139688; Tue, 12 Oct 2021 05:52:19 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id l45sm2090151ooi.30.2021.10.12.05.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 05:52:18 -0700 (PDT) Received: (nullmailer pid 2551195 invoked by uid 1000); Tue, 12 Oct 2021 12:52:17 -0000 Date: Tue, 12 Oct 2021 07:52:17 -0500 From: Rob Herring To: Alexander Stein Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pratyush Yadav , Michael Walle , Tudor Ambarus , Alexander Stein , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: mtd: spi-nor: Add output-driver-strength property Message-ID: References: <20211004111529.211089-1-Alexander.Stein@tq-systems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211004111529.211089-1-Alexander.Stein@tq-systems.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 04, 2021 at 01:15:28PM +0200, Alexander Stein wrote: > From: Alexander Stein > > This property is for optimizing output voltage impedance and is > specific to each board. > > Signed-off-by: Alexander Stein > --- > I checked Micron and Macronix datasheets. Both have similar but not > identical supported values. Also the register locations are different. > For those reasons I decided to specify the Ohms value directly and let > the device specfic driver figure out if it is supported where to write > it to. > BTW: Are the Ohm values and the corresponding register bits standardized > somewhere? > > Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > index ed590d7c6e37..7d7f20a741b5 100644 > --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > @@ -72,6 +72,12 @@ properties: > be used on such systems, to denote the absence of a reliable reset > mechanism. > > + output-driver-strength: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Output driver strength in Ohms which optimizes the impedance at Vcc/2 > + output voltage. Use a standard unit suffix. Though, specifying 'drive strength' in ohms rather than amps is a bit strange.