Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp31984ybl; Tue, 7 Jan 2020 01:31:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxBTUu8C3Xg2my7hsOrQ5EF4MCGplJFlVDttSK1qVaBaaS5502KakEFOxrQR2AXCjsKuxqg X-Received: by 2002:a9d:21f4:: with SMTP id s107mr124126918otb.102.1578389494620; Tue, 07 Jan 2020 01:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578389494; cv=none; d=google.com; s=arc-20160816; b=c/iL9Dt9+XMh3Qtz8xxydXgW+evD5SgLxzpn6Zuxl9NQhLJc2WSJ1OGNKLIQn2SNqw 2CvmDBgvRZA5xlxFb2AKjHZPbA2iggDxR70CXuR6EbKLw3G1AiP2P+eaAPKSaHIcJo9w xiAQH1HNC8ZzearH17/qOL/Xlo9/OqHaIpc5eoJu0gTHOJALY7aK73PB+CYzWYQ6QSuH N4T06BoE8NTIKVjxfG5mg4d9XiNaR+maM8wBQEbe/nUEhdKWe/9mx+s4nco+uJFdbeWH gfGIZfr7PzNbgPNxDbayNUsVO4q18nMwBb5TlTHvodyueAybcrlHqPVRgRMocIZDpCKn Ctag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=RhSUzitd9bqzSRucMHlRHZmPMmbVRjLi7QePW978DUg=; b=XHHtiGBS+qckmx+/WtWcY2toqFR79IMVp8Hjd98na2tPUUx14R4EROPsUw6l16q8y/ YjVLVMKRKykgI0n3w2eYntOS83LSEMfd1/ZarKwU6a97z4vRjSQ8R1SCnV6a7KR/McOH dBjU1dWHj0vIyoKnbcAI1vCm18MUw5Qw5LmG5O8suJ34FN+MY3pQgeDCguvsPpG5Xtmi abQDu/DhQtrlTI5PsomUVakzpO7+6HKBJmwFQlJGK/RAoalkHizX0SHPdAOJoB0LUeuj Ep6nxKd+siZpi1JDlVtsaP7YD7r+BghhV4TAyA7erJAZuCjq9+UNKcIVzy4UQybmhOSE LiUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=q3rFUrsP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si526342oti.306.2020.01.07.01.31.21; Tue, 07 Jan 2020 01:31:34 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=q3rFUrsP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727846AbgAGJaR (ORCPT + 99 others); Tue, 7 Jan 2020 04:30:17 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40381 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727782AbgAGJaA (ORCPT ); Tue, 7 Jan 2020 04:30:00 -0500 Received: by mail-wr1-f66.google.com with SMTP id c14so53064290wrn.7 for ; Tue, 07 Jan 2020 01:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RhSUzitd9bqzSRucMHlRHZmPMmbVRjLi7QePW978DUg=; b=q3rFUrsPxKvzS9fnNPOWZxD91BiuFAhEHEFHG+dRcbp6+hXEW6+3w7EDRTZuJ3LJNp 96TUPQZR6QmjJX9OOFgIox+mQSnztYY8TpiBAHfJjPlu+ZtBh5FYh5lLKQloX9KsZYQL 6szNdxzqXeUNEvghT2h53EOBmGaWQ6pT/XEZ9Jtw6s+wZmmQoh183XqYpBdCQhXQSEib M1PV8MgPzpmFKxw8KqLmecrxYqePYAssN+y+zTfzHc0IIGPOBrIO6JQKtM+OD/U+F2JM ROBJHtn5AVHa7bVOHit7hHZ07zWoiT/MWdQ4o2nfOnh9NqFQRQYeV56Rfk9QnWzk7DWS eo5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RhSUzitd9bqzSRucMHlRHZmPMmbVRjLi7QePW978DUg=; b=T+DJ7UuNTDW+4SsblWV/WPGplVf6SC/4WGCVxG2PubsXAgWEM7i9tBqwCjbrFOwt+a yD6TDvxvkncW7j1cMqcf/l/iPgipgp39Qk2y5JkRQVBntUjUJoFi+/rGtOW7H/+AUAT1 Uw8bxPXzM3WkgIMR3/mu4IBef4bj2hhRYf2wW+AO4JMSH06waP2WxDzXmJlUiKCGQM+u Rt7THdwT0MscPKCyL48TtdoHdsk7Ji6K5bV/EDpBuaeHWqe0H4p5I7O7/wNDFPpq6cdS cU9WBmx22BGA/ZkBUf3ft9uLbFKAZ2bHFJTAU689KY8dqeMmVhvKJ8a/2MxpNA1zPCXS aecA== X-Gm-Message-State: APjAAAU95QFH4EK5Xs4nwfz6GdaxdA+jQK24Wa99prP52N/C5KsQgFAl BYbg1BmwopB1KCYhs4PxaUo/fQ== X-Received: by 2002:a5d:4b45:: with SMTP id w5mr113314127wrs.224.1578389399042; Tue, 07 Jan 2020 01:29:59 -0800 (PST) Received: from localhost.localdomain (i16-les01-ntr-213-44-229-207.sfr.lns.abo.bbox.fr. [213.44.229.207]) by smtp.googlemail.com with ESMTPSA id x14sm25959969wmj.42.2020.01.07.01.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 01:29:58 -0800 (PST) From: Khouloud Touil To: bgolaszewski@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, srinivas.kandagatla@linaro.org, baylibre-upstreaming@groups.io Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linus.walleij@linaro.org, Khouloud Touil Subject: [PATCH v4 3/5] dt-bindings: at24: make wp-gpios a reference to the property defined by nvmem Date: Tue, 7 Jan 2020 10:29:20 +0100 Message-Id: <20200107092922.18408-4-ktouil@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200107092922.18408-1-ktouil@baylibre.com> References: <20200107092922.18408-1-ktouil@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NVMEM framework is an interface for the at24 EEPROMs as well as for other drivers, instead of passing the wp-gpios over the different drivers each time, it would be better to pass it over the NVMEM subsystem once and for all. Making wp-gpios a reference to the property defined by nvmem. Signed-off-by: Khouloud Touil Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/eeprom/at24.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml index e8778560d966..767959941399 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.yaml +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml @@ -145,10 +145,7 @@ properties: over reads to the next slave address. Please consult the manual of your device. - wp-gpios: - description: - GPIO to which the write-protect pin of the chip is connected. - maxItems: 1 + wp-gpios: true address-width: allOf: -- 2.17.1