All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: AW: PWM on a W83697HF
Date: Thu, 19 May 2005 06:24:49 +0000	[thread overview]
Message-ID: <20040324223023.307f706a.khali@linux-fr.org> (raw)
In-Reply-To: <1079973316.405f15c4abd09@imp.gcu.info>

> But not your information is bad but the Winbond documentation itself
> is bad! On page 27 (Winbond W83697HF, Rel.Date: 04/2003, Rev. 1.2) you
> will find:"The duty cycle of PWM can be programmed by 8-bit registers
> which are defined in the Bank0 CR5A and CR5B" On page 56 you can read:
> "FAN 1 Duty Cycle Select Register-- 01h(Bank0)"

Correct, the datasheet is ambiguous. Quite usual from Winbond anyway.
They cut'n'paste most datasheets from each other and often forget to
change what needs to be.

> I contacted Winbond already to ask which information is right.

Let us know if you have an answer, although you shouldn't hope too much.

> It is fair to assume that the register 0x01 and 0x03 are the right
> ones because the values of the registers 0x01 - 0x04 after power on
> are identical to the defaults printed in the datasheet. Are you really
> sure that you are workink with 0x5A and 0x5B on a W83697HF because in
> your w83627hf.h I found:
> 
> #define W83697HF_REG_PWMCLK1		0x00
> #define W83627THF_REG_PWM1		0x01	/* 697HF too */
> #define W83697HF_REG_PWMCLK2		0x02
> #define W83627THF_REG_PWM2		0x03	/* 697HF too */

You're correct once again. I clearly need some rest or something. I
can't pretend our code actually works, I just thought that we would have
had complaints if it didn't. To make it clear, I don't own such a chip
myself, or I would have tried.

The bad thing here is that this doesn't leave much hope that you'll be
able to get PWM to work on your system. All I can think of is that you
need register 0x04 to be correctly configured for it to work (0x00,
which is the default value, is what you want according to the
datasheet). If you already have tried that (and I guess you did) and it
didn't help, there's nothing else I can think of, sorry.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

  parent reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 PWM on a W83697HF Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare [this message]
2005-05-19  6:24 ` Jean Delvare

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=20040324223023.307f706a.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.