1 // SPDX-License-Identifier: GPL-2.0
3 * Pinctrl dts file for HiSilicon Poplar board
5 * Copyright (c) 2016-2018 HiSilicon Technologies Co., Ltd.
8 #include <dt-bindings/pinctrl/hisi.h>
10 /* value, enable bits, disable bits, mask */
11 #define PINCTRL_PULLDOWN(value, enable, disable, mask) \
12 (value << 13) (enable << 13) (disable << 13) (mask << 13)
13 #define PINCTRL_PULLUP(value, enable, disable, mask) \
14 (value << 12) (enable << 12) (disable << 12) (mask << 12)
15 #define PINCTRL_SLEW_RATE(value, mask) (value << 8) (mask << 8)
16 #define PINCTRL_DRV_STRENGTH(value, mask) (value << 4) (mask << 4)
19 emmc_pins_1: emmc-pins-1 {
20 pinctrl-single,pins = <
31 pinctrl-single,bias-pulldown = <
32 PINCTRL_PULLDOWN(0, 1, 0, 1)
34 pinctrl-single,bias-pullup = <
35 PINCTRL_PULLUP(0, 1, 0, 1)
37 pinctrl-single,slew-rate = <
38 PINCTRL_SLEW_RATE(1, 1)
40 pinctrl-single,drive-strength = <
41 PINCTRL_DRV_STRENGTH(0xb, 0xf)
45 emmc_pins_2: emmc-pins-2 {
46 pinctrl-single,pins = <
49 pinctrl-single,bias-pulldown = <
50 PINCTRL_PULLDOWN(0, 1, 0, 1)
52 pinctrl-single,bias-pullup = <
53 PINCTRL_PULLUP(0, 1, 0, 1)
55 pinctrl-single,slew-rate = <
56 PINCTRL_SLEW_RATE(1, 1)
58 pinctrl-single,drive-strength = <
59 PINCTRL_DRV_STRENGTH(0x9, 0xf)
63 emmc_pins_3: emmc-pins-3 {
64 pinctrl-single,pins = <
67 pinctrl-single,bias-pulldown = <
68 PINCTRL_PULLDOWN(0, 1, 0, 1)
70 pinctrl-single,bias-pullup = <
71 PINCTRL_PULLUP(0, 1, 0, 1)
73 pinctrl-single,slew-rate = <
74 PINCTRL_SLEW_RATE(1, 1)
76 pinctrl-single,drive-strength = <
77 PINCTRL_DRV_STRENGTH(3, 3)
81 emmc_pins_4: emmc-pins-4 {
82 pinctrl-single,pins = <
85 pinctrl-single,bias-pulldown = <
86 PINCTRL_PULLDOWN(1, 1, 0, 1)
88 pinctrl-single,bias-pullup = <
89 PINCTRL_PULLUP(0, 1, 0, 1)
91 pinctrl-single,slew-rate = <
92 PINCTRL_SLEW_RATE(1, 1)
94 pinctrl-single,drive-strength = <
95 PINCTRL_DRV_STRENGTH(3, 3)