linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support
@ 2025-12-16 11:20 Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 1/7] pinctrl: rockchip: Add rk3506 pinctrl support Ye Zhang
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

This series adds pinctrl support for the Rockchip RK3506 and RV1126B SoC,
and adds support for RMIO (Rockchip Matrix I/O).

The series includes:
- RK3506 pinctrl driver implementation
- RV1126B pinctrl driver implementation
- RMIO controller binding and driver support
- GPIO driver update to support new version GPIO

Note on grouping:
The RV1126B support patches are included in this series because the RV1126B
pinctrl driver implementation depends on the PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS
macro, which is introduced in the RK3506 support patches. Splitting these
patches into separate series would break the build for RV1126B if applied
independently.

Changes in v3:
- Drop already merged patches (rk3506 basic support).
- Remove unhelpful mappings in rockchip,rk3506-rmio.h
- Improve YAML schema: fix constraints and examples for RMIO.

Changes in v2:
- Added RV1126B pinctrl support (patches 3 and 4)
- Updated GPIO driver to support new version GPIO (patch 5)
- Added header file for RK3506 RMIO (patch 6)
- RMIO is now implemented as a separate pinctrl device (patches 7, 8)

Ye Zhang (7):
  pinctrl: rockchip: Add rk3506 pinctrl support
  dt-bindings: pinctrl: Add rv1126b pinctrl support
  pinctrl: rockchip: Add rv1126b pinctrl support
  arm64: dts: rockchip: rv1126b: Add pinconf and pinctrl dtsi for
    rv1126b
  gpio: rockchip: support new version GPIO
  dt-bindings: pinctrl: rockchip: Add RMIO controller binding
  pinctrl: rockchip: add rmio support

 .../bindings/pinctrl/rockchip,pinctrl.yaml    |   10 +
 .../bindings/pinctrl/rockchip,rmio.yaml       |  106 +
 .../boot/dts/rockchip/rv1126b-pinconf.dtsi    |  660 ++++
 .../boot/dts/rockchip/rv1126b-pinctrl.dtsi    | 3218 +++++++++++++++++
 drivers/gpio/gpio-rockchip.c                  |    2 +
 drivers/pinctrl/pinctrl-rockchip.c            | 1192 +++++-
 drivers/pinctrl/pinctrl-rockchip.h            |   47 +
 .../pinctrl/rockchip,rk3506-rmio.h            |  109 +
 8 files changed, 5250 insertions(+), 94 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
 create mode 100644 arch/arm64/boot/dts/rockchip/rv1126b-pinconf.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rv1126b-pinctrl.dtsi
 create mode 100644 include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v3 1/7] pinctrl: rockchip: Add rk3506 pinctrl support
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 2/7] dt-bindings: pinctrl: Add rv1126b " Ye Zhang
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

Add pinctrl support for the Rockchip RK3506 SoC, including:

1. Driver support for the 5 GPIO banks
2. Device tree binding compatible string

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
---
 drivers/pinctrl/pinctrl-rockchip.c | 442 ++++++++++++++++++++++++++++-
 drivers/pinctrl/pinctrl-rockchip.h |   4 +
 2 files changed, 438 insertions(+), 8 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c
index 7a68a6237649..e44ef262beec 100644
--- a/drivers/pinctrl/pinctrl-rockchip.c
+++ b/drivers/pinctrl/pinctrl-rockchip.c
@@ -105,6 +105,29 @@
 		.pull_type[3] = pull3,					\
 	}
 
+#define PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS(id, pins, label, iom0,	\
+					       iom1, iom2, iom3,	\
+					       offset0, offset1,	\
+					       offset2, offset3, drv0,	\
+					       drv1, drv2, drv3)	\
+	{								\
+		.bank_num	= id,					\
+		.nr_pins	= pins,					\
+		.name		= label,				\
+		.iomux		= {					\
+			{ .type = iom0, .offset = offset0 },		\
+			{ .type = iom1, .offset = offset1 },		\
+			{ .type = iom2, .offset = offset2 },		\
+			{ .type = iom3, .offset = offset3 },		\
+		},							\
+		.drv		= {					\
+			{ .drv_type = drv0, .offset = -1 },		\
+			{ .drv_type = drv1, .offset = -1 },		\
+			{ .drv_type = drv2, .offset = -1 },		\
+			{ .drv_type = drv3, .offset = -1 },		\
+		},							\
+	}
+
 #define PIN_BANK_DRV_FLAGS(id, pins, label, type0, type1, type2, type3) \
 	{								\
 		.bank_num	= id,					\
@@ -233,6 +256,35 @@
 		.pull_type[3] = pull3,					\
 	}
 
+#define PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS_PULL_FLAGS(id, pins,	\
+						label, iom0, iom1,	\
+						iom2, iom3, offset0,	\
+						offset1, offset2,	\
+						offset3, drv0, drv1,	\
+						drv2, drv3, pull0,	\
+						pull1, pull2, pull3)	\
+	{								\
+		.bank_num	= id,					\
+		.nr_pins	= pins,					\
+		.name		= label,				\
+		.iomux		= {					\
+			{ .type = iom0, .offset = offset0 },		\
+			{ .type = iom1, .offset = offset1 },		\
+			{ .type = iom2, .offset = offset2 },		\
+			{ .type = iom3, .offset = offset3 },		\
+		},							\
+		.drv		= {					\
+			{ .drv_type = drv0, .offset = -1 },		\
+			{ .drv_type = drv1, .offset = -1 },		\
+			{ .drv_type = drv2, .offset = -1 },		\
+			{ .drv_type = drv3, .offset = -1 },		\
+		},							\
+		.pull_type[0] = pull0,					\
+		.pull_type[1] = pull1,					\
+		.pull_type[2] = pull2,					\
+		.pull_type[3] = pull3,					\
+	}
+
 #define PIN_BANK_MUX_ROUTE_FLAGS(ID, PIN, FUNC, REG, VAL, FLAG)		\
 	{								\
 		.bank_num	= ID,					\
@@ -1120,6 +1172,13 @@ static int rockchip_get_mux(struct rockchip_pin_bank *bank, int pin)
 	else
 		regmap = info->regmap_base;
 
+	if (ctrl->type == RK3506) {
+		if (bank->bank_num == 1)
+			regmap = info->regmap_ioc1;
+		else if (bank->bank_num == 4)
+			return 0;
+	}
+
 	/* get basic quadrupel of mux registers and the correct reg inside */
 	mux_type = bank->iomux[iomux_num].type;
 	reg = bank->iomux[iomux_num].offset;
@@ -1239,6 +1298,13 @@ static int rockchip_set_mux(struct rockchip_pin_bank *bank, int pin, int mux)
 	else
 		regmap = info->regmap_base;
 
+	if (ctrl->type == RK3506) {
+		if (bank->bank_num == 1)
+			regmap = info->regmap_ioc1;
+		else if (bank->bank_num == 4)
+			return 0;
+	}
+
 	/* get basic quadrupel of mux registers and the correct reg inside */
 	mux_type = bank->iomux[iomux_num].type;
 	reg = bank->iomux[iomux_num].offset;
@@ -2003,6 +2069,262 @@ static int rk3399_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank,
 	return 0;
 }
 
+#define RK3506_DRV_BITS_PER_PIN		8
+#define RK3506_DRV_PINS_PER_REG		2
+#define RK3506_DRV_GPIO0_A_OFFSET	0x100
+#define RK3506_DRV_GPIO0_D_OFFSET	0x830
+#define RK3506_DRV_GPIO1_OFFSET		0x140
+#define RK3506_DRV_GPIO2_OFFSET		0x180
+#define RK3506_DRV_GPIO3_OFFSET		0x1c0
+#define RK3506_DRV_GPIO4_OFFSET		0x840
+
+static int rk3506_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank,
+					int pin_num, struct regmap **regmap,
+					int *reg, u8 *bit)
+{
+	struct rockchip_pinctrl *info = bank->drvdata;
+	int ret = 0;
+
+	switch (bank->bank_num) {
+	case 0:
+		*regmap = info->regmap_pmu;
+		if (pin_num > 24) {
+			ret = -EINVAL;
+		} else if (pin_num < 24) {
+			*reg = RK3506_DRV_GPIO0_A_OFFSET;
+		} else {
+			*reg = RK3506_DRV_GPIO0_D_OFFSET;
+			*bit = 3;
+
+			return 0;
+		}
+		break;
+
+	case 1:
+		*regmap = info->regmap_ioc1;
+		if (pin_num < 28)
+			*reg = RK3506_DRV_GPIO1_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 2:
+		*regmap = info->regmap_base;
+		if (pin_num < 17)
+			*reg = RK3506_DRV_GPIO2_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 3:
+		*regmap = info->regmap_base;
+		if (pin_num < 15)
+			*reg = RK3506_DRV_GPIO3_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 4:
+		*regmap = info->regmap_base;
+		if (pin_num < 8 || pin_num > 11) {
+			ret = -EINVAL;
+		} else {
+			*reg = RK3506_DRV_GPIO4_OFFSET;
+			*bit = 10;
+
+			return 0;
+		}
+		break;
+
+	default:
+		ret = -EINVAL;
+		break;
+	}
+
+	if (ret) {
+		dev_err(info->dev, "unsupported bank_num %d pin_num %d\n", bank->bank_num, pin_num);
+
+		return ret;
+	}
+
+	*reg += ((pin_num / RK3506_DRV_PINS_PER_REG) * 4);
+	*bit = pin_num % RK3506_DRV_PINS_PER_REG;
+	*bit *= RK3506_DRV_BITS_PER_PIN;
+
+	return 0;
+}
+
+#define RK3506_PULL_BITS_PER_PIN	2
+#define RK3506_PULL_PINS_PER_REG	8
+#define RK3506_PULL_GPIO0_A_OFFSET	0x200
+#define RK3506_PULL_GPIO0_D_OFFSET	0x830
+#define RK3506_PULL_GPIO1_OFFSET	0x210
+#define RK3506_PULL_GPIO2_OFFSET	0x220
+#define RK3506_PULL_GPIO3_OFFSET	0x230
+#define RK3506_PULL_GPIO4_OFFSET	0x840
+
+static int rk3506_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank,
+					 int pin_num, struct regmap **regmap,
+					 int *reg, u8 *bit)
+{
+	struct rockchip_pinctrl *info = bank->drvdata;
+	int ret = 0;
+
+	switch (bank->bank_num) {
+	case 0:
+		*regmap = info->regmap_pmu;
+		if (pin_num > 24) {
+			ret = -EINVAL;
+		} else if (pin_num < 24) {
+			*reg = RK3506_PULL_GPIO0_A_OFFSET;
+		} else {
+			*reg = RK3506_PULL_GPIO0_D_OFFSET;
+			*bit = 5;
+
+			return 0;
+		}
+		break;
+
+	case 1:
+		*regmap = info->regmap_ioc1;
+		if (pin_num < 28)
+			*reg = RK3506_PULL_GPIO1_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 2:
+		*regmap = info->regmap_base;
+		if (pin_num < 17)
+			*reg = RK3506_PULL_GPIO2_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 3:
+		*regmap = info->regmap_base;
+		if (pin_num < 15)
+			*reg = RK3506_PULL_GPIO3_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 4:
+		*regmap = info->regmap_base;
+		if (pin_num < 8 || pin_num > 11) {
+			ret = -EINVAL;
+		} else {
+			*reg = RK3506_PULL_GPIO4_OFFSET;
+			*bit = 13;
+
+			return 0;
+		}
+		break;
+
+	default:
+		ret = -EINVAL;
+		break;
+	}
+
+	if (ret) {
+		dev_err(info->dev, "unsupported bank_num %d pin_num %d\n", bank->bank_num, pin_num);
+
+		return ret;
+	}
+
+	*reg += ((pin_num / RK3506_PULL_PINS_PER_REG) * 4);
+	*bit = pin_num % RK3506_PULL_PINS_PER_REG;
+	*bit *= RK3506_PULL_BITS_PER_PIN;
+
+	return 0;
+}
+
+#define RK3506_SMT_BITS_PER_PIN		1
+#define RK3506_SMT_PINS_PER_REG		8
+#define RK3506_SMT_GPIO0_A_OFFSET	0x400
+#define RK3506_SMT_GPIO0_D_OFFSET	0x830
+#define RK3506_SMT_GPIO1_OFFSET		0x410
+#define RK3506_SMT_GPIO2_OFFSET		0x420
+#define RK3506_SMT_GPIO3_OFFSET		0x430
+#define RK3506_SMT_GPIO4_OFFSET		0x840
+
+static int rk3506_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank,
+					   int pin_num,
+					   struct regmap **regmap,
+					   int *reg, u8 *bit)
+{
+	struct rockchip_pinctrl *info = bank->drvdata;
+	int ret = 0;
+
+	switch (bank->bank_num) {
+	case 0:
+		*regmap = info->regmap_pmu;
+		if (pin_num > 24) {
+			ret = -EINVAL;
+		} else if (pin_num < 24) {
+			*reg = RK3506_SMT_GPIO0_A_OFFSET;
+		} else {
+			*reg = RK3506_SMT_GPIO0_D_OFFSET;
+			*bit = 9;
+
+			return 0;
+		}
+		break;
+
+	case 1:
+		*regmap = info->regmap_ioc1;
+		if (pin_num < 28)
+			*reg = RK3506_SMT_GPIO1_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 2:
+		*regmap = info->regmap_base;
+		if (pin_num < 17)
+			*reg = RK3506_SMT_GPIO2_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 3:
+		*regmap = info->regmap_base;
+		if (pin_num < 15)
+			*reg = RK3506_SMT_GPIO3_OFFSET;
+		else
+			ret = -EINVAL;
+		break;
+
+	case 4:
+		*regmap = info->regmap_base;
+		if (pin_num < 8 || pin_num > 11) {
+			ret = -EINVAL;
+		} else {
+			*reg = RK3506_SMT_GPIO4_OFFSET;
+			*bit = 8;
+
+			return 0;
+		}
+		break;
+
+	default:
+		ret = -EINVAL;
+		break;
+	}
+
+	if (ret) {
+		dev_err(info->dev, "unsupported bank_num %d pin_num %d\n", bank->bank_num, pin_num);
+
+		return ret;
+	}
+
+	*reg += ((pin_num / RK3506_SMT_PINS_PER_REG) * 4);
+	*bit = pin_num % RK3506_SMT_PINS_PER_REG;
+	*bit *= RK3506_SMT_BITS_PER_PIN;
+
+	return 0;
+}
+
 #define RK3528_DRV_BITS_PER_PIN		8
 #define RK3528_DRV_PINS_PER_REG		2
 #define RK3528_DRV_GPIO0_OFFSET		0x100
@@ -2749,7 +3071,8 @@ static int rockchip_set_drive_perpin(struct rockchip_pin_bank *bank,
 		rmask_bits = RK3588_DRV_BITS_PER_PIN;
 		ret = strength;
 		goto config;
-	} else if (ctrl->type == RK3528 ||
+	} else if (ctrl->type == RK3506 ||
+		   ctrl->type == RK3528 ||
 		   ctrl->type == RK3562 ||
 		   ctrl->type == RK3568) {
 		rmask_bits = RK3568_DRV_BITS_PER_PIN;
@@ -2828,12 +3151,37 @@ static int rockchip_set_drive_perpin(struct rockchip_pin_bank *bank,
 	case DRV_TYPE_IO_1V8_ONLY:
 		rmask_bits = RK3288_DRV_BITS_PER_PIN;
 		break;
+	case DRV_TYPE_IO_LEVEL_2_BIT:
+		ret = regmap_read(regmap, reg, &data);
+		if (ret)
+			return ret;
+		data >>= bit;
+
+		return data & 0x3;
+	case DRV_TYPE_IO_LEVEL_8_BIT:
+		ret = regmap_read(regmap, reg, &data);
+		if (ret)
+			return ret;
+		data >>= bit;
+		data &= (1 << 8) - 1;
+
+		ret = hweight8(data);
+		if (ret > 0)
+			return ret - 1;
+		else
+			return -EINVAL;
 	default:
 		dev_err(dev, "unsupported pinctrl drive type: %d\n", drv_type);
 		return -EINVAL;
 	}
 
 config:
+	if (ctrl->type == RK3506) {
+		if ((bank->bank_num == 0 && pin_num == 24) || bank->bank_num == 4) {
+			rmask_bits = 2;
+			ret = strength;
+		}
+	}
 	/* enable the write to the equivalent lower bits */
 	data = ((1 << rmask_bits) - 1) << (bit + 16);
 	rmask = data | (data >> 16);
@@ -2957,6 +3305,7 @@ static int rockchip_set_pull(struct rockchip_pin_bank *bank,
 	case RK3328:
 	case RK3368:
 	case RK3399:
+	case RK3506:
 	case RK3528:
 	case RK3562:
 	case RK3568:
@@ -3077,6 +3426,10 @@ static int rockchip_get_schmitt(struct rockchip_pin_bank *bank, int pin_num)
 		break;
 	}
 
+	if (ctrl->type == RK3506)
+		if ((bank->bank_num == 0 && pin_num == 24) ||  bank->bank_num == 4)
+			return data & 0x3;
+
 	return data & 0x1;
 }
 
@@ -3112,6 +3465,14 @@ static int rockchip_set_schmitt(struct rockchip_pin_bank *bank,
 		break;
 	}
 
+	if (ctrl->type == RK3506) {
+		if ((bank->bank_num == 0 && pin_num == 24) || bank->bank_num == 4) {
+			data = 0x3 << (bit + 16);
+			rmask = data | (data >> 16);
+			data |= ((enable ? 0x3 : 0) << bit);
+		}
+	}
+
 	return regmap_update_bits(regmap, reg, rmask, data);
 }
 
@@ -3227,6 +3588,7 @@ static bool rockchip_pinconf_pull_valid(struct rockchip_pin_ctrl *ctrl,
 	case RK3328:
 	case RK3368:
 	case RK3399:
+	case RK3506:
 	case RK3528:
 	case RK3562:
 	case RK3568:
@@ -3880,13 +4242,10 @@ static int rockchip_pinctrl_probe(struct platform_device *pdev)
 	}
 
 	/* try to find the optional reference to the pmu syscon */
-	node = of_parse_phandle(np, "rockchip,pmu", 0);
-	if (node) {
-		info->regmap_pmu = syscon_node_to_regmap(node);
-		of_node_put(node);
-		if (IS_ERR(info->regmap_pmu))
-			return PTR_ERR(info->regmap_pmu);
-	}
+	info->regmap_pmu = syscon_regmap_lookup_by_phandle_optional(np, "rockchip,pmu");
+
+	/* try to find the optional reference to the ioc1 syscon */
+	info->regmap_ioc1 = syscon_regmap_lookup_by_phandle_optional(np, "rockchip,ioc1");
 
 	ret = rockchip_pinctrl_register(pdev, info);
 	if (ret)
@@ -4350,6 +4709,71 @@ static struct rockchip_pin_ctrl rk3399_pin_ctrl = {
 		.drv_calc_reg		= rk3399_calc_drv_reg_and_bit,
 };
 
+static struct rockchip_pin_bank rk3506_pin_banks[] = {
+	PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS_PULL_FLAGS(0, 32, "gpio0",
+				    IOMUX_WIDTH_4BIT | IOMUX_SOURCE_PMU,
+				    IOMUX_WIDTH_4BIT | IOMUX_SOURCE_PMU,
+				    IOMUX_WIDTH_4BIT | IOMUX_SOURCE_PMU,
+				    IOMUX_WIDTH_2BIT | IOMUX_SOURCE_PMU,
+				    0x0, 0x8, 0x10, 0x830,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_2_BIT,
+				    0, 0, 0, 1),
+	PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS(1, 32, "gpio1",
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    0x20, 0x28, 0x30, 0x38,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT),
+	PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS(2, 32, "gpio2",
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    0x40, 0x48, 0x50, 0x58,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT),
+	PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS(3, 32, "gpio3",
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    0x60, 0x68, 0x70, 0x78,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT,
+				    DRV_TYPE_IO_LEVEL_8_BIT),
+	PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS_PULL_FLAGS(4, 32, "gpio4",
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    IOMUX_WIDTH_4BIT,
+				    0x80, 0x88, 0x90, 0x98,
+				    DRV_TYPE_IO_LEVEL_2_BIT,
+				    DRV_TYPE_IO_LEVEL_2_BIT,
+				    DRV_TYPE_IO_LEVEL_2_BIT,
+				    DRV_TYPE_IO_LEVEL_2_BIT,
+				    1, 1, 1, 1),
+};
+
+static struct rockchip_pin_ctrl rk3506_pin_ctrl __maybe_unused = {
+	.pin_banks		= rk3506_pin_banks,
+	.nr_banks		= ARRAY_SIZE(rk3506_pin_banks),
+	.label			= "RK3506-GPIO",
+	.type			= RK3506,
+	.pull_calc_reg		= rk3506_calc_pull_reg_and_bit,
+	.drv_calc_reg		= rk3506_calc_drv_reg_and_bit,
+	.schmitt_calc_reg	= rk3506_calc_schmitt_reg_and_bit,
+};
+
 static struct rockchip_pin_bank rk3528_pin_banks[] = {
 	PIN_BANK_IOMUX_FLAGS_OFFSET(0, 32, "gpio0",
 				    IOMUX_WIDTH_4BIT,
@@ -4560,6 +4984,8 @@ static const struct of_device_id rockchip_pinctrl_dt_match[] = {
 		.data = &rk3368_pin_ctrl },
 	{ .compatible = "rockchip,rk3399-pinctrl",
 		.data = &rk3399_pin_ctrl },
+	{ .compatible = "rockchip,rk3506-pinctrl",
+		.data = &rk3506_pin_ctrl },
 	{ .compatible = "rockchip,rk3528-pinctrl",
 		.data = &rk3528_pin_ctrl },
 	{ .compatible = "rockchip,rk3562-pinctrl",
diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h
index 35cd38079d1e..4f4aff42a80a 100644
--- a/drivers/pinctrl/pinctrl-rockchip.h
+++ b/drivers/pinctrl/pinctrl-rockchip.h
@@ -196,6 +196,7 @@ enum rockchip_pinctrl_type {
 	RK3328,
 	RK3368,
 	RK3399,
+	RK3506,
 	RK3528,
 	RK3562,
 	RK3568,
@@ -260,6 +261,8 @@ enum rockchip_pin_drv_type {
 	DRV_TYPE_IO_1V8_ONLY,
 	DRV_TYPE_IO_1V8_3V0_AUTO,
 	DRV_TYPE_IO_3V3_ONLY,
+	DRV_TYPE_IO_LEVEL_2_BIT,
+	DRV_TYPE_IO_LEVEL_8_BIT,
 	DRV_TYPE_MAX
 };
 
@@ -458,6 +461,7 @@ struct rockchip_pinctrl {
 	int				reg_size;
 	struct regmap			*regmap_pull;
 	struct regmap			*regmap_pmu;
+	struct regmap			*regmap_ioc1;
 	struct device			*dev;
 	struct rockchip_pin_ctrl	*ctrl;
 	struct pinctrl_desc		pctl;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 2/7] dt-bindings: pinctrl: Add rv1126b pinctrl support
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 1/7] pinctrl: rockchip: Add rk3506 pinctrl support Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 3/7] pinctrl: rockchip: " Ye Zhang
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

The RV1126B is a new SoC that is the successor of the RV1126. It has
different pinctrl registers and is not compatible with the RV1126.
Therefore, add a new compatible string for it.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
---
 Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
index 125af766b992..97960245676d 100644
--- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
@@ -51,6 +51,7 @@ properties:
       - rockchip,rk3588-pinctrl
       - rockchip,rv1108-pinctrl
       - rockchip,rv1126-pinctrl
+      - rockchip,rv1126b-pinctrl
 
   rockchip,grf:
     $ref: /schemas/types.yaml#/definitions/phandle
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 3/7] pinctrl: rockchip: Add rv1126b pinctrl support
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 1/7] pinctrl: rockchip: Add rk3506 pinctrl support Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 2/7] dt-bindings: pinctrl: Add rv1126b " Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 4/7] arm64: dts: rockchip: rv1126b: Add pinconf and pinctrl dtsi for rv1126b Ye Zhang
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

Add gpio and pinctrl support for the 8 GPIO banks on RV1126B.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
---
 drivers/pinctrl/pinctrl-rockchip.c | 181 ++++++++++++++++++++++++++++-
 drivers/pinctrl/pinctrl-rockchip.h |   1 +
 2 files changed, 181 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c
index e44ef262beec..dc7ef12dfcb0 100644
--- a/drivers/pinctrl/pinctrl-rockchip.c
+++ b/drivers/pinctrl/pinctrl-rockchip.c
@@ -307,6 +307,20 @@
 #define RK3588_PIN_BANK_FLAGS(ID, PIN, LABEL, M, P)			\
 	PIN_BANK_IOMUX_FLAGS_PULL_FLAGS(ID, PIN, LABEL, M, M, M, M, P, P, P, P)
 
+#define PIN_BANK_IOMUX_4_OFFSET_DRV_8(id, pins, label, offset0,		\
+				      offset1, offset2, offset3)	\
+	PIN_BANK_IOMUX_FLAGS_OFFSET_DRV_FLAGS(id, pins, label,		\
+					      IOMUX_WIDTH_4BIT,		\
+					      IOMUX_WIDTH_4BIT,		\
+					      IOMUX_WIDTH_4BIT,		\
+					      IOMUX_WIDTH_4BIT,		\
+					      offset0, offset1,		\
+					      offset2, offset3,		\
+					      DRV_TYPE_IO_LEVEL_8_BIT,	\
+					      DRV_TYPE_IO_LEVEL_8_BIT,	\
+					      DRV_TYPE_IO_LEVEL_8_BIT,	\
+					      DRV_TYPE_IO_LEVEL_8_BIT)
+
 static struct regmap_config rockchip_regmap_config = {
 	.reg_bits = 32,
 	.val_bits = 32,
@@ -1701,6 +1715,136 @@ static int rv1126_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank,
 	return 0;
 }
 
+#define RV1126B_DRV_BITS_PER_PIN		8
+#define RV1126B_DRV_PINS_PER_REG		2
+#define RV1126B_DRV_GPIO0_A_OFFSET		0x100
+#define RV1126B_DRV_GPIO0_C_OFFSET		0x8120
+#define RV1126B_DRV_GPIO_OFFSET(GPION)		(0x8100 + GPION * 0x8040)
+
+static int rv1126b_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank,
+				       int pin_num, struct regmap **regmap,
+				       int *reg, u8 *bit)
+{
+	struct rockchip_pinctrl *info = bank->drvdata;
+
+	*regmap = info->regmap_base;
+	switch (bank->bank_num) {
+	case 0:
+		if (pin_num < 16)
+			*reg = RV1126B_DRV_GPIO0_A_OFFSET;
+		else
+			*reg = RV1126B_DRV_GPIO0_C_OFFSET - 0x20;
+		break;
+
+	case 1:
+	case 2:
+	case 3:
+	case 4:
+	case 5:
+	case 6:
+	case 7:
+		*reg = RV1126B_DRV_GPIO_OFFSET(bank->bank_num);
+		break;
+
+	default:
+		dev_err(info->dev, "unsupported bank_num %d\n", bank->bank_num);
+		break;
+	}
+
+	*reg += ((pin_num / RV1126B_DRV_PINS_PER_REG) * 4);
+	*bit = pin_num % RV1126B_DRV_PINS_PER_REG;
+	*bit *= RV1126B_DRV_BITS_PER_PIN;
+
+	return 0;
+}
+
+#define RV1126B_PULL_BITS_PER_PIN		2
+#define RV1126B_PULL_PINS_PER_REG		8
+#define RV1126B_PULL_GPIO0_A_OFFSET		0x300
+#define RV1126B_PULL_GPIO0_C_OFFSET		0x8308
+#define RV1126B_PULL_GPIO_OFFSET(GPION)		(0x8300 + GPION * 0x8010)
+
+static int rv1126b_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank,
+					int pin_num, struct regmap **regmap,
+					int *reg, u8 *bit)
+{
+	struct rockchip_pinctrl *info = bank->drvdata;
+
+	*regmap = info->regmap_base;
+	switch (bank->bank_num) {
+	case 0:
+		if (pin_num < 16)
+			*reg = RV1126B_PULL_GPIO0_A_OFFSET;
+		else
+			*reg = RV1126B_PULL_GPIO0_C_OFFSET - 0x8;
+		break;
+
+	case 1:
+	case 2:
+	case 3:
+	case 4:
+	case 5:
+	case 6:
+	case 7:
+		*reg = RV1126B_PULL_GPIO_OFFSET(bank->bank_num);
+		break;
+
+	default:
+		dev_err(info->dev, "unsupported bank_num %d\n", bank->bank_num);
+		break;
+	}
+
+	*reg += ((pin_num / RV1126B_PULL_PINS_PER_REG) * 4);
+	*bit = pin_num % RV1126B_PULL_PINS_PER_REG;
+	*bit *= RV1126B_PULL_BITS_PER_PIN;
+
+	return 0;
+}
+
+#define RV1126B_SMT_BITS_PER_PIN		1
+#define RV1126B_SMT_PINS_PER_REG		8
+#define RV1126B_SMT_GPIO0_A_OFFSET		0x500
+#define RV1126B_SMT_GPIO0_C_OFFSET		0x8508
+#define RV1126B_SMT_GPIO_OFFSET(GPION)		(0x8500 + GPION * 0x8010)
+
+static int rv1126b_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank,
+					   int pin_num,
+					   struct regmap **regmap,
+					   int *reg, u8 *bit)
+{
+	struct rockchip_pinctrl *info = bank->drvdata;
+
+	*regmap = info->regmap_base;
+	switch (bank->bank_num) {
+	case 0:
+		if (pin_num < 16)
+			*reg = RV1126B_SMT_GPIO0_A_OFFSET;
+		else
+			*reg = RV1126B_SMT_GPIO0_C_OFFSET - 0x8;
+		break;
+
+	case 1:
+	case 2:
+	case 3:
+	case 4:
+	case 5:
+	case 6:
+	case 7:
+		*reg = RV1126B_SMT_GPIO_OFFSET(bank->bank_num);
+		break;
+
+	default:
+		dev_err(info->dev, "unsupported bank_num %d\n", bank->bank_num);
+		break;
+	}
+
+	*reg += ((pin_num / RV1126B_SMT_PINS_PER_REG) * 4);
+	*bit = pin_num % RV1126B_SMT_PINS_PER_REG;
+	*bit *= RV1126B_SMT_BITS_PER_PIN;
+
+	return 0;
+}
+
 #define RK3308_SCHMITT_PINS_PER_REG		8
 #define RK3308_SCHMITT_BANK_STRIDE		16
 #define RK3308_SCHMITT_GRF_OFFSET		0x1a0
@@ -3071,7 +3215,8 @@ static int rockchip_set_drive_perpin(struct rockchip_pin_bank *bank,
 		rmask_bits = RK3588_DRV_BITS_PER_PIN;
 		ret = strength;
 		goto config;
-	} else if (ctrl->type == RK3506 ||
+	} else if (ctrl->type == RV1126B ||
+		   ctrl->type == RK3506 ||
 		   ctrl->type == RK3528 ||
 		   ctrl->type == RK3562 ||
 		   ctrl->type == RK3568) {
@@ -3237,6 +3382,7 @@ static int rockchip_get_pull(struct rockchip_pin_bank *bank, int pin_num)
 				: PIN_CONFIG_BIAS_DISABLE;
 	case PX30:
 	case RV1108:
+	case RV1126B:
 	case RK3188:
 	case RK3288:
 	case RK3308:
@@ -3299,6 +3445,7 @@ static int rockchip_set_pull(struct rockchip_pin_bank *bank,
 	case PX30:
 	case RV1108:
 	case RV1126:
+	case RV1126B:
 	case RK3188:
 	case RK3288:
 	case RK3308:
@@ -3582,6 +3729,7 @@ static bool rockchip_pinconf_pull_valid(struct rockchip_pin_ctrl *ctrl,
 	case PX30:
 	case RV1108:
 	case RV1126:
+	case RV1126B:
 	case RK3188:
 	case RK3288:
 	case RK3308:
@@ -4386,6 +4534,35 @@ static struct rockchip_pin_ctrl rv1126_pin_ctrl = {
 	.schmitt_calc_reg	= rv1126_calc_schmitt_reg_and_bit,
 };
 
+static struct rockchip_pin_bank rv1126b_pin_banks[] = {
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(0, 32, "gpio0",
+				      0x0, 0x8, 0x8010, 0x8018),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(1, 32, "gpio1",
+				      0x10020, 0x10028, 0x10030, 0x10038),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(2, 32, "gpio2",
+				      0x18040, 0x18048, 0x18050, 0x18058),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(3, 32, "gpio3",
+				      0x20060, 0x20068, 0x20070, 0x20078),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(4, 32, "gpio4",
+				      0x28080, 0x28088, 0x28090, 0x28098),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(5, 32, "gpio5",
+				      0x300a0, 0x300a8, 0x300b0, 0x300b8),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(6, 32, "gpio6",
+				      0x380c0, 0x380c8, 0x380d0, 0x380d8),
+	PIN_BANK_IOMUX_4_OFFSET_DRV_8(7, 32, "gpio7",
+				      0x400e0, 0x400e8, 0x400f0, 0x400f8),
+};
+
+static struct rockchip_pin_ctrl rv1126b_pin_ctrl __maybe_unused = {
+	.pin_banks		= rv1126b_pin_banks,
+	.nr_banks		= ARRAY_SIZE(rv1126b_pin_banks),
+	.label			= "RV1126B-GPIO",
+	.type			= RV1126B,
+	.pull_calc_reg		= rv1126b_calc_pull_reg_and_bit,
+	.drv_calc_reg		= rv1126b_calc_drv_reg_and_bit,
+	.schmitt_calc_reg	= rv1126b_calc_schmitt_reg_and_bit,
+};
+
 static struct rockchip_pin_bank rk2928_pin_banks[] = {
 	PIN_BANK(0, 32, "gpio0"),
 	PIN_BANK(1, 32, "gpio1"),
@@ -4960,6 +5137,8 @@ static const struct of_device_id rockchip_pinctrl_dt_match[] = {
 		.data = &rv1108_pin_ctrl },
 	{ .compatible = "rockchip,rv1126-pinctrl",
 		.data = &rv1126_pin_ctrl },
+	{ .compatible = "rockchip,rv1126b-pinctrl",
+		.data = &rv1126b_pin_ctrl },
 	{ .compatible = "rockchip,rk2928-pinctrl",
 		.data = &rk2928_pin_ctrl },
 	{ .compatible = "rockchip,rk3036-pinctrl",
diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h
index 4f4aff42a80a..fe18b62ed994 100644
--- a/drivers/pinctrl/pinctrl-rockchip.h
+++ b/drivers/pinctrl/pinctrl-rockchip.h
@@ -187,6 +187,7 @@ enum rockchip_pinctrl_type {
 	PX30,
 	RV1108,
 	RV1126,
+	RV1126B,
 	RK2928,
 	RK3066B,
 	RK3128,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 4/7] arm64: dts: rockchip: rv1126b: Add pinconf and pinctrl dtsi for rv1126b
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
                   ` (2 preceding siblings ...)
  2025-12-16 11:20 ` [PATCH v3 3/7] pinctrl: rockchip: " Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 5/7] gpio: rockchip: support new version GPIO Ye Zhang
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

Add the core pinctrl device tree node and pin definitions for the
Rockchip RV1126B SoC.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
---
 .../boot/dts/rockchip/rv1126b-pinconf.dtsi    |  660 ++++
 .../boot/dts/rockchip/rv1126b-pinctrl.dtsi    | 3218 +++++++++++++++++
 2 files changed, 3878 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rv1126b-pinconf.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rv1126b-pinctrl.dtsi

diff --git a/arch/arm64/boot/dts/rockchip/rv1126b-pinconf.dtsi b/arch/arm64/boot/dts/rockchip/rv1126b-pinconf.dtsi
new file mode 100644
index 000000000000..0eacbf17a5fe
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rv1126b-pinconf.dtsi
@@ -0,0 +1,660 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Rockchip Electronics Co., Ltd.
+ */
+
+&pinctrl {
+	/omit-if-no-ref/
+	pcfg_pull_up: pcfg-pull-up {
+		bias-pull-up;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down: pcfg-pull-down {
+		bias-pull-down;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none: pcfg-pull-none {
+		bias-disable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_0_25: pcfg-pull-none-drv-level-0-25 {
+		bias-disable;
+		drive-strength = <0x01>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_0_50: pcfg-pull-none-drv-level-0-50 {
+		bias-disable;
+		drive-strength = <0x02>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_0_75: pcfg-pull-none-drv-level-0-75 {
+		bias-disable;
+		drive-strength = <0x03>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_00: pcfg-pull-none-drv-level-1-00 {
+		bias-disable;
+		drive-strength = <0x04>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_25: pcfg-pull-none-drv-level-1-25 {
+		bias-disable;
+		drive-strength = <0x05>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_50: pcfg-pull-none-drv-level-1-50 {
+		bias-disable;
+		drive-strength = <0x06>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_75: pcfg-pull-none-drv-level-1-75 {
+		bias-disable;
+		drive-strength = <0x07>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_00: pcfg-pull-none-drv-level-2-00 {
+		bias-disable;
+		drive-strength = <0x0c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_25: pcfg-pull-none-drv-level-2-25 {
+		bias-disable;
+		drive-strength = <0x0d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_50: pcfg-pull-none-drv-level-2-50 {
+		bias-disable;
+		drive-strength = <0x0e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_75: pcfg-pull-none-drv-level-2-75 {
+		bias-disable;
+		drive-strength = <0x0f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_00: pcfg-pull-none-drv-level-3-00 {
+		bias-disable;
+		drive-strength = <0x1c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_25: pcfg-pull-none-drv-level-3-25 {
+		bias-disable;
+		drive-strength = <0x1d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_50: pcfg-pull-none-drv-level-3-50 {
+		bias-disable;
+		drive-strength = <0x1e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_75: pcfg-pull-none-drv-level-3-75 {
+		bias-disable;
+		drive-strength = <0x1f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_00: pcfg-pull-none-drv-level-4-00 {
+		bias-disable;
+		drive-strength = <0x2c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_25: pcfg-pull-none-drv-level-4-25 {
+		bias-disable;
+		drive-strength = <0x2d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_50: pcfg-pull-none-drv-level-4-50 {
+		bias-disable;
+		drive-strength = <0x2e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_75: pcfg-pull-none-drv-level-4-75 {
+		bias-disable;
+		drive-strength = <0x2f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_00: pcfg-pull-none-drv-level-5-00 {
+		bias-disable;
+		drive-strength = <0x3c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_25: pcfg-pull-none-drv-level-5-25 {
+		bias-disable;
+		drive-strength = <0x3d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_50: pcfg-pull-none-drv-level-5-50 {
+		bias-disable;
+		drive-strength = <0x3e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_75: pcfg-pull-none-drv-level-5-75 {
+		bias-disable;
+		drive-strength = <0x3f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_0_25: pcfg-pull-up-drv-level-0-25 {
+		bias-pull-up;
+		drive-strength = <0x01>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_0_50: pcfg-pull-up-drv-level-0-50 {
+		bias-pull-up;
+		drive-strength = <0x02>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_0_75: pcfg-pull-up-drv-level-0-75 {
+		bias-pull-up;
+		drive-strength = <0x03>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_1_00: pcfg-pull-up-drv-level-1-00 {
+		bias-pull-up;
+		drive-strength = <0x04>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_1_25: pcfg-pull-up-drv-level-1-25 {
+		bias-pull-up;
+		drive-strength = <0x05>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_1_50: pcfg-pull-up-drv-level-1-50 {
+		bias-pull-up;
+		drive-strength = <0x06>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_1_75: pcfg-pull-up-drv-level-1-75 {
+		bias-pull-up;
+		drive-strength = <0x07>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_2_00: pcfg-pull-up-drv-level-2-00 {
+		bias-pull-up;
+		drive-strength = <0x0c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_2_25: pcfg-pull-up-drv-level-2-25 {
+		bias-pull-up;
+		drive-strength = <0x0d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_2_50: pcfg-pull-up-drv-level-2-50 {
+		bias-pull-up;
+		drive-strength = <0x0e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_2_75: pcfg-pull-up-drv-level-2-75 {
+		bias-pull-up;
+		drive-strength = <0x0f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_3_00: pcfg-pull-up-drv-level-3-00 {
+		bias-pull-up;
+		drive-strength = <0x1c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_3_25: pcfg-pull-up-drv-level-3-25 {
+		bias-pull-up;
+		drive-strength = <0x1d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_3_50: pcfg-pull-up-drv-level-3-50 {
+		bias-pull-up;
+		drive-strength = <0x1e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_3_75: pcfg-pull-up-drv-level-3-75 {
+		bias-pull-up;
+		drive-strength = <0x1f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_4_00: pcfg-pull-up-drv-level-4-00 {
+		bias-pull-up;
+		drive-strength = <0x2c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_4_25: pcfg-pull-up-drv-level-4-25 {
+		bias-pull-up;
+		drive-strength = <0x2d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_4_50: pcfg-pull-up-drv-level-4-50 {
+		bias-pull-up;
+		drive-strength = <0x2e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_4_75: pcfg-pull-up-drv-level-4-75 {
+		bias-pull-up;
+		drive-strength = <0x2f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_5_00: pcfg-pull-up-drv-level-5-00 {
+		bias-pull-up;
+		drive-strength = <0x3c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_5_25: pcfg-pull-up-drv-level-5-25 {
+		bias-pull-up;
+		drive-strength = <0x3d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_5_50: pcfg-pull-up-drv-level-5-50 {
+		bias-pull-up;
+		drive-strength = <0x3e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_drv_level_5_75: pcfg-pull-up-drv-level-5-75 {
+		bias-pull-up;
+		drive-strength = <0x3f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_0_25: pcfg-pull-down-drv-level-0-25 {
+		bias-pull-down;
+		drive-strength = <0x01>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_0_50: pcfg-pull-down-drv-level-0-50 {
+		bias-pull-down;
+		drive-strength = <0x02>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_0_75: pcfg-pull-down-drv-level-0-75 {
+		bias-pull-down;
+		drive-strength = <0x03>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_1_00: pcfg-pull-down-drv-level-1-00 {
+		bias-pull-down;
+		drive-strength = <0x04>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_1_25: pcfg-pull-down-drv-level-1-25 {
+		bias-pull-down;
+		drive-strength = <0x05>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_1_50: pcfg-pull-down-drv-level-1-50 {
+		bias-pull-down;
+		drive-strength = <0x06>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_1_75: pcfg-pull-down-drv-level-1-75 {
+		bias-pull-down;
+		drive-strength = <0x07>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_2_00: pcfg-pull-down-drv-level-2-00 {
+		bias-pull-down;
+		drive-strength = <0x0c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_2_25: pcfg-pull-down-drv-level-2-25 {
+		bias-pull-down;
+		drive-strength = <0x0d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_2_50: pcfg-pull-down-drv-level-2-50 {
+		bias-pull-down;
+		drive-strength = <0x0e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_2_75: pcfg-pull-down-drv-level-2-75 {
+		bias-pull-down;
+		drive-strength = <0x0f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_3_00: pcfg-pull-down-drv-level-3-00 {
+		bias-pull-down;
+		drive-strength = <0x1c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_3_25: pcfg-pull-down-drv-level-3-25 {
+		bias-pull-down;
+		drive-strength = <0x1d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_3_50: pcfg-pull-down-drv-level-3-50 {
+		bias-pull-down;
+		drive-strength = <0x1e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_3_75: pcfg-pull-down-drv-level-3-75 {
+		bias-pull-down;
+		drive-strength = <0x1f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_4_00: pcfg-pull-down-drv-level-4-00 {
+		bias-pull-down;
+		drive-strength = <0x2c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_4_25: pcfg-pull-down-drv-level-4-25 {
+		bias-pull-down;
+		drive-strength = <0x2d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_4_50: pcfg-pull-down-drv-level-4-50 {
+		bias-pull-down;
+		drive-strength = <0x2e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_4_75: pcfg-pull-down-drv-level-4-75 {
+		bias-pull-down;
+		drive-strength = <0x2f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_5_00: pcfg-pull-down-drv-level-5-00 {
+		bias-pull-down;
+		drive-strength = <0x3c>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_5_25: pcfg-pull-down-drv-level-5-25 {
+		bias-pull-down;
+		drive-strength = <0x3d>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_5_50: pcfg-pull-down-drv-level-5-50 {
+		bias-pull-down;
+		drive-strength = <0x3e>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_drv_level_5_75: pcfg-pull-down-drv-level-5-75 {
+		bias-pull-down;
+		drive-strength = <0x3f>;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_up_smt: pcfg-pull-up-smt {
+		bias-pull-up;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_down_smt: pcfg-pull-down-smt {
+		bias-pull-down;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_smt: pcfg-pull-none-smt {
+		bias-disable;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_0_25_smt: pcfg-pull-none-drv-level-0-25-smt {
+		bias-disable;
+		drive-strength = <0x01>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_0_50_smt: pcfg-pull-none-drv-level-0-50-smt {
+		bias-disable;
+		drive-strength = <0x02>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_0_75_smt: pcfg-pull-none-drv-level-0-75-smt {
+		bias-disable;
+		drive-strength = <0x03>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_00_smt: pcfg-pull-none-drv-level-1-00-smt {
+		bias-disable;
+		drive-strength = <0x04>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_25_smt: pcfg-pull-none-drv-level-1-25-smt {
+		bias-disable;
+		drive-strength = <0x05>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_50_smt: pcfg-pull-none-drv-level-1-50-smt {
+		bias-disable;
+		drive-strength = <0x06>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_1_75_smt: pcfg-pull-none-drv-level-1-75-smt {
+		bias-disable;
+		drive-strength = <0x07>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_00_smt: pcfg-pull-none-drv-level-2-00-smt {
+		bias-disable;
+		drive-strength = <0x0c>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_25_smt: pcfg-pull-none-drv-level-2-25-smt {
+		bias-disable;
+		drive-strength = <0x0d>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_50_smt: pcfg-pull-none-drv-level-2-50-smt {
+		bias-disable;
+		drive-strength = <0x0e>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_2_75_smt: pcfg-pull-none-drv-level-2-75-smt {
+		bias-disable;
+		drive-strength = <0x0f>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_00_smt: pcfg-pull-none-drv-level-3-00-smt {
+		bias-disable;
+		drive-strength = <0x1c>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_25_smt: pcfg-pull-none-drv-level-3-25-smt {
+		bias-disable;
+		drive-strength = <0x1d>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_50_smt: pcfg-pull-none-drv-level-3-50-smt {
+		bias-disable;
+		drive-strength = <0x1e>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_3_75_smt: pcfg-pull-none-drv-level-3-75-smt {
+		bias-disable;
+		drive-strength = <0x1f>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_00_smt: pcfg-pull-none-drv-level-4-00-smt {
+		bias-disable;
+		drive-strength = <0x2c>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_25_smt: pcfg-pull-none-drv-level-4-25-smt {
+		bias-disable;
+		drive-strength = <0x2d>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_50_smt: pcfg-pull-none-drv-level-4-50-smt {
+		bias-disable;
+		drive-strength = <0x2e>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_4_75_smt: pcfg-pull-none-drv-level-4-75-smt {
+		bias-disable;
+		drive-strength = <0x2f>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_00_smt: pcfg-pull-none-drv-level-5-00-smt {
+		bias-disable;
+		drive-strength = <0x3c>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_25_smt: pcfg-pull-none-drv-level-5-25-smt {
+		bias-disable;
+		drive-strength = <0x3d>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_50_smt: pcfg-pull-none-drv-level-5-50-smt {
+		bias-disable;
+		drive-strength = <0x3e>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_pull_none_drv_level_5_75_smt: pcfg-pull-none-drv-level-5-75-smt {
+		bias-disable;
+		drive-strength = <0x3f>;
+		input-schmitt-enable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_high: pcfg-output-high {
+		output-high;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_high_pull_up: pcfg-output-high-pull-up {
+		output-high;
+		bias-pull-up;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_high_pull_down: pcfg-output-high-pull-down {
+		output-high;
+		bias-pull-down;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_high_pull_none: pcfg-output-high-pull-none {
+		output-high;
+		bias-disable;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_low: pcfg-output-low {
+		output-low;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_low_pull_up: pcfg-output-low-pull-up {
+		output-low;
+		bias-pull-up;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_low_pull_down: pcfg-output-low-pull-down {
+		output-low;
+		bias-pull-down;
+	};
+
+	/omit-if-no-ref/
+	pcfg_output_low_pull_none: pcfg-output-low-pull-none {
+		output-low;
+		bias-disable;
+	};
+};
diff --git a/arch/arm64/boot/dts/rockchip/rv1126b-pinctrl.dtsi b/arch/arm64/boot/dts/rockchip/rv1126b-pinctrl.dtsi
new file mode 100644
index 000000000000..f61e7435b4d4
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rv1126b-pinctrl.dtsi
@@ -0,0 +1,3218 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2024 Rockchip Electronics Co., Ltd.
+ */
+
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rv1126b-pinconf.dtsi"
+
+/*
+ * This file is auto generated by pin2dts tool, please keep these code
+ * by adding changes at end of this file.
+ */
+&pinctrl {
+	aupll_clk {
+		/omit-if-no-ref/
+		aupll_clk_pins: aupll-clk-pins {
+			rockchip,pins =
+				/* aupll_clk_in */
+				<7 RK_PA1 1 &pcfg_pull_none>;
+		};
+	};
+
+	cam_clk0 {
+		/omit-if-no-ref/
+		cam_clk0_pins: cam-clk0-pins {
+			rockchip,pins =
+				/* cam_clk0_out */
+				<4 RK_PB1 3 &pcfg_pull_none>;
+		};
+	};
+
+	cam_clk1 {
+		/omit-if-no-ref/
+		cam_clk1_pins: cam-clk1-pins {
+			rockchip,pins =
+				/* cam_clk1_out */
+				<4 RK_PB0 3 &pcfg_pull_none>;
+		};
+	};
+
+	cam_clk2 {
+		/omit-if-no-ref/
+		cam_clk2_pins: cam-clk2-pins {
+			rockchip,pins =
+				/* cam_clk2_out */
+				<4 RK_PA1 3 &pcfg_pull_none>;
+		};
+	};
+
+	cam_clk3 {
+		/omit-if-no-ref/
+		cam_clk3_pins: cam-clk3-pins {
+			rockchip,pins =
+				/* cam_clk3_out */
+				<4 RK_PA0 3 &pcfg_pull_none>;
+		};
+	};
+
+	can0 {
+		/omit-if-no-ref/
+		can0m0_pins: can0m0-pins {
+			rockchip,pins =
+				/* can0_rxd_m0 */
+				<5 RK_PD4 3 &pcfg_pull_none>,
+				/* can0_txd_m0 */
+				<5 RK_PD5 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		can0m1_pins: can0m1-pins {
+			rockchip,pins =
+				/* can0_rxd_m1 */
+				<6 RK_PA0 3 &pcfg_pull_none>,
+				/* can0_txd_m1 */
+				<6 RK_PA1 3 &pcfg_pull_none>;
+		};
+	};
+
+	can1 {
+		/omit-if-no-ref/
+		can1m0_pins: can1m0-pins {
+			rockchip,pins =
+				/* can1_rxd_m0 */
+				<5 RK_PD6 3 &pcfg_pull_none>,
+				/* can1_txd_m0 */
+				<5 RK_PD7 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		can1m1_pins: can1m1-pins {
+			rockchip,pins =
+				/* can1_rxd_m1 */
+				<6 RK_PA2 3 &pcfg_pull_none>,
+				/* can1_txd_m1 */
+				<6 RK_PA3 3 &pcfg_pull_none>;
+		};
+	};
+
+	clk {
+		/omit-if-no-ref/
+		clk_pins: clk-pins {
+			rockchip,pins =
+				/* clk_32k */
+				<0 RK_PA2 2 &pcfg_pull_none>;
+		};
+	};
+
+	dsm_aud {
+		/omit-if-no-ref/
+		dsm_aud_ln_pins: dsm-aud-ln-pins {
+			rockchip,pins =
+				/* dsm_aud_ln */
+				<7 RK_PA3 4 &pcfg_pull_down>;
+		};
+
+		/omit-if-no-ref/
+		dsm_aud_lp_pins: dsm-aud-lp-pins {
+			rockchip,pins =
+				/* dsm_aud_lp */
+				<7 RK_PA5 4 &pcfg_pull_down>;
+		};
+
+		/omit-if-no-ref/
+		dsm_aud_rn_pins: dsm-aud-rn-pins {
+			rockchip,pins =
+				/* dsm_aud_rn */
+				<7 RK_PB0 4 &pcfg_pull_down>;
+		};
+
+		/omit-if-no-ref/
+		dsm_aud_rp_pins: dsm-aud-rp-pins {
+			rockchip,pins =
+				/* dsm_aud_rp */
+				<7 RK_PB1 4 &pcfg_pull_down>;
+		};
+	};
+
+	dsmc {
+		/omit-if-no-ref/
+		dsmc_int_pins: dsmc-int-pins {
+			rockchip,pins =
+				/* dsmc_int0 */
+				<5 RK_PB6 5 &pcfg_pull_down>,
+				/* dsmc_int1 */
+				<5 RK_PB2 5 &pcfg_pull_down>;
+		};
+
+		/omit-if-no-ref/
+		dsmc_clk_pins: dsmc-clk-pins {
+			rockchip,pins =
+				/* dsmc_clkn */
+				<5 RK_PB6 4 &pcfg_pull_up>,
+				/* dsmc_resetn */
+				<5 RK_PB2 4 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		dsmc_csn_pins: dsmc-csn-pins {
+			rockchip,pins =
+				/* dsmc_csn0 */
+				<5 RK_PB4 4 &pcfg_pull_up>,
+				/* dsmc_csn1 */
+				<5 RK_PA0 4 &pcfg_pull_up>,
+				/* dsmc_csn2 */
+				<5 RK_PD1 4 &pcfg_pull_up>,
+				/* dsmc_csn3 */
+				<5 RK_PD0 4 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		dsmc_bus16_pins: dsmc-bus16-pins {
+			rockchip,pins =
+				/* dsmc_clkp */
+				<5 RK_PB7 4 &pcfg_pull_down>,
+				/* dsmc_d0 */
+				<5 RK_PC7 4 &pcfg_pull_down>,
+				/* dsmc_d1 */
+				<5 RK_PC6 4 &pcfg_pull_down>,
+				/* dsmc_d2 */
+				<5 RK_PC5 4 &pcfg_pull_down>,
+				/* dsmc_d3 */
+				<5 RK_PC4 4 &pcfg_pull_down>,
+				/* dsmc_d4 */
+				<5 RK_PC3 4 &pcfg_pull_down>,
+				/* dsmc_d5 */
+				<5 RK_PC2 4 &pcfg_pull_down>,
+				/* dsmc_d6 */
+				<5 RK_PC1 4 &pcfg_pull_down>,
+				/* dsmc_d7 */
+				<5 RK_PC0 4 &pcfg_pull_down>,
+				/* dsmc_d8 */
+				<5 RK_PB1 4 &pcfg_pull_down>,
+				/* dsmc_d9 */
+				<5 RK_PB0 4 &pcfg_pull_down>,
+				/* dsmc_d10 */
+				<5 RK_PA7 4 &pcfg_pull_down>,
+				/* dsmc_d11 */
+				<5 RK_PA6 4 &pcfg_pull_down>,
+				/* dsmc_d12 */
+				<5 RK_PA5 4 &pcfg_pull_down>,
+				/* dsmc_d13 */
+				<5 RK_PA4 4 &pcfg_pull_down>,
+				/* dsmc_d14 */
+				<5 RK_PA3 4 &pcfg_pull_down>,
+				/* dsmc_d15 */
+				<5 RK_PA2 4 &pcfg_pull_down>,
+				/* dsmc_dqs0 */
+				<5 RK_PB5 4 &pcfg_pull_down>,
+				/* dsmc_dqs1 */
+				<5 RK_PA1 4 &pcfg_pull_down>,
+				/* dsmc_int2 */
+				<5 RK_PD3 4 &pcfg_pull_down>,
+				/* dsmc_int3 */
+				<5 RK_PD2 4 &pcfg_pull_down>,
+				/* dsmc_rdyn */
+				<5 RK_PB3 4 &pcfg_pull_down>;
+		};
+	};
+
+	emmc {
+		/omit-if-no-ref/
+		emmc_pins: emmc-pins {
+			rockchip,pins =
+				/* emmc_clk */
+				<1 RK_PB3 1 &pcfg_pull_none>,
+				/* emmc_cmd */
+				<1 RK_PB1 1 &pcfg_pull_none>,
+				/* emmc_d0 */
+				<1 RK_PA0 1 &pcfg_pull_none>,
+				/* emmc_d1 */
+				<1 RK_PA1 1 &pcfg_pull_none>,
+				/* emmc_d2 */
+				<1 RK_PA2 1 &pcfg_pull_none>,
+				/* emmc_d3 */
+				<1 RK_PA3 1 &pcfg_pull_none>,
+				/* emmc_d4 */
+				<1 RK_PA4 1 &pcfg_pull_none>,
+				/* emmc_d5 */
+				<1 RK_PA5 1 &pcfg_pull_none>,
+				/* emmc_d6 */
+				<1 RK_PA6 1 &pcfg_pull_none>,
+				/* emmc_d7 */
+				<1 RK_PA7 1 &pcfg_pull_none>;
+		};
+	};
+
+	eth {
+		/omit-if-no-ref/
+		ethm0_miim_pins: ethm0-miim-pins {
+			rockchip,pins =
+				/* eth_mdc_m0 */
+				<6 RK_PC0 2 &pcfg_pull_none_drv_level_3_75>,
+				/* eth_mdio_m0 */
+				<6 RK_PB7 2 &pcfg_pull_none_drv_level_3_75>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_mclk_pins: ethm0-mclk-pins {
+			rockchip,pins =
+				/* eth_mclk_m0 */
+				<6 RK_PB4 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_rx_bus2_pins: ethm0-rx-bus2-pins {
+			rockchip,pins =
+				/* eth_rxctl_m0 */
+				<6 RK_PB5 2 &pcfg_pull_none>,
+				/* eth_rxd0_m0 */
+				<6 RK_PB2 2 &pcfg_pull_none>,
+				/* eth_rxd1_m0 */
+				<6 RK_PB3 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_tx_bus2_pins: ethm0-tx-bus2-pins {
+			rockchip,pins =
+				/* eth_txctl_m0 */
+				<6 RK_PB1 2 &pcfg_pull_none>,
+				/* eth_txd0_m0 */
+				<6 RK_PA7 2 &pcfg_pull_none_drv_level_3_75>,
+				/* eth_txd1_m0 */
+				<6 RK_PB0 2 &pcfg_pull_none_drv_level_3_75>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_rgmii_clk_pins: ethm0-rgmii-clk-pins {
+			rockchip,pins =
+				/* eth_rxclk_m0 */
+				<6 RK_PC3 2 &pcfg_pull_none>,
+				/* eth_txclk_m0 */
+				<6 RK_PC2 2 &pcfg_pull_none_drv_level_3_75>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_rgmii_bus_pins: ethm0-rgmii-bus-pins {
+			rockchip,pins =
+				/* eth_rxd2_m0 */
+				<6 RK_PA3 2 &pcfg_pull_none>,
+				/* eth_rxd3_m0 */
+				<6 RK_PA4 2 &pcfg_pull_none>,
+				/* eth_txd2_m0 */
+				<6 RK_PA5 2 &pcfg_pull_none_drv_level_3_75>,
+				/* eth_txd3_m0 */
+				<6 RK_PA6 2 &pcfg_pull_none_drv_level_3_75>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_ppsclk_pins: ethm0-ppsclk-pins {
+			rockchip,pins =
+				/* eth_ppsclk_m0 */
+				<6 RK_PA2 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm0_ppstrig_pins: ethm0-ppstrig-pins {
+			rockchip,pins =
+				/* eth_ppstrig_m0 */
+				<6 RK_PA0 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_miim_pins: ethm1-miim-pins {
+			rockchip,pins =
+				/* eth_mdc_m1 */
+				<5 RK_PB6 2 &pcfg_pull_none_drv_level_5_00>,
+				/* eth_mdio_m1 */
+				<5 RK_PB5 2 &pcfg_pull_none_drv_level_5_00>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_mclk_pins: ethm1-mclk-pins {
+			rockchip,pins =
+				/* eth_mclk_m1 */
+				<5 RK_PB3 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_rx_bus2_pins: ethm1-rx-bus2-pins {
+			rockchip,pins =
+				/* eth_rxctl_m1 */
+				<5 RK_PB0 2 &pcfg_pull_none>,
+				/* eth_rxd0_m1 */
+				<5 RK_PB1 2 &pcfg_pull_none>,
+				/* eth_rxd1_m1 */
+				<5 RK_PB2 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_tx_bus2_pins: ethm1-tx-bus2-pins {
+			rockchip,pins =
+				/* eth_txctl_m1 */
+				<5 RK_PC2 2 &pcfg_pull_none>,
+				/* eth_txd0_m1 */
+				<5 RK_PB7 2 &pcfg_pull_none_drv_level_5_00>,
+				/* eth_txd1_m1 */
+				<5 RK_PC0 2 &pcfg_pull_none_drv_level_5_00>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_rgmii_clk_pins: ethm1-rgmii-clk-pins {
+			rockchip,pins =
+				/* eth_rxclk_m1 */
+				<5 RK_PC7 2 &pcfg_pull_none>,
+				/* eth_txclk_m1 */
+				<5 RK_PC6 2 &pcfg_pull_none_drv_level_5_00>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_rgmii_bus_pins: ethm1-rgmii-bus-pins {
+			rockchip,pins =
+				/* eth_rxd2_m1 */
+				<5 RK_PC3 2 &pcfg_pull_none>,
+				/* eth_rxd3_m1 */
+				<5 RK_PC4 2 &pcfg_pull_none>,
+				/* eth_txd2_m1 */
+				<5 RK_PC5 2 &pcfg_pull_none_drv_level_5_00>,
+				/* eth_txd3_m1 */
+				<5 RK_PA0 2 &pcfg_pull_none_drv_level_5_00>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_ppsclk_pins: ethm1-ppsclk-pins {
+			rockchip,pins =
+				/* eth_ppsclk_m1 */
+				<5 RK_PA2 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_ppstrig_pins: ethm1-ppstrig-pins {
+			rockchip,pins =
+				/* eth_ppstrig_m1 */
+				<5 RK_PD1 3 &pcfg_pull_none>;
+		};
+	};
+
+	eth_clk_25m {
+		/omit-if-no-ref/
+		eth_clk_25mm0_out_pins: eth-clk-25mm0-out-pins {
+			rockchip,pins =
+				/* eth_clk_25m_out_m0 */
+				<6 RK_PC1 2 &pcfg_pull_none_drv_level_3_75>;
+		};
+
+		/omit-if-no-ref/
+		eth_clk_25mm1_out_pins: eth-clk-25mm1-out-pins {
+			rockchip,pins =
+				/* eth_clk_25m_out_m1 */
+				<5 RK_PC1 2 &pcfg_pull_none_drv_level_5_00>;
+		};
+	};
+
+	eth_ptp {
+		/omit-if-no-ref/
+		ethm0_ptp_refclk_pins: ethm0-ptp-refclk-pins {
+			rockchip,pins =
+				/* ethm0_ptp_refclk */
+				<6 RK_PA1 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		ethm1_ptp_refclk_pins: ethm1-ptp-refclk-pins {
+			rockchip,pins =
+				/* ethm1_ptp_refclk */
+				<5 RK_PD0 3 &pcfg_pull_none>;
+		};
+	};
+
+	fephy {
+		/omit-if-no-ref/
+		fephym0_pins: fephym0-pins {
+			rockchip,pins =
+				/* fephy_ledlink_m0 */
+				<3 RK_PB4 6 &pcfg_pull_none>,
+				/* fephy_ledspd_m0 */
+				<3 RK_PB5 6 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		fephym1_pins: fephym1-pins {
+			rockchip,pins =
+				/* fephy_ledlink_m1 */
+				<5 RK_PD4 1 &pcfg_pull_none>,
+				/* fephy_ledspd_m1 */
+				<5 RK_PD5 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		fephym2_pins: fephym2-pins {
+			rockchip,pins =
+				/* fephy_ledlink_m2 */
+				<6 RK_PC2 3 &pcfg_pull_none>,
+				/* fephy_ledspd_m2 */
+				<6 RK_PC3 3 &pcfg_pull_none>;
+		};
+	};
+
+	flash_trig {
+		/omit-if-no-ref/
+		flash_trig_pins: flash-trig-pins {
+			rockchip,pins =
+				/* flash_trig_out */
+				<3 RK_PB2 6 &pcfg_pull_none>;
+		};
+	};
+
+	fspi0 {
+		/omit-if-no-ref/
+		fspi0_bus4_pins: fspi0-bus4-pins {
+			rockchip,pins =
+				/* fspi0_d0 */
+				<1 RK_PB4 1 &pcfg_pull_none>,
+				/* fspi0_d1 */
+				<1 RK_PB5 1 &pcfg_pull_none>,
+				/* fspi0_d2 */
+				<1 RK_PB2 1 &pcfg_pull_none>,
+				/* fspi0_d3 */
+				<1 RK_PB6 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		fspi0_clk_pins: fspi0-clk-pins {
+			rockchip,pins =
+				/* fspi0_clk */
+				<1 RK_PB7 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		fspi0_csn0_pins: fspi0-csn0-pins {
+			rockchip,pins =
+				/* fspi0_csn0 */
+				<1 RK_PB0 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		fspi0_csn1_pins: fspi0-csn1-pins {
+			rockchip,pins =
+				/* fspi0_csn1 */
+				<1 RK_PA5 2 &pcfg_pull_none>;
+		};
+	};
+
+	fspi1 {
+		/omit-if-no-ref/
+		fspi1m0_bus4_pins: fspi1m0-bus4-pins {
+			rockchip,pins =
+				/* fspi1_d0_m0 */
+				<0 RK_PB0 1 &pcfg_pull_none>,
+				/* fspi1_d1_m0 */
+				<0 RK_PB1 1 &pcfg_pull_none>,
+				/* fspi1_d2_m0 */
+				<0 RK_PA6 1 &pcfg_pull_none>,
+				/* fspi1_d3_m0 */
+				<0 RK_PA1 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		fspi1m0_clk_pins: fspi1m0-clk-pins {
+			rockchip,pins =
+				/* fspi1m0_clk */
+				<0 RK_PB2 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		fspi1m0_csn0_pins: fspi1m0-csn0-pins {
+			rockchip,pins =
+				/* fspi1m0_csn0 */
+				<0 RK_PA7 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		fspi1m1_bus4_pins: fspi1m1-bus4-pins {
+			rockchip,pins =
+				/* fspi1_d0_m1 */
+				<1 RK_PA0 2 &pcfg_pull_none>,
+				/* fspi1_d1_m1 */
+				<1 RK_PA1 2 &pcfg_pull_none>,
+				/* fspi1_d2_m1 */
+				<1 RK_PA2 2 &pcfg_pull_none>,
+				/* fspi1_d3_m1 */
+				<1 RK_PA3 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		fspi1m1_clk_pins: fspi1m1-clk-pins {
+			rockchip,pins =
+				/* fspi1m1_clk */
+				<1 RK_PB3 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		fspi1m1_csn0_pins: fspi1m1-csn0-pins {
+			rockchip,pins =
+				/* fspi1m1_csn0 */
+				<1 RK_PB1 2 &pcfg_pull_none>;
+		};
+	};
+
+	i2c0 {
+		/omit-if-no-ref/
+		i2c0m0_pins: i2c0m0-pins {
+			rockchip,pins =
+				/* i2c0_scl_m0 */
+				<0 RK_PC2 4 &pcfg_pull_none_smt>,
+				/* i2c0_sda_m0 */
+				<0 RK_PC3 4 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c0m1_pins: i2c0m1-pins {
+			rockchip,pins =
+				/* i2c0_scl_m1 */
+				<2 RK_PA1 3 &pcfg_pull_none_smt>,
+				/* i2c0_sda_m1 */
+				<2 RK_PA0 3 &pcfg_pull_none_smt>;
+		};
+	};
+
+	i2c1 {
+		/omit-if-no-ref/
+		i2c1m0_pins: i2c1m0-pins {
+			rockchip,pins =
+				/* i2c1_scl_m0 */
+				<0 RK_PB3 3 &pcfg_pull_none_smt>,
+				/* i2c1_sda_m0 */
+				<0 RK_PB4 3 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c1m1_pins: i2c1m1-pins {
+			rockchip,pins =
+				/* i2c1_scl_m1 */
+				<3 RK_PA2 2 &pcfg_pull_none_smt>,
+				/* i2c1_sda_m1 */
+				<3 RK_PA3 2 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c1m2_pins: i2c1m2-pins {
+			rockchip,pins =
+				/* i2c1_scl_m2 */
+				<4 RK_PA1 6 &pcfg_pull_none_smt>,
+				/* i2c1_sda_m2 */
+				<4 RK_PA0 6 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c1m3_pins: i2c1m3-pins {
+			rockchip,pins =
+				/* i2c1_scl_m3 */
+				<7 RK_PB0 5 &pcfg_pull_none_smt>,
+				/* i2c1_sda_m3 */
+				<7 RK_PB1 5 &pcfg_pull_none_smt>;
+		};
+	};
+
+	i2c2 {
+		/omit-if-no-ref/
+		i2c2m0_pins: i2c2m0-pins {
+			rockchip,pins =
+				/* i2c2_scl_m0 */
+				<0 RK_PD0 1 &pcfg_pull_none_smt>,
+				/* i2c2_sda_m0 */
+				<0 RK_PD1 1 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c2m1_pins: i2c2m1-pins {
+			rockchip,pins =
+				/* i2c2_scl_m1 */
+				<5 RK_PD4 6 &pcfg_pull_none_smt>,
+				/* i2c2_sda_m1 */
+				<5 RK_PD5 6 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c2m2_pins: i2c2m2-pins {
+			rockchip,pins =
+				/* i2c2_scl_m2 */
+				<6 RK_PC0 7 &pcfg_pull_none_smt>,
+				/* i2c2_sda_m2 */
+				<6 RK_PC3 7 &pcfg_pull_none_smt>;
+		};
+	};
+
+	i2c3 {
+		/omit-if-no-ref/
+		i2c3m0_pins: i2c3m0-pins {
+			rockchip,pins =
+				/* i2c3_scl_m0 */
+				<0 RK_PC0 1 &pcfg_pull_none_smt>,
+				/* i2c3_sda_m0 */
+				<0 RK_PC1 1 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c3m1_pins: i2c3m1-pins {
+			rockchip,pins =
+				/* i2c3_scl_m1 */
+				<4 RK_PA4 6 &pcfg_pull_none_smt>,
+				/* i2c3_sda_m1 */
+				<4 RK_PA5 6 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c3m2_pins: i2c3m2-pins {
+			rockchip,pins =
+				/* i2c3_scl_m2 */
+				<5 RK_PD0 6 &pcfg_pull_none_smt>,
+				/* i2c3_sda_m2 */
+				<5 RK_PD1 6 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c3m3_pins: i2c3m3-pins {
+			rockchip,pins =
+				/* i2c3_scl_m3 */
+				<6 RK_PA0 7 &pcfg_pull_none_smt>,
+				/* i2c3_sda_m3 */
+				<6 RK_PA1 7 &pcfg_pull_none_smt>;
+		};
+	};
+
+	i2c4 {
+		/omit-if-no-ref/
+		i2c4m0_pins: i2c4m0-pins {
+			rockchip,pins =
+				/* i2c4_scl_m0 */
+				<3 RK_PB4 5 &pcfg_pull_none_smt>,
+				/* i2c4_sda_m0 */
+				<3 RK_PB5 5 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c4m1_pins: i2c4m1-pins {
+			rockchip,pins =
+				/* i2c4_scl_m1 */
+				<6 RK_PA2 7 &pcfg_pull_none_smt>,
+				/* i2c4_sda_m1 */
+				<6 RK_PA3 7 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c4m2_pins: i2c4m2-pins {
+			rockchip,pins =
+				/* i2c4_scl_m2 */
+				<4 RK_PA7 6 &pcfg_pull_none_smt>,
+				/* i2c4_sda_m2 */
+				<4 RK_PA6 6 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c4m3_pins: i2c4m3-pins {
+			rockchip,pins =
+				/* i2c4_scl_m3 */
+				<7 RK_PA1 2 &pcfg_pull_none_smt>,
+				/* i2c4_sda_m3 */
+				<7 RK_PA4 2 &pcfg_pull_none_smt>;
+		};
+	};
+
+	i2c5 {
+		/omit-if-no-ref/
+		i2c5m0_pins: i2c5m0-pins {
+			rockchip,pins =
+				/* i2c5_scl_m0 */
+				<0 RK_PC4 4 &pcfg_pull_none_smt>,
+				/* i2c5_sda_m0 */
+				<0 RK_PC5 4 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c5m1_pins: i2c5m1-pins {
+			rockchip,pins =
+				/* i2c5_scl_m1 */
+				<3 RK_PB6 5 &pcfg_pull_none_smt>,
+				/* i2c5_sda_m1 */
+				<3 RK_PB7 5 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c5m2_pins: i2c5m2-pins {
+			rockchip,pins =
+				/* i2c5_scl_m2 */
+				<5 RK_PA1 2 &pcfg_pull_none_smt>,
+				/* i2c5_sda_m2 */
+				<5 RK_PA7 6 &pcfg_pull_none_smt>;
+		};
+
+		/omit-if-no-ref/
+		i2c5m3_pins: i2c5m3-pins {
+			rockchip,pins =
+				/* i2c5_scl_m3 */
+				<6 RK_PA4 7 &pcfg_pull_none_smt>,
+				/* i2c5_sda_m3 */
+				<6 RK_PA5 7 &pcfg_pull_none_smt>;
+		};
+	};
+
+	ir_fpa {
+		/omit-if-no-ref/
+		ir_fpa_pins: ir-fpa-pins {
+			rockchip,pins =
+				/* ir_fpa_fsync */
+				<5 RK_PD4 5 &pcfg_pull_none>,
+				/* ir_fpa_mclk */
+				<5 RK_PD5 5 &pcfg_pull_none>,
+				/* ir_fpa_sda0 */
+				<5 RK_PA0 6 &pcfg_pull_none>,
+				/* ir_fpa_sda1 */
+				<5 RK_PA1 6 &pcfg_pull_none>,
+				/* ir_fpa_sda2 */
+				<5 RK_PB0 6 &pcfg_pull_none>,
+				/* ir_fpa_sda3 */
+				<5 RK_PB1 6 &pcfg_pull_none>,
+				/* ir_fpa_sda4 */
+				<5 RK_PC0 6 &pcfg_pull_none>,
+				/* ir_fpa_sda5 */
+				<5 RK_PC1 6 &pcfg_pull_none>,
+				/* ir_fpa_sda6 */
+				<5 RK_PC2 6 &pcfg_pull_none>;
+		};
+	};
+
+	jtag {
+		/omit-if-no-ref/
+		jtagm0_pins: jtagm0-pins {
+			rockchip,pins =
+				/* jtag_tck_m0 */
+				<0 RK_PB3 4 &pcfg_pull_none>,
+				/* jtag_tms_m0 */
+				<0 RK_PB4 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		jtagm1_pins: jtagm1-pins {
+			rockchip,pins =
+				/* jtag_tck_m1 */
+				<2 RK_PA2 4 &pcfg_pull_none>,
+				/* jtag_tms_m1 */
+				<2 RK_PA3 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		jtagm2_pins: jtagm2-pins {
+			rockchip,pins =
+				/* jtag_tck_m2 */
+				<5 RK_PD6 2 &pcfg_pull_none>,
+				/* jtag_tms_m2 */
+				<5 RK_PD7 2 &pcfg_pull_none>;
+		};
+	};
+
+	pdm {
+		/omit-if-no-ref/
+		pdmm0_clk0_pins: pdmm0-clk0-pins {
+			rockchip,pins =
+				/* pdm_clk0_m0 */
+				<7 RK_PA4 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm0_clk1_pins: pdmm0-clk1-pins {
+			rockchip,pins =
+				/* pdm_clk1_m0 */
+				<7 RK_PA1 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm0_sdi0_pins: pdmm0-sdi0-pins {
+			rockchip,pins =
+				/* pdm_sdi0_m0 */
+				<7 RK_PA6 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm0_sdi1_pins: pdmm0-sdi1-pins {
+			rockchip,pins =
+				/* pdm_sdi1_m0 */
+				<7 RK_PB1 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm0_sdi2_pins: pdmm0-sdi2-pins {
+			rockchip,pins =
+				/* pdm_sdi2_m0 */
+				<7 RK_PB0 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm0_sdi3_pins: pdmm0-sdi3-pins {
+			rockchip,pins =
+				/* pdm_sdi3_m0 */
+				<7 RK_PA7 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_clk0_pins: pdmm1-clk0-pins {
+			rockchip,pins =
+				/* pdm_clk0_m1 */
+				<6 RK_PB4 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_clk1_pins: pdmm1-clk1-pins {
+			rockchip,pins =
+				/* pdm_clk1_m1 */
+				<6 RK_PB7 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_sdi0_pins: pdmm1-sdi0-pins {
+			rockchip,pins =
+				/* pdm_sdi0_m1 */
+				<6 RK_PB5 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_sdi1_pins: pdmm1-sdi1-pins {
+			rockchip,pins =
+				/* pdm_sdi1_m1 */
+				<6 RK_PB6 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_sdi2_pins: pdmm1-sdi2-pins {
+			rockchip,pins =
+				/* pdm_sdi2_m1 */
+				<6 RK_PB2 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_sdi3_pins: pdmm1-sdi3-pins {
+			rockchip,pins =
+				/* pdm_sdi3_m1 */
+				<6 RK_PB3 5 &pcfg_pull_none>;
+		};
+	};
+
+	pmu {
+		/omit-if-no-ref/
+		pmu_pins: pmu-pins {
+			rockchip,pins =
+				/* pmu_dbg */
+				<0 RK_PA2 3 &pcfg_pull_none>;
+		};
+	};
+
+	prelight_trig {
+		/omit-if-no-ref/
+		prelight_trig_pins: prelight-trig-pins {
+			rockchip,pins =
+				/* prelight_trig_out */
+				<3 RK_PB3 6 &pcfg_pull_none>;
+		};
+	};
+
+	preroll {
+		/omit-if-no-ref/
+		preroll_pins: preroll-pins {
+			rockchip,pins =
+				/* preroll_dbg */
+				<0 RK_PB3 5 &pcfg_pull_none>;
+		};
+	};
+
+	pwm0 {
+		/omit-if-no-ref/
+		pwm0m0_ch0_pins: pwm0m0-ch0-pins {
+			rockchip,pins =
+				/* pwm0m0_ch0 */
+				<0 RK_PC4 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch1_pins: pwm0m0-ch1-pins {
+			rockchip,pins =
+				/* pwm0m0_ch1 */
+				<0 RK_PC5 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch2_pins: pwm0m0-ch2-pins {
+			rockchip,pins =
+				/* pwm0m0_ch2 */
+				<0 RK_PC6 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch3_pins: pwm0m0-ch3-pins {
+			rockchip,pins =
+				/* pwm0m0_ch3 */
+				<0 RK_PC7 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch4_pins: pwm0m0-ch4-pins {
+			rockchip,pins =
+				/* pwm0m0_ch4 */
+				<0 RK_PD0 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch5_pins: pwm0m0-ch5-pins {
+			rockchip,pins =
+				/* pwm0m0_ch5 */
+				<0 RK_PD1 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch6_pins: pwm0m0-ch6-pins {
+			rockchip,pins =
+				/* pwm0m0_ch6 */
+				<0 RK_PC1 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m0_ch7_pins: pwm0m0-ch7-pins {
+			rockchip,pins =
+				/* pwm0m0_ch7 */
+				<0 RK_PC0 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm0m1_ch0_pins: pwm0m1-ch0-pins {
+			rockchip,pins =
+				/* pwm0m1_ch0 */
+				<5 RK_PA7 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch1_pins: pwm0m1-ch1-pins {
+			rockchip,pins =
+				/* pwm0m1_ch1 */
+				<5 RK_PA6 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch2_pins: pwm0m1-ch2-pins {
+			rockchip,pins =
+				/* pwm0m1_ch2 */
+				<5 RK_PA5 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch3_pins: pwm0m1-ch3-pins {
+			rockchip,pins =
+				/* pwm0m1_ch3 */
+				<5 RK_PA4 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch4_pins: pwm0m1-ch4-pins {
+			rockchip,pins =
+				/* pwm0m1_ch4 */
+				<4 RK_PA2 4 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch5_pins: pwm0m1-ch5-pins {
+			rockchip,pins =
+				/* pwm0m1_ch5 */
+				<4 RK_PA3 4 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch6_pins: pwm0m1-ch6-pins {
+			rockchip,pins =
+				/* pwm0m1_ch6 */
+				<4 RK_PA6 4 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m1_ch7_pins: pwm0m1-ch7-pins {
+			rockchip,pins =
+				/* pwm0m1_ch7 */
+				<4 RK_PA7 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm0m2_ch0_pins: pwm0m2-ch0-pins {
+			rockchip,pins =
+				/* pwm0m2_ch0 */
+				<6 RK_PC0 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch1_pins: pwm0m2-ch1-pins {
+			rockchip,pins =
+				/* pwm0m2_ch1 */
+				<6 RK_PC1 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch2_pins: pwm0m2-ch2-pins {
+			rockchip,pins =
+				/* pwm0m2_ch2 */
+				<6 RK_PC2 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch3_pins: pwm0m2-ch3-pins {
+			rockchip,pins =
+				/* pwm0m2_ch3 */
+				<6 RK_PC3 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch4_pins: pwm0m2-ch4-pins {
+			rockchip,pins =
+				/* pwm0m2_ch4 */
+				<5 RK_PA3 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch5_pins: pwm0m2-ch5-pins {
+			rockchip,pins =
+				/* pwm0m2_ch5 */
+				<5 RK_PA2 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch6_pins: pwm0m2-ch6-pins {
+			rockchip,pins =
+				/* pwm0m2_ch6 */
+				<5 RK_PD0 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm0m2_ch7_pins: pwm0m2-ch7-pins {
+			rockchip,pins =
+				/* pwm0m2_ch7 */
+				<5 RK_PD4 7 &pcfg_pull_none>;
+		};
+	};
+
+	pwm1 {
+		/omit-if-no-ref/
+		pwm1m0_ch0_pins: pwm1m0-ch0-pins {
+			rockchip,pins =
+				/* pwm1m0_ch0 */
+				<0 RK_PA5 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m0_ch1_pins: pwm1m0-ch1-pins {
+			rockchip,pins =
+				/* pwm1m0_ch1 */
+				<0 RK_PA1 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m0_ch2_pins: pwm1m0-ch2-pins {
+			rockchip,pins =
+				/* pwm1m0_ch2 */
+				<0 RK_PB3 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m0_ch3_pins: pwm1m0-ch3-pins {
+			rockchip,pins =
+				/* pwm1m0_ch3 */
+				<0 RK_PB4 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm1m1_ch0_pins: pwm1m1-ch0-pins {
+			rockchip,pins =
+				/* pwm1m1_ch0 */
+				<5 RK_PD3 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m1_ch1_pins: pwm1m1-ch1-pins {
+			rockchip,pins =
+				/* pwm1m1_ch1 */
+				<5 RK_PD2 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m1_ch2_pins: pwm1m1-ch2-pins {
+			rockchip,pins =
+				/* pwm1m1_ch2 */
+				<5 RK_PD1 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m1_ch3_pins: pwm1m1-ch3-pins {
+			rockchip,pins =
+				/* pwm1m1_ch3 */
+				<5 RK_PD5 7 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm1m2_ch0_pins: pwm1m2-ch0-pins {
+			rockchip,pins =
+				/* pwm1m2_ch0 */
+				<6 RK_PA0 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m2_ch1_pins: pwm1m2-ch1-pins {
+			rockchip,pins =
+				/* pwm1m2_ch1 */
+				<6 RK_PA1 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m2_ch2_pins: pwm1m2-ch2-pins {
+			rockchip,pins =
+				/* pwm1m2_ch2 */
+				<6 RK_PA2 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm1m2_ch3_pins: pwm1m2-ch3-pins {
+			rockchip,pins =
+				/* pwm1m2_ch3 */
+				<6 RK_PA3 5 &pcfg_pull_none>;
+		};
+	};
+
+	pwm2 {
+		/omit-if-no-ref/
+		pwm2m0_ch0_pins: pwm2m0-ch0-pins {
+			rockchip,pins =
+				/* pwm2m0_ch0 */
+				<3 RK_PB2 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch1_pins: pwm2m0-ch1-pins {
+			rockchip,pins =
+				/* pwm2m0_ch1 */
+				<3 RK_PB3 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch2_pins: pwm2m0-ch2-pins {
+			rockchip,pins =
+				/* pwm2m0_ch2 */
+				<3 RK_PB4 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch3_pins: pwm2m0-ch3-pins {
+			rockchip,pins =
+				/* pwm2m0_ch3 */
+				<3 RK_PB5 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch4_pins: pwm2m0-ch4-pins {
+			rockchip,pins =
+				/* pwm2m0_ch4 */
+				<5 RK_PA0 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch5_pins: pwm2m0-ch5-pins {
+			rockchip,pins =
+				/* pwm2m0_ch5 */
+				<5 RK_PA1 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch6_pins: pwm2m0-ch6-pins {
+			rockchip,pins =
+				/* pwm2m0_ch6 */
+				<5 RK_PD6 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m0_ch7_pins: pwm2m0-ch7-pins {
+			rockchip,pins =
+				/* pwm2m0_ch7 */
+				<5 RK_PD7 7 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm2m1_ch0_pins: pwm2m1-ch0-pins {
+			rockchip,pins =
+				/* pwm2m1_ch0 */
+				<5 RK_PB2 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch1_pins: pwm2m1-ch1-pins {
+			rockchip,pins =
+				/* pwm2m1_ch1 */
+				<5 RK_PB3 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch2_pins: pwm2m1-ch2-pins {
+			rockchip,pins =
+				/* pwm2m1_ch2 */
+				<5 RK_PB6 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch3_pins: pwm2m1-ch3-pins {
+			rockchip,pins =
+				/* pwm2m1_ch3 */
+				<5 RK_PB7 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch4_pins: pwm2m1-ch4-pins {
+			rockchip,pins =
+				/* pwm2m1_ch4 */
+				<7 RK_PA0 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch5_pins: pwm2m1-ch5-pins {
+			rockchip,pins =
+				/* pwm2m1_ch5 */
+				<7 RK_PA1 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch6_pins: pwm2m1-ch6-pins {
+			rockchip,pins =
+				/* pwm2m1_ch6 */
+				<7 RK_PA2 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m1_ch7_pins: pwm2m1-ch7-pins {
+			rockchip,pins =
+				/* pwm2m1_ch7 */
+				<7 RK_PA3 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm2m2_ch0_pins: pwm2m2-ch0-pins {
+			rockchip,pins =
+				/* pwm2m2_ch0 */
+				<6 RK_PA4 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m2_ch1_pins: pwm2m2-ch1-pins {
+			rockchip,pins =
+				/* pwm2m2_ch1 */
+				<6 RK_PA5 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m2_ch2_pins: pwm2m2-ch2-pins {
+			rockchip,pins =
+				/* pwm2m2_ch2 */
+				<6 RK_PA6 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm2m2_ch3_pins: pwm2m2-ch3-pins {
+			rockchip,pins =
+				/* pwm2m2_ch3 */
+				<6 RK_PA7 3 &pcfg_pull_none>;
+		};
+	};
+
+	pwm3 {
+		/omit-if-no-ref/
+		pwm3m0_ch0_pins: pwm3m0-ch0-pins {
+			rockchip,pins =
+				/* pwm3m0_ch0 */
+				<1 RK_PA0 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch1_pins: pwm3m0-ch1-pins {
+			rockchip,pins =
+				/* pwm3m0_ch1 */
+				<1 RK_PA1 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch2_pins: pwm3m0-ch2-pins {
+			rockchip,pins =
+				/* pwm3m0_ch2 */
+				<1 RK_PA2 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch3_pins: pwm3m0-ch3-pins {
+			rockchip,pins =
+				/* pwm3m0_ch3 */
+				<1 RK_PA3 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch4_pins: pwm3m0-ch4-pins {
+			rockchip,pins =
+				/* pwm3m0_ch4 */
+				<1 RK_PA4 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch5_pins: pwm3m0-ch5-pins {
+			rockchip,pins =
+				/* pwm3m0_ch5 */
+				<1 RK_PA5 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch6_pins: pwm3m0-ch6-pins {
+			rockchip,pins =
+				/* pwm3m0_ch6 */
+				<1 RK_PA6 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m0_ch7_pins: pwm3m0-ch7-pins {
+			rockchip,pins =
+				/* pwm3m0_ch7 */
+				<1 RK_PA7 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pwm3m1_ch0_pins: pwm3m1-ch0-pins {
+			rockchip,pins =
+				/* pwm3m1_ch0 */
+				<5 RK_PC0 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch1_pins: pwm3m1-ch1-pins {
+			rockchip,pins =
+				/* pwm3m1_ch1 */
+				<5 RK_PC1 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch2_pins: pwm3m1-ch2-pins {
+			rockchip,pins =
+				/* pwm3m1_ch2 */
+				<5 RK_PC2 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch3_pins: pwm3m1-ch3-pins {
+			rockchip,pins =
+				/* pwm3m1_ch3 */
+				<5 RK_PC3 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch4_pins: pwm3m1-ch4-pins {
+			rockchip,pins =
+				/* pwm3m1_ch4 */
+				<5 RK_PC4 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch5_pins: pwm3m1-ch5-pins {
+			rockchip,pins =
+				/* pwm3m1_ch5 */
+				<5 RK_PC5 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch6_pins: pwm3m1-ch6-pins {
+			rockchip,pins =
+				/* pwm3m1_ch6 */
+				<5 RK_PC6 7 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		pwm3m1_ch7_pins: pwm3m1-ch7-pins {
+			rockchip,pins =
+				/* pwm3m1_ch7 */
+				<5 RK_PC7 7 &pcfg_pull_none>;
+		};
+	};
+
+	pwr {
+		/omit-if-no-ref/
+		pwr_pins: pwr-pins {
+			rockchip,pins =
+				/* pwr_ctrl0 */
+				<0 RK_PA3 1 &pcfg_pull_none>,
+				/* pwr_ctrl1 */
+				<0 RK_PA4 1 &pcfg_pull_none>,
+				/* pwr_ctrl2 */
+				<0 RK_PC1 3 &pcfg_pull_none>;
+		};
+	};
+
+	ref_clk0 {
+		/omit-if-no-ref/
+		ref_clk0_pins: ref-clk0-pins {
+			rockchip,pins =
+				/* ref_clk0_out */
+				<0 RK_PA0 1 &pcfg_pull_none>;
+		};
+	};
+
+	rtc_32k {
+		/omit-if-no-ref/
+		rtc_32k_pins: rtc-32k-pins {
+			rockchip,pins =
+				/* rtc_32k_out */
+				<0 RK_PA2 1 &pcfg_pull_none>;
+		};
+	};
+
+	sai0 {
+		/omit-if-no-ref/
+		sai0m0_lrck_pins: sai0m0-lrck-pins {
+			rockchip,pins =
+				/* sai0_lrck_m0 */
+				<7 RK_PA3 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_mclk_pins: sai0m0-mclk-pins {
+			rockchip,pins =
+				/* sai0_mclk_m0 */
+				<7 RK_PA2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sclk_pins: sai0m0-sclk-pins {
+			rockchip,pins =
+				/* sai0_sclk_m0 */
+				<7 RK_PA0 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdi0_pins: sai0m0-sdi0-pins {
+			rockchip,pins =
+				/* sai0_sdi0_m0 */
+				<7 RK_PA6 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdi1_pins: sai0m0-sdi1-pins {
+			rockchip,pins =
+				/* sai0_sdi1_m0 */
+				<7 RK_PB1 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdi2_pins: sai0m0-sdi2-pins {
+			rockchip,pins =
+				/* sai0_sdi2_m0 */
+				<7 RK_PB0 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdi3_pins: sai0m0-sdi3-pins {
+			rockchip,pins =
+				/* sai0_sdi3_m0 */
+				<7 RK_PA7 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdo0_pins: sai0m0-sdo0-pins {
+			rockchip,pins =
+				/* sai0_sdo0_m0 */
+				<7 RK_PA5 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdo1_pins: sai0m0-sdo1-pins {
+			rockchip,pins =
+				/* sai0_sdo1_m0 */
+				<7 RK_PA7 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdo2_pins: sai0m0-sdo2-pins {
+			rockchip,pins =
+				/* sai0_sdo2_m0 */
+				<7 RK_PB0 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m0_sdo3_pins: sai0m0-sdo3-pins {
+			rockchip,pins =
+				/* sai0_sdo3_m0 */
+				<7 RK_PB1 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_lrck_pins: sai0m1-lrck-pins {
+			rockchip,pins =
+				/* sai0_lrck_m1 */
+				<6 RK_PA1 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_mclk_pins: sai0m1-mclk-pins {
+			rockchip,pins =
+				/* sai0_mclk_m1 */
+				<6 RK_PA4 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sclk_pins: sai0m1-sclk-pins {
+			rockchip,pins =
+				/* sai0_sclk_m1 */
+				<6 RK_PA0 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdi0_pins: sai0m1-sdi0-pins {
+			rockchip,pins =
+				/* sai0_sdi0_m1 */
+				<6 RK_PA3 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdi1_pins: sai0m1-sdi1-pins {
+			rockchip,pins =
+				/* sai0_sdi1_m1 */
+				<6 RK_PB1 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdi2_pins: sai0m1-sdi2-pins {
+			rockchip,pins =
+				/* sai0_sdi2_m1 */
+				<6 RK_PB0 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdi3_pins: sai0m1-sdi3-pins {
+			rockchip,pins =
+				/* sai0_sdi3_m1 */
+				<6 RK_PA7 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdo0_pins: sai0m1-sdo0-pins {
+			rockchip,pins =
+				/* sai0_sdo0_m1 */
+				<6 RK_PA2 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdo1_pins: sai0m1-sdo1-pins {
+			rockchip,pins =
+				/* sai0_sdo1_m1 */
+				<6 RK_PA7 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdo2_pins: sai0m1-sdo2-pins {
+			rockchip,pins =
+				/* sai0_sdo2_m1 */
+				<6 RK_PB0 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai0m1_sdo3_pins: sai0m1-sdo3-pins {
+			rockchip,pins =
+				/* sai0_sdo3_m1 */
+				<6 RK_PB1 5 &pcfg_pull_none>;
+		};
+	};
+
+	sai1 {
+		/omit-if-no-ref/
+		sai1m0_lrck_pins: sai1m0-lrck-pins {
+			rockchip,pins =
+				/* sai1_lrck_m0 */
+				<1 RK_PB4 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m0_mclk_pins: sai1m0-mclk-pins {
+			rockchip,pins =
+				/* sai1_mclk_m0 */
+				<1 RK_PB0 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m0_sclk_pins: sai1m0-sclk-pins {
+			rockchip,pins =
+				/* sai1_sclk_m0 */
+				<1 RK_PB5 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m0_sdi_pins: sai1m0-sdi-pins {
+			rockchip,pins =
+				/* sai1m0_sdi */
+				<1 RK_PB6 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		sai1m0_sdo_pins: sai1m0-sdo-pins {
+			rockchip,pins =
+				/* sai1m0_sdo */
+				<1 RK_PB2 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m1_lrck_pins: sai1m1-lrck-pins {
+			rockchip,pins =
+				/* sai1_lrck_m1 */
+				<4 RK_PA5 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m1_mclk_pins: sai1m1-mclk-pins {
+			rockchip,pins =
+				/* sai1_mclk_m1 */
+				<4 RK_PA3 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m1_sclk_pins: sai1m1-sclk-pins {
+			rockchip,pins =
+				/* sai1_sclk_m1 */
+				<4 RK_PA4 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m1_sdi_pins: sai1m1-sdi-pins {
+			rockchip,pins =
+				/* sai1m1_sdi */
+				<4 RK_PA6 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		sai1m1_sdo_pins: sai1m1-sdo-pins {
+			rockchip,pins =
+				/* sai1m1_sdo */
+				<4 RK_PA7 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m2_lrck_pins: sai1m2-lrck-pins {
+			rockchip,pins =
+				/* sai1_lrck_m2 */
+				<5 RK_PC6 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m2_mclk_pins: sai1m2-mclk-pins {
+			rockchip,pins =
+				/* sai1_mclk_m2 */
+				<5 RK_PC3 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m2_sclk_pins: sai1m2-sclk-pins {
+			rockchip,pins =
+				/* sai1_sclk_m2 */
+				<5 RK_PC5 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai1m2_sdi_pins: sai1m2-sdi-pins {
+			rockchip,pins =
+				/* sai1m2_sdi */
+				<5 RK_PC7 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		sai1m2_sdo_pins: sai1m2-sdo-pins {
+			rockchip,pins =
+				/* sai1m2_sdo */
+				<5 RK_PC4 5 &pcfg_pull_none>;
+		};
+	};
+
+	sai2 {
+		/omit-if-no-ref/
+		sai2m0_lrck_pins: sai2m0-lrck-pins {
+			rockchip,pins =
+				/* sai2_lrck_m0 */
+				<3 RK_PB5 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m0_mclk_pins: sai2m0-mclk-pins {
+			rockchip,pins =
+				/* sai2_mclk_m0 */
+				<3 RK_PB6 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m0_sclk_pins: sai2m0-sclk-pins {
+			rockchip,pins =
+				/* sai2_sclk_m0 */
+				<3 RK_PB4 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m0_sdi0_pins: sai2m0-sdi0-pins {
+			rockchip,pins =
+				/* sai2_sdi0_m0 */
+				<3 RK_PB3 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m0_sdi1_pins: sai2m0-sdi1-pins {
+			rockchip,pins =
+				/* sai2_sdi1_m0 */
+				<3 RK_PB7 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m0_sdi2_pins: sai2m0-sdi2-pins {
+			rockchip,pins =
+				/* sai2_sdi2_m0 */
+				<3 RK_PB1 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m0_sdo_pins: sai2m0-sdo-pins {
+			rockchip,pins =
+				/* sai2m0_sdo */
+				<3 RK_PB2 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_lrck_pins: sai2m1-lrck-pins {
+			rockchip,pins =
+				/* sai2_lrck_m1 */
+				<5 RK_PA7 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_mclk_pins: sai2m1-mclk-pins {
+			rockchip,pins =
+				/* sai2_mclk_m1 */
+				<5 RK_PA3 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_sclk_pins: sai2m1-sclk-pins {
+			rockchip,pins =
+				/* sai2_sclk_m1 */
+				<5 RK_PA5 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_sdi0_pins: sai2m1-sdi0-pins {
+			rockchip,pins =
+				/* sai2_sdi0_m1 */
+				<5 RK_PA6 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_sdi1_pins: sai2m1-sdi1-pins {
+			rockchip,pins =
+				/* sai2_sdi1_m1 */
+				<5 RK_PA2 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_sdi2_pins: sai2m1-sdi2-pins {
+			rockchip,pins =
+				/* sai2_sdi2_m1 */
+				<5 RK_PA1 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sai2m1_sdo_pins: sai2m1-sdo-pins {
+			rockchip,pins =
+				/* sai2m1_sdo */
+				<5 RK_PA4 5 &pcfg_pull_none>;
+		};
+	};
+
+	sdmmc0 {
+		/omit-if-no-ref/
+		sdmmc0_bus4_pins: sdmmc0-bus4-pins {
+			rockchip,pins =
+				/* sdmmc0_d0 */
+				<2 RK_PA0 1 &pcfg_pull_up_drv_level_2_75>,
+				/* sdmmc0_d1 */
+				<2 RK_PA1 1 &pcfg_pull_up_drv_level_2_75>,
+				/* sdmmc0_d2 */
+				<2 RK_PA2 1 &pcfg_pull_up_drv_level_2_75>,
+				/* sdmmc0_d3 */
+				<2 RK_PA3 1 &pcfg_pull_up_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		sdmmc0_cmd_pins: sdmmc0-cmd-pins {
+			rockchip,pins =
+				/* sdmmc0_cmd */
+				<2 RK_PA5 1 &pcfg_pull_up_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		sdmmc0_clk_pins: sdmmc0-clk-pins {
+			rockchip,pins =
+				/* sdmmc0_clk */
+				<2 RK_PA4 1 &pcfg_pull_up_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		sdmmc0_detn_pins: sdmmc0-detn-pins {
+			rockchip,pins =
+				/* sdmmc0_detn */
+				<0 RK_PA5 1 &pcfg_pull_up>;
+		};
+	};
+
+	sdmmc1 {
+		/omit-if-no-ref/
+		sdmmc1_bus4_pins: sdmmc1-bus4-pins {
+			rockchip,pins =
+				/* sdmmc1_d0 */
+				<3 RK_PA2 1 &pcfg_pull_up>,
+				/* sdmmc1_d1 */
+				<3 RK_PA3 1 &pcfg_pull_up>,
+				/* sdmmc1_d2 */
+				<3 RK_PA4 1 &pcfg_pull_up>,
+				/* sdmmc1_d3 */
+				<3 RK_PA5 1 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		sdmmc1_cmd_pins: sdmmc1-cmd-pins {
+			rockchip,pins =
+				/* sdmmc1_cmd */
+				<3 RK_PA1 1 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		sdmmc1_clk_pins: sdmmc1-clk-pins {
+			rockchip,pins =
+				/* sdmmc1_clk */
+				<3 RK_PA0 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		sdmmc1_detn_pins: sdmmc1-detn-pins {
+			rockchip,pins =
+				/* sdmmc1_detn */
+				<3 RK_PB6 3 &pcfg_pull_up>;
+		};
+	};
+
+	spi0 {
+		/omit-if-no-ref/
+		spi0m0_clk_pins: spi0m0-clk-pins {
+			rockchip,pins =
+				/* spi0_clk_m0 */
+				<0 RK_PB2 2 &pcfg_pull_none_drv_level_2_75>,
+				/* spi0_miso_m0 */
+				<0 RK_PB1 2 &pcfg_pull_none_drv_level_2_75>,
+				/* spi0_mosi_m0 */
+				<0 RK_PB0 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi0m0_csn0_pins: spi0m0-csn0-pins {
+			rockchip,pins =
+				/* spi0m0_csn0 */
+				<0 RK_PA7 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+		/omit-if-no-ref/
+		spi0m0_csn1_pins: spi0m0-csn1-pins {
+			rockchip,pins =
+				/* spi0m0_csn1 */
+				<0 RK_PA6 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi0m1_clk_pins: spi0m1-clk-pins {
+			rockchip,pins =
+				/* spi0_clk_m1 */
+				<4 RK_PA7 1 &pcfg_pull_none_drv_level_2_75>,
+				/* spi0_miso_m1 */
+				<4 RK_PA5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* spi0_mosi_m1 */
+				<4 RK_PA4 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi0m1_csn0_pins: spi0m1-csn0-pins {
+			rockchip,pins =
+				/* spi0m1_csn0 */
+				<4 RK_PA6 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+		/omit-if-no-ref/
+		spi0m1_csn1_pins: spi0m1-csn1-pins {
+			rockchip,pins =
+				/* spi0m1_csn1 */
+				<4 RK_PA3 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi0m2_clk_pins: spi0m2-clk-pins {
+			rockchip,pins =
+				/* spi0_clk_m2 */
+				<5 RK_PA6 2 &pcfg_pull_none_drv_level_2_75>,
+				/* spi0_miso_m2 */
+				<5 RK_PA5 2 &pcfg_pull_none_drv_level_2_75>,
+				/* spi0_mosi_m2 */
+				<5 RK_PA4 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi0m2_csn0_pins: spi0m2-csn0-pins {
+			rockchip,pins =
+				/* spi0m2_csn0 */
+				<5 RK_PA3 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+		/omit-if-no-ref/
+		spi0m2_csn1_pins: spi0m2-csn1-pins {
+			rockchip,pins =
+				/* spi0m2_csn1 */
+				<5 RK_PA7 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+	};
+
+	spi1 {
+		/omit-if-no-ref/
+		spi1m0_clk_pins: spi1m0-clk-pins {
+			rockchip,pins =
+				/* spi1_clk_m0 */
+				<6 RK_PB4 3 &pcfg_pull_none_drv_level_2_75>,
+				/* spi1_miso_m0 */
+				<6 RK_PB3 3 &pcfg_pull_none_drv_level_2_75>,
+				/* spi1_mosi_m0 */
+				<6 RK_PB2 3 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi1m0_csn0_pins: spi1m0-csn0-pins {
+			rockchip,pins =
+				/* spi1m0_csn0 */
+				<6 RK_PB1 3 &pcfg_pull_none_drv_level_2_75>;
+		};
+		/omit-if-no-ref/
+		spi1m0_csn1_pins: spi1m0-csn1-pins {
+			rockchip,pins =
+				/* spi1m0_csn1 */
+				<6 RK_PB0 3 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi1m1_clk_pins: spi1m1-clk-pins {
+			rockchip,pins =
+				/* spi1_clk_m1 */
+				<3 RK_PB4 1 &pcfg_pull_none_drv_level_2_75>,
+				/* spi1_miso_m1 */
+				<3 RK_PB3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* spi1_mosi_m1 */
+				<3 RK_PB2 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi1m1_csn0_pins: spi1m1-csn0-pins {
+			rockchip,pins =
+				/* spi1m1_csn0 */
+				<3 RK_PB5 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+		/omit-if-no-ref/
+		spi1m1_csn1_pins: spi1m1-csn1-pins {
+			rockchip,pins =
+				/* spi1m1_csn1 */
+				<3 RK_PB6 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi1m2_clk_pins: spi1m2-clk-pins {
+			rockchip,pins =
+				/* spi1_clk_m2 */
+				<5 RK_PD1 2 &pcfg_pull_none_drv_level_2_75>,
+				/* spi1_miso_m2 */
+				<5 RK_PD3 2 &pcfg_pull_none_drv_level_2_75>,
+				/* spi1_mosi_m2 */
+				<5 RK_PD2 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		spi1m2_csn0_pins: spi1m2-csn0-pins {
+			rockchip,pins =
+				/* spi1m2_csn0 */
+				<5 RK_PD0 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+		/omit-if-no-ref/
+		spi1m2_csn1_pins: spi1m2-csn1-pins {
+			rockchip,pins =
+				/* spi1m2_csn1 */
+				<5 RK_PD4 2 &pcfg_pull_none_drv_level_2_75>;
+		};
+	};
+
+	spi2ahb {
+		/omit-if-no-ref/
+		spi2ahb_clk_pins: spi2ahb-clk-pins {
+			rockchip,pins =
+				/* spi2ahb_clk */
+				<0 RK_PC3 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		spi2ahb_csn0_pins: spi2ahb-csn0-pins {
+			rockchip,pins =
+				/* spi2ahb_csn0 */
+				<0 RK_PC2 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		spi2ahb_d0_pins: spi2ahb-d0-pins {
+			rockchip,pins =
+				/* spi2ahb_d0 */
+				<0 RK_PC7 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		spi2ahb_d1_pins: spi2ahb-d1-pins {
+			rockchip,pins =
+				/* spi2ahb_d1 */
+				<0 RK_PC6 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		spi2ahb_d2_pins: spi2ahb-d2-pins {
+			rockchip,pins =
+				/* spi2ahb_d2 */
+				<0 RK_PC5 1 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		spi2ahb_d3_pins: spi2ahb-d3-pins {
+			rockchip,pins =
+				/* spi2ahb_d3 */
+				<0 RK_PC4 1 &pcfg_pull_none>;
+		};
+	};
+
+	tsadc {
+		/omit-if-no-ref/
+		tsadc_pins: tsadc-pins {
+			rockchip,pins =
+				/* tsadc_shut */
+				<0 RK_PA1 3 &pcfg_pull_none>,
+				/* tsadc_shutorg */
+				<0 RK_PA1 4 &pcfg_pull_none>;
+		};
+	};
+
+	uart0 {
+		/omit-if-no-ref/
+		uart0m0_xfer_pins: uart0m0-xfer-pins {
+			rockchip,pins =
+				/* uart0_rx_m0 */
+				<2 RK_PA0 2 &pcfg_pull_up>,
+				/* uart0_tx_m0 */
+				<2 RK_PA1 2 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart0m1_xfer_pins: uart0m1-xfer-pins {
+			rockchip,pins =
+				/* uart0_rx_m1 */
+				<5 RK_PD7 1 &pcfg_pull_up>,
+				/* uart0_tx_m1 */
+				<5 RK_PD6 1 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart0m2_xfer_pins: uart0m2-xfer-pins {
+			rockchip,pins =
+				/* uart0_rx_m2 */
+				<0 RK_PB4 1 &pcfg_pull_up>,
+				/* uart0_tx_m2 */
+				<0 RK_PB3 1 &pcfg_pull_up>;
+		};
+	};
+
+	uart1 {
+		/omit-if-no-ref/
+		uart1m0_xfer_pins: uart1m0-xfer-pins {
+			rockchip,pins =
+				/* uart1_rx_m0 */
+				<0 RK_PC5 3 &pcfg_pull_up>,
+				/* uart1_tx_m0 */
+				<0 RK_PC4 3 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart1m0_ctsn_pins: uart1m0-ctsn-pins {
+			rockchip,pins =
+				/* uart1m0_ctsn */
+				<0 RK_PC7 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart1m0_rtsn_pins: uart1m0-rtsn-pins {
+			rockchip,pins =
+				/* uart1m0_rtsn */
+				<0 RK_PC6 3 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart1m1_xfer_pins: uart1m1-xfer-pins {
+			rockchip,pins =
+				/* uart1_rx_m1 */
+				<3 RK_PB7 4 &pcfg_pull_up>,
+				/* uart1_tx_m1 */
+				<3 RK_PB6 4 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart1m1_ctsn_pins: uart1m1-ctsn-pins {
+			rockchip,pins =
+				/* uart1m1_ctsn */
+				<3 RK_PB5 4 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart1m1_rtsn_pins: uart1m1-rtsn-pins {
+			rockchip,pins =
+				/* uart1m1_rtsn */
+				<3 RK_PB4 4 &pcfg_pull_none>;
+		};
+	};
+
+	uart2 {
+		/omit-if-no-ref/
+		uart2m0_xfer_pins: uart2m0-xfer-pins {
+			rockchip,pins =
+				/* uart2_rx_m0 */
+				<3 RK_PB0 4 &pcfg_pull_up>,
+				/* uart2_tx_m0 */
+				<3 RK_PB1 4 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart2m0_ctsn_pins: uart2m0-ctsn-pins {
+			rockchip,pins =
+				/* uart2m0_ctsn */
+				<3 RK_PA7 4 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart2m0_rtsn_pins: uart2m0-rtsn-pins {
+			rockchip,pins =
+				/* uart2m0_rtsn */
+				<3 RK_PA6 4 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart2m1_xfer_pins: uart2m1-xfer-pins {
+			rockchip,pins =
+				/* uart2_rx_m1 */
+				<7 RK_PB0 6 &pcfg_pull_up>,
+				/* uart2_tx_m1 */
+				<7 RK_PB1 6 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart2m1_ctsn_pins: uart2m1-ctsn-pins {
+			rockchip,pins =
+				/* uart2m1_ctsn */
+				<7 RK_PA4 6 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart2m1_rtsn_pins: uart2m1-rtsn-pins {
+			rockchip,pins =
+				/* uart2m1_rtsn */
+				<7 RK_PA7 6 &pcfg_pull_none>;
+		};
+	};
+
+	uart3 {
+		/omit-if-no-ref/
+		uart3m0_xfer_pins: uart3m0-xfer-pins {
+			rockchip,pins =
+				/* uart3_rx_m0 */
+				<2 RK_PA2 2 &pcfg_pull_up>,
+				/* uart3_tx_m0 */
+				<2 RK_PA3 2 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart3m0_ctsn_pins: uart3m0-ctsn-pins {
+			rockchip,pins =
+				/* uart3m0_ctsn */
+				<2 RK_PA5 2 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart3m0_rtsn_pins: uart3m0-rtsn-pins {
+			rockchip,pins =
+				/* uart3m0_rtsn */
+				<2 RK_PA4 2 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart3m1_xfer_pins: uart3m1-xfer-pins {
+			rockchip,pins =
+				/* uart3_rx_m1 */
+				<5 RK_PD5 8 &pcfg_pull_up>,
+				/* uart3_tx_m1 */
+				<5 RK_PD4 8 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart3m1_ctsn_pins: uart3m1-ctsn-pins {
+			rockchip,pins =
+				/* uart3m1_ctsn */
+				<5 RK_PD3 8 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart3m1_rtsn_pins: uart3m1-rtsn-pins {
+			rockchip,pins =
+				/* uart3m1_rtsn */
+				<5 RK_PD2 8 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart3m2_xfer_pins: uart3m2-xfer-pins {
+			rockchip,pins =
+				/* uart3_rx_m2 */
+				<6 RK_PC3 6 &pcfg_pull_up>,
+				/* uart3_tx_m2 */
+				<6 RK_PC2 6 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart3m2_ctsn_pins: uart3m2-ctsn-pins {
+			rockchip,pins =
+				/* uart3m2_ctsn */
+				<6 RK_PC1 6 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart3m2_rtsn_pins: uart3m2-rtsn-pins {
+			rockchip,pins =
+				/* uart3m2_rtsn */
+				<6 RK_PC0 6 &pcfg_pull_none>;
+		};
+	};
+
+	uart4 {
+		/omit-if-no-ref/
+		uart4m0_xfer_pins: uart4m0-xfer-pins {
+			rockchip,pins =
+				/* uart4_rx_m0 */
+				<4 RK_PA2 5 &pcfg_pull_up>,
+				/* uart4_tx_m0 */
+				<4 RK_PA3 5 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart4m0_ctsn_pins: uart4m0-ctsn-pins {
+			rockchip,pins =
+				/* uart4m0_ctsn */
+				<4 RK_PA1 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart4m0_rtsn_pins: uart4m0-rtsn-pins {
+			rockchip,pins =
+				/* uart4m0_rtsn */
+				<4 RK_PA0 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart4m1_xfer_pins: uart4m1-xfer-pins {
+			rockchip,pins =
+				/* uart4_rx_m1 */
+				<5 RK_PA3 8 &pcfg_pull_up>,
+				/* uart4_tx_m1 */
+				<5 RK_PA2 8 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart4m1_ctsn_pins: uart4m1-ctsn-pins {
+			rockchip,pins =
+				/* uart4m1_ctsn */
+				<5 RK_PA1 8 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart4m1_rtsn_pins: uart4m1-rtsn-pins {
+			rockchip,pins =
+				/* uart4m1_rtsn */
+				<5 RK_PA0 8 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart4m2_xfer_pins: uart4m2-xfer-pins {
+			rockchip,pins =
+				/* uart4_rx_m2 */
+				<6 RK_PA1 6 &pcfg_pull_up>,
+				/* uart4_tx_m2 */
+				<6 RK_PA0 6 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart4m2_ctsn_pins: uart4m2-ctsn-pins {
+			rockchip,pins =
+				/* uart4m2_ctsn */
+				<6 RK_PA7 6 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart4m2_rtsn_pins: uart4m2-rtsn-pins {
+			rockchip,pins =
+				/* uart4m2_rtsn */
+				<6 RK_PA6 6 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart4m3_xfer_pins: uart4m3-xfer-pins {
+			rockchip,pins =
+				/* uart4_rx_m3 */
+				<2 RK_PA4 3 &pcfg_pull_up>,
+				/* uart4_tx_m3 */
+				<2 RK_PA5 3 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart4m3_ctsn_pins: uart4m3-ctsn-pins {
+			rockchip,pins =
+				/* uart4m3_ctsn */
+				<2 RK_PA3 3 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart4m3_rtsn_pins: uart4m3-rtsn-pins {
+			rockchip,pins =
+				/* uart4m3_rtsn */
+				<2 RK_PA2 3 &pcfg_pull_none>;
+		};
+	};
+
+	uart5 {
+		/omit-if-no-ref/
+		uart5m0_xfer_pins: uart5m0-xfer-pins {
+			rockchip,pins =
+				/* uart5_rx_m0 */
+				<4 RK_PA7 5 &pcfg_pull_up>,
+				/* uart5_tx_m0 */
+				<4 RK_PA6 5 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart5m0_ctsn_pins: uart5m0-ctsn-pins {
+			rockchip,pins =
+				/* uart5m0_ctsn */
+				<4 RK_PB1 5 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart5m0_rtsn_pins: uart5m0-rtsn-pins {
+			rockchip,pins =
+				/* uart5m0_rtsn */
+				<4 RK_PB0 5 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart5m1_xfer_pins: uart5m1-xfer-pins {
+			rockchip,pins =
+				/* uart5_rx_m1 */
+				<5 RK_PA5 8 &pcfg_pull_up>,
+				/* uart5_tx_m1 */
+				<5 RK_PA4 8 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart5m1_ctsn_pins: uart5m1-ctsn-pins {
+			rockchip,pins =
+				/* uart5m1_ctsn */
+				<5 RK_PA7 8 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart5m1_rtsn_pins: uart5m1-rtsn-pins {
+			rockchip,pins =
+				/* uart5m1_rtsn */
+				<5 RK_PA6 8 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart5m2_xfer_pins: uart5m2-xfer-pins {
+			rockchip,pins =
+				/* uart5_rx_m2 */
+				<6 RK_PA3 6 &pcfg_pull_up>,
+				/* uart5_tx_m2 */
+				<6 RK_PA2 6 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart5m2_ctsn_pins: uart5m2-ctsn-pins {
+			rockchip,pins =
+				/* uart5m2_ctsn */
+				<6 RK_PA5 6 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart5m2_rtsn_pins: uart5m2-rtsn-pins {
+			rockchip,pins =
+				/* uart5m2_rtsn */
+				<6 RK_PA4 6 &pcfg_pull_none>;
+		};
+	};
+
+	uart6 {
+		/omit-if-no-ref/
+		uart6m0_xfer_pins: uart6m0-xfer-pins {
+			rockchip,pins =
+				/* uart6_rx_m0 */
+				<5 RK_PB1 8 &pcfg_pull_up>,
+				/* uart6_tx_m0 */
+				<5 RK_PB0 8 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart6m0_ctsn_pins: uart6m0-ctsn-pins {
+			rockchip,pins =
+				/* uart6m0_ctsn */
+				<5 RK_PB3 8 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart6m0_rtsn_pins: uart6m0-rtsn-pins {
+			rockchip,pins =
+				/* uart6m0_rtsn */
+				<5 RK_PB2 8 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart6m1_xfer_pins: uart6m1-xfer-pins {
+			rockchip,pins =
+				/* uart6_rx_m1 */
+				<6 RK_PB1 6 &pcfg_pull_up>,
+				/* uart6_tx_m1 */
+				<6 RK_PB0 6 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart6m1_ctsn_pins: uart6m1-ctsn-pins {
+			rockchip,pins =
+				/* uart6m1_ctsn */
+				<6 RK_PB3 6 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart6m1_rtsn_pins: uart6m1-rtsn-pins {
+			rockchip,pins =
+				/* uart6m1_rtsn */
+				<6 RK_PB2 6 &pcfg_pull_none>;
+		};
+	};
+
+	uart7 {
+		/omit-if-no-ref/
+		uart7m0_xfer_pins: uart7m0-xfer-pins {
+			rockchip,pins =
+				/* uart7_rx_m0 */
+				<5 RK_PB5 8 &pcfg_pull_up>,
+				/* uart7_tx_m0 */
+				<5 RK_PB4 8 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart7m0_ctsn_pins: uart7m0-ctsn-pins {
+			rockchip,pins =
+				/* uart7m0_ctsn */
+				<5 RK_PB7 8 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart7m0_rtsn_pins: uart7m0-rtsn-pins {
+			rockchip,pins =
+				/* uart7m0_rtsn */
+				<5 RK_PB6 8 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		uart7m1_xfer_pins: uart7m1-xfer-pins {
+			rockchip,pins =
+				/* uart7_rx_m1 */
+				<6 RK_PB5 6 &pcfg_pull_up>,
+				/* uart7_tx_m1 */
+				<6 RK_PB4 6 &pcfg_pull_up>;
+		};
+
+		/omit-if-no-ref/
+		uart7m1_ctsn_pins: uart7m1-ctsn-pins {
+			rockchip,pins =
+				/* uart7m1_ctsn */
+				<6 RK_PB7 6 &pcfg_pull_none>;
+		};
+		/omit-if-no-ref/
+		uart7m1_rtsn_pins: uart7m1-rtsn-pins {
+			rockchip,pins =
+				/* uart7m1_rtsn */
+				<6 RK_PB6 6 &pcfg_pull_none>;
+		};
+	};
+
+	vi_cif {
+		/omit-if-no-ref/
+		vi_cifm0_pins: vi-cifm0-pins {
+			rockchip,pins =
+				/* vi_cif_clkin_m0 */
+				<6 RK_PC1 1 &pcfg_pull_none>,
+				/* vi_cif_clkout_m0 */
+				<6 RK_PC2 1 &pcfg_pull_none>,
+				/* vi_cif_d0_m0 */
+				<6 RK_PA0 1 &pcfg_pull_none>,
+				/* vi_cif_d10_m0 */
+				<6 RK_PB2 1 &pcfg_pull_none>,
+				/* vi_cif_d11_m0 */
+				<6 RK_PB3 1 &pcfg_pull_none>,
+				/* vi_cif_d12_m0 */
+				<6 RK_PB4 1 &pcfg_pull_none>,
+				/* vi_cif_d13_m0 */
+				<6 RK_PB5 1 &pcfg_pull_none>,
+				/* vi_cif_d14_m0 */
+				<6 RK_PB6 1 &pcfg_pull_none>,
+				/* vi_cif_d15_m0 */
+				<6 RK_PB7 1 &pcfg_pull_none>,
+				/* vi_cif_d1_m0 */
+				<6 RK_PA1 1 &pcfg_pull_none>,
+				/* vi_cif_d2_m0 */
+				<6 RK_PA2 1 &pcfg_pull_none>,
+				/* vi_cif_d3_m0 */
+				<6 RK_PA3 1 &pcfg_pull_none>,
+				/* vi_cif_d4_m0 */
+				<6 RK_PA4 1 &pcfg_pull_none>,
+				/* vi_cif_d5_m0 */
+				<6 RK_PA5 1 &pcfg_pull_none>,
+				/* vi_cif_d6_m0 */
+				<6 RK_PA6 1 &pcfg_pull_none>,
+				/* vi_cif_d7_m0 */
+				<6 RK_PA7 1 &pcfg_pull_none>,
+				/* vi_cif_d8_m0 */
+				<6 RK_PB0 1 &pcfg_pull_none>,
+				/* vi_cif_d9_m0 */
+				<6 RK_PB1 1 &pcfg_pull_none>,
+				/* vi_cif_hsync_m0 */
+				<6 RK_PC3 1 &pcfg_pull_none>,
+				/* vi_cif_vsync_m0 */
+				<6 RK_PC0 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		vi_cifm1_pins: vi-cifm1-pins {
+			rockchip,pins =
+				/* vi_cif_clkin_m1 */
+				<5 RK_PC6 3 &pcfg_pull_none>,
+				/* vi_cif_clkout_m1 */
+				<5 RK_PC5 3 &pcfg_pull_none>,
+				/* vi_cif_d0_m1 */
+				<5 RK_PA0 3 &pcfg_pull_none>,
+				/* vi_cif_d10_m1 */
+				<5 RK_PB6 3 &pcfg_pull_none>,
+				/* vi_cif_d11_m1 */
+				<5 RK_PB7 3 &pcfg_pull_none>,
+				/* vi_cif_d12_m1 */
+				<5 RK_PC0 3 &pcfg_pull_none>,
+				/* vi_cif_d13_m1 */
+				<5 RK_PC1 3 &pcfg_pull_none>,
+				/* vi_cif_d14_m1 */
+				<5 RK_PC2 3 &pcfg_pull_none>,
+				/* vi_cif_d15_m1 */
+				<5 RK_PC3 3 &pcfg_pull_none>,
+				/* vi_cif_d1_m1 */
+				<5 RK_PA1 3 &pcfg_pull_none>,
+				/* vi_cif_d2_m1 */
+				<5 RK_PA2 3 &pcfg_pull_none>,
+				/* vi_cif_d3_m1 */
+				<5 RK_PA7 3 &pcfg_pull_none>,
+				/* vi_cif_d4_m1 */
+				<5 RK_PB0 3 &pcfg_pull_none>,
+				/* vi_cif_d5_m1 */
+				<5 RK_PB1 3 &pcfg_pull_none>,
+				/* vi_cif_d6_m1 */
+				<5 RK_PB2 3 &pcfg_pull_none>,
+				/* vi_cif_d7_m1 */
+				<5 RK_PB3 3 &pcfg_pull_none>,
+				/* vi_cif_d8_m1 */
+				<5 RK_PB4 3 &pcfg_pull_none>,
+				/* vi_cif_d9_m1 */
+				<5 RK_PB5 3 &pcfg_pull_none>,
+				/* vi_cif_hsync_m1 */
+				<5 RK_PC7 3 &pcfg_pull_none>,
+				/* vi_cif_vsync_m1 */
+				<5 RK_PC4 3 &pcfg_pull_none>;
+		};
+	};
+
+	vo_lcdc {
+		/omit-if-no-ref/
+		vo_lcdc_pins: vo-lcdc-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d0 */
+				<5 RK_PA0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d1 */
+				<5 RK_PA1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d2 */
+				<5 RK_PA2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d8 */
+				<5 RK_PB0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d9 */
+				<5 RK_PB1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d16 */
+				<5 RK_PC0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d17 */
+				<5 RK_PC1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d18 */
+				<5 RK_PC2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+	};
+};
+
+/*
+ * This part is edited handly.
+ */
+&pinctrl {
+	dsmc {
+		/omit-if-no-ref/
+		dsmc_csn_idle: dsmc-csn-idle {
+			rockchip,pins =
+				/* dsmc_csn0 */
+				<5 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
+				/* dsmc_csn1 */
+				<5 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,
+				/* dsmc_csn2 */
+				<5 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>,
+				/* dsmc_csn3 */
+				<5 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
+		};
+	};
+
+	pdm {
+		/omit-if-no-ref/
+		pdmm0_clk0_idle: pdmm0-clk0-idle {
+			rockchip,pins =
+				/* pdm_clk0_m0 */
+				<7 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm0_clk1_idle: pdmm0-clk1-idle {
+			rockchip,pins =
+				/* pdm_clk1_m0 */
+				<7 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_clk0_idle: pdmm1-clk0-idle {
+			rockchip,pins =
+				/* pdm_clk0_m1 */
+				<6 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		pdmm1_clk1_idle: pdmm1-clk1-idle {
+			rockchip,pins =
+				/* pdm_clk1_m1 */
+				<6 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
+	sdmmc0 {
+		/omit-if-no-ref/
+		sdmmc0_idle_pins: sdmmc0-idle-pins {
+			rockchip,pins =
+				<2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>,
+				<2 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>,
+				<2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_down>,
+				<2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_down>,
+				<2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>,
+				<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+	};
+
+	sdmmc1 {
+		/omit-if-no-ref/
+		sdmmc1_idle_pins: sdmmc1-idle-pins {
+			rockchip,pins =
+				<3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>,
+				<3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>,
+				<3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_down>,
+				<3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_down>,
+				<3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>,
+				<3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+	};
+
+	vo_lcdc {
+		/omit-if-no-ref/
+		bt1120_pins: bt1120-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none_drv_level_4_75>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		bt656_m0_pins: bt656-m0-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none_drv_level_4_75>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		bt656_m1_pins: bt656-m1-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none_drv_level_4_75>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none_drv_level_2_75>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none_drv_level_2_75>;
+		};
+
+		/omit-if-no-ref/
+		mcu_rgb3x8_rgb2x8_m0_pins: mcu-rgb3x8-rgb2x8-m0-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		mcu_rgb3x8_rgb2x8_m1_pins: mcu-rgb3x8-rgb2x8-m1-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		mcu_rgb565_pins: mcu-rgb565-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		mcu_rgb666_pins: mcu-rgb666-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d2 */
+				<5 RK_PA2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d18 */
+				<5 RK_PC2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		mcu_rgb888_pins: mcu-rgb888-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d0 */
+				<5 RK_PA0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d1 */
+				<5 RK_PA1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d2 */
+				<5 RK_PA2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d8 */
+				<5 RK_PB0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d9 */
+				<5 RK_PB1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d16 */
+				<5 RK_PC0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d17 */
+				<5 RK_PC1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d18 */
+				<5 RK_PC2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		rgb3x8_rgb2x8_m0_pins: rgb3x8-rgb2x8-m0-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		rgb3x8_rgb2x8_m1_pins: rgb3x8-rgb2x8-m1-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		rgb565_pins: rgb565-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		rgb666_pins: rgb666-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d2 */
+				<5 RK_PA2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d18 */
+				<5 RK_PC2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+
+		/omit-if-no-ref/
+		rgb888_pins: rgb888-pins {
+			rockchip,pins =
+				/* vo_lcdc_clk */
+				<5 RK_PD3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d0 */
+				<5 RK_PA0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d1 */
+				<5 RK_PA1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d2 */
+				<5 RK_PA2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d3 */
+				<5 RK_PA3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d4 */
+				<5 RK_PA4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d5 */
+				<5 RK_PA5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d6 */
+				<5 RK_PA6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d7 */
+				<5 RK_PA7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d8 */
+				<5 RK_PB0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d9 */
+				<5 RK_PB1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d10 */
+				<5 RK_PB2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d11 */
+				<5 RK_PB3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d12 */
+				<5 RK_PB4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d13 */
+				<5 RK_PB5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d14 */
+				<5 RK_PB6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d15 */
+				<5 RK_PB7 1 &pcfg_pull_none>,
+				/* vo_lcdc_d16 */
+				<5 RK_PC0 1 &pcfg_pull_none>,
+				/* vo_lcdc_d17 */
+				<5 RK_PC1 1 &pcfg_pull_none>,
+				/* vo_lcdc_d18 */
+				<5 RK_PC2 1 &pcfg_pull_none>,
+				/* vo_lcdc_d19 */
+				<5 RK_PC3 1 &pcfg_pull_none>,
+				/* vo_lcdc_d20 */
+				<5 RK_PC4 1 &pcfg_pull_none>,
+				/* vo_lcdc_d21 */
+				<5 RK_PC5 1 &pcfg_pull_none>,
+				/* vo_lcdc_d22 */
+				<5 RK_PC6 1 &pcfg_pull_none>,
+				/* vo_lcdc_d23 */
+				<5 RK_PC7 1 &pcfg_pull_none>,
+				/* vo_lcdc_den */
+				<5 RK_PD0 1 &pcfg_pull_none>,
+				/* vo_lcdc_hsync */
+				<5 RK_PD1 1 &pcfg_pull_none>,
+				/* vo_lcdc_vsync */
+				<5 RK_PD2 1 &pcfg_pull_none>;
+		};
+	};
+};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 5/7] gpio: rockchip: support new version GPIO
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
                   ` (3 preceding siblings ...)
  2025-12-16 11:20 ` [PATCH v3 4/7] arm64: dts: rockchip: rv1126b: Add pinconf and pinctrl dtsi for rv1126b Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding Ye Zhang
  2025-12-16 11:20 ` [PATCH v3 7/7] pinctrl: rockchip: add rmio support Ye Zhang
  6 siblings, 0 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang, Bartosz Golaszewski

Support the next version GPIO controller on SoCs like rv1126b.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/gpio/gpio-rockchip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c
index 47174eb3ba76..c3e831c6bcf1 100644
--- a/drivers/gpio/gpio-rockchip.c
+++ b/drivers/gpio/gpio-rockchip.c
@@ -36,6 +36,7 @@
 #define GPIO_TYPE_V2		(0x01000C2B)
 #define GPIO_TYPE_V2_1		(0x0101157C)
 #define GPIO_TYPE_V2_2		(0x010219C8)
+#define GPIO_TYPE_V2_6          (0x01063F6E)
 
 static const struct rockchip_gpio_regs gpio_regs_v1 = {
 	.port_dr = 0x00,
@@ -674,6 +675,7 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
 	case GPIO_TYPE_V2:
 	case GPIO_TYPE_V2_1:
 	case GPIO_TYPE_V2_2:
+	case GPIO_TYPE_V2_6:
 		bank->gpio_regs = &gpio_regs_v2;
 		bank->gpio_type = GPIO_TYPE_V2;
 		bank->db_clk = of_clk_get(bank->of_node, 1);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
                   ` (4 preceding siblings ...)
  2025-12-16 11:20 ` [PATCH v3 5/7] gpio: rockchip: support new version GPIO Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  2025-12-16 15:44   ` Rob Herring (Arm)
  2025-12-16 15:52   ` Krzysztof Kozlowski
  2025-12-16 11:20 ` [PATCH v3 7/7] pinctrl: rockchip: add rmio support Ye Zhang
  6 siblings, 2 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

1. Add header file with constants for RMIO function IDs for the Rockchip
RK3506 SoC.
2. Add device tree binding for the RMIO (Rockchip Matrix I/O) controller
which is a sub-device of the main pinctrl on some Rockchip SoCs.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
---
 .../bindings/pinctrl/rockchip,pinctrl.yaml    |   9 ++
 .../bindings/pinctrl/rockchip,rmio.yaml       | 106 +++++++++++++++++
 .../pinctrl/rockchip,rk3506-rmio.h            | 109 ++++++++++++++++++
 3 files changed, 224 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
 create mode 100644 include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h

diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
index 97960245676d..9a27eaf7942b 100644
--- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
@@ -82,6 +82,15 @@ required:
   - rockchip,grf
 
 patternProperties:
+  "rmio[0-9]*$":
+    type: object
+
+    $ref: "/schemas/pinctrl/rockchip,rmio.yaml#"
+
+    description:
+      The RMIO (Rockchip Matrix I/O) controller node which functions as a
+      sub-device of the main pinctrl to handle flexible function routing.
+
   "gpio@[0-9a-f]+$":
     type: object
 
diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
new file mode 100644
index 000000000000..af0b34512fb9
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
@@ -0,0 +1,106 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/rockchip,rmio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: RMIO (Rockchip Matrix I/O) Controller
+
+maintainers:
+  - Heiko Stuebner <heiko@sntech.de>
+
+description: |
+  The RMIO controller provides a flexible routing matrix that allows mapping
+  various internal peripheral functions (UART, SPI, PWM, etc.) to specific
+  physical pins. This block is typically a sub-block of the GRF
+  (General Register Files) or PMU (Power Management Unit).
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - rockchip,rk3506-rmio
+      - const: rockchip,rmio
+
+  rockchip,rmio-grf:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      The phandle of the syscon node (GRF or PMU) containing the RMIO registers.
+      This property is required if the RMIO registers are located in a different
+      syscon than the parent pinctrl node.
+
+  rockchip,offset:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description:
+      The offset of the RMIO configuration registers within the GRF.
+
+  rockchip,pins-num:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description:
+      The number of physical pins supported by this RMIO instance.
+      Used for boundary checking and driver initialization.
+
+patternProperties:
+  "^[a-z0-9-]+$":
+    type: object
+    description:
+      Function node grouping multiple groups.
+
+    patternProperties:
+      "^[a-z0-9-]+$":
+        type: object
+        description:
+          Group node containing the pinmux configuration.
+
+        properties:
+          rockchip,rmio:
+            $ref: /schemas/types.yaml#/definitions/uint32-matrix
+            description:
+              A list of pin-function pairs. The format is <pin_id function_id>.
+            minItems: 1
+            items:
+              items:
+                - description: RMIO Pin ID (0 to pins-num - 1)
+                  minimum: 0
+                  maximum: 31
+                - description: Function ID
+                  minimum: 0
+                  maximum: 98
+
+        required:
+          - rockchip,rmio
+
+        additionalProperties: false
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - rockchip,rmio-grf
+  - rockchip,offset
+  - rockchip,pins-num
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/pinctrl/rockchip,rk3506-rmio.h>
+
+    pinctrl: pinctrl {
+        rmio: rmio {
+            compatible = "rockchip,rk3506-rmio", "rockchip,rmio";
+            rockchip,rmio-grf = <&grf_pmu>;
+            rockchip,offset = <0x80>;
+            rockchip,pins-num = <32>;
+
+            rmio-uart {
+                rmio_pin27_uart1_tx: rmio-pin27-uart1-tx {
+                    rockchip,rmio = <27 RMIO_UART1_TX>;
+                };
+
+                rmio_pin28_uart1_rx: rmio-pin28-uart1-rx {
+                    rockchip,rmio = <28 RMIO_UART1_RX>;
+                };
+            };
+        };
+    };
diff --git a/include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h b/include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h
new file mode 100644
index 000000000000..b129e9a8c287
--- /dev/null
+++ b/include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h
@@ -0,0 +1,109 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
+/*
+ * Copyright (c) 2025 Rockchip Electronics Co., Ltd.
+ */
+
+#ifndef __DT_BINDINGS_PINCTRL_ROCKCHIP_RK3506_RMIO_H
+#define __DT_BINDINGS_PINCTRL_ROCKCHIP_RK3506_RMIO_H
+
+/* RMIO function definition */
+#define RMIO_UART1_TX			1
+#define RMIO_UART1_RX			2
+#define RMIO_UART2_TX			3
+#define RMIO_UART2_RX			4
+#define RMIO_UART3_TX			5
+#define RMIO_UART3_RX			6
+#define RMIO_UART3_CTSN			7
+#define RMIO_UART3_RTSN			8
+#define RMIO_UART4_TX			9
+#define RMIO_UART4_RX			10
+#define RMIO_UART4_CTSN			11
+#define RMIO_UART4_RTSN			12
+#define RMIO_MIPITE			13
+#define RMIO_CLK_32K			14
+#define RMIO_I2C0_SCL			15
+#define RMIO_I2C0_SDA			16
+#define RMIO_I2C1_SCL			17
+#define RMIO_I2C1_SDA			18
+#define RMIO_I2C2_SCL			19
+#define RMIO_I2C2_SDA			20
+#define RMIO_PDM_CLK0			21
+#define RMIO_PDM_SDI0			22
+#define RMIO_PDM_SDI1			23
+#define RMIO_PDM_SDI2			24
+#define RMIO_PDM_SDI3			25
+#define RMIO_CAN1_TX			26
+#define RMIO_CAN1_RX			27
+#define RMIO_CAN0_TX			28
+#define RMIO_CAN0_RX			29
+#define RMIO_PWM0_CH0			30
+#define RMIO_PWM0_CH1			31
+#define RMIO_PWM0_CH2			32
+#define RMIO_PWM0_CH3			33
+#define RMIO_PWM1_CH0			34
+#define RMIO_PWM1_CH1			35
+#define RMIO_PWM1_CH2			36
+#define RMIO_PWM1_CH3			37
+#define RMIO_PWM1_CH4			38
+#define RMIO_PWM1_CH5			39
+#define RMIO_PWM1_CH6			40
+#define RMIO_PWM1_CH7			41
+#define RMIO_TOUCH_KEY_DRIVE		42
+#define RMIO_TOUCH_KEY_IN0		43
+#define RMIO_TOUCH_KEY_IN1		44
+#define RMIO_TOUCH_KEY_IN2		45
+#define RMIO_TOUCH_KEY_IN3		46
+#define RMIO_TOUCH_KEY_IN4		47
+#define RMIO_TOUCH_KEY_IN5		48
+#define RMIO_TOUCH_KEY_IN6		49
+#define RMIO_TOUCH_KEY_IN7		50
+#define RMIO_SAI0_MCLK			51
+#define RMIO_SAI0_SCLK			52
+#define RMIO_SAI0_LRCK			53
+#define RMIO_SAI0_SDI0			54
+#define RMIO_SAI0_SDI1			55
+#define RMIO_SAI0_SDI2			56
+#define RMIO_SAI0_SDI3			57
+#define RMIO_SAI0_SDO			58
+#define RMIO_SAI1_MCLK			59
+#define RMIO_SAI1_SCLK			60
+#define RMIO_SAI1_LRCK			61
+#define RMIO_SAI1_SDI			62
+#define RMIO_SAI1_SDO0			63
+#define RMIO_SAI1_SDO1			64
+#define RMIO_SAI1_SDO2			65
+#define RMIO_SAI1_SDO3			66
+#define RMIO_SPI0_CLK			67
+#define RMIO_SPI0_MOSI			68
+#define RMIO_SPI0_MISO			69
+#define RMIO_SPI0_CSN0			70
+#define RMIO_SPI0_CSN1			71
+#define RMIO_SPI1_CLK			72
+#define RMIO_SPI1_MOSI			73
+#define RMIO_SPI1_MISO			74
+#define RMIO_SPI1_CSN0			75
+#define RMIO_SPI1_CSN1			76
+#define RMIO_WDT_TSADC_SHUT		77
+#define RMIO_PMU_SLEEP			78
+#define RMIO_CORE_POWER_OFF		79
+#define RMIO_SPDIF_TX			80
+#define RMIO_SPDIF_RX			81
+#define RMIO_PWM1_BIP_CNTR_A0		82
+#define RMIO_PWM1_BIP_CNTR_A1		83
+#define RMIO_PWM1_BIP_CNTR_A2		84
+#define RMIO_PWM1_BIP_CNTR_A3		85
+#define RMIO_PWM1_BIP_CNTR_A4		86
+#define RMIO_PWM1_BIP_CNTR_A5		87
+#define RMIO_PWM1_BIP_CNTR_B0		88
+#define RMIO_PWM1_BIP_CNTR_B1		89
+#define RMIO_PWM1_BIP_CNTR_B2		90
+#define RMIO_PWM1_BIP_CNTR_B3		91
+#define RMIO_PWM1_BIP_CNTR_B4		92
+#define RMIO_PWM1_BIP_CNTR_B5		93
+#define RMIO_PDM_CLK1			94
+#define RMIO_ETH_RMII0_PPSCLK		95
+#define RMIO_ETH_RMII0_PPSTRIG		96
+#define RMIO_ETH_RMII1_PPSCLK		97
+#define RMIO_ETH_RMII1_PPSTRIG		98
+
+#endif /* __DT_BINDINGS_PINCTRL_ROCKCHIP_RK3506_RMIO_H */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 7/7] pinctrl: rockchip: add rmio support
  2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
                   ` (5 preceding siblings ...)
  2025-12-16 11:20 ` [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding Ye Zhang
@ 2025-12-16 11:20 ` Ye Zhang
  6 siblings, 0 replies; 10+ messages in thread
From: Ye Zhang @ 2025-12-16 11:20 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

Support Rockchip Matrix IO(RMIO), which can be configured with registers
to route arbitrary signals from low-speed IP, such as UART/I2C, to the
selected IO PAD.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
---
 drivers/pinctrl/pinctrl-rockchip.c | 401 ++++++++++++++++++++++++++++-
 drivers/pinctrl/pinctrl-rockchip.h |  42 +++
 2 files changed, 442 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c
index dc7ef12dfcb0..cfd8117ab460 100644
--- a/drivers/pinctrl/pinctrl-rockchip.c
+++ b/drivers/pinctrl/pinctrl-rockchip.c
@@ -3961,6 +3961,11 @@ static const struct of_device_id rockchip_bank_match[] = {
 	{},
 };
 
+static const struct of_device_id rockchip_rmio_dt_match[] = {
+	{ .compatible = "rockchip,rmio" },
+	{},
+};
+
 static void rockchip_pinctrl_child_count(struct rockchip_pinctrl *info,
 						struct device_node *np)
 {
@@ -3969,6 +3974,8 @@ static void rockchip_pinctrl_child_count(struct rockchip_pinctrl *info,
 	for_each_child_of_node(np, child) {
 		if (of_match_node(rockchip_bank_match, child))
 			continue;
+		if (of_match_node(rockchip_rmio_dt_match, child))
+			continue;
 
 		info->nfunctions++;
 		info->ngroups += of_get_child_count(child);
@@ -4101,6 +4108,8 @@ static int rockchip_pinctrl_parse_dt(struct platform_device *pdev,
 	for_each_child_of_node_scoped(np, child) {
 		if (of_match_node(rockchip_bank_match, child))
 			continue;
+		if (of_match_node(rockchip_rmio_dt_match, child))
+			continue;
 
 		ret = rockchip_pinctrl_parse_functions(child, info, i++);
 		if (ret) {
@@ -4431,6 +4440,388 @@ static void rockchip_pinctrl_remove(struct platform_device *pdev)
 	}
 }
 
+static int rockchip_rmio_set_mux(struct rockchip_rmio *info, int id, int func)
+{
+	struct device *dev = info->dev;
+
+	if (id >= info->nr_pins)
+		return -EINVAL;
+
+	dev_dbg(dev, "setting function of %s%d to %d\n", dev_name(dev), id, func);
+
+	return regmap_write(info->regmap, info->offset + id * 4,
+			    RK_RMIO_WRITE_ENABLE_MASK | func);
+}
+
+static int rockchip_rmio_parse_groups(struct device_node *np,
+				      struct rockchip_rmio_group *grp,
+				      struct rockchip_rmio *info,
+				      u32 index)
+{
+	struct device *dev = info->dev;
+	int count;
+	u32 *tmp;
+	int i;
+
+	dev_dbg(dev, "group(%d): %pOFn\n", index, np);
+
+	/*
+	 * the binding format is rockchip,rmio = <pin func>,
+	 * do sanity check and calculate pins number
+	 */
+	count = of_property_count_u32_elems(np, "rockchip,rmio");
+	if (count <= 0 || count % 2 != 0)
+		return -EINVAL;
+
+	tmp = kcalloc(count, sizeof(u32), GFP_KERNEL);
+	if (!tmp)
+		return -ENOMEM;
+
+	of_property_read_u32_array(np, "rockchip,rmio", tmp, count);
+
+	/* Initialise group */
+	grp->name = np->name;
+	grp->npins = count / 2;
+	grp->pins = devm_kcalloc(dev, grp->npins, sizeof(*grp->pins), GFP_KERNEL);
+	grp->func = devm_kcalloc(dev, grp->npins, sizeof(*grp->func), GFP_KERNEL);
+	if (!grp->pins || !grp->func) {
+		kfree(tmp);
+		return -ENOMEM;
+	}
+
+	for (i = 0; i < grp->npins; i++) {
+		grp->pins[i] = tmp[2 * i];
+		grp->func[i] = tmp[2 * i + 1];
+	}
+	kfree(tmp);
+
+	return 0;
+}
+
+static int rockchip_rmio_parse_functions(struct device_node *np,
+					 struct rockchip_rmio *info,
+					 u32 index)
+{
+	struct device *dev = info->dev;
+	struct device_node *child;
+	struct rockchip_rmio_func *func;
+	struct rockchip_rmio_group *grp;
+	int ret;
+	u32 i, grp_index = 0;
+
+	dev_dbg(dev, "parse function(%d): %pOFn\n", index, np);
+
+	for (i = 0, func = info->functions; i < index; i++, func++)
+		grp_index += func->ngroups;
+
+	func = &info->functions[index];
+
+	/* Initialise function */
+	func->name = np->name;
+	func->ngroups = of_get_child_count(np);
+	if (func->ngroups <= 0)
+		return 0;
+
+	func->groups = devm_kcalloc(dev, func->ngroups, sizeof(*func->groups), GFP_KERNEL);
+	if (!func->groups)
+		return -ENOMEM;
+
+	i = 0;
+	for_each_child_of_node(np, child) {
+		func->groups[i] = child->name;
+		grp = &info->groups[grp_index + i];
+		ret = rockchip_rmio_parse_groups(child, grp, info, i++);
+		if (ret) {
+			of_node_put(child);
+			return ret;
+		}
+	}
+
+	return 0;
+}
+
+static int rockchip_rmio_parse_dt(struct platform_device *pdev,
+				  struct rockchip_rmio *info)
+{
+	struct device *dev = &pdev->dev;
+	struct device_node *np = dev->of_node;
+	struct device_node *child;
+	int ret;
+	int i = 0;
+
+	for_each_child_of_node(np, child) {
+		info->nfunctions++;
+		info->ngroups += of_get_child_count(child);
+	}
+
+	dev_dbg(dev, "nfunctions = %d\n", info->nfunctions);
+	dev_dbg(dev, "ngroups = %d\n", info->ngroups);
+
+	info->functions = devm_kcalloc(dev, info->nfunctions, sizeof(*info->functions), GFP_KERNEL);
+	if (!info->functions)
+		return -ENOMEM;
+
+	info->groups = devm_kcalloc(dev, info->ngroups, sizeof(*info->groups), GFP_KERNEL);
+	if (!info->groups)
+		return -ENOMEM;
+
+	for_each_child_of_node(np, child) {
+		ret = rockchip_rmio_parse_functions(child, info, i++);
+		if (ret) {
+			dev_err(dev, "failed to parse function, ret = %d\n", ret);
+			of_node_put(child);
+			return ret;
+		}
+	}
+
+	return 0;
+}
+
+static int rockchip_rmio_get_groups_count(struct pinctrl_dev *pctldev)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+
+	return info->ngroups;
+}
+
+static const char *rockchip_rmio_get_group_name(struct pinctrl_dev *pctldev,
+						unsigned int selector)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+
+	return info->groups[selector].name;
+}
+
+static int rockchip_rmio_get_group_pins(struct pinctrl_dev *pctldev,
+					unsigned int selector,
+					const unsigned int **pins,
+					unsigned int *npins)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+
+	if (selector >= info->ngroups)
+		return -EINVAL;
+
+	*pins = info->groups[selector].pins;
+	*npins = info->groups[selector].npins;
+
+	return 0;
+}
+
+static int rockchip_rmio_dt_node_to_map(struct pinctrl_dev *pctldev,
+					struct device_node *np,
+					struct pinctrl_map **map,
+					unsigned int *num_maps)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+	struct device *dev = info->dev;
+	struct pinctrl_map *new_map;
+	struct device_node *parent;
+
+	parent = of_get_parent(np);
+	if (!parent)
+		return -EINVAL;
+
+	/* the rmio only need to create mux map */
+	new_map = kzalloc(sizeof(*new_map), GFP_KERNEL);
+	if (!new_map) {
+		of_node_put(parent);
+		return -ENOMEM;
+	}
+
+	*map = new_map;
+	*num_maps = 1;
+
+	/* the rmio only need to create mux map */
+	new_map->type = PIN_MAP_TYPE_MUX_GROUP;
+	new_map->data.mux.function = parent->name;
+	new_map->data.mux.group = np->name;
+	of_node_put(parent);
+
+	dev_dbg(dev, "maps: function %s group %s\n",
+		(*map)->data.mux.function, (*map)->data.mux.group);
+
+	return 0;
+}
+
+static void rockchip_rmio_dt_free_map(struct pinctrl_dev *pctldev,
+				      struct pinctrl_map *map,
+				      unsigned int num_maps)
+{
+	kfree(map);
+}
+
+static const struct pinctrl_ops rockchip_rmio_pctrl_ops = {
+	.get_groups_count	= rockchip_rmio_get_groups_count,
+	.get_group_name		= rockchip_rmio_get_group_name,
+	.get_group_pins		= rockchip_rmio_get_group_pins,
+	.dt_node_to_map		= rockchip_rmio_dt_node_to_map,
+	.dt_free_map		= rockchip_rmio_dt_free_map,
+};
+
+static int rockchip_rmio_get_funcs_count(struct pinctrl_dev *pctldev)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+
+	return info->nfunctions;
+}
+
+static const char *rockchip_rmio_get_func_name(struct pinctrl_dev *pctldev,
+					       unsigned int selector)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+
+	return info->functions[selector].name;
+}
+
+static int rockchip_rmio_get_groups(struct pinctrl_dev *pctldev,
+				    unsigned int selector,
+				    const char * const **groups,
+				    unsigned int * const num_groups)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+
+	*groups = info->functions[selector].groups;
+	*num_groups = info->functions[selector].ngroups;
+
+	return 0;
+}
+
+static int rockchip_rmio_pmx_set(struct pinctrl_dev *pctldev,
+				 unsigned int selector,
+				 unsigned int group)
+{
+	struct rockchip_rmio *info = pinctrl_dev_get_drvdata(pctldev);
+	const unsigned int *pins = info->groups[group].pins;
+	const unsigned int *func = info->groups[group].func;
+	struct device *dev = info->dev;
+	int cnt, ret = 0;
+
+	dev_dbg(dev, "enable function %s group %s\n",
+		info->functions[selector].name, info->groups[group].name);
+
+	/*
+	 * for each pin in the pin group selected, program the corresponding
+	 * pin function number in the config register.
+	 */
+	for (cnt = 0; cnt < info->groups[group].npins; cnt++) {
+		ret = rockchip_rmio_set_mux(info, pins[cnt], func[cnt]);
+		if (ret)
+			break;
+	}
+
+	if (ret && cnt) {
+		/* revert the already done pin settings */
+		for (cnt--; cnt >= 0; cnt--)
+			rockchip_rmio_set_mux(info, pins[cnt], RK_RMIO_NC);
+
+		return ret;
+	}
+
+	return 0;
+}
+
+static const struct pinmux_ops rockchip_rmio_pmx_ops = {
+	.get_functions_count	= rockchip_rmio_get_funcs_count,
+	.get_function_name	= rockchip_rmio_get_func_name,
+	.get_function_groups	= rockchip_rmio_get_groups,
+	.set_mux		= rockchip_rmio_pmx_set,
+};
+
+static int rockchip_rmio_register(struct platform_device *pdev,
+				  struct rockchip_rmio *info)
+{
+	struct pinctrl_desc *ctrldesc = &info->pctl;
+	struct pinctrl_pin_desc *pindesc, *pdesc;
+	struct device *dev = &pdev->dev;
+	char **pin_names;
+	int ret;
+	int i;
+	int nr_pins = info->nr_pins;
+
+	ctrldesc->name = dev_name(dev);
+	ctrldesc->owner = THIS_MODULE;
+	ctrldesc->pctlops = &rockchip_rmio_pctrl_ops;
+	ctrldesc->pmxops = &rockchip_rmio_pmx_ops;
+
+	pindesc = devm_kcalloc(dev, nr_pins, sizeof(*pindesc), GFP_KERNEL);
+	if (!pindesc)
+		return -ENOMEM;
+
+	ctrldesc->pins = pindesc;
+	ctrldesc->npins = nr_pins;
+
+	pdesc = pindesc;
+	pin_names = devm_kasprintf_strarray(dev, dev_name(dev), nr_pins);
+	if (IS_ERR(pin_names))
+		return PTR_ERR(pin_names);
+	for (i = 0; i < nr_pins; i++) {
+		pdesc->number = i;
+		pdesc->name = pin_names[i];
+		pdesc++;
+	}
+
+	ret = rockchip_rmio_parse_dt(pdev, info);
+	if (ret)
+		return ret;
+
+	info->pctl_dev = devm_pinctrl_register(dev, ctrldesc, info);
+	if (IS_ERR(info->pctl_dev))
+		return dev_err_probe(dev, PTR_ERR(info->pctl_dev),
+				     "could not register pinctrl driver\n");
+
+	return 0;
+}
+
+static int rockchip_rmio_probe(struct platform_device *pdev)
+{
+	struct rockchip_rmio *info;
+	struct device *dev = &pdev->dev;
+	struct device_node *np = pdev->dev.of_node;
+	int ret;
+
+	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
+	if (!info)
+		return -ENOMEM;
+
+	info->dev = dev;
+
+	info->regmap = syscon_regmap_lookup_by_phandle(np, "rockchip,rmio-grf");
+	if (IS_ERR(info->regmap)) {
+		dev_err(&pdev->dev, "missing rockchip,rmio-grf property\n");
+		return PTR_ERR(info->regmap);
+	}
+
+	ret = of_property_read_u32(np, "rockchip,offset", &info->offset);
+	if (ret < 0) {
+		dev_err(&pdev->dev, "missing rockchip,offset property\n");
+		return ret;
+	}
+
+	ret = of_property_read_u32(np, "rockchip,pins-num", &info->nr_pins);
+	if (ret < 0) {
+		dev_err(&pdev->dev, "missing rockchip,pins-num property\n");
+		return ret;
+	}
+
+	ret = rockchip_rmio_register(pdev, info);
+	if (ret)
+		return ret;
+
+	platform_set_drvdata(pdev, info);
+	dev_info(dev, "probed %pfw\n", dev_fwnode(dev));
+
+	return 0;
+}
+
+static struct platform_driver rockchip_rmio_driver = {
+	.probe = rockchip_rmio_probe,
+	.driver = {
+		.name = "rockchip-rmio",
+		.of_match_table = rockchip_rmio_dt_match,
+	},
+};
+
 static struct rockchip_pin_bank px30_pin_banks[] = {
 	PIN_BANK_IOMUX_FLAGS(0, 32, "gpio0", IOMUX_SOURCE_PMU,
 					     IOMUX_SOURCE_PMU,
@@ -5190,12 +5581,19 @@ static struct platform_driver rockchip_pinctrl_driver = {
 
 static int __init rockchip_pinctrl_drv_register(void)
 {
-	return platform_driver_register(&rockchip_pinctrl_driver);
+	int ret;
+
+	ret = platform_driver_register(&rockchip_pinctrl_driver);
+	if (ret)
+		return ret;
+
+	return platform_driver_register(&rockchip_rmio_driver);
 }
 postcore_initcall(rockchip_pinctrl_drv_register);
 
 static void __exit rockchip_pinctrl_drv_unregister(void)
 {
+	platform_driver_unregister(&rockchip_rmio_driver);
 	platform_driver_unregister(&rockchip_pinctrl_driver);
 }
 module_exit(rockchip_pinctrl_drv_unregister);
@@ -5204,3 +5602,4 @@ MODULE_DESCRIPTION("ROCKCHIP Pin Controller Driver");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:pinctrl-rockchip");
 MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match);
+MODULE_DEVICE_TABLE(of, rockchip_rmio_dt_match);
diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h
index fe18b62ed994..db875f7a3d2f 100644
--- a/drivers/pinctrl/pinctrl-rockchip.h
+++ b/drivers/pinctrl/pinctrl-rockchip.h
@@ -183,6 +183,9 @@
 #define RK_GPIO4_D6	158
 #define RK_GPIO4_D7	159
 
+#define RK_RMIO_NC			0
+#define RK_RMIO_WRITE_ENABLE_MASK	0xFFFF0000
+
 enum rockchip_pinctrl_type {
 	PX30,
 	RV1108,
@@ -473,4 +476,43 @@ struct rockchip_pinctrl {
 	unsigned int			nfunctions;
 };
 
+/**
+ * struct rockchip_rmio_group: represent a group of pins in RMIO controller.
+ * @name: name of the pin group, used to lookup the group.
+ * @pins: array of pins included in this group.
+ * @npins: number of pins included in this group.
+ * @func: local pins function select
+ */
+struct rockchip_rmio_group {
+	const char			*name;
+	unsigned int			npins;
+	unsigned int			*pins;
+	unsigned int			*func;
+};
+
+/**
+ * struct rockchip_rmio_func: represent a RMIO pin function.
+ * @name: name of the RMIO function, used to lookup the function.
+ * @groups: array of group names that can provide this RMIO function.
+ * @ngroups: number of groups included in @groups.
+ */
+struct rockchip_rmio_func {
+	const char		*name;
+	const char		**groups;
+	u8			ngroups;
+};
+
+struct rockchip_rmio {
+	struct regmap			*regmap;
+	u32				offset;
+	struct device			*dev;
+	struct pinctrl_desc		pctl;
+	struct pinctrl_dev		*pctl_dev;
+	unsigned int			nr_pins;
+	struct rockchip_rmio_group	*groups;
+	unsigned int			ngroups;
+	struct rockchip_rmio_func	*functions;
+	unsigned int			nfunctions;
+};
+
 #endif
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding
  2025-12-16 11:20 ` [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding Ye Zhang
@ 2025-12-16 15:44   ` Rob Herring (Arm)
  2025-12-16 15:52   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 10+ messages in thread
From: Rob Herring (Arm) @ 2025-12-16 15:44 UTC (permalink / raw)
  To: Ye Zhang
  Cc: linux-kernel, Krzysztof Kozlowski, Bartosz Golaszewski,
	devicetree, tao.huang, Linus Walleij, linux-rockchip,
	linux-arm-kernel, Heiko Stuebner, linux-gpio, Conor Dooley


On Tue, 16 Dec 2025 19:20:52 +0800, Ye Zhang wrote:
> 1. Add header file with constants for RMIO function IDs for the Rockchip
> RK3506 SoC.
> 2. Add device tree binding for the RMIO (Rockchip Matrix I/O) controller
> which is a sub-device of the main pinctrl on some Rockchip SoCs.
> 
> Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
> ---
>  .../bindings/pinctrl/rockchip,pinctrl.yaml    |   9 ++
>  .../bindings/pinctrl/rockchip,rmio.yaml       | 106 +++++++++++++++++
>  .../pinctrl/rockchip,rk3506-rmio.h            | 109 ++++++++++++++++++
>  3 files changed, 224 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
>  create mode 100644 include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h
> 

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:
./Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml:88:11: [error] string value is redundantly quoted with any quotes (quoted-strings)

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.example.dtb: rmio (rockchip,rk3506-rmio): compatible: ['rockchip,rk3506-rmio', 'rockchip,rmio'] is not of type 'object'
	from schema $id: http://devicetree.org/schemas/pinctrl/rockchip,rmio.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.kernel.org/project/devicetree/patch/20251216112053.1927852-7-ye.zhang@rock-chips.com

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding
  2025-12-16 11:20 ` [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding Ye Zhang
  2025-12-16 15:44   ` Rob Herring (Arm)
@ 2025-12-16 15:52   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-16 15:52 UTC (permalink / raw)
  To: Ye Zhang, Linus Walleij, Heiko Stuebner
  Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, tao.huang

On 16/12/2025 12:20, Ye Zhang wrote:
> 1. Add header file with constants for RMIO function IDs for the Rockchip
> RK3506 SoC.
> 2. Add device tree binding for the RMIO (Rockchip Matrix I/O) controller
> which is a sub-device of the main pinctrl on some Rockchip SoCs.
> 
> Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
> ---
>  .../bindings/pinctrl/rockchip,pinctrl.yaml    |   9 ++
>  .../bindings/pinctrl/rockchip,rmio.yaml       | 106 +++++++++++++++++
>  .../pinctrl/rockchip,rk3506-rmio.h            | 109 ++++++++++++++++++
>  3 files changed, 224 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
>  create mode 100644 include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
> index 97960245676d..9a27eaf7942b 100644
> --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
> @@ -82,6 +82,15 @@ required:
>    - rockchip,grf
>  
>  patternProperties:
> +  "rmio[0-9]*$":
> +    type: object
> +
> +    $ref: "/schemas/pinctrl/rockchip,rmio.yaml#"
> +
> +    description:
> +      The RMIO (Rockchip Matrix I/O) controller node which functions as a
> +      sub-device of the main pinctrl to handle flexible function routing.

No. Your child has no resources, so it's not proper hardware
representation. Don't use Linux driver model in the bindings.

That's a NAK. Don't send the same AGAIN without addressing comments like
you did here.

> +
>    "gpio@[0-9a-f]+$":
>      type: object
>  
> diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
> new file mode 100644
> index 000000000000..af0b34512fb9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,rmio.yaml
> @@ -0,0 +1,106 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/rockchip,rmio.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: RMIO (Rockchip Matrix I/O) Controller
> +
> +maintainers:
> +  - Heiko Stuebner <heiko@sntech.de>
> +
> +description: |
> +  The RMIO controller provides a flexible routing matrix that allows mapping
> +  various internal peripheral functions (UART, SPI, PWM, etc.) to specific
> +  physical pins. This block is typically a sub-block of the GRF
> +  (General Register Files) or PMU (Power Management Unit).
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - rockchip,rk3506-rmio
> +      - const: rockchip,rmio

I don't see how pinctrl deserves generic compatible. I already commented
on this.


> +
> +  rockchip,rmio-grf:
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +    description:
> +      The phandle of the syscon node (GRF or PMU) containing the RMIO registers.
> +      This property is required if the RMIO registers are located in a different
> +      syscon than the parent pinctrl node.

Why "if"? How this can be flexible?

Anyway, you did not address my previous comment at all.

NAK

> +
> +  rockchip,offset:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description:
> +      The offset of the RMIO configuration registers within the GRF.

No, this belongs to the phandle.

Look how this is already described and do not come with other style.

> +
> +  rockchip,pins-num:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description:
> +      The number of physical pins supported by this RMIO instance.
> +      Used for boundary checking and driver initialization.
> +
> +patternProperties:
> +  "^[a-z0-9-]+$":

No, use a prefix or suffix. See other pinctrl bindings.

> +    type: object
> +    description:
> +      Function node grouping multiple groups.
> +
> +    patternProperties:
> +      "^[a-z0-9-]+$":

Same ocmment

> +        type: object
> +        description:
> +          Group node containing the pinmux configuration.
> +
> +        properties:
> +          rockchip,rmio:
> +            $ref: /schemas/types.yaml#/definitions/uint32-matrix
> +            description:
> +              A list of pin-function pairs. The format is <pin_id function_id>.
> +            minItems: 1
> +            items:
> +              items:
> +                - description: RMIO Pin ID (0 to pins-num - 1)
> +                  minimum: 0
> +                  maximum: 31
> +                - description: Function ID
> +                  minimum: 0
> +                  maximum: 98
> +
> +        required:
> +          - rockchip,rmio

Why aren't you using standard pinctrl bindings?

> +
> +        additionalProperties: false
> +
> +    additionalProperties: false
> +
> +required:
> +  - compatible
> +  - rockchip,rmio-grf
> +  - rockchip,offset
> +  - rockchip,pins-num
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/pinctrl/rockchip,rk3506-rmio.h>
> +
> +    pinctrl: pinctrl {

What's this?

> +        rmio: rmio {
> +            compatible = "rockchip,rk3506-rmio", "rockchip,rmio";
> +            rockchip,rmio-grf = <&grf_pmu>;
> +            rockchip,offset = <0x80>;
> +            rockchip,pins-num = <32>;
> +
> +            rmio-uart {
> +                rmio_pin27_uart1_tx: rmio-pin27-uart1-tx {
> +                    rockchip,rmio = <27 RMIO_UART1_TX>;
> +                };
> +
> +                rmio_pin28_uart1_rx: rmio-pin28-uart1-rx {
> +                    rockchip,rmio = <28 RMIO_UART1_RX>;
> +                };
> +            };
> +        };
> +    };
> diff --git a/include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h b/include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h
> new file mode 100644
> index 000000000000..b129e9a8c287
> --- /dev/null
> +++ b/include/dt-bindings/pinctrl/rockchip,rk3506-rmio.h
> @@ -0,0 +1,109 @@
> +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
> +/*
> + * Copyright (c) 2025 Rockchip Electronics Co., Ltd.
> + */
> +
> +#ifndef __DT_BINDINGS_PINCTRL_ROCKCHIP_RK3506_RMIO_H
> +#define __DT_BINDINGS_PINCTRL_ROCKCHIP_RK3506_RMIO_H
> +
> +/* RMIO function definition */
> +#define RMIO_UART1_TX			1
> +#define RMIO_UART1_RX			2
> +#define RMIO_UART2_TX			3
> +#define RMIO_UART2_RX			4
> +#define RMIO_UART3_TX			5
> +#define RMIO_UART3_RX			6
> +#define RMIO_UART3_CTSN			7
> +#define RMIO_UART3_RTSN			8
> +#define RMIO_UART4_TX			9
> +#define RMIO_UART4_RX			10
> +#define RMIO_UART4_CTSN			11
> +#define RMIO_UART4_RTSN			12
> +#define RMIO_MIPITE			13
> +#define RMIO_CLK_32K			14
> +#define RMIO_I2C0_SCL			15
> +#define RMIO_I2C0_SDA			16


I do not see how this is a binding. Please point me to the patch using
this in the driver.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-12-16 15:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 11:20 [PATCH v3 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
2025-12-16 11:20 ` [PATCH v3 1/7] pinctrl: rockchip: Add rk3506 pinctrl support Ye Zhang
2025-12-16 11:20 ` [PATCH v3 2/7] dt-bindings: pinctrl: Add rv1126b " Ye Zhang
2025-12-16 11:20 ` [PATCH v3 3/7] pinctrl: rockchip: " Ye Zhang
2025-12-16 11:20 ` [PATCH v3 4/7] arm64: dts: rockchip: rv1126b: Add pinconf and pinctrl dtsi for rv1126b Ye Zhang
2025-12-16 11:20 ` [PATCH v3 5/7] gpio: rockchip: support new version GPIO Ye Zhang
2025-12-16 11:20 ` [PATCH v3 6/7] dt-bindings: pinctrl: rockchip: Add RMIO controller binding Ye Zhang
2025-12-16 15:44   ` Rob Herring (Arm)
2025-12-16 15:52   ` Krzysztof Kozlowski
2025-12-16 11:20 ` [PATCH v3 7/7] pinctrl: rockchip: add rmio support Ye Zhang

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).