From: Stanimir Varbanov <svarbanov@suse.de>
To: Guenter Roeck <linux@roeck-us.net>, Stefan Wahren <wahrenst@gmx.net>
Cc: Stanimir Varbanov <svarbanov@suse.de>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rpi-kernel@lists.infradead.org,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
linux-hwmon@vger.kernel.org, Jean Delvare <jdelvare@suse.com>,
Rob Herring <robh@kernel.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Saenz Julienne <nsaenz@kernel.org>,
Andrea della Porta <andrea.porta@suse.com>,
Phil Elwell <phil@raspberrypi.com>,
Jonathan Bell <jonathan@raspberrypi.com>,
Dave Stevenson <dave.stevenson@raspberrypi.com>
Subject: Re: [PATCH 2/4] hwmon: adc: rp1: Add Raspberry Pi's RP1 ADC driver
Date: Tue, 30 Sep 2025 00:50:41 +0300 [thread overview]
Message-ID: <a5bc2227-5d25-41da-9b5b-ebc2d5fc85c8@suse.de> (raw)
In-Reply-To: <3f1295b0-b637-4fe0-b141-67f086960072@roeck-us.net>
Hi,
On 9/25/25 5:34 PM, Guenter Roeck wrote:
> On Thu, Sep 25, 2025 at 07:26:10AM +0200, Stefan Wahren wrote:
>> Hi Guenter,
>>
>> Am 25.09.25 um 04:42 schrieb Guenter Roeck:
>>> On Thu, Sep 25, 2025 at 03:04:14AM +0300, Stanimir Varbanov wrote:
>>>> A five-input successive-approximation analogue-to-digital converter
>>>> with 12-bit (effective number of 9.5 bits) resolution at 500kSPS.
>>>> The ADC has four external inputs and one internal temperature sensor.
>>>>
>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>> Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
>>>> Signed-off-by: Stanimir Varbanov <svarbanov@suse.de>
>>> I just realized that there is already a hwmon driver for
>>> Rasperri Pi - drivers/hwmon/raspberrypi-hwmon.c.
>>>
>>> Please add this code to that driver.
>> could you please explain the reason for this?
>>
>> Yes, both drivers are for Raspberry Pi boards, but they don't share any code
>> base. The raspberrypi-hwmon uses a mailbox interfaces to get the sensor data
>> and works for the board generation 1 - 4. This driver works completely
>> differently ( MMIO ), doesn't depend on the mailbox interface and applies
>> only for board generation 5. Actually I don't see a benefit of merging them.
Thank you Stefan for the explanation.
>>
> Ok. Please make sure to add this explanation to the patch description.
Sure, I will extend the description in next version.
~Stan
next prev parent reply other threads:[~2025-09-29 21:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-25 0:04 [PATCH 0/4] Add Raspberry Pi's RP1 ADC Stanimir Varbanov
2025-09-25 0:04 ` [PATCH 1/4] dt-bindings: " Stanimir Varbanov
2025-09-25 19:40 ` Conor Dooley
2025-09-25 20:37 ` Guenter Roeck
2025-09-30 10:20 ` Stanimir Varbanov
2025-09-30 10:47 ` Phil Elwell
2025-09-30 18:58 ` Conor Dooley
2025-09-25 0:04 ` [PATCH 2/4] hwmon: adc: rp1: Add Raspberry Pi's RP1 ADC driver Stanimir Varbanov
2025-09-25 0:34 ` Guenter Roeck
2025-09-25 2:42 ` Guenter Roeck
2025-09-25 5:26 ` Stefan Wahren
2025-09-25 14:34 ` Guenter Roeck
2025-09-29 21:50 ` Stanimir Varbanov [this message]
2025-09-25 0:04 ` [PATCH 3/4] arm64: dts: rp1: Add Raspberry Pi's RP1 ADC DT node Stanimir Varbanov
2025-09-25 0:04 ` [PATCH 4/4] arm64: dts: broadcom: Enable RP1 ADC for RPi5 Stanimir Varbanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5bc2227-5d25-41da-9b5b-ebc2d5fc85c8@suse.de \
--to=svarbanov@suse.de \
--cc=andrea.porta@suse.com \
--cc=andrew@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=jdelvare@suse.com \
--cc=jonathan@raspberrypi.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux@roeck-us.net \
--cc=nsaenz@kernel.org \
--cc=phil@raspberrypi.com \
--cc=robh@kernel.org \
--cc=wahrenst@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox