Skip to content

Commit

Permalink
pinctrl: starfive: Rename "pinctrl-starfive" to "pinctrl-starfive-jh7…
Browse files Browse the repository at this point in the history
…100"

Add the SoC name to make it more clear. Also the next generation StarFive
SoCs will use "pinctrl-starfive" as the core of StarFive pinctrl driver.
No functional change.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@linux.starfivetech.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220930061404.5418-1-hal.feng@linux.starfivetech.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
jianlonghuang authored and linusw committed Oct 4, 2022
1 parent ba7fdf8 commit ba99b75
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ examples:
- |
#include <dt-bindings/clock/starfive-jh7100.h>
#include <dt-bindings/reset/starfive-jh7100.h>
#include <dt-bindings/pinctrl/pinctrl-starfive.h>
#include <dt-bindings/pinctrl/pinctrl-starfive-jh7100.h>
soc {
#address-cells = <2>;
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "jh7100.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/pinctrl-starfive.h>
#include <dt-bindings/pinctrl/pinctrl-starfive-jh7100.h>

/ {
model = "BeagleV Starlight Beta";
Expand Down
2 changes: 1 addition & 1 deletion drivers/pinctrl/starfive/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only

config PINCTRL_STARFIVE
config PINCTRL_STARFIVE_JH7100
tristate "Pinctrl and GPIO driver for the StarFive JH7100 SoC"
depends on SOC_STARFIVE || COMPILE_TEST
depends on OF
Expand Down
2 changes: 1 addition & 1 deletion drivers/pinctrl/starfive/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_PINCTRL_STARFIVE) += pinctrl-starfive.o
obj-$(CONFIG_PINCTRL_STARFIVE_JH7100) += pinctrl-starfive-jh7100.o
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinmux.h>

#include <dt-bindings/pinctrl/pinctrl-starfive.h>
#include <dt-bindings/pinctrl/pinctrl-starfive-jh7100.h>

#include "../core.h"
#include "../pinctrl-utils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Copyright (C) 2021 Emil Renner Berthing <kernel@esmil.dk>
*/

#ifndef __DT_BINDINGS_PINCTRL_STARFIVE_H__
#define __DT_BINDINGS_PINCTRL_STARFIVE_H__
#ifndef __DT_BINDINGS_PINCTRL_STARFIVE_JH7100_H__
#define __DT_BINDINGS_PINCTRL_STARFIVE_JH7100_H__

#define PAD_GPIO_OFFSET 0
#define PAD_FUNC_SHARE_OFFSET 64
Expand Down Expand Up @@ -272,4 +272,4 @@

#define GPI_NONE 0xff

#endif /* __DT_BINDINGS_PINCTRL_STARFIVE_H__ */
#endif /* __DT_BINDINGS_PINCTRL_STARFIVE_JH7100_H__ */

0 comments on commit ba99b75

Please sign in to comment.