From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB5C2C63793 for ; Thu, 22 Jul 2021 09:22:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 736626109F for ; Thu, 22 Jul 2021 09:22:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 736626109F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=Huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nj/f2cqyK98PSJ2X8d71hxVBeDJC735njZ1ool6f88o=; b=oXV0q7yGZij2Ps XcSobcQ4yJKODaMHG9izNvoH3rqWEwaKuRK7HImFkaQCS5JpyMdLYduiI0eEvTEbi/MnAA2eE33LX 4qFsLA40s/9Fr3Oui8YbsgN5pX7aT9++5yEZcYx4L+j5+M1OTeYiuwHsbT+eBbFWpZE0D8/PuHfiI jhOES8pYTzBf1QFBfd1IyOuZx+mQfcmvnGQO1bP06Jbbu9/0KLqolO5Tds0VSUP+t27JZX/EgXAMi VjguNL+QlP4Yke8J0Elwk1aPdMbLp1ANMDUGSchByyI6JILD8uxjx0tMQmTfLjTSFqWFCoXUyBnWa Yk+b+ZcyS7/6I3G8TkTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Ut8-000rIP-49; Thu, 22 Jul 2021 09:21:06 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Ut2-000rF8-1F for linux-arm-kernel@lists.infradead.org; Thu, 22 Jul 2021 09:21:02 +0000 Received: from fraeml712-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GVmq36qH6z6H7jw; Thu, 22 Jul 2021 17:09:19 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml712-chm.china.huawei.com (10.206.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 22 Jul 2021 11:20:53 +0200 Received: from localhost (10.47.4.50) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 22 Jul 2021 10:20:52 +0100 Date: Thu, 22 Jul 2021 10:20:27 +0100 From: Jonathan Cameron To: Maxime Ripard CC: Chen-Yu Tsai , Jernej Skrabec , , Rob Herring , Frank Rowand , , , Guenter Roeck , "Jean Delvare" , Jonathan Cameron , Subject: Re: [PATCH 14/54] dt-bindings: hwmon: Add IIO HWMON binding Message-ID: <20210722102027.000035a5@Huawei.com> In-Reply-To: <20210721140424.725744-15-maxime@cerno.tech> References: <20210721140424.725744-1-maxime@cerno.tech> <20210721140424.725744-15-maxime@cerno.tech> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 X-Originating-IP: [10.47.4.50] X-ClientProxiedBy: lhreml727-chm.china.huawei.com (10.201.108.78) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210722_022100_449920_EA429B60 X-CRM114-Status: GOOD ( 20.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 21 Jul 2021 16:03:44 +0200 Maxime Ripard wrote: > Even though we had the iio-hwmon driver for some time and a number of > boards using it already, we never had a binding for it. Let's add it > based on what the driver expects and the boards are providing. > > Cc: Guenter Roeck > Cc: Jean Delvare > Cc: Jonathan Cameron > Cc: linux-hwmon@vger.kernel.org > Signed-off-by: Maxime Ripard > --- > .../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml b/Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml > new file mode 100644 > index 000000000000..49dd40f663a6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml > @@ -0,0 +1,37 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: ADC-attached Hardware Sensor Device Tree Bindings > + > +maintainers: > + - Jonathan Cameron I'd like to share the blame for this one. Binding was originally added by Guenter. https://lore.kernel.org/linux-iio/1359668588-13678-4-git-send-email-linux@roeck-us.net/ https://lore.kernel.org/linux-iio/1359668588-13678-11-git-send-email-linux@roeck-us.net/ :) As bindings go this one has always been controversial because it's mapping between linux subsystems rather than really describing hardware. We've had various discussions over the years on how to do this differently, but perhaps just documenting the current state is the way to go. That doesn't stop us moving to something better in the future. > + > +description: > > + Bindings for hardware monitoring devices connected to ADC controllers > + supporting the Industrial I/O bindings. > + > +properties: > + compatible: > + const: iio-hwmon > + > + io-channels: > + minItems: 1 > + maxItems: 1024 Why 1024? > + description: > > + List of phandles to ADC channels to read the monitoring values > + > +required: > + - compatible > + - io-channels > + > +additionalProperties: false > + > +examples: > + - | > + iio-hwmon { > + compatible = "iio-hwmon"; > + io-channels = <&adc 1>, <&adc 2>; > + }; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel