From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Jim Liu <jim.t90615@gmail.com>
Cc: JJLIU0@nuvoton.com, KWLIU@nuvoton.com, linus.walleij@linaro.org,
brgl@bgdev.pl, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
openbmc@lists.ozlabs.org
Subject: Re: [PATCH v4 3/3] dt-bindings: gpio: add NPCM sgpio driver bindings
Date: Mon, 13 Mar 2023 13:30:16 +0100 [thread overview]
Message-ID: <0499e6e7-ab4e-3e7a-d6de-0979bd0d8cc8@linaro.org> (raw)
In-Reply-To: <CAKUZ0+HiR+GDG4EP8nxyVVMQrkotvyQP3N3Rs7+3d2aTLEtMoA@mail.gmail.com>
On 13/03/2023 11:38, Jim Liu wrote:
> Hi Krzysztof
>
> Sorry for the mistake.
> I think I need to explain more details about the clock.
It's still top-posting.
>
> The NPCM7xx / NPCM8xx SGPIO feature have 4 pins.
> picture is as below:
> https://drive.google.com/file/d/1E9i_Avh-AZV9IEZO1HLMT4EtgCBe46OV/view?usp=sharing
>
> The clock is generated from npcm7xx APB.
> The bus frequency is derived from npcm7xx APB not HC595/HC165.
> Users can connect 1~8 HC595 on DOUT pin to decode the serial data for
> HC595 A~H pin
> and can connect 1~8 HC165 on DIN pin to encode the serial data to
> send to NPCM7xx.
>
> The test device is as below:
> https://pdf1.alldatasheet.com/datasheet-pdf/view/345467/TI/SN74HC595N.html
> https://pdf1.alldatasheet.com/datasheet-pdf/view/27899/TI/SN74HC165N.html
>
> NPCM7xx/NPCM8xx have two sgpio modules;
> each module can support up to 64 output pins,and up to 64 input pins.
> If the user needs 64 output pins , user needs to connect 8 HC595.
> If the user needs 64 input pins , user needs to connect 8 HC165.
>
> the HC595 and HC165 connect is as below:
> NPCM7xx_DOUT -> HC595 SER pin
> NPCM7xx_SCLK -> HC595 SRCLK pin
> NPCM7xx_LDSH -> HC595 RCLK pin
>
> NPCM7xx_SCLK -> HC165 CLK pin
> NPCM7xx_LDSH -> HC165 SH/LD pin
> NPCM7xx_DIN -> HC165 QH pin
>
> The frequency is not derived from the input clock. so i think maybe
> the yaml needs to describe it.
That's not what your code was saying. It said:
"Directly connected to APB bus and its shift clock is from APB bus clock
divided by a programmable value."
> if yaml file still didn't need please let me know.
Now read the description of bus-frequency:
"Legacy property for fixed bus frequencies"
Don't add legacy properties to new bindings. You have
assigned-clock-rates and clocks properties.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-03-13 12:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 8:32 [PATCH v4 0/3] Add Nuvoton NPCM SGPIO feature Jim Liu
2023-01-10 8:32 ` [PATCH v4 1/3] gpio: nuvoton: Add Nuvoton NPCM sgpio driver Jim Liu
2023-01-18 15:03 ` Bartosz Golaszewski
2023-01-10 8:32 ` [PATCH v4 2/3] arm: dts: nuvoton: npcm: Add sgpio feature Jim Liu
2023-01-11 9:56 ` kernel test robot
2023-01-10 8:32 ` [PATCH v4 3/3] dt-bindings: gpio: add NPCM sgpio driver bindings Jim Liu
2023-01-10 10:35 ` Krzysztof Kozlowski
2023-03-13 10:38 ` Jim Liu
2023-03-13 12:30 ` Krzysztof Kozlowski [this message]
2023-01-10 13:29 ` Rob Herring
2023-03-13 8:54 ` Jim Liu
2023-03-13 9:23 ` Krzysztof Kozlowski
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=0499e6e7-ab4e-3e7a-d6de-0979bd0d8cc8@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=JJLIU0@nuvoton.com \
--cc=KWLIU@nuvoton.com \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=jim.t90615@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=robh+dt@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).