Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp638205imu; Sat, 17 Nov 2018 06:41:45 -0800 (PST) X-Google-Smtp-Source: AJdET5e0HWnCK6DVcGRPXGnHbcCESFmMhRa6I9C5nKeD2Utz4xckKA1yMM59XrwuYsbcE83SvORJ X-Received: by 2002:a62:6981:: with SMTP id e123-v6mr15549421pfc.104.1542465705019; Sat, 17 Nov 2018 06:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542465704; cv=none; d=google.com; s=arc-20160816; b=BtFZH3H8wr1SQ2M/17V+EnkCl4UREdzHiXdVPhMca2bWMXyUQCSdQ4FwG6dyhv76/R Z2Wam5dUoMej8qAy5Nu59v8MLYWfr2qj09uBWuBUDVjJJDAHyLRRDzvtx6x71tbQMQAN Qu5OrVogR0pH9jEmPWGuv4I764AUC9N145fg1lzwBJ1iqA01vLU/qZGVbvZeI+WwK7CK HP6x2dw1TmZGP5QYnVLbK+Or7sWJTW1A+H8SJ1gBAnxURfJk1i31ZljoRpltuO9r26mb FD5D5NpGkZZPp58LJtE2Nxc0FQUg65HE1QE4RdsSxZqfAuRT8la9W8cF20jXiGMc6Ray lg+g== 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=T0ExdkWgnv9BqBo4VufsfOuE4k5ZoOrVMv6pC6oU7NY=; b=K5zoyTESkzDnSw2czOSUFEIkHoWc7d4iZsjpRWflkf7qjvMOwVCUCuMzsV2/UloRS3 j0G6hDrb3ZapWu/MUCIl+25yjXWy0EncX6QVxI5daFN/B7ZzNg5UCUQQVoAC36ULcikD +E6FmKtbPb01782BdjtnPds+P1njxwgB5r7VDP2VGiwC4Irf5tdHp5eRIxOV9zZbM4Uh 4PjxLC8ZQ61wPveJ6U+On9M/v7xMG12VpnG8GTIv13ZNjHQxmLF++PvEE1va2yq1xMiH UKjQJC685z82w2cZ/M5xjZz+DgNzs7mVuEKzuHW+T8NG/oyqD0buO5bcEZhJv9wr4nff SBDw== 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 g187si7635473pfc.43.2018.11.17.06.41.29; Sat, 17 Nov 2018 06:41:44 -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 S1726442AbeKRA5m (ORCPT + 99 others); Sat, 17 Nov 2018 19:57:42 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43378 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbeKRA5l (ORCPT ); Sat, 17 Nov 2018 19:57:41 -0500 Received: by mail-oi1-f196.google.com with SMTP id u18so3783128oie.10; Sat, 17 Nov 2018 06:40:49 -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=T0ExdkWgnv9BqBo4VufsfOuE4k5ZoOrVMv6pC6oU7NY=; b=IHsb5kEvLFT6824MDJPb1R8O923yxA4Nqxy+6ndxvSmNW8RgtehtGdhn/dkJtGOCeE GLWjB1nnBzVE5icZDXB4qSXu4vrqPwrrLHTpmwn3IWOi/xf/Bi5GrSbla098vmTwh2/O pgWKMNcEYYXkWYZxjkm8p8FF5vu/axDOolGlEisnroyde2LaCf4LfXMI1WKqnSN0T7IP uDOk3icRVz4SmL795lKk62eUtQo/ciUZGHvXcDB1YWsSr+suYVDEAcdKD4jH5sIA8uFi QfF1Ox/pgaWCWuiSRWq9QoMN/pv++Z5+OCC71pt4Npy6ms6P3VGXCqZaWFwVuRkCzc4W Ypiw== X-Gm-Message-State: AGRZ1gLfZF66nvFu3B80MiFmKaRrXSlRf7Hn6ARg4j8Zs4fu40ulaJrP 1BHEvh0J0cQfMw5RTViuxL1T3Io= X-Received: by 2002:aca:5c41:: with SMTP id q62-v6mr3468064oib.357.1542465648907; Sat, 17 Nov 2018 06:40:48 -0800 (PST) Received: from localhost ([166.137.105.180]) by smtp.gmail.com with ESMTPSA id w94sm13529682ota.50.2018.11.17.06.40.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Nov 2018 06:40:48 -0800 (PST) Date: Sat, 17 Nov 2018 08:40:41 -0600 From: Rob Herring To: Florian Eckert Cc: jdelvare@suse.com, linux@roeck-us.net, mark.rutland@arm.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/2] hwmon: (adcxx) add devictree bindings documentation Message-ID: <20181117144040.GA8016@bogus> References: <20181115135013.30723-1-fe@dev.tdt.de> <20181115135013.30723-2-fe@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115135013.30723-2-fe@dev.tdt.de> 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 Thu, Nov 15, 2018 at 02:50:12PM +0100, Florian Eckert wrote: > Document the devicetree bindings for the adcxx. > > Signed-off-by: Florian Eckert > --- > Documentation/devicetree/bindings/hwmon/adcxx.txt | 24 +++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/adcxx.txt > > diff --git a/Documentation/devicetree/bindings/hwmon/adcxx.txt b/Documentation/devicetree/bindings/hwmon/adcxx.txt > new file mode 100644 > index 000000000000..a94a5fe21b6d > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/adcxx.txt > @@ -0,0 +1,24 @@ > +adcxx properties Needs a better description of what this h/w is. ADCs go in iio/adc/ > + > +Required properties: > +- compatible: Must be one of the following: > + - "national,adcxx1s" for adcxx1s > + - "national,adcxx2s" for adcxx2s > + - "national,adcxx4s" for adcxx4s > + - "national,adcxx8s" for adcxx8s Don't use wildcards in compatible strings. > +- reg: SPI address for chip > + > +Optional properties: > + > +- vref-supply > + The external reference in microvolt for this device is set to this value. > + If it does not exists the reference will be set to 3300000uV (3.3V). > + > +Example: > + > +adc@6 { > + compatible = "national,adcxx2s"; > + reg = <6 0>; ? SPI addresses are a single cell. > + spi-max-frequency = <1000000>; > + vref-supply = <&vref>; > +}; > -- > 2.11.0 >