From: Minda Chen <minda.chen@starfivetech.com>
To: opensbi@lists.infradead.org
Subject: [PATCH v3 0/2] Add StarFive JH7110 SoC shutdown and reboot ops
Date: Thu, 9 Mar 2023 14:19:57 +0800 [thread overview]
Message-ID: <20230309061959.10916-1-minda.chen@starfivetech.com> (raw)
Test board is JH7110 visionfive v2 board. shutdown and reboot function
require to access axp15060 PMIC through i2c.
patch1 is i2c driver. i2c ip is designware. dw_i2c.c includes designware
i2c minimal driver which can be used by other platform.
fdt_i2c_dw.c parse i2c register base and other information.
patch2 is JH7110 visionfive2 board reboot and shutdown ops.
The i2c clk will be disabled by kernel i2c driver in power off progress
(suspend ops).
Before access PMIC control bits to reboot or shutdown. Require
to set off device power domain in JH7110 SoC power management unit.
For more JH7110 and visionFive v2 information and support,
you can visit RVspace wiki[2].
[2] https://wiki.rvspace.org/
Changes in v3
patch1
- Remove the redundant bottom new line in fdt_i2c_dw.c
- Change the subject prefix to "platform: starfive"
Changes in v2
patch1
- Rename fdt_i2c_starfive.c to fdt_i2c_dw.c
- Replace prefix of the macros and variables 'starfive' to 'fdt_dw' in
fdt_i2c_dw.c
- Replace FDT_I2C_STARFIVE to FDT_I2C_DW in i2c object.mk and Kconfig
patch2
- Replace CONFIG_FDT_I2C_STARFIVE to CONFIG_FDT_I2C_DW in defconfig
Minda Chen (2):
lib: utils/i2c: Add minimal StarFive jh7110 I2C driver
platform: starfive: add PMIC power ops in JH7110 visionfive2 board
include/sbi_utils/i2c/dw_i2c.h | 21 +++
lib/utils/i2c/Kconfig | 8 +
lib/utils/i2c/dw_i2c.c | 190 ++++++++++++++++++++
lib/utils/i2c/fdt_i2c_dw.c | 62 +++++++
lib/utils/i2c/objects.mk | 5 +
platform/generic/configs/defconfig | 1 +
platform/generic/starfive/jh7110.c | 272 +++++++++++++++++++++++++++++
7 files changed, 559 insertions(+)
create mode 100644 include/sbi_utils/i2c/dw_i2c.h
create mode 100644 lib/utils/i2c/dw_i2c.c
create mode 100644 lib/utils/i2c/fdt_i2c_dw.c
--
2.17.1
next reply other threads:[~2023-03-09 6:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 6:19 Minda Chen [this message]
2023-03-09 6:19 ` [PATCH v3 1/2] lib: utils/i2c: Add minimal StarFive jh7110 I2C driver Minda Chen
2023-03-09 15:49 ` Anup Patel
2023-03-09 6:19 ` [PATCH v3 2/2] platform: starfive: add PMIC power ops in JH7110 visionfive2 board Minda Chen
2023-03-09 15:50 ` Anup Patel
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=20230309061959.10916-1-minda.chen@starfivetech.com \
--to=minda.chen@starfivetech.com \
--cc=opensbi@lists.infradead.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.