From patchwork Tue Nov 15 09:55:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1655 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2622513wru; Tue, 15 Nov 2022 02:04:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6kS2Dgl3wuw0gRabNADoUJjYWyHmvS4IUsjGSalBmO3cTC5MCj4s7WFf3KqriVbt3n1fnv X-Received: by 2002:a05:6402:f8d:b0:461:8f21:5f12 with SMTP id eh13-20020a0564020f8d00b004618f215f12mr14435912edb.54.1668506672269; Tue, 15 Nov 2022 02:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668506672; cv=none; d=google.com; s=arc-20160816; b=nL9qEfuj/abnjWMklcLPPdB00kj1QNJkhgg4X41nvbQrmJ/zFRLAzzSJTzEWbQ4HZT A+oXo9n7FeUwB+rK/KY40uMYVVzsdsVukW23QWcGpx0XUHh4EKX71Y8skFGw0NIEBL3A +P/alqWoWaJqSXH2w88FmAOyAbaoCdDol/oSK6d+74ayVLiimELb3I2Hno0usuNL6HZt IN39HsbfyJyu/2CrfBRaUoe8W2LevK8ndVbvWpudqeCJi+Jvp+K+H7ObvC09CCQd9Av+ 1EbYRfdEC0Rvu7iJMFmUFHlcWL5kTfRojjW1qsgPKYQf0JNB3gMUUvG2TZNV8RdHYQ67 XI9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6f4zxcZ/5nPMHcfGpObgAYnAA7vWPHzrHK0NitDUTLM=; b=gI6D2dhvbtRXjHkYes+p5tgdZhRJkD6H+YSaUEt3132+sY502u2MHQnnogCNlbkvKQ l9p2ivvs54BebVqDINraDyKH+oaYpJJ6yfK9IB8W0ukrLk5BwCePxx9vTmX4h/u9RSvB zZsF0zlGm/Awkz5RMALL7tyyU15IcZX3anlo9ZwnL0zLNisAXj7WVjlqfvzh2ROZrWdD 1Oexb86qvHmoxswuXJdDJQ5VNcYUguCWuVhCiy+VuJyr/XrZhznWd69CmAyzzRNqdzf2 UN7GsV3NlugNsQaASmV0PSduSrW1LRfU6DvsWvxm6pn0/XEyzmGOzf4uxyfyXftWLX8e bzuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Oeubwhbx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc2-20020a1709071c0200b007824786a7easi12457729ejc.724.2022.11.15.02.04.08; Tue, 15 Nov 2022 02:04:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Oeubwhbx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232465AbiKOJzZ (ORCPT + 99 others); Tue, 15 Nov 2022 04:55:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbiKOJzX (ORCPT ); Tue, 15 Nov 2022 04:55:23 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC721131 for ; Tue, 15 Nov 2022 01:55:21 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id g12so23652488lfh.3 for ; Tue, 15 Nov 2022 01:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6f4zxcZ/5nPMHcfGpObgAYnAA7vWPHzrHK0NitDUTLM=; b=OeubwhbxdIfz0aEAv9BRbLsIfviL7qSKBjc1sG8maAgoYTDIE7ICssPLrxtswLYJUB ujRxKu0QnkecST1Z4OR6oV6S70fNkY2EgOlqJV46E6FnOtKjV8IoXvOD+CpZy0zODqjv 4JmzFJWCphcuwg5/qBlfRxGF3B1pGSsJ2nS4w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6f4zxcZ/5nPMHcfGpObgAYnAA7vWPHzrHK0NitDUTLM=; b=NmqkjE+NeIdS4f4TV6b3eaDEgaFaK8XxKMyVpGpHM3sjmDFltn+j1NAqMtP+jpTPUW MbLBSw3rn3sTvwsS0pAUr8MDVdENGLFhfLsl73F0esmvKC2AZwbXtJv8pch8BoucJrIw Afc2UnLs338llhTMHsYEUX7AwEOtm/2o+v2rgiNd5kfGCbAMI/sQ3xyYyUKDrLuoUZgz wclFI0/0x/2eoUkAoMaaAuNlo0PXPYBuhO8pLFHpD1i8ILK0v+NLAO29vlk47CynMUTX KP8VxyvQ//4bhJ1rjFv3SsLVPMzjCX4VzcWXTk0MIcXayX+A27WLMc3W/rbrwdJuVF4n 2xdA== X-Gm-Message-State: ANoB5plWR0K/RVGnkPIySLGnf7swoyX8PWx9JrowH9/q8F16FOLy1Mzf 0yYiPNzGc0aHb4mnVm5cVOsd/g== X-Received: by 2002:a19:645e:0:b0:4a9:e27a:1cfa with SMTP id b30-20020a19645e000000b004a9e27a1cfamr5177422lfj.147.1668506120064; Tue, 15 Nov 2022 01:55:20 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id q3-20020a19f203000000b00493014c3d7csm2148598lfh.309.2022.11.15.01.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 01:55:19 -0800 (PST) From: Rasmus Villemoes To: Rob Herring , Lars-Peter Clausen , Michael Hennerich , Cosmin Tanislav , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, Rasmus Villemoes Subject: [PATCH v2 0/3] iio: addac: ad74413r: add spi device id table, support reset gpio Date: Tue, 15 Nov 2022 10:55:14 +0100 Message-Id: <20221115095517.1008632-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221111143921.742194-1-linux@rasmusvillemoes.dk> References: <20221111143921.742194-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749556052753919628?= X-GMAIL-MSGID: =?utf-8?q?1749556052753919628?= Fix a run-time warning from the SPI core by providing a spi_device_id table, and add binding and driver support for a reset gpio. v2: - drop the two patches related to refin-supply - fall back to getting device data from the spi_device_id entry - update the example in the binding with a reset-gpios entry - fix a style nit Rasmus Villemoes (3): iio: addac: ad74413r: add spi_device_id table dt-bindings: iio: ad74413r: add optional reset-gpios iio: addac: ad74413r: add support for reset-gpio .../bindings/iio/addac/adi,ad74413r.yaml | 4 +++ drivers/iio/addac/ad74413r.c | 29 +++++++++++++++++++ 2 files changed, 33 insertions(+)