Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1204224ybl; Wed, 8 Jan 2020 12:55:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz3WVyZhdsFygdxFLz7u1UfN0fO5F8XhmP9NxlT2adHrzXIEPsdhIWvW0o1cgBpFBpGAh7J X-Received: by 2002:aca:503:: with SMTP id 3mr458271oif.106.1578516909506; Wed, 08 Jan 2020 12:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578516909; cv=none; d=google.com; s=arc-20160816; b=wJEuSrf7vd5bp2I4v4EZqznOHExNnMCHP7zCuD+gS1TDKR7Ro2IRZso8EHQPRjERXg rJOEapg/bw/3JF6PkZieO12w8ag78geAkCIgb4ZvbLitB9O5X9U7BTJiUz5Tnp9hfvN7 S3+Vk+eDrH5ZOGbrauAH8NnAlxdQPC/VBfdsqJsvkrmLDLgfw1o9wvp+PsarM7Nz4CMA /gA5cgNyZsWrvYz57FDXzxj4cfXtbYBTI3JlFXxiShML79VCXUPuybIQJNQ0dB5o/Bgj 1dRQS83talore5k5T+4LtNMjVmKyQtgwmlO+CxHwdEhwOmXEKjOJh9bIQIBlXrJLGID2 QjVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fdVvruvENSVDnyxa3WruHxJs8BWU7Yt+OMrPNBUFY8A=; b=WbR2L9KyTe4M4UCdUl6EZuWa1F7v1TtEgKUzV4Yqfs78gtKE+Phkeee19j0oDSo063 8QN12jh40dZ4wG1kwGkQxhSHp5gNU+k+CVcAXAQv0em8pC2zonrow76Q9k2nH1M+2s0F NuPjDc8zTqpeg1qorlaCM795alX5RcMzL54Oo/fN0ViSSi02pkHi/vp7IEo6ffnahC8R /sulAINfI2Cnf7B5CjMt41Zb+Tk8tzKANT4j48Stg5FiO/4YQdl50UE7SLnUAsxbDzKi V750nht+T/Mhu89WmaWzoZIewU93MgR/cZ89VhNlYhuk/xJi6js+Tc8iW6D2BiBjDoD8 az6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si2663861oth.311.2020.01.08.12.54.57; Wed, 08 Jan 2020 12:55:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727525AbgAHUyG (ORCPT + 99 others); Wed, 8 Jan 2020 15:54:06 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:44080 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727506AbgAHUyE (ORCPT ); Wed, 8 Jan 2020 15:54:04 -0500 Received: by mail-ot1-f67.google.com with SMTP id h9so4927946otj.11 for ; Wed, 08 Jan 2020 12:54:04 -0800 (PST) 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:user-agent; bh=fdVvruvENSVDnyxa3WruHxJs8BWU7Yt+OMrPNBUFY8A=; b=DcFJhHG7lK9wb3mybNZeHv8n9s6q3GHVL8XA9EVpNaxm2KzAZN6JuxRp7UZKxC4nOO rLdQP9YguEB5tBnaE3W+SWzPaggIVjanxptxEN/ff56e+LE0r4XazbdS1Kob7RdoIM+Z nwQ1Wy7JKIobdTUdymeRQxKsJkMYfzcYvgTXK2ui69Jrxl8Ed9+w4DJ4NOTdiiFzLipA kWMsR5TMOwirG/2dsGzrzMAqDGJloUpWw5GV1DIoFD1/QvKw8PIVd+40SEhmLJ2xLeOj dJirqRZ6/ejdnQKmDHA09gYnErlis4p542SRMUcX4ZKe83E20Eh50SYvod2Tlz3Msiln 308A== X-Gm-Message-State: APjAAAUgERIGTcfbkLkf63zhH9pEP8dieVsqPvTLVblv9DRLV+9mf1Nx EuyGG0nx4D4JkHWf9yvtxfpvSLY= X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr5434107otr.82.1578516843570; Wed, 08 Jan 2020 12:54:03 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a65sm1516319otb.68.2020.01.08.12.54.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 12:54:02 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 2208fa by rob-hp-laptop (DragonFly Mail Agent v0.11); Wed, 08 Jan 2020 14:54:01 -0600 Date: Wed, 8 Jan 2020 14:54:01 -0600 From: Rob Herring To: Khouloud Touil Cc: bgolaszewski@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, srinivas.kandagatla@linaro.org, baylibre-upstreaming@groups.io, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linus.walleij@linaro.org, Khouloud Touil Subject: Re: [PATCH v4 1/5] dt-bindings: nvmem: new optional property wp-gpios Message-ID: <20200108205401.GA15674@bogus> References: <20200107092922.18408-1-ktouil@baylibre.com> <20200107092922.18408-2-ktouil@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200107092922.18408-2-ktouil@baylibre.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jan 2020 10:29:18 +0100, Khouloud Touil wrote: > Several memories have a write-protect pin, that when pulled high, it > blocks the write operation. > > On some boards, this pin is connected to a GPIO and pulled high by > default, which forces the user to manually change its state before > writing. > > Instead of modifying all the memory drivers to check this pin, make > the NVMEM subsystem check if the write-protect GPIO being passed > through the nvmem_config or defined in the device tree and pull it > low whenever writing to the memory. > > Add a new optional property to the device tree binding document, which > allows to specify the GPIO line to which the write-protect pin is > connected. > > Signed-off-by: Khouloud Touil > --- > Documentation/devicetree/bindings/nvmem/nvmem.yaml | 11 +++++++++++ > 1 file changed, 11 insertions(+) > Reviewed-by: Rob Herring