Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp46929ybl; Tue, 7 Jan 2020 01:52:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyRVDInwXU421fSmUZTcoi8bSpTDtDHdJsFeeaWalBan/LljJn6qTDWTWghN4m6m2e9btWc X-Received: by 2002:a9d:c42:: with SMTP id 60mr81245935otr.182.1578390725125; Tue, 07 Jan 2020 01:52:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578390725; cv=none; d=google.com; s=arc-20160816; b=hIckkGZTOz86GW3x819ZYG3OO6BTiVLsPbCb6+8wev6XgXPsY6AOVlX3VMLPhan+J1 JVaKHReFf9U6A5C67jV5+oi2PEFQwxcNg9I7J3ITsBStugPXslhjrvMyXGGTRUvtNJ1t yBQfrx/oHWxq+Dxkqu0OBmCgd/MvJ7piqR469Csx+3OsxooLR17RLxF0PkFEMZgPDqg8 Bf/gAyRDw++3FiAcD8SQ2B8xPtM4L6ke4IYQncYtHoM8M+NPKordOVT58q6TF1vXJBMl Z6tXrYyFJKXni9h0RzAniB73RSO05ebMQGY6/P1ndTmISFsey01PfWKgb2KposCOh/Ck 0A9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7lwQwuwfM1iPF6iRTO0yd0IE/lAHtvYOS2zEBwR6gvo=; b=w4CQJn0ME3wg1aayWZDlRmADpd1qCplXwqoeYbuCVyHoec8s9v4J61wKogMFO4cG47 tiPJYVmZvhJVNyrcK1r0IVoDSY8z4rF4gN2n/v8CUmguYXPpbyVtDlE2A1qq3nh0rpx2 rO7p1vKvau1wQyl3we6C0+X+JTlB6Zp9rl3+D0CL8dCG5K9zFMMqZIDDrYakFzFOVlHv wWNJxx3wZxxBALwaHDUvFjvJ8p558nL//5PQOslBlDR3/wy4igELYGDyGvRpAQ0jZ2On hdD5GK5kdslA8zfOu6kEQtuaA0+Qc2CU6P1GtftcPxS3uDXkG7r9g5Lq249necbHIO+F DzUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ESsRaSk7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si37358451otq.146.2020.01.07.01.51.52; Tue, 07 Jan 2020 01:52:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ESsRaSk7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727616AbgAGJvC (ORCPT + 99 others); Tue, 7 Jan 2020 04:51:02 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39012 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726558AbgAGJvB (ORCPT ); Tue, 7 Jan 2020 04:51:01 -0500 Received: by mail-lj1-f194.google.com with SMTP id l2so54021826lja.6 for ; Tue, 07 Jan 2020 01:51:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7lwQwuwfM1iPF6iRTO0yd0IE/lAHtvYOS2zEBwR6gvo=; b=ESsRaSk7d2JY56/cgt/nXnrxJgfTupQnEmZZv8fV6TQ7hRK0Q5KWNLW//AWecNq6h9 Zuk595JfYWxqRW7TXSk1CndHashtdTijfRIWJPHdaW7xPsbvpTL1Y1BZ7Gn4nDMncf8+ nAedTzlJLdg1/g+osMgihw1mhBQCjIFs9LiyOoAkli5A6O4Qkzril5A2CpjkA3ciGwWl AkjWUcUerXOj01PMyJNuFVH5BIRcJY0KA5GIK296ubZhlxOff7rpN1nUxjHNyEc3C6hA L+xdcykZQbzzmTl3/zW9ddGJoYMGRGpcG3WeDSQiHSC5+31ioGivnMVPF7/M4v8utBug 0EvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7lwQwuwfM1iPF6iRTO0yd0IE/lAHtvYOS2zEBwR6gvo=; b=BbzSjYSul1H9GUHvyMkCQPbPbCFW7gr+uvzAQSRTBSPVnDKGbp7ROGkuJ2WOW8a1zs osx8NjlyOOHaHZbyxgkuYVNFXZHOA3vEY6UWHye/G5FlenmUYM3ohvYOX5wguwD6NM9p x+51/oY8YQ94al8OguV5BxWIxfkqwy3UMcS90BIPXBY2Yyp/6YU+Kew68YOO+oWf9Xst lCtUh+TL14siArb24uwUcllTsWHftSv5dolEYQHE5ZF6p8bpEe3OHCw0OyyWHqGOO1Mb +//OcIO2CgOWrmmNholpqte4akDNFBrrEfAjmvhlOT+Nx2H34912oa2vWf293hqR7SSW Dq+w== X-Gm-Message-State: APjAAAXNKEKLnJ8SNaT2KIxu1odNBQ299cVmhoIXBgcJQIuDYIiG01wp CcqACyado8uftkk3tK3aEUphYNWKh8oIWgXeInstjQ== X-Received: by 2002:a2e:9587:: with SMTP id w7mr60234687ljh.42.1578390659474; Tue, 07 Jan 2020 01:50:59 -0800 (PST) MIME-Version: 1.0 References: <20200107092922.18408-1-ktouil@baylibre.com> <20200107092922.18408-2-ktouil@baylibre.com> In-Reply-To: <20200107092922.18408-2-ktouil@baylibre.com> From: Linus Walleij Date: Tue, 7 Jan 2020 10:50:48 +0100 Message-ID: Subject: Re: [PATCH v4 1/5] dt-bindings: nvmem: new optional property wp-gpios To: Khouloud Touil Cc: Bartosz Golaszewski , Rob Herring , Mark Rutland , Srinivas Kandagatla , baylibre-upstreaming@groups.io, "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-i2c Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 7, 2020 at 10:29 AM 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 Reviewed-by: Linus Walleij Yours, Linus Walleij