From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F85F36A03B for ; Tue, 11 Aug 2026 18:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786471617; cv=none; b=cRGw+iYNTcQ0PuaANn4st7s5xpetzbRIuJX7gL3mbs2r/t735p0ahVmoMQvshlsctaZIpiMDy5bQoXw14xG41A48UdS+xjs/yWnzrSalm9dczwo11G7MmLObXnjlJ31puauWiFJmBeW72iZdU4+c4sPH97MpMFV2/vVD+Jiv3eA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786471617; c=relaxed/simple; bh=h/kU+0khOs2mbueaGLEuF1Wzrn64yqgGdJQhL77jvF4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ncz8A4/AB3YbdgaT5cxQj5a85YLZExa6CG0YOedmWH1E/dRJiCpVGFoekCVHWS5l+1jyd+zUdVLRKKuXDTa1UGt201Wjckw6y4uz+zLeKP1Ad/xygEG3ZqDBHTSWEy9nC6Sd1Sa2V9q9YSypCnzhaPh2M8F4k2bBZmSmIMYrEgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=G2wIi+yn; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="G2wIi+yn" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-6acc88b9c5fso81365eaf.2 for ; Tue, 11 Aug 2026 11:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1786471612; x=1787076412; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=bPLjvPRzdcvXjvZulrX1VDW95Qi2CQ4uYFgXPT7AZFI=; b=G2wIi+yn99UljNCOa5CWxhG6GV0TBam8grJ9vflP1hwBpbSbKnNOXSypssCIg6Wqeh w/cYFxo1XpbCVQQHZn3qtAqcM4l1DjmwQ/cpQMw/xj8VSDZG8kpqjwtBuDilAExPHNfV pObqE6G428i6JUQWHL+8q5WPLMUDtT6VdD42tZRolbeikdllotNU5IPeKdlGcB1mOGfy ttxzrje2zeHmA1WTrDyt33rswiaFWCTNPvhHndJKgQdhc+X5l5cj1PcF4UjYFuBs9uBT CktAPodfzjaos5mQjCEosYNFYyK1xNGhzZ3H3lQijtCYRw73BIzleWTirfhZlmDwCUcX fzMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786471612; x=1787076412; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=bPLjvPRzdcvXjvZulrX1VDW95Qi2CQ4uYFgXPT7AZFI=; b=d+/pl8AMPNyV14hDr+s11jixfP6HJXnG3wvN0m7qnaCDNxYQcp5g1JDXZJLuK5lG7O 7r3LfYFGaVhWEDYUa7IfFNO17Elqps3Ljo4DyNT2Y0ub0Wa/ifqMChfh9ekXP7KFBwC8 wHLw1tdtt70MTIuhAj6c08l23T0Kmcpu4PvOmoUdKsEWgWpmF+6EQ+EacAod1hA0YpMX Z375sYITOBgWTBcijYgHNhs26/KCboz6WoK7m7MzOg4YffuUM4ITTvjpaOJQ52xQSED9 Ryxd4aBJ+hXzpFIebgwns0QqVI6J55NKbb2dx6eTAZXaHFW70dbWuX951DpwvBnG+i7J zwnQ== X-Forwarded-Encrypted: i=1; AHgh+Rr/Kh891A/mcvcXv07fPJw1UHTzQb6eeUWWFzhy40kJoFBSM6TD3j1Gvuq4iK3RxK+NhWETcLwPLUU9rnc=@vger.kernel.org X-Gm-Message-State: AOJu0Yx1juvB/OEfcd1NEaY77weYYvXi1lpM1ShK+Ivy//B5cMjdba/m XpODgW79jXdPKFQWnegzd5Q/Pup1z08WshBDDelo8hCzG885ssmOYLgTH+vK2EOBgYs= X-Gm-Gg: AR+sD11O5e8GqSodNV10IwPzDqjyv2bzxGrEd2iWyqYKgsITt5JZYR8C7fXl6mRVAfd ht3alCAC63BA1JDur2nPRcORRH7XZUMlhz27VXLKfgnteENVWw/1iwxWHPYGOexKX6t9mt1N6NN /l1zT0Mk5/WtJkvhUH+Q1f8dPPO20koWjfYqtsXRMTDvCugqZUg7L9ewToFA5KDQq5tWJkkQRfd rkCJ2W0xQZDr6clXYSvu7OAomcbiCpj4uuZRYJH1/W9+cv168BY0GIVK8UOiPJfxeUyma5mcgms 55vGdzCHVLAlt9OyfzuZnYY+3y7mHFadFcQNbEx37WPqEDAFygzlvhVtxrqWoQvbSYdN/oru4Eb 9ztDuuxh3nnQSI8zlmxXPZI7sCNtPdGbdTyyHd2zZRFseXGGxJ0JzUwaZuPjyItyQ7Ez1aeMNDr 6EulMORsqE5sJqK/reWWZMBNd/JqoZIO4g5O/M+dy0zYYx5Bcyxc8jzlMkZvYHOspfkEO5ZSi7Y uhJquyvEgChKDdi7JGqXS5X2bhCd75TtHMu X-Received: by 2002:a05:6820:560f:b0:6b0:abaa:bd3 with SMTP id 006d021491bc7-6b0abaa0e22mr1275805eaf.9.1786471611847; Tue, 11 Aug 2026 11:06:51 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:7060:91df:60e9:76b? ([2600:8803:e7e4:500:7060:91df:60e9:76b]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-6b0ad500d37sm382701eaf.7.2026.08.11.11.06.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2026 11:06:51 -0700 (PDT) Message-ID: <125ac6a1-a089-4ce8-9b20-c3448b6b5208@baylibre.com> Date: Tue, 11 Aug 2026 13:06:50 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] iio: humidity: am2315: add am2320 to i2c_device_id table To: =?UTF-8?Q?Nicol=C3=A1s_Antinori?= , Andy Shevchenko , Marcelo Schmitt Cc: Jonathan Cameron , Andy Shevchenko , Brigham Campbell , Jori Koolstra , =?UTF-8?Q?Nuno_S=C3=A1?= , Shuah Khan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linux.dev References: <20260810183337.451812-1-nico.antinori.7@gmail.com> <2d7dcced-47f9-4fcf-9668-30acb9e8c9b1@baylibre.com> Content-Language: en-US From: David Lechner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 8/11/26 12:58 PM, Nicolás Antinori wrote: > On Tue Aug 11, 2026 at 12:49 PM -03, David Lechner wrote: >> On 8/11/26 10:12 AM, Nicolás Antinori wrote: >>> On Mon Aug 10, 2026 at 4:28 PM -03, David Lechner wrote: >>>> On 8/10/26 1:32 PM, Nicolás Antinori wrote: >>>>> The AM2320 is fully compatible with the AM2315 sensor in terms of I2C >>>>> communication protocol and measurement conversions. >>>>> >>>>> Add the "am2320" entry to the i2c_device_id table. >>>> >>>> Interesting. No devicetree bindings for this one? What kind of >>>> system is it on? >>>> >>> >>> I am testing this on a Raspberry Pi 3b mounted on a protoboard. >> >> How do you tell the RPi to bind the driver? >> >> Since Raspberry Pi is ARM-based, usually we would use devicetree >> overlay to do this, which would mean that we should write a >> dt-bindings .yaml file for these chips. > > I do it manually. > > I use that RPi for development, at the moment the kernel I am using is > 7.2.0-rc6-v8+ with CONFIG_AM2315=m. When I need to use the AM2320 I > modprobe it with: > > $ sudo modprobe am2315 > > And then > > $ sudo bash -c "echo am2315 0x5c > /sys/bus/i2c/devices/i2c-1/new_device" > > (With the modifications I made ... echo am2320 ... works as well) > The pins for i2c I am using are GPIO 2 (SDA) and GPIO 3 (SCL). > > If a dt-binding yaml is needed I can send another patch with it! > > Yes please. It will make it easier for others to use as well.