~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/hisilicon/poplar-pinctrl.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * Pinctrl dts file for HiSilicon Poplar board
  4  *
  5  * Copyright (c) 2016-2018 HiSilicon Technologies Co., Ltd.
  6  */
  7 
  8 #include <dt-bindings/pinctrl/hisi.h>
  9 
 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)
 17 
 18 &pmx0 {
 19         emmc_pins_1: emmc-pins-1 {
 20                 pinctrl-single,pins = <
 21                         0x000 MUX_M2
 22                         0x004 MUX_M2
 23                         0x008 MUX_M2
 24                         0x00c MUX_M2
 25                         0x010 MUX_M2
 26                         0x014 MUX_M2
 27                         0x018 MUX_M2
 28                         0x01c MUX_M2
 29                         0x024 MUX_M2
 30                 >;
 31                 pinctrl-single,bias-pulldown = <
 32                         PINCTRL_PULLDOWN(0, 1, 0, 1)
 33                 >;
 34                 pinctrl-single,bias-pullup = <
 35                         PINCTRL_PULLUP(0, 1, 0, 1)
 36                 >;
 37                 pinctrl-single,slew-rate = <
 38                         PINCTRL_SLEW_RATE(1, 1)
 39                 >;
 40                 pinctrl-single,drive-strength = <
 41                         PINCTRL_DRV_STRENGTH(0xb, 0xf)
 42                 >;
 43         };
 44 
 45         emmc_pins_2: emmc-pins-2 {
 46                 pinctrl-single,pins = <
 47                         0x028 MUX_M2
 48                 >;
 49                 pinctrl-single,bias-pulldown = <
 50                         PINCTRL_PULLDOWN(0, 1, 0, 1)
 51                 >;
 52                 pinctrl-single,bias-pullup = <
 53                         PINCTRL_PULLUP(0, 1, 0, 1)
 54                 >;
 55                 pinctrl-single,slew-rate = <
 56                         PINCTRL_SLEW_RATE(1, 1)
 57                 >;
 58                 pinctrl-single,drive-strength = <
 59                         PINCTRL_DRV_STRENGTH(0x9, 0xf)
 60                 >;
 61         };
 62 
 63         emmc_pins_3: emmc-pins-3 {
 64                 pinctrl-single,pins = <
 65                         0x02c MUX_M2
 66                 >;
 67                 pinctrl-single,bias-pulldown = <
 68                         PINCTRL_PULLDOWN(0, 1, 0, 1)
 69                 >;
 70                 pinctrl-single,bias-pullup = <
 71                         PINCTRL_PULLUP(0, 1, 0, 1)
 72                 >;
 73                 pinctrl-single,slew-rate = <
 74                         PINCTRL_SLEW_RATE(1, 1)
 75                 >;
 76                 pinctrl-single,drive-strength = <
 77                         PINCTRL_DRV_STRENGTH(3, 3)
 78                 >;
 79         };
 80 
 81         emmc_pins_4: emmc-pins-4 {
 82                 pinctrl-single,pins = <
 83                         0x030 MUX_M2
 84                 >;
 85                 pinctrl-single,bias-pulldown = <
 86                         PINCTRL_PULLDOWN(1, 1, 0, 1)
 87                 >;
 88                 pinctrl-single,bias-pullup = <
 89                         PINCTRL_PULLUP(0, 1, 0, 1)
 90                 >;
 91                 pinctrl-single,slew-rate = <
 92                         PINCTRL_SLEW_RATE(1, 1)
 93                 >;
 94                 pinctrl-single,drive-strength = <
 95                         PINCTRL_DRV_STRENGTH(3, 3)
 96                 >;
 97         };
 98 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php