From patchwork Tue Feb 5 13:59:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1036764 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="x+8PitUv"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43v5nG5Cxyz9sN9 for ; Wed, 6 Feb 2019 01:00:18 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbfBEOAG (ORCPT ); Tue, 5 Feb 2019 09:00:06 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33796 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbfBEOAF (ORCPT ); Tue, 5 Feb 2019 09:00:05 -0500 Received: by mail-wr1-f68.google.com with SMTP id z15so1684500wrn.1 for ; Tue, 05 Feb 2019 06:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qwFdzRkd18wMQX0It+mUaqAVIDact01q7gkgyyd7ni8=; b=x+8PitUv0C9NlVoPmO5LFVv0wKagTycFl+A6YE/jv79zaUlqbbsPN/3/Nn4YzNlfdM XihOfw7uEswC1jDERGtQvXd/Jw5bsUXji2Ftceqx+nLMUi22yUKb6Khm+8tUFZmFpI2W +kA8W0FYSXVHPHkoJSmvENDebBl99koxyPxljNedi6BQZqa7Dr1ww0oTTjE3TT5wZHb3 sVNdKx3sIi2oElqeWFYgQiewL/5ny1Se42BNpSWU8585XZ2UylgJJZsT/AKM34I4KTg5 /e2ydVfyxiCYVGz9mC2znpVyRvN0YMiIyaJK4nUFd98tWN6aSTyqPtQoAMe+93h7w6iQ /WeA== 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:mime-version:content-transfer-encoding; bh=qwFdzRkd18wMQX0It+mUaqAVIDact01q7gkgyyd7ni8=; b=FL6V/n0SJRzmWjC2lCD4KtIAl/mPFHZKJR9NW+/qWZxZ0Vb4LbTCfTyZYUgIyzDLlp 6X8syktK+8W6N0jjoQu0gJga1S/XShePkUf5JuXhHRloLAuC2Mj6xjEDs5rJGW5P/aNt crpHZVRzK/t83jWpyTgvgb/GyTg4k3sBTNkGbsli7yuw8D9fDAxn6M7r2D6SIykNQ941 IUtuhJtf7Obaq51yGq7WEKo89OnWZwJ/rBsp9+fkPsBJzgWjCQ48wcbbsV1TaviecTNt 1EVJi1xU0QrFtefv3JYPktmT2IoZFcnFfs/Zux+b9WzIdLK6RKVMk2jEPRHtVbgxbxFI bknw== X-Gm-Message-State: AHQUAuZf379jtmxoUKtoaKbgTFUZ78sQ1SQ9Go87LKGuHWdxdiTAOx4i rvFu3llCpB3+LHiglcryTqgvbw== X-Google-Smtp-Source: AHgI3IbppprLpq38XVFEYjO7PXcjaXpIID36BGfdW8kSSbcXpPkx8R8KAUEx0zy1DITsfnSgyTAxBg== X-Received: by 2002:adf:ff09:: with SMTP id k9mr3598691wrr.97.1549375203235; Tue, 05 Feb 2019 06:00:03 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id y1sm5560379wru.4.2019.02.05.06.00.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 06:00:02 -0800 (PST) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/2] dt-bindings: at24: add the 'num-addresses' property Date: Tue, 5 Feb 2019 14:59:33 +0100 Message-Id: <20190205135934.18841-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190205135934.18841-1-brgl@bgdev.pl> References: <20190205135934.18841-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bartosz Golaszewski Currently the at24 driver only creates additional i2c dummies for atmel,24c00 and it's hard-coded. Some other chips (like for example Microchip's 24AA02T) also take more slave addresses despite being otherwise compatible with already supported variants. Add a new property to the device tree binding document that defines the total number of i2c slave addresses taken by the device. The addresses are counted starting from the one in the reg property. Signed-off-by: Bartosz Golaszewski --- Documentation/devicetree/bindings/eeprom/at24.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/eeprom/at24.txt b/Documentation/devicetree/bindings/eeprom/at24.txt index f9a7c984274c..0e456bbc1213 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.txt +++ b/Documentation/devicetree/bindings/eeprom/at24.txt @@ -75,6 +75,8 @@ Optional properties: - address-width: number of address bits (one of 8, 16). + - num-addresses: total number of i2c slave addresses this device takes + Example: eeprom@52 { @@ -82,4 +84,5 @@ eeprom@52 { reg = <0x52>; pagesize = <32>; wp-gpios = <&gpio1 3 0>; + num-addresses = <8>; };