From: Luiz Sampaio <sampaio.ime@gmail.com>
To: zbr@ioremap.net
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
Luiz Sampaio <sampaio.ime@gmail.com>
Subject: Implementing overdrive communication in w1
Date: Mon, 10 Jan 2022 17:02:59 -0300 [thread overview]
Message-ID: <20220110200259.23276-1-sampaio.ime@gmail.com> (raw)
Hello, all
Recently, I had to use the w1-gpio driver to access an EEPROM w1 slave.
The problem is that the slave only supported overdrive speed, and
w1-gpio is using standard communication. I checked the delays and
confirmed in the Maxim website:
www.maximintegrated.com/en/design/technical-documents/app-notes/1/126.html
Back then, I changed the w1_io.c driver in order to support it, but I
want to make a patch to be able to choose between standard and overdrive
speeds. Maybe set this in the w1-gpio device tree, if the user wants
overdrive mode (adding "w1-overdrive", for instance, not to break the
already working standard speed mode).
Do you have some orientation in the path that I have to follow? I
thought I could add a parameter (bool?) in the struct w1_bus_master in
linux/w1.h, and test the value of this parameter where delays are used
in drivers/w1/w1_io.c. This is the best approach? How can I know if this
would break something?
Is there some effort to add support to this already that I could help?
Best regards,
--
2.34.1
reply other threads:[~2022-01-10 20:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220110200259.23276-1-sampaio.ime@gmail.com \
--to=sampaio.ime@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zbr@ioremap.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
all inboxes | Powered by JetHome®