162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * The MT7623 driver based on Linux generic pinctrl binding. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2015 - 2018 MediaTek Inc. 662306a36Sopenharmony_ci * Author: Biao Huang <biao.huang@mediatek.com> 762306a36Sopenharmony_ci * Ryder Lee <ryder.lee@mediatek.com> 862306a36Sopenharmony_ci * Sean Wang <sean.wang@mediatek.com> 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include "pinctrl-moore.h" 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define PIN_BOND_REG0 0xb10 1462306a36Sopenharmony_ci#define PIN_BOND_REG1 0xf20 1562306a36Sopenharmony_ci#define PIN_BOND_REG2 0xef0 1662306a36Sopenharmony_ci#define BOND_PCIE_CLR (0x77 << 3) 1762306a36Sopenharmony_ci#define BOND_I2S_CLR 0x3 1862306a36Sopenharmony_ci#define BOND_MSDC0E_CLR 0x1 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci#define PIN_FIELD15(_s_pin, _e_pin, _s_addr, _x_addrs, _s_bit, _x_bits) \ 2162306a36Sopenharmony_ci PIN_FIELD_CALC(_s_pin, _e_pin, 0, _s_addr, _x_addrs, _s_bit, \ 2262306a36Sopenharmony_ci _x_bits, 15, false) 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#define PIN_FIELD16(_s_pin, _e_pin, _s_addr, _x_addrs, _s_bit, _x_bits) \ 2562306a36Sopenharmony_ci PIN_FIELD_CALC(_s_pin, _e_pin, 0, _s_addr, _x_addrs, _s_bit, \ 2662306a36Sopenharmony_ci _x_bits, 16, 0) 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#define PINS_FIELD16(_s_pin, _e_pin, _s_addr, _x_addrs, _s_bit, _x_bits) \ 2962306a36Sopenharmony_ci PIN_FIELD_CALC(_s_pin, _e_pin, 0, _s_addr, _x_addrs, _s_bit, \ 3062306a36Sopenharmony_ci _x_bits, 16, 1) 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#define MT7623_PIN(_number, _name, _eint_n, _drv_grp) \ 3362306a36Sopenharmony_ci MTK_PIN(_number, _name, 0, _eint_n, _drv_grp) 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_mode_range[] = { 3662306a36Sopenharmony_ci PIN_FIELD15(0, 278, 0x760, 0x10, 0, 3), 3762306a36Sopenharmony_ci}; 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_dir_range[] = { 4062306a36Sopenharmony_ci PIN_FIELD16(0, 175, 0x0, 0x10, 0, 1), 4162306a36Sopenharmony_ci PIN_FIELD16(176, 278, 0xc0, 0x10, 0, 1), 4262306a36Sopenharmony_ci}; 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_di_range[] = { 4562306a36Sopenharmony_ci PIN_FIELD16(0, 278, 0x630, 0x10, 0, 1), 4662306a36Sopenharmony_ci}; 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_do_range[] = { 4962306a36Sopenharmony_ci PIN_FIELD16(0, 278, 0x500, 0x10, 0, 1), 5062306a36Sopenharmony_ci}; 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_ies_range[] = { 5362306a36Sopenharmony_ci PINS_FIELD16(0, 6, 0xb20, 0x10, 0, 1), 5462306a36Sopenharmony_ci PINS_FIELD16(7, 9, 0xb20, 0x10, 1, 1), 5562306a36Sopenharmony_ci PINS_FIELD16(10, 13, 0xb30, 0x10, 3, 1), 5662306a36Sopenharmony_ci PINS_FIELD16(14, 15, 0xb30, 0x10, 13, 1), 5762306a36Sopenharmony_ci PINS_FIELD16(16, 17, 0xb40, 0x10, 7, 1), 5862306a36Sopenharmony_ci PINS_FIELD16(18, 29, 0xb40, 0x10, 13, 1), 5962306a36Sopenharmony_ci PINS_FIELD16(30, 32, 0xb40, 0x10, 7, 1), 6062306a36Sopenharmony_ci PINS_FIELD16(33, 37, 0xb40, 0x10, 13, 1), 6162306a36Sopenharmony_ci PIN_FIELD16(38, 38, 0xb20, 0x10, 13, 1), 6262306a36Sopenharmony_ci PINS_FIELD16(39, 42, 0xb40, 0x10, 13, 1), 6362306a36Sopenharmony_ci PINS_FIELD16(43, 45, 0xb20, 0x10, 10, 1), 6462306a36Sopenharmony_ci PINS_FIELD16(47, 48, 0xb20, 0x10, 11, 1), 6562306a36Sopenharmony_ci PIN_FIELD16(49, 49, 0xb20, 0x10, 12, 1), 6662306a36Sopenharmony_ci PINS_FIELD16(50, 52, 0xb20, 0x10, 13, 1), 6762306a36Sopenharmony_ci PINS_FIELD16(53, 56, 0xb20, 0x10, 14, 1), 6862306a36Sopenharmony_ci PINS_FIELD16(57, 58, 0xb20, 0x10, 15, 1), 6962306a36Sopenharmony_ci PIN_FIELD16(59, 59, 0xb30, 0x10, 10, 1), 7062306a36Sopenharmony_ci PINS_FIELD16(60, 62, 0xb30, 0x10, 0, 1), 7162306a36Sopenharmony_ci PINS_FIELD16(63, 65, 0xb30, 0x10, 1, 1), 7262306a36Sopenharmony_ci PINS_FIELD16(66, 71, 0xb30, 0x10, 2, 1), 7362306a36Sopenharmony_ci PINS_FIELD16(72, 74, 0xb20, 0x10, 12, 1), 7462306a36Sopenharmony_ci PINS_FIELD16(75, 76, 0xb30, 0x10, 3, 1), 7562306a36Sopenharmony_ci PINS_FIELD16(77, 78, 0xb30, 0x10, 4, 1), 7662306a36Sopenharmony_ci PINS_FIELD16(79, 82, 0xb30, 0x10, 5, 1), 7762306a36Sopenharmony_ci PINS_FIELD16(83, 84, 0xb30, 0x10, 2, 1), 7862306a36Sopenharmony_ci PIN_FIELD16(85, 85, 0xda0, 0x10, 4, 1), 7962306a36Sopenharmony_ci PIN_FIELD16(86, 86, 0xd90, 0x10, 4, 1), 8062306a36Sopenharmony_ci PINS_FIELD16(87, 90, 0xdb0, 0x10, 4, 1), 8162306a36Sopenharmony_ci PINS_FIELD16(101, 104, 0xb30, 0x10, 6, 1), 8262306a36Sopenharmony_ci PIN_FIELD16(105, 105, 0xd40, 0x10, 4, 1), 8362306a36Sopenharmony_ci PIN_FIELD16(106, 106, 0xd30, 0x10, 4, 1), 8462306a36Sopenharmony_ci PINS_FIELD16(107, 110, 0xd50, 0x10, 4, 1), 8562306a36Sopenharmony_ci PINS_FIELD16(111, 115, 0xce0, 0x10, 4, 1), 8662306a36Sopenharmony_ci PIN_FIELD16(116, 116, 0xcd0, 0x10, 4, 1), 8762306a36Sopenharmony_ci PIN_FIELD16(117, 117, 0xcc0, 0x10, 4, 1), 8862306a36Sopenharmony_ci PINS_FIELD16(118, 121, 0xce0, 0x10, 4, 1), 8962306a36Sopenharmony_ci PINS_FIELD16(122, 125, 0xb30, 0x10, 7, 1), 9062306a36Sopenharmony_ci PIN_FIELD16(126, 126, 0xb20, 0x10, 12, 1), 9162306a36Sopenharmony_ci PINS_FIELD16(127, 142, 0xb30, 0x10, 9, 1), 9262306a36Sopenharmony_ci PINS_FIELD16(143, 160, 0xb30, 0x10, 10, 1), 9362306a36Sopenharmony_ci PINS_FIELD16(161, 168, 0xb30, 0x10, 12, 1), 9462306a36Sopenharmony_ci PINS_FIELD16(169, 183, 0xb30, 0x10, 10, 1), 9562306a36Sopenharmony_ci PINS_FIELD16(184, 186, 0xb30, 0x10, 9, 1), 9662306a36Sopenharmony_ci PIN_FIELD16(187, 187, 0xb30, 0x10, 14, 1), 9762306a36Sopenharmony_ci PIN_FIELD16(188, 188, 0xb20, 0x10, 13, 1), 9862306a36Sopenharmony_ci PINS_FIELD16(189, 193, 0xb30, 0x10, 15, 1), 9962306a36Sopenharmony_ci PINS_FIELD16(194, 198, 0xb40, 0x10, 0, 1), 10062306a36Sopenharmony_ci PIN_FIELD16(199, 199, 0xb20, 0x10, 1, 1), 10162306a36Sopenharmony_ci PINS_FIELD16(200, 202, 0xb40, 0x10, 1, 1), 10262306a36Sopenharmony_ci PINS_FIELD16(203, 207, 0xb40, 0x10, 2, 1), 10362306a36Sopenharmony_ci PINS_FIELD16(208, 209, 0xb40, 0x10, 3, 1), 10462306a36Sopenharmony_ci PIN_FIELD16(210, 210, 0xb40, 0x10, 4, 1), 10562306a36Sopenharmony_ci PINS_FIELD16(211, 235, 0xb40, 0x10, 5, 1), 10662306a36Sopenharmony_ci PINS_FIELD16(236, 241, 0xb40, 0x10, 6, 1), 10762306a36Sopenharmony_ci PINS_FIELD16(242, 243, 0xb40, 0x10, 7, 1), 10862306a36Sopenharmony_ci PINS_FIELD16(244, 247, 0xb40, 0x10, 8, 1), 10962306a36Sopenharmony_ci PIN_FIELD16(248, 248, 0xb40, 0x10, 9, 1), 11062306a36Sopenharmony_ci PINS_FIELD16(249, 257, 0xfc0, 0x10, 4, 1), 11162306a36Sopenharmony_ci PIN_FIELD16(258, 258, 0xcb0, 0x10, 4, 1), 11262306a36Sopenharmony_ci PIN_FIELD16(259, 259, 0xc90, 0x10, 4, 1), 11362306a36Sopenharmony_ci PIN_FIELD16(260, 260, 0x3a0, 0x10, 4, 1), 11462306a36Sopenharmony_ci PIN_FIELD16(261, 261, 0xd50, 0x10, 4, 1), 11562306a36Sopenharmony_ci PINS_FIELD16(262, 277, 0xb40, 0x10, 12, 1), 11662306a36Sopenharmony_ci PIN_FIELD16(278, 278, 0xb40, 0x10, 13, 1), 11762306a36Sopenharmony_ci}; 11862306a36Sopenharmony_ci 11962306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_smt_range[] = { 12062306a36Sopenharmony_ci PINS_FIELD16(0, 6, 0xb50, 0x10, 0, 1), 12162306a36Sopenharmony_ci PINS_FIELD16(7, 9, 0xb50, 0x10, 1, 1), 12262306a36Sopenharmony_ci PINS_FIELD16(10, 13, 0xb60, 0x10, 3, 1), 12362306a36Sopenharmony_ci PINS_FIELD16(14, 15, 0xb60, 0x10, 13, 1), 12462306a36Sopenharmony_ci PINS_FIELD16(16, 17, 0xb70, 0x10, 7, 1), 12562306a36Sopenharmony_ci PINS_FIELD16(18, 29, 0xb70, 0x10, 13, 1), 12662306a36Sopenharmony_ci PINS_FIELD16(30, 32, 0xb70, 0x10, 7, 1), 12762306a36Sopenharmony_ci PINS_FIELD16(33, 37, 0xb70, 0x10, 13, 1), 12862306a36Sopenharmony_ci PIN_FIELD16(38, 38, 0xb50, 0x10, 13, 1), 12962306a36Sopenharmony_ci PINS_FIELD16(39, 42, 0xb70, 0x10, 13, 1), 13062306a36Sopenharmony_ci PINS_FIELD16(43, 45, 0xb50, 0x10, 10, 1), 13162306a36Sopenharmony_ci PINS_FIELD16(47, 48, 0xb50, 0x10, 11, 1), 13262306a36Sopenharmony_ci PIN_FIELD16(49, 49, 0xb50, 0x10, 12, 1), 13362306a36Sopenharmony_ci PINS_FIELD16(50, 52, 0xb50, 0x10, 13, 1), 13462306a36Sopenharmony_ci PINS_FIELD16(53, 56, 0xb50, 0x10, 14, 1), 13562306a36Sopenharmony_ci PINS_FIELD16(57, 58, 0xb50, 0x10, 15, 1), 13662306a36Sopenharmony_ci PIN_FIELD16(59, 59, 0xb60, 0x10, 10, 1), 13762306a36Sopenharmony_ci PINS_FIELD16(60, 62, 0xb60, 0x10, 0, 1), 13862306a36Sopenharmony_ci PINS_FIELD16(63, 65, 0xb60, 0x10, 1, 1), 13962306a36Sopenharmony_ci PINS_FIELD16(66, 71, 0xb60, 0x10, 2, 1), 14062306a36Sopenharmony_ci PINS_FIELD16(72, 74, 0xb50, 0x10, 12, 1), 14162306a36Sopenharmony_ci PINS_FIELD16(75, 76, 0xb60, 0x10, 3, 1), 14262306a36Sopenharmony_ci PINS_FIELD16(77, 78, 0xb60, 0x10, 4, 1), 14362306a36Sopenharmony_ci PINS_FIELD16(79, 82, 0xb60, 0x10, 5, 1), 14462306a36Sopenharmony_ci PINS_FIELD16(83, 84, 0xb60, 0x10, 2, 1), 14562306a36Sopenharmony_ci PIN_FIELD16(85, 85, 0xda0, 0x10, 11, 1), 14662306a36Sopenharmony_ci PIN_FIELD16(86, 86, 0xd90, 0x10, 11, 1), 14762306a36Sopenharmony_ci PIN_FIELD16(87, 87, 0xdc0, 0x10, 3, 1), 14862306a36Sopenharmony_ci PIN_FIELD16(88, 88, 0xdc0, 0x10, 7, 1), 14962306a36Sopenharmony_ci PIN_FIELD16(89, 89, 0xdc0, 0x10, 11, 1), 15062306a36Sopenharmony_ci PIN_FIELD16(90, 90, 0xdc0, 0x10, 15, 1), 15162306a36Sopenharmony_ci PINS_FIELD16(101, 104, 0xb60, 0x10, 6, 1), 15262306a36Sopenharmony_ci PIN_FIELD16(105, 105, 0xd40, 0x10, 11, 1), 15362306a36Sopenharmony_ci PIN_FIELD16(106, 106, 0xd30, 0x10, 11, 1), 15462306a36Sopenharmony_ci PIN_FIELD16(107, 107, 0xd60, 0x10, 3, 1), 15562306a36Sopenharmony_ci PIN_FIELD16(108, 108, 0xd60, 0x10, 7, 1), 15662306a36Sopenharmony_ci PIN_FIELD16(109, 109, 0xd60, 0x10, 11, 1), 15762306a36Sopenharmony_ci PIN_FIELD16(110, 110, 0xd60, 0x10, 15, 1), 15862306a36Sopenharmony_ci PIN_FIELD16(111, 111, 0xd00, 0x10, 15, 1), 15962306a36Sopenharmony_ci PIN_FIELD16(112, 112, 0xd00, 0x10, 11, 1), 16062306a36Sopenharmony_ci PIN_FIELD16(113, 113, 0xd00, 0x10, 7, 1), 16162306a36Sopenharmony_ci PIN_FIELD16(114, 114, 0xd00, 0x10, 3, 1), 16262306a36Sopenharmony_ci PIN_FIELD16(115, 115, 0xd10, 0x10, 3, 1), 16362306a36Sopenharmony_ci PIN_FIELD16(116, 116, 0xcd0, 0x10, 11, 1), 16462306a36Sopenharmony_ci PIN_FIELD16(117, 117, 0xcc0, 0x10, 11, 1), 16562306a36Sopenharmony_ci PIN_FIELD16(118, 118, 0xcf0, 0x10, 15, 1), 16662306a36Sopenharmony_ci PIN_FIELD16(119, 119, 0xcf0, 0x10, 7, 1), 16762306a36Sopenharmony_ci PIN_FIELD16(120, 120, 0xcf0, 0x10, 3, 1), 16862306a36Sopenharmony_ci PIN_FIELD16(121, 121, 0xcf0, 0x10, 7, 1), 16962306a36Sopenharmony_ci PINS_FIELD16(122, 125, 0xb60, 0x10, 7, 1), 17062306a36Sopenharmony_ci PIN_FIELD16(126, 126, 0xb50, 0x10, 12, 1), 17162306a36Sopenharmony_ci PINS_FIELD16(127, 142, 0xb60, 0x10, 9, 1), 17262306a36Sopenharmony_ci PINS_FIELD16(143, 160, 0xb60, 0x10, 10, 1), 17362306a36Sopenharmony_ci PINS_FIELD16(161, 168, 0xb60, 0x10, 12, 1), 17462306a36Sopenharmony_ci PINS_FIELD16(169, 183, 0xb60, 0x10, 10, 1), 17562306a36Sopenharmony_ci PINS_FIELD16(184, 186, 0xb60, 0x10, 9, 1), 17662306a36Sopenharmony_ci PIN_FIELD16(187, 187, 0xb60, 0x10, 14, 1), 17762306a36Sopenharmony_ci PIN_FIELD16(188, 188, 0xb50, 0x10, 13, 1), 17862306a36Sopenharmony_ci PINS_FIELD16(189, 193, 0xb60, 0x10, 15, 1), 17962306a36Sopenharmony_ci PINS_FIELD16(194, 198, 0xb70, 0x10, 0, 1), 18062306a36Sopenharmony_ci PIN_FIELD16(199, 199, 0xb50, 0x10, 1, 1), 18162306a36Sopenharmony_ci PINS_FIELD16(200, 202, 0xb70, 0x10, 1, 1), 18262306a36Sopenharmony_ci PINS_FIELD16(203, 207, 0xb70, 0x10, 2, 1), 18362306a36Sopenharmony_ci PINS_FIELD16(208, 209, 0xb70, 0x10, 3, 1), 18462306a36Sopenharmony_ci PIN_FIELD16(210, 210, 0xb70, 0x10, 4, 1), 18562306a36Sopenharmony_ci PINS_FIELD16(211, 235, 0xb70, 0x10, 5, 1), 18662306a36Sopenharmony_ci PINS_FIELD16(236, 241, 0xb70, 0x10, 6, 1), 18762306a36Sopenharmony_ci PINS_FIELD16(242, 243, 0xb70, 0x10, 7, 1), 18862306a36Sopenharmony_ci PINS_FIELD16(244, 247, 0xb70, 0x10, 8, 1), 18962306a36Sopenharmony_ci PIN_FIELD16(248, 248, 0xb70, 0x10, 9, 10), 19062306a36Sopenharmony_ci PIN_FIELD16(249, 249, 0x140, 0x10, 3, 1), 19162306a36Sopenharmony_ci PIN_FIELD16(250, 250, 0x130, 0x10, 15, 1), 19262306a36Sopenharmony_ci PIN_FIELD16(251, 251, 0x130, 0x10, 11, 1), 19362306a36Sopenharmony_ci PIN_FIELD16(252, 252, 0x130, 0x10, 7, 1), 19462306a36Sopenharmony_ci PIN_FIELD16(253, 253, 0x130, 0x10, 3, 1), 19562306a36Sopenharmony_ci PIN_FIELD16(254, 254, 0xf40, 0x10, 15, 1), 19662306a36Sopenharmony_ci PIN_FIELD16(255, 255, 0xf40, 0x10, 11, 1), 19762306a36Sopenharmony_ci PIN_FIELD16(256, 256, 0xf40, 0x10, 7, 1), 19862306a36Sopenharmony_ci PIN_FIELD16(257, 257, 0xf40, 0x10, 3, 1), 19962306a36Sopenharmony_ci PIN_FIELD16(258, 258, 0xcb0, 0x10, 11, 1), 20062306a36Sopenharmony_ci PIN_FIELD16(259, 259, 0xc90, 0x10, 11, 1), 20162306a36Sopenharmony_ci PIN_FIELD16(260, 260, 0x3a0, 0x10, 11, 1), 20262306a36Sopenharmony_ci PIN_FIELD16(261, 261, 0x0b0, 0x10, 3, 1), 20362306a36Sopenharmony_ci PINS_FIELD16(262, 277, 0xb70, 0x10, 12, 1), 20462306a36Sopenharmony_ci PIN_FIELD16(278, 278, 0xb70, 0x10, 13, 1), 20562306a36Sopenharmony_ci}; 20662306a36Sopenharmony_ci 20762306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_pullen_range[] = { 20862306a36Sopenharmony_ci PIN_FIELD16(0, 278, 0x150, 0x10, 0, 1), 20962306a36Sopenharmony_ci}; 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_pullsel_range[] = { 21262306a36Sopenharmony_ci PIN_FIELD16(0, 278, 0x280, 0x10, 0, 1), 21362306a36Sopenharmony_ci}; 21462306a36Sopenharmony_ci 21562306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_drv_range[] = { 21662306a36Sopenharmony_ci PINS_FIELD16(0, 6, 0xf50, 0x10, 0, 4), 21762306a36Sopenharmony_ci PINS_FIELD16(7, 9, 0xf50, 0x10, 4, 4), 21862306a36Sopenharmony_ci PINS_FIELD16(10, 13, 0xf50, 0x10, 4, 4), 21962306a36Sopenharmony_ci PINS_FIELD16(14, 15, 0xf50, 0x10, 12, 4), 22062306a36Sopenharmony_ci PINS_FIELD16(16, 17, 0xf60, 0x10, 0, 4), 22162306a36Sopenharmony_ci PINS_FIELD16(18, 21, 0xf60, 0x10, 0, 4), 22262306a36Sopenharmony_ci PINS_FIELD16(22, 26, 0xf60, 0x10, 8, 4), 22362306a36Sopenharmony_ci PINS_FIELD16(27, 29, 0xf60, 0x10, 12, 4), 22462306a36Sopenharmony_ci PINS_FIELD16(30, 32, 0xf60, 0x10, 0, 4), 22562306a36Sopenharmony_ci PINS_FIELD16(33, 37, 0xf70, 0x10, 0, 4), 22662306a36Sopenharmony_ci PIN_FIELD16(38, 38, 0xf70, 0x10, 4, 4), 22762306a36Sopenharmony_ci PINS_FIELD16(39, 42, 0xf70, 0x10, 8, 4), 22862306a36Sopenharmony_ci PINS_FIELD16(43, 45, 0xf70, 0x10, 12, 4), 22962306a36Sopenharmony_ci PINS_FIELD16(47, 48, 0xf80, 0x10, 0, 4), 23062306a36Sopenharmony_ci PIN_FIELD16(49, 49, 0xf80, 0x10, 4, 4), 23162306a36Sopenharmony_ci PINS_FIELD16(50, 52, 0xf70, 0x10, 4, 4), 23262306a36Sopenharmony_ci PINS_FIELD16(53, 56, 0xf80, 0x10, 12, 4), 23362306a36Sopenharmony_ci PINS_FIELD16(60, 62, 0xf90, 0x10, 8, 4), 23462306a36Sopenharmony_ci PINS_FIELD16(63, 65, 0xf90, 0x10, 12, 4), 23562306a36Sopenharmony_ci PINS_FIELD16(66, 71, 0xfa0, 0x10, 0, 4), 23662306a36Sopenharmony_ci PINS_FIELD16(72, 74, 0xf80, 0x10, 4, 4), 23762306a36Sopenharmony_ci PIN_FIELD16(85, 85, 0xda0, 0x10, 0, 4), 23862306a36Sopenharmony_ci PIN_FIELD16(86, 86, 0xd90, 0x10, 0, 4), 23962306a36Sopenharmony_ci PINS_FIELD16(87, 90, 0xdb0, 0x10, 0, 4), 24062306a36Sopenharmony_ci PIN_FIELD16(105, 105, 0xd40, 0x10, 0, 4), 24162306a36Sopenharmony_ci PIN_FIELD16(106, 106, 0xd30, 0x10, 0, 4), 24262306a36Sopenharmony_ci PINS_FIELD16(107, 110, 0xd50, 0x10, 0, 4), 24362306a36Sopenharmony_ci PINS_FIELD16(111, 115, 0xce0, 0x10, 0, 4), 24462306a36Sopenharmony_ci PIN_FIELD16(116, 116, 0xcd0, 0x10, 0, 4), 24562306a36Sopenharmony_ci PIN_FIELD16(117, 117, 0xcc0, 0x10, 0, 4), 24662306a36Sopenharmony_ci PINS_FIELD16(118, 121, 0xce0, 0x10, 0, 4), 24762306a36Sopenharmony_ci PIN_FIELD16(126, 126, 0xf80, 0x10, 4, 4), 24862306a36Sopenharmony_ci PIN_FIELD16(188, 188, 0xf70, 0x10, 4, 4), 24962306a36Sopenharmony_ci PINS_FIELD16(189, 193, 0xfe0, 0x10, 8, 4), 25062306a36Sopenharmony_ci PINS_FIELD16(194, 198, 0xfe0, 0x10, 12, 4), 25162306a36Sopenharmony_ci PIN_FIELD16(199, 199, 0xf50, 0x10, 4, 4), 25262306a36Sopenharmony_ci PINS_FIELD16(200, 202, 0xfd0, 0x10, 0, 4), 25362306a36Sopenharmony_ci PINS_FIELD16(203, 207, 0xfd0, 0x10, 4, 4), 25462306a36Sopenharmony_ci PINS_FIELD16(208, 209, 0xfd0, 0x10, 8, 4), 25562306a36Sopenharmony_ci PIN_FIELD16(210, 210, 0xfd0, 0x10, 12, 4), 25662306a36Sopenharmony_ci PINS_FIELD16(211, 235, 0xff0, 0x10, 0, 4), 25762306a36Sopenharmony_ci PINS_FIELD16(236, 241, 0xff0, 0x10, 4, 4), 25862306a36Sopenharmony_ci PINS_FIELD16(242, 243, 0xff0, 0x10, 8, 4), 25962306a36Sopenharmony_ci PIN_FIELD16(248, 248, 0xf00, 0x10, 0, 4), 26062306a36Sopenharmony_ci PINS_FIELD16(249, 256, 0xfc0, 0x10, 0, 4), 26162306a36Sopenharmony_ci PIN_FIELD16(257, 257, 0xce0, 0x10, 0, 4), 26262306a36Sopenharmony_ci PIN_FIELD16(258, 258, 0xcb0, 0x10, 0, 4), 26362306a36Sopenharmony_ci PIN_FIELD16(259, 259, 0xc90, 0x10, 0, 4), 26462306a36Sopenharmony_ci PIN_FIELD16(260, 260, 0x3a0, 0x10, 0, 4), 26562306a36Sopenharmony_ci PIN_FIELD16(261, 261, 0xd50, 0x10, 0, 4), 26662306a36Sopenharmony_ci PINS_FIELD16(262, 277, 0xf00, 0x10, 8, 4), 26762306a36Sopenharmony_ci PIN_FIELD16(278, 278, 0xf70, 0x10, 8, 4), 26862306a36Sopenharmony_ci}; 26962306a36Sopenharmony_ci 27062306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_tdsel_range[] = { 27162306a36Sopenharmony_ci PINS_FIELD16(262, 276, 0x4c0, 0x10, 0, 4), 27262306a36Sopenharmony_ci}; 27362306a36Sopenharmony_ci 27462306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_pupd_range[] = { 27562306a36Sopenharmony_ci /* MSDC0 */ 27662306a36Sopenharmony_ci PIN_FIELD16(111, 111, 0xd00, 0x10, 12, 1), 27762306a36Sopenharmony_ci PIN_FIELD16(112, 112, 0xd00, 0x10, 8, 1), 27862306a36Sopenharmony_ci PIN_FIELD16(113, 113, 0xd00, 0x10, 4, 1), 27962306a36Sopenharmony_ci PIN_FIELD16(114, 114, 0xd00, 0x10, 0, 1), 28062306a36Sopenharmony_ci PIN_FIELD16(115, 115, 0xd10, 0x10, 0, 1), 28162306a36Sopenharmony_ci PIN_FIELD16(116, 116, 0xcd0, 0x10, 8, 1), 28262306a36Sopenharmony_ci PIN_FIELD16(117, 117, 0xcc0, 0x10, 8, 1), 28362306a36Sopenharmony_ci PIN_FIELD16(118, 118, 0xcf0, 0x10, 12, 1), 28462306a36Sopenharmony_ci PIN_FIELD16(119, 119, 0xcf0, 0x10, 8, 1), 28562306a36Sopenharmony_ci PIN_FIELD16(120, 120, 0xcf0, 0x10, 4, 1), 28662306a36Sopenharmony_ci PIN_FIELD16(121, 121, 0xcf0, 0x10, 0, 1), 28762306a36Sopenharmony_ci /* MSDC1 */ 28862306a36Sopenharmony_ci PIN_FIELD16(105, 105, 0xd40, 0x10, 8, 1), 28962306a36Sopenharmony_ci PIN_FIELD16(106, 106, 0xd30, 0x10, 8, 1), 29062306a36Sopenharmony_ci PIN_FIELD16(107, 107, 0xd60, 0x10, 0, 1), 29162306a36Sopenharmony_ci PIN_FIELD16(108, 108, 0xd60, 0x10, 10, 1), 29262306a36Sopenharmony_ci PIN_FIELD16(109, 109, 0xd60, 0x10, 4, 1), 29362306a36Sopenharmony_ci PIN_FIELD16(110, 110, 0xc60, 0x10, 12, 1), 29462306a36Sopenharmony_ci /* MSDC1 */ 29562306a36Sopenharmony_ci PIN_FIELD16(85, 85, 0xda0, 0x10, 8, 1), 29662306a36Sopenharmony_ci PIN_FIELD16(86, 86, 0xd90, 0x10, 8, 1), 29762306a36Sopenharmony_ci PIN_FIELD16(87, 87, 0xdc0, 0x10, 0, 1), 29862306a36Sopenharmony_ci PIN_FIELD16(88, 88, 0xdc0, 0x10, 10, 1), 29962306a36Sopenharmony_ci PIN_FIELD16(89, 89, 0xdc0, 0x10, 4, 1), 30062306a36Sopenharmony_ci PIN_FIELD16(90, 90, 0xdc0, 0x10, 12, 1), 30162306a36Sopenharmony_ci /* MSDC0E */ 30262306a36Sopenharmony_ci PIN_FIELD16(249, 249, 0x140, 0x10, 0, 1), 30362306a36Sopenharmony_ci PIN_FIELD16(250, 250, 0x130, 0x10, 12, 1), 30462306a36Sopenharmony_ci PIN_FIELD16(251, 251, 0x130, 0x10, 8, 1), 30562306a36Sopenharmony_ci PIN_FIELD16(252, 252, 0x130, 0x10, 4, 1), 30662306a36Sopenharmony_ci PIN_FIELD16(253, 253, 0x130, 0x10, 0, 1), 30762306a36Sopenharmony_ci PIN_FIELD16(254, 254, 0xf40, 0x10, 12, 1), 30862306a36Sopenharmony_ci PIN_FIELD16(255, 255, 0xf40, 0x10, 8, 1), 30962306a36Sopenharmony_ci PIN_FIELD16(256, 256, 0xf40, 0x10, 4, 1), 31062306a36Sopenharmony_ci PIN_FIELD16(257, 257, 0xf40, 0x10, 0, 1), 31162306a36Sopenharmony_ci PIN_FIELD16(258, 258, 0xcb0, 0x10, 8, 1), 31262306a36Sopenharmony_ci PIN_FIELD16(259, 259, 0xc90, 0x10, 8, 1), 31362306a36Sopenharmony_ci PIN_FIELD16(261, 261, 0x140, 0x10, 8, 1), 31462306a36Sopenharmony_ci}; 31562306a36Sopenharmony_ci 31662306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_r1_range[] = { 31762306a36Sopenharmony_ci /* MSDC0 */ 31862306a36Sopenharmony_ci PIN_FIELD16(111, 111, 0xd00, 0x10, 13, 1), 31962306a36Sopenharmony_ci PIN_FIELD16(112, 112, 0xd00, 0x10, 9, 1), 32062306a36Sopenharmony_ci PIN_FIELD16(113, 113, 0xd00, 0x10, 5, 1), 32162306a36Sopenharmony_ci PIN_FIELD16(114, 114, 0xd00, 0x10, 1, 1), 32262306a36Sopenharmony_ci PIN_FIELD16(115, 115, 0xd10, 0x10, 1, 1), 32362306a36Sopenharmony_ci PIN_FIELD16(116, 116, 0xcd0, 0x10, 9, 1), 32462306a36Sopenharmony_ci PIN_FIELD16(117, 117, 0xcc0, 0x10, 9, 1), 32562306a36Sopenharmony_ci PIN_FIELD16(118, 118, 0xcf0, 0x10, 13, 1), 32662306a36Sopenharmony_ci PIN_FIELD16(119, 119, 0xcf0, 0x10, 9, 1), 32762306a36Sopenharmony_ci PIN_FIELD16(120, 120, 0xcf0, 0x10, 5, 1), 32862306a36Sopenharmony_ci PIN_FIELD16(121, 121, 0xcf0, 0x10, 1, 1), 32962306a36Sopenharmony_ci /* MSDC1 */ 33062306a36Sopenharmony_ci PIN_FIELD16(105, 105, 0xd40, 0x10, 9, 1), 33162306a36Sopenharmony_ci PIN_FIELD16(106, 106, 0xd30, 0x10, 9, 1), 33262306a36Sopenharmony_ci PIN_FIELD16(107, 107, 0xd60, 0x10, 1, 1), 33362306a36Sopenharmony_ci PIN_FIELD16(108, 108, 0xd60, 0x10, 9, 1), 33462306a36Sopenharmony_ci PIN_FIELD16(109, 109, 0xd60, 0x10, 5, 1), 33562306a36Sopenharmony_ci PIN_FIELD16(110, 110, 0xc60, 0x10, 13, 1), 33662306a36Sopenharmony_ci /* MSDC2 */ 33762306a36Sopenharmony_ci PIN_FIELD16(85, 85, 0xda0, 0x10, 9, 1), 33862306a36Sopenharmony_ci PIN_FIELD16(86, 86, 0xd90, 0x10, 9, 1), 33962306a36Sopenharmony_ci PIN_FIELD16(87, 87, 0xdc0, 0x10, 1, 1), 34062306a36Sopenharmony_ci PIN_FIELD16(88, 88, 0xdc0, 0x10, 9, 1), 34162306a36Sopenharmony_ci PIN_FIELD16(89, 89, 0xdc0, 0x10, 5, 1), 34262306a36Sopenharmony_ci PIN_FIELD16(90, 90, 0xdc0, 0x10, 13, 1), 34362306a36Sopenharmony_ci /* MSDC0E */ 34462306a36Sopenharmony_ci PIN_FIELD16(249, 249, 0x140, 0x10, 1, 1), 34562306a36Sopenharmony_ci PIN_FIELD16(250, 250, 0x130, 0x10, 13, 1), 34662306a36Sopenharmony_ci PIN_FIELD16(251, 251, 0x130, 0x10, 9, 1), 34762306a36Sopenharmony_ci PIN_FIELD16(252, 252, 0x130, 0x10, 5, 1), 34862306a36Sopenharmony_ci PIN_FIELD16(253, 253, 0x130, 0x10, 1, 1), 34962306a36Sopenharmony_ci PIN_FIELD16(254, 254, 0xf40, 0x10, 13, 1), 35062306a36Sopenharmony_ci PIN_FIELD16(255, 255, 0xf40, 0x10, 9, 1), 35162306a36Sopenharmony_ci PIN_FIELD16(256, 256, 0xf40, 0x10, 5, 1), 35262306a36Sopenharmony_ci PIN_FIELD16(257, 257, 0xf40, 0x10, 1, 1), 35362306a36Sopenharmony_ci PIN_FIELD16(258, 258, 0xcb0, 0x10, 9, 1), 35462306a36Sopenharmony_ci PIN_FIELD16(259, 259, 0xc90, 0x10, 9, 1), 35562306a36Sopenharmony_ci PIN_FIELD16(261, 261, 0x140, 0x10, 9, 1), 35662306a36Sopenharmony_ci}; 35762306a36Sopenharmony_ci 35862306a36Sopenharmony_cistatic const struct mtk_pin_field_calc mt7623_pin_r0_range[] = { 35962306a36Sopenharmony_ci /* MSDC0 */ 36062306a36Sopenharmony_ci PIN_FIELD16(111, 111, 0xd00, 0x10, 14, 1), 36162306a36Sopenharmony_ci PIN_FIELD16(112, 112, 0xd00, 0x10, 10, 1), 36262306a36Sopenharmony_ci PIN_FIELD16(113, 113, 0xd00, 0x10, 6, 1), 36362306a36Sopenharmony_ci PIN_FIELD16(114, 114, 0xd00, 0x10, 2, 1), 36462306a36Sopenharmony_ci PIN_FIELD16(115, 115, 0xd10, 0x10, 2, 1), 36562306a36Sopenharmony_ci PIN_FIELD16(116, 116, 0xcd0, 0x10, 10, 1), 36662306a36Sopenharmony_ci PIN_FIELD16(117, 117, 0xcc0, 0x10, 10, 1), 36762306a36Sopenharmony_ci PIN_FIELD16(118, 118, 0xcf0, 0x10, 14, 1), 36862306a36Sopenharmony_ci PIN_FIELD16(119, 119, 0xcf0, 0x10, 10, 1), 36962306a36Sopenharmony_ci PIN_FIELD16(120, 120, 0xcf0, 0x10, 6, 1), 37062306a36Sopenharmony_ci PIN_FIELD16(121, 121, 0xcf0, 0x10, 2, 1), 37162306a36Sopenharmony_ci /* MSDC1 */ 37262306a36Sopenharmony_ci PIN_FIELD16(105, 105, 0xd40, 0x10, 10, 1), 37362306a36Sopenharmony_ci PIN_FIELD16(106, 106, 0xd30, 0x10, 10, 1), 37462306a36Sopenharmony_ci PIN_FIELD16(107, 107, 0xd60, 0x10, 2, 1), 37562306a36Sopenharmony_ci PIN_FIELD16(108, 108, 0xd60, 0x10, 8, 1), 37662306a36Sopenharmony_ci PIN_FIELD16(109, 109, 0xd60, 0x10, 6, 1), 37762306a36Sopenharmony_ci PIN_FIELD16(110, 110, 0xc60, 0x10, 14, 1), 37862306a36Sopenharmony_ci /* MSDC2 */ 37962306a36Sopenharmony_ci PIN_FIELD16(85, 85, 0xda0, 0x10, 10, 1), 38062306a36Sopenharmony_ci PIN_FIELD16(86, 86, 0xd90, 0x10, 10, 1), 38162306a36Sopenharmony_ci PIN_FIELD16(87, 87, 0xdc0, 0x10, 2, 1), 38262306a36Sopenharmony_ci PIN_FIELD16(88, 88, 0xdc0, 0x10, 8, 1), 38362306a36Sopenharmony_ci PIN_FIELD16(89, 89, 0xdc0, 0x10, 6, 1), 38462306a36Sopenharmony_ci PIN_FIELD16(90, 90, 0xdc0, 0x10, 14, 1), 38562306a36Sopenharmony_ci /* MSDC0E */ 38662306a36Sopenharmony_ci PIN_FIELD16(249, 249, 0x140, 0x10, 2, 1), 38762306a36Sopenharmony_ci PIN_FIELD16(250, 250, 0x130, 0x10, 14, 1), 38862306a36Sopenharmony_ci PIN_FIELD16(251, 251, 0x130, 0x10, 10, 1), 38962306a36Sopenharmony_ci PIN_FIELD16(252, 252, 0x130, 0x10, 6, 1), 39062306a36Sopenharmony_ci PIN_FIELD16(253, 253, 0x130, 0x10, 2, 1), 39162306a36Sopenharmony_ci PIN_FIELD16(254, 254, 0xf40, 0x10, 14, 1), 39262306a36Sopenharmony_ci PIN_FIELD16(255, 255, 0xf40, 0x10, 10, 1), 39362306a36Sopenharmony_ci PIN_FIELD16(256, 256, 0xf40, 0x10, 6, 1), 39462306a36Sopenharmony_ci PIN_FIELD16(257, 257, 0xf40, 0x10, 5, 1), 39562306a36Sopenharmony_ci PIN_FIELD16(258, 258, 0xcb0, 0x10, 10, 1), 39662306a36Sopenharmony_ci PIN_FIELD16(259, 259, 0xc90, 0x10, 10, 1), 39762306a36Sopenharmony_ci PIN_FIELD16(261, 261, 0x140, 0x10, 10, 1), 39862306a36Sopenharmony_ci}; 39962306a36Sopenharmony_ci 40062306a36Sopenharmony_cistatic const struct mtk_pin_reg_calc mt7623_reg_cals[] = { 40162306a36Sopenharmony_ci [PINCTRL_PIN_REG_MODE] = MTK_RANGE(mt7623_pin_mode_range), 40262306a36Sopenharmony_ci [PINCTRL_PIN_REG_DIR] = MTK_RANGE(mt7623_pin_dir_range), 40362306a36Sopenharmony_ci [PINCTRL_PIN_REG_DI] = MTK_RANGE(mt7623_pin_di_range), 40462306a36Sopenharmony_ci [PINCTRL_PIN_REG_DO] = MTK_RANGE(mt7623_pin_do_range), 40562306a36Sopenharmony_ci [PINCTRL_PIN_REG_SMT] = MTK_RANGE(mt7623_pin_smt_range), 40662306a36Sopenharmony_ci [PINCTRL_PIN_REG_PULLSEL] = MTK_RANGE(mt7623_pin_pullsel_range), 40762306a36Sopenharmony_ci [PINCTRL_PIN_REG_PULLEN] = MTK_RANGE(mt7623_pin_pullen_range), 40862306a36Sopenharmony_ci [PINCTRL_PIN_REG_DRV] = MTK_RANGE(mt7623_pin_drv_range), 40962306a36Sopenharmony_ci [PINCTRL_PIN_REG_TDSEL] = MTK_RANGE(mt7623_pin_tdsel_range), 41062306a36Sopenharmony_ci [PINCTRL_PIN_REG_IES] = MTK_RANGE(mt7623_pin_ies_range), 41162306a36Sopenharmony_ci [PINCTRL_PIN_REG_PUPD] = MTK_RANGE(mt7623_pin_pupd_range), 41262306a36Sopenharmony_ci [PINCTRL_PIN_REG_R0] = MTK_RANGE(mt7623_pin_r0_range), 41362306a36Sopenharmony_ci [PINCTRL_PIN_REG_R1] = MTK_RANGE(mt7623_pin_r1_range), 41462306a36Sopenharmony_ci}; 41562306a36Sopenharmony_ci 41662306a36Sopenharmony_cistatic const struct mtk_pin_desc mt7623_pins[] = { 41762306a36Sopenharmony_ci MT7623_PIN(0, "PWRAP_SPI0_MI", 148, DRV_GRP3), 41862306a36Sopenharmony_ci MT7623_PIN(1, "PWRAP_SPI0_MO", 149, DRV_GRP3), 41962306a36Sopenharmony_ci MT7623_PIN(2, "PWRAP_INT", 150, DRV_GRP3), 42062306a36Sopenharmony_ci MT7623_PIN(3, "PWRAP_SPI0_CK", 151, DRV_GRP3), 42162306a36Sopenharmony_ci MT7623_PIN(4, "PWRAP_SPI0_CSN", 152, DRV_GRP3), 42262306a36Sopenharmony_ci MT7623_PIN(5, "PWRAP_SPI0_CK2", 153, DRV_GRP3), 42362306a36Sopenharmony_ci MT7623_PIN(6, "PWRAP_SPI0_CSN2", 154, DRV_GRP3), 42462306a36Sopenharmony_ci MT7623_PIN(7, "SPI1_CSN", 155, DRV_GRP3), 42562306a36Sopenharmony_ci MT7623_PIN(8, "SPI1_MI", 156, DRV_GRP3), 42662306a36Sopenharmony_ci MT7623_PIN(9, "SPI1_MO", 157, DRV_GRP3), 42762306a36Sopenharmony_ci MT7623_PIN(10, "RTC32K_CK", 158, DRV_GRP3), 42862306a36Sopenharmony_ci MT7623_PIN(11, "WATCHDOG", 159, DRV_GRP3), 42962306a36Sopenharmony_ci MT7623_PIN(12, "SRCLKENA", 160, DRV_GRP3), 43062306a36Sopenharmony_ci MT7623_PIN(13, "SRCLKENAI", 161, DRV_GRP3), 43162306a36Sopenharmony_ci MT7623_PIN(14, "URXD2", 162, DRV_GRP1), 43262306a36Sopenharmony_ci MT7623_PIN(15, "UTXD2", 163, DRV_GRP1), 43362306a36Sopenharmony_ci MT7623_PIN(16, "I2S5_DATA_IN", 164, DRV_GRP1), 43462306a36Sopenharmony_ci MT7623_PIN(17, "I2S5_BCK", 165, DRV_GRP1), 43562306a36Sopenharmony_ci MT7623_PIN(18, "PCM_CLK", 166, DRV_GRP1), 43662306a36Sopenharmony_ci MT7623_PIN(19, "PCM_SYNC", 167, DRV_GRP1), 43762306a36Sopenharmony_ci MT7623_PIN(20, "PCM_RX", EINT_NA, DRV_GRP1), 43862306a36Sopenharmony_ci MT7623_PIN(21, "PCM_TX", EINT_NA, DRV_GRP1), 43962306a36Sopenharmony_ci MT7623_PIN(22, "EINT0", 0, DRV_GRP1), 44062306a36Sopenharmony_ci MT7623_PIN(23, "EINT1", 1, DRV_GRP1), 44162306a36Sopenharmony_ci MT7623_PIN(24, "EINT2", 2, DRV_GRP1), 44262306a36Sopenharmony_ci MT7623_PIN(25, "EINT3", 3, DRV_GRP1), 44362306a36Sopenharmony_ci MT7623_PIN(26, "EINT4", 4, DRV_GRP1), 44462306a36Sopenharmony_ci MT7623_PIN(27, "EINT5", 5, DRV_GRP1), 44562306a36Sopenharmony_ci MT7623_PIN(28, "EINT6", 6, DRV_GRP1), 44662306a36Sopenharmony_ci MT7623_PIN(29, "EINT7", 7, DRV_GRP1), 44762306a36Sopenharmony_ci MT7623_PIN(30, "I2S5_LRCK", 12, DRV_GRP1), 44862306a36Sopenharmony_ci MT7623_PIN(31, "I2S5_MCLK", 13, DRV_GRP1), 44962306a36Sopenharmony_ci MT7623_PIN(32, "I2S5_DATA", 14, DRV_GRP1), 45062306a36Sopenharmony_ci MT7623_PIN(33, "I2S1_DATA", 15, DRV_GRP1), 45162306a36Sopenharmony_ci MT7623_PIN(34, "I2S1_DATA_IN", 16, DRV_GRP1), 45262306a36Sopenharmony_ci MT7623_PIN(35, "I2S1_BCK", 17, DRV_GRP1), 45362306a36Sopenharmony_ci MT7623_PIN(36, "I2S1_LRCK", 18, DRV_GRP1), 45462306a36Sopenharmony_ci MT7623_PIN(37, "I2S1_MCLK", 19, DRV_GRP1), 45562306a36Sopenharmony_ci MT7623_PIN(38, "I2S2_DATA", 20, DRV_GRP1), 45662306a36Sopenharmony_ci MT7623_PIN(39, "JTMS", 21, DRV_GRP3), 45762306a36Sopenharmony_ci MT7623_PIN(40, "JTCK", 22, DRV_GRP3), 45862306a36Sopenharmony_ci MT7623_PIN(41, "JTDI", 23, DRV_GRP3), 45962306a36Sopenharmony_ci MT7623_PIN(42, "JTDO", 24, DRV_GRP3), 46062306a36Sopenharmony_ci MT7623_PIN(43, "NCLE", 25, DRV_GRP1), 46162306a36Sopenharmony_ci MT7623_PIN(44, "NCEB1", 26, DRV_GRP1), 46262306a36Sopenharmony_ci MT7623_PIN(45, "NCEB0", 27, DRV_GRP1), 46362306a36Sopenharmony_ci MT7623_PIN(46, "IR", 28, DRV_FIXED), 46462306a36Sopenharmony_ci MT7623_PIN(47, "NREB", 29, DRV_GRP1), 46562306a36Sopenharmony_ci MT7623_PIN(48, "NRNB", 30, DRV_GRP1), 46662306a36Sopenharmony_ci MT7623_PIN(49, "I2S0_DATA", 31, DRV_GRP1), 46762306a36Sopenharmony_ci MT7623_PIN(50, "I2S2_BCK", 32, DRV_GRP1), 46862306a36Sopenharmony_ci MT7623_PIN(51, "I2S2_DATA_IN", 33, DRV_GRP1), 46962306a36Sopenharmony_ci MT7623_PIN(52, "I2S2_LRCK", 34, DRV_GRP1), 47062306a36Sopenharmony_ci MT7623_PIN(53, "SPI0_CSN", 35, DRV_GRP1), 47162306a36Sopenharmony_ci MT7623_PIN(54, "SPI0_CK", 36, DRV_GRP1), 47262306a36Sopenharmony_ci MT7623_PIN(55, "SPI0_MI", 37, DRV_GRP1), 47362306a36Sopenharmony_ci MT7623_PIN(56, "SPI0_MO", 38, DRV_GRP1), 47462306a36Sopenharmony_ci MT7623_PIN(57, "SDA1", 39, DRV_FIXED), 47562306a36Sopenharmony_ci MT7623_PIN(58, "SCL1", 40, DRV_FIXED), 47662306a36Sopenharmony_ci MT7623_PIN(59, "RAMBUF_I_CLK", EINT_NA, DRV_FIXED), 47762306a36Sopenharmony_ci MT7623_PIN(60, "WB_RSTB", 41, DRV_GRP3), 47862306a36Sopenharmony_ci MT7623_PIN(61, "F2W_DATA", 42, DRV_GRP3), 47962306a36Sopenharmony_ci MT7623_PIN(62, "F2W_CLK", 43, DRV_GRP3), 48062306a36Sopenharmony_ci MT7623_PIN(63, "WB_SCLK", 44, DRV_GRP3), 48162306a36Sopenharmony_ci MT7623_PIN(64, "WB_SDATA", 45, DRV_GRP3), 48262306a36Sopenharmony_ci MT7623_PIN(65, "WB_SEN", 46, DRV_GRP3), 48362306a36Sopenharmony_ci MT7623_PIN(66, "WB_CRTL0", 47, DRV_GRP3), 48462306a36Sopenharmony_ci MT7623_PIN(67, "WB_CRTL1", 48, DRV_GRP3), 48562306a36Sopenharmony_ci MT7623_PIN(68, "WB_CRTL2", 49, DRV_GRP3), 48662306a36Sopenharmony_ci MT7623_PIN(69, "WB_CRTL3", 50, DRV_GRP3), 48762306a36Sopenharmony_ci MT7623_PIN(70, "WB_CRTL4", 51, DRV_GRP3), 48862306a36Sopenharmony_ci MT7623_PIN(71, "WB_CRTL5", 52, DRV_GRP3), 48962306a36Sopenharmony_ci MT7623_PIN(72, "I2S0_DATA_IN", 53, DRV_GRP1), 49062306a36Sopenharmony_ci MT7623_PIN(73, "I2S0_LRCK", 54, DRV_GRP1), 49162306a36Sopenharmony_ci MT7623_PIN(74, "I2S0_BCK", 55, DRV_GRP1), 49262306a36Sopenharmony_ci MT7623_PIN(75, "SDA0", 56, DRV_FIXED), 49362306a36Sopenharmony_ci MT7623_PIN(76, "SCL0", 57, DRV_FIXED), 49462306a36Sopenharmony_ci MT7623_PIN(77, "SDA2", 58, DRV_FIXED), 49562306a36Sopenharmony_ci MT7623_PIN(78, "SCL2", 59, DRV_FIXED), 49662306a36Sopenharmony_ci MT7623_PIN(79, "URXD0", 60, DRV_FIXED), 49762306a36Sopenharmony_ci MT7623_PIN(80, "UTXD0", 61, DRV_FIXED), 49862306a36Sopenharmony_ci MT7623_PIN(81, "URXD1", 62, DRV_FIXED), 49962306a36Sopenharmony_ci MT7623_PIN(82, "UTXD1", 63, DRV_FIXED), 50062306a36Sopenharmony_ci MT7623_PIN(83, "LCM_RST", 64, DRV_FIXED), 50162306a36Sopenharmony_ci MT7623_PIN(84, "DSI_TE", 65, DRV_FIXED), 50262306a36Sopenharmony_ci MT7623_PIN(85, "MSDC2_CMD", 66, DRV_GRP4), 50362306a36Sopenharmony_ci MT7623_PIN(86, "MSDC2_CLK", 67, DRV_GRP4), 50462306a36Sopenharmony_ci MT7623_PIN(87, "MSDC2_DAT0", 68, DRV_GRP4), 50562306a36Sopenharmony_ci MT7623_PIN(88, "MSDC2_DAT1", 69, DRV_GRP4), 50662306a36Sopenharmony_ci MT7623_PIN(89, "MSDC2_DAT2", 70, DRV_GRP4), 50762306a36Sopenharmony_ci MT7623_PIN(90, "MSDC2_DAT3", 71, DRV_GRP4), 50862306a36Sopenharmony_ci MT7623_PIN(91, "TDN3", EINT_NA, DRV_FIXED), 50962306a36Sopenharmony_ci MT7623_PIN(92, "TDP3", EINT_NA, DRV_FIXED), 51062306a36Sopenharmony_ci MT7623_PIN(93, "TDN2", EINT_NA, DRV_FIXED), 51162306a36Sopenharmony_ci MT7623_PIN(94, "TDP2", EINT_NA, DRV_FIXED), 51262306a36Sopenharmony_ci MT7623_PIN(95, "TCN", EINT_NA, DRV_FIXED), 51362306a36Sopenharmony_ci MT7623_PIN(96, "TCP", EINT_NA, DRV_FIXED), 51462306a36Sopenharmony_ci MT7623_PIN(97, "TDN1", EINT_NA, DRV_FIXED), 51562306a36Sopenharmony_ci MT7623_PIN(98, "TDP1", EINT_NA, DRV_FIXED), 51662306a36Sopenharmony_ci MT7623_PIN(99, "TDN0", EINT_NA, DRV_FIXED), 51762306a36Sopenharmony_ci MT7623_PIN(100, "TDP0", EINT_NA, DRV_FIXED), 51862306a36Sopenharmony_ci MT7623_PIN(101, "SPI2_CSN", 74, DRV_FIXED), 51962306a36Sopenharmony_ci MT7623_PIN(102, "SPI2_MI", 75, DRV_FIXED), 52062306a36Sopenharmony_ci MT7623_PIN(103, "SPI2_MO", 76, DRV_FIXED), 52162306a36Sopenharmony_ci MT7623_PIN(104, "SPI2_CLK", 77, DRV_FIXED), 52262306a36Sopenharmony_ci MT7623_PIN(105, "MSDC1_CMD", 78, DRV_GRP4), 52362306a36Sopenharmony_ci MT7623_PIN(106, "MSDC1_CLK", 79, DRV_GRP4), 52462306a36Sopenharmony_ci MT7623_PIN(107, "MSDC1_DAT0", 80, DRV_GRP4), 52562306a36Sopenharmony_ci MT7623_PIN(108, "MSDC1_DAT1", 81, DRV_GRP4), 52662306a36Sopenharmony_ci MT7623_PIN(109, "MSDC1_DAT2", 82, DRV_GRP4), 52762306a36Sopenharmony_ci MT7623_PIN(110, "MSDC1_DAT3", 83, DRV_GRP4), 52862306a36Sopenharmony_ci MT7623_PIN(111, "MSDC0_DAT7", 84, DRV_GRP4), 52962306a36Sopenharmony_ci MT7623_PIN(112, "MSDC0_DAT6", 85, DRV_GRP4), 53062306a36Sopenharmony_ci MT7623_PIN(113, "MSDC0_DAT5", 86, DRV_GRP4), 53162306a36Sopenharmony_ci MT7623_PIN(114, "MSDC0_DAT4", 87, DRV_GRP4), 53262306a36Sopenharmony_ci MT7623_PIN(115, "MSDC0_RSTB", 88, DRV_GRP4), 53362306a36Sopenharmony_ci MT7623_PIN(116, "MSDC0_CMD", 89, DRV_GRP4), 53462306a36Sopenharmony_ci MT7623_PIN(117, "MSDC0_CLK", 90, DRV_GRP4), 53562306a36Sopenharmony_ci MT7623_PIN(118, "MSDC0_DAT3", 91, DRV_GRP4), 53662306a36Sopenharmony_ci MT7623_PIN(119, "MSDC0_DAT2", 92, DRV_GRP4), 53762306a36Sopenharmony_ci MT7623_PIN(120, "MSDC0_DAT1", 93, DRV_GRP4), 53862306a36Sopenharmony_ci MT7623_PIN(121, "MSDC0_DAT0", 94, DRV_GRP4), 53962306a36Sopenharmony_ci MT7623_PIN(122, "CEC", 95, DRV_FIXED), 54062306a36Sopenharmony_ci MT7623_PIN(123, "HTPLG", 96, DRV_FIXED), 54162306a36Sopenharmony_ci MT7623_PIN(124, "HDMISCK", 97, DRV_FIXED), 54262306a36Sopenharmony_ci MT7623_PIN(125, "HDMISD", 98, DRV_FIXED), 54362306a36Sopenharmony_ci MT7623_PIN(126, "I2S0_MCLK", 99, DRV_GRP1), 54462306a36Sopenharmony_ci MT7623_PIN(127, "RAMBUF_IDATA0", EINT_NA, DRV_FIXED), 54562306a36Sopenharmony_ci MT7623_PIN(128, "RAMBUF_IDATA1", EINT_NA, DRV_FIXED), 54662306a36Sopenharmony_ci MT7623_PIN(129, "RAMBUF_IDATA2", EINT_NA, DRV_FIXED), 54762306a36Sopenharmony_ci MT7623_PIN(130, "RAMBUF_IDATA3", EINT_NA, DRV_FIXED), 54862306a36Sopenharmony_ci MT7623_PIN(131, "RAMBUF_IDATA4", EINT_NA, DRV_FIXED), 54962306a36Sopenharmony_ci MT7623_PIN(132, "RAMBUF_IDATA5", EINT_NA, DRV_FIXED), 55062306a36Sopenharmony_ci MT7623_PIN(133, "RAMBUF_IDATA6", EINT_NA, DRV_FIXED), 55162306a36Sopenharmony_ci MT7623_PIN(134, "RAMBUF_IDATA7", EINT_NA, DRV_FIXED), 55262306a36Sopenharmony_ci MT7623_PIN(135, "RAMBUF_IDATA8", EINT_NA, DRV_FIXED), 55362306a36Sopenharmony_ci MT7623_PIN(136, "RAMBUF_IDATA9", EINT_NA, DRV_FIXED), 55462306a36Sopenharmony_ci MT7623_PIN(137, "RAMBUF_IDATA10", EINT_NA, DRV_FIXED), 55562306a36Sopenharmony_ci MT7623_PIN(138, "RAMBUF_IDATA11", EINT_NA, DRV_FIXED), 55662306a36Sopenharmony_ci MT7623_PIN(139, "RAMBUF_IDATA12", EINT_NA, DRV_FIXED), 55762306a36Sopenharmony_ci MT7623_PIN(140, "RAMBUF_IDATA13", EINT_NA, DRV_FIXED), 55862306a36Sopenharmony_ci MT7623_PIN(141, "RAMBUF_IDATA14", EINT_NA, DRV_FIXED), 55962306a36Sopenharmony_ci MT7623_PIN(142, "RAMBUF_IDATA15", EINT_NA, DRV_FIXED), 56062306a36Sopenharmony_ci MT7623_PIN(143, "RAMBUF_ODATA0", EINT_NA, DRV_FIXED), 56162306a36Sopenharmony_ci MT7623_PIN(144, "RAMBUF_ODATA1", EINT_NA, DRV_FIXED), 56262306a36Sopenharmony_ci MT7623_PIN(145, "RAMBUF_ODATA2", EINT_NA, DRV_FIXED), 56362306a36Sopenharmony_ci MT7623_PIN(146, "RAMBUF_ODATA3", EINT_NA, DRV_FIXED), 56462306a36Sopenharmony_ci MT7623_PIN(147, "RAMBUF_ODATA4", EINT_NA, DRV_FIXED), 56562306a36Sopenharmony_ci MT7623_PIN(148, "RAMBUF_ODATA5", EINT_NA, DRV_FIXED), 56662306a36Sopenharmony_ci MT7623_PIN(149, "RAMBUF_ODATA6", EINT_NA, DRV_FIXED), 56762306a36Sopenharmony_ci MT7623_PIN(150, "RAMBUF_ODATA7", EINT_NA, DRV_FIXED), 56862306a36Sopenharmony_ci MT7623_PIN(151, "RAMBUF_ODATA8", EINT_NA, DRV_FIXED), 56962306a36Sopenharmony_ci MT7623_PIN(152, "RAMBUF_ODATA9", EINT_NA, DRV_FIXED), 57062306a36Sopenharmony_ci MT7623_PIN(153, "RAMBUF_ODATA10", EINT_NA, DRV_FIXED), 57162306a36Sopenharmony_ci MT7623_PIN(154, "RAMBUF_ODATA11", EINT_NA, DRV_FIXED), 57262306a36Sopenharmony_ci MT7623_PIN(155, "RAMBUF_ODATA12", EINT_NA, DRV_FIXED), 57362306a36Sopenharmony_ci MT7623_PIN(156, "RAMBUF_ODATA13", EINT_NA, DRV_FIXED), 57462306a36Sopenharmony_ci MT7623_PIN(157, "RAMBUF_ODATA14", EINT_NA, DRV_FIXED), 57562306a36Sopenharmony_ci MT7623_PIN(158, "RAMBUF_ODATA15", EINT_NA, DRV_FIXED), 57662306a36Sopenharmony_ci MT7623_PIN(159, "RAMBUF_BE0", EINT_NA, DRV_FIXED), 57762306a36Sopenharmony_ci MT7623_PIN(160, "RAMBUF_BE1", EINT_NA, DRV_FIXED), 57862306a36Sopenharmony_ci MT7623_PIN(161, "AP2PT_INT", EINT_NA, DRV_FIXED), 57962306a36Sopenharmony_ci MT7623_PIN(162, "AP2PT_INT_CLR", EINT_NA, DRV_FIXED), 58062306a36Sopenharmony_ci MT7623_PIN(163, "PT2AP_INT", EINT_NA, DRV_FIXED), 58162306a36Sopenharmony_ci MT7623_PIN(164, "PT2AP_INT_CLR", EINT_NA, DRV_FIXED), 58262306a36Sopenharmony_ci MT7623_PIN(165, "AP2UP_INT", EINT_NA, DRV_FIXED), 58362306a36Sopenharmony_ci MT7623_PIN(166, "AP2UP_INT_CLR", EINT_NA, DRV_FIXED), 58462306a36Sopenharmony_ci MT7623_PIN(167, "UP2AP_INT", EINT_NA, DRV_FIXED), 58562306a36Sopenharmony_ci MT7623_PIN(168, "UP2AP_INT_CLR", EINT_NA, DRV_FIXED), 58662306a36Sopenharmony_ci MT7623_PIN(169, "RAMBUF_ADDR0", EINT_NA, DRV_FIXED), 58762306a36Sopenharmony_ci MT7623_PIN(170, "RAMBUF_ADDR1", EINT_NA, DRV_FIXED), 58862306a36Sopenharmony_ci MT7623_PIN(171, "RAMBUF_ADDR2", EINT_NA, DRV_FIXED), 58962306a36Sopenharmony_ci MT7623_PIN(172, "RAMBUF_ADDR3", EINT_NA, DRV_FIXED), 59062306a36Sopenharmony_ci MT7623_PIN(173, "RAMBUF_ADDR4", EINT_NA, DRV_FIXED), 59162306a36Sopenharmony_ci MT7623_PIN(174, "RAMBUF_ADDR5", EINT_NA, DRV_FIXED), 59262306a36Sopenharmony_ci MT7623_PIN(175, "RAMBUF_ADDR6", EINT_NA, DRV_FIXED), 59362306a36Sopenharmony_ci MT7623_PIN(176, "RAMBUF_ADDR7", EINT_NA, DRV_FIXED), 59462306a36Sopenharmony_ci MT7623_PIN(177, "RAMBUF_ADDR8", EINT_NA, DRV_FIXED), 59562306a36Sopenharmony_ci MT7623_PIN(178, "RAMBUF_ADDR9", EINT_NA, DRV_FIXED), 59662306a36Sopenharmony_ci MT7623_PIN(179, "RAMBUF_ADDR10", EINT_NA, DRV_FIXED), 59762306a36Sopenharmony_ci MT7623_PIN(180, "RAMBUF_RW", EINT_NA, DRV_FIXED), 59862306a36Sopenharmony_ci MT7623_PIN(181, "RAMBUF_LAST", EINT_NA, DRV_FIXED), 59962306a36Sopenharmony_ci MT7623_PIN(182, "RAMBUF_HP", EINT_NA, DRV_FIXED), 60062306a36Sopenharmony_ci MT7623_PIN(183, "RAMBUF_REQ", EINT_NA, DRV_FIXED), 60162306a36Sopenharmony_ci MT7623_PIN(184, "RAMBUF_ALE", EINT_NA, DRV_FIXED), 60262306a36Sopenharmony_ci MT7623_PIN(185, "RAMBUF_DLE", EINT_NA, DRV_FIXED), 60362306a36Sopenharmony_ci MT7623_PIN(186, "RAMBUF_WDLE", EINT_NA, DRV_FIXED), 60462306a36Sopenharmony_ci MT7623_PIN(187, "RAMBUF_O_CLK", EINT_NA, DRV_FIXED), 60562306a36Sopenharmony_ci MT7623_PIN(188, "I2S2_MCLK", 100, DRV_GRP1), 60662306a36Sopenharmony_ci MT7623_PIN(189, "I2S3_DATA", 101, DRV_GRP1), 60762306a36Sopenharmony_ci MT7623_PIN(190, "I2S3_DATA_IN", 102, DRV_GRP1), 60862306a36Sopenharmony_ci MT7623_PIN(191, "I2S3_BCK", 103, DRV_GRP1), 60962306a36Sopenharmony_ci MT7623_PIN(192, "I2S3_LRCK", 104, DRV_GRP1), 61062306a36Sopenharmony_ci MT7623_PIN(193, "I2S3_MCLK", 105, DRV_GRP1), 61162306a36Sopenharmony_ci MT7623_PIN(194, "I2S4_DATA", 106, DRV_GRP1), 61262306a36Sopenharmony_ci MT7623_PIN(195, "I2S4_DATA_IN", 107, DRV_GRP1), 61362306a36Sopenharmony_ci MT7623_PIN(196, "I2S4_BCK", 108, DRV_GRP1), 61462306a36Sopenharmony_ci MT7623_PIN(197, "I2S4_LRCK", 109, DRV_GRP1), 61562306a36Sopenharmony_ci MT7623_PIN(198, "I2S4_MCLK", 110, DRV_GRP1), 61662306a36Sopenharmony_ci MT7623_PIN(199, "SPI1_CLK", 111, DRV_GRP3), 61762306a36Sopenharmony_ci MT7623_PIN(200, "SPDIF_OUT", 112, DRV_GRP1), 61862306a36Sopenharmony_ci MT7623_PIN(201, "SPDIF_IN0", 113, DRV_GRP1), 61962306a36Sopenharmony_ci MT7623_PIN(202, "SPDIF_IN1", 114, DRV_GRP1), 62062306a36Sopenharmony_ci MT7623_PIN(203, "PWM0", 115, DRV_GRP1), 62162306a36Sopenharmony_ci MT7623_PIN(204, "PWM1", 116, DRV_GRP1), 62262306a36Sopenharmony_ci MT7623_PIN(205, "PWM2", 117, DRV_GRP1), 62362306a36Sopenharmony_ci MT7623_PIN(206, "PWM3", 118, DRV_GRP1), 62462306a36Sopenharmony_ci MT7623_PIN(207, "PWM4", 119, DRV_GRP1), 62562306a36Sopenharmony_ci MT7623_PIN(208, "AUD_EXT_CK1", 120, DRV_GRP1), 62662306a36Sopenharmony_ci MT7623_PIN(209, "AUD_EXT_CK2", 121, DRV_GRP1), 62762306a36Sopenharmony_ci MT7623_PIN(210, "AUD_CLOCK", EINT_NA, DRV_GRP3), 62862306a36Sopenharmony_ci MT7623_PIN(211, "DVP_RESET", EINT_NA, DRV_GRP3), 62962306a36Sopenharmony_ci MT7623_PIN(212, "DVP_CLOCK", EINT_NA, DRV_GRP3), 63062306a36Sopenharmony_ci MT7623_PIN(213, "DVP_CS", EINT_NA, DRV_GRP3), 63162306a36Sopenharmony_ci MT7623_PIN(214, "DVP_CK", EINT_NA, DRV_GRP3), 63262306a36Sopenharmony_ci MT7623_PIN(215, "DVP_DI", EINT_NA, DRV_GRP3), 63362306a36Sopenharmony_ci MT7623_PIN(216, "DVP_DO", EINT_NA, DRV_GRP3), 63462306a36Sopenharmony_ci MT7623_PIN(217, "AP_CS", EINT_NA, DRV_GRP3), 63562306a36Sopenharmony_ci MT7623_PIN(218, "AP_CK", EINT_NA, DRV_GRP3), 63662306a36Sopenharmony_ci MT7623_PIN(219, "AP_DI", EINT_NA, DRV_GRP3), 63762306a36Sopenharmony_ci MT7623_PIN(220, "AP_DO", EINT_NA, DRV_GRP3), 63862306a36Sopenharmony_ci MT7623_PIN(221, "DVD_BCLK", EINT_NA, DRV_GRP3), 63962306a36Sopenharmony_ci MT7623_PIN(222, "T8032_CLK", EINT_NA, DRV_GRP3), 64062306a36Sopenharmony_ci MT7623_PIN(223, "AP_BCLK", EINT_NA, DRV_GRP3), 64162306a36Sopenharmony_ci MT7623_PIN(224, "HOST_CS", EINT_NA, DRV_GRP3), 64262306a36Sopenharmony_ci MT7623_PIN(225, "HOST_CK", EINT_NA, DRV_GRP3), 64362306a36Sopenharmony_ci MT7623_PIN(226, "HOST_DO0", EINT_NA, DRV_GRP3), 64462306a36Sopenharmony_ci MT7623_PIN(227, "HOST_DO1", EINT_NA, DRV_GRP3), 64562306a36Sopenharmony_ci MT7623_PIN(228, "SLV_CS", EINT_NA, DRV_GRP3), 64662306a36Sopenharmony_ci MT7623_PIN(229, "SLV_CK", EINT_NA, DRV_GRP3), 64762306a36Sopenharmony_ci MT7623_PIN(230, "SLV_DI0", EINT_NA, DRV_GRP3), 64862306a36Sopenharmony_ci MT7623_PIN(231, "SLV_DI1", EINT_NA, DRV_GRP3), 64962306a36Sopenharmony_ci MT7623_PIN(232, "AP2DSP_INT", EINT_NA, DRV_GRP3), 65062306a36Sopenharmony_ci MT7623_PIN(233, "AP2DSP_INT_CLR", EINT_NA, DRV_GRP3), 65162306a36Sopenharmony_ci MT7623_PIN(234, "DSP2AP_INT", EINT_NA, DRV_GRP3), 65262306a36Sopenharmony_ci MT7623_PIN(235, "DSP2AP_INT_CLR", EINT_NA, DRV_GRP3), 65362306a36Sopenharmony_ci MT7623_PIN(236, "EXT_SDIO3", 122, DRV_GRP1), 65462306a36Sopenharmony_ci MT7623_PIN(237, "EXT_SDIO2", 123, DRV_GRP1), 65562306a36Sopenharmony_ci MT7623_PIN(238, "EXT_SDIO1", 124, DRV_GRP1), 65662306a36Sopenharmony_ci MT7623_PIN(239, "EXT_SDIO0", 125, DRV_GRP1), 65762306a36Sopenharmony_ci MT7623_PIN(240, "EXT_XCS", 126, DRV_GRP1), 65862306a36Sopenharmony_ci MT7623_PIN(241, "EXT_SCK", 127, DRV_GRP1), 65962306a36Sopenharmony_ci MT7623_PIN(242, "URTS2", 128, DRV_GRP1), 66062306a36Sopenharmony_ci MT7623_PIN(243, "UCTS2", 129, DRV_GRP1), 66162306a36Sopenharmony_ci MT7623_PIN(244, "HDMI_SDA_RX", 130, DRV_FIXED), 66262306a36Sopenharmony_ci MT7623_PIN(245, "HDMI_SCL_RX", 131, DRV_FIXED), 66362306a36Sopenharmony_ci MT7623_PIN(246, "MHL_SENCE", 132, DRV_FIXED), 66462306a36Sopenharmony_ci MT7623_PIN(247, "HDMI_HPD_CBUS_RX", 69, DRV_FIXED), 66562306a36Sopenharmony_ci MT7623_PIN(248, "HDMI_TESTOUTP_RX", 133, DRV_GRP1), 66662306a36Sopenharmony_ci MT7623_PIN(249, "MSDC0E_RSTB", 134, DRV_GRP4), 66762306a36Sopenharmony_ci MT7623_PIN(250, "MSDC0E_DAT7", 135, DRV_GRP4), 66862306a36Sopenharmony_ci MT7623_PIN(251, "MSDC0E_DAT6", 136, DRV_GRP4), 66962306a36Sopenharmony_ci MT7623_PIN(252, "MSDC0E_DAT5", 137, DRV_GRP4), 67062306a36Sopenharmony_ci MT7623_PIN(253, "MSDC0E_DAT4", 138, DRV_GRP4), 67162306a36Sopenharmony_ci MT7623_PIN(254, "MSDC0E_DAT3", 139, DRV_GRP4), 67262306a36Sopenharmony_ci MT7623_PIN(255, "MSDC0E_DAT2", 140, DRV_GRP4), 67362306a36Sopenharmony_ci MT7623_PIN(256, "MSDC0E_DAT1", 141, DRV_GRP4), 67462306a36Sopenharmony_ci MT7623_PIN(257, "MSDC0E_DAT0", 142, DRV_GRP4), 67562306a36Sopenharmony_ci MT7623_PIN(258, "MSDC0E_CMD", 143, DRV_GRP4), 67662306a36Sopenharmony_ci MT7623_PIN(259, "MSDC0E_CLK", 144, DRV_GRP4), 67762306a36Sopenharmony_ci MT7623_PIN(260, "MSDC0E_DSL", 145, DRV_GRP4), 67862306a36Sopenharmony_ci MT7623_PIN(261, "MSDC1_INS", 146, DRV_GRP4), 67962306a36Sopenharmony_ci MT7623_PIN(262, "G2_TXEN", 8, DRV_GRP1), 68062306a36Sopenharmony_ci MT7623_PIN(263, "G2_TXD3", 9, DRV_GRP1), 68162306a36Sopenharmony_ci MT7623_PIN(264, "G2_TXD2", 10, DRV_GRP1), 68262306a36Sopenharmony_ci MT7623_PIN(265, "G2_TXD1", 11, DRV_GRP1), 68362306a36Sopenharmony_ci MT7623_PIN(266, "G2_TXD0", EINT_NA, DRV_GRP1), 68462306a36Sopenharmony_ci MT7623_PIN(267, "G2_TXC", EINT_NA, DRV_GRP1), 68562306a36Sopenharmony_ci MT7623_PIN(268, "G2_RXC", EINT_NA, DRV_GRP1), 68662306a36Sopenharmony_ci MT7623_PIN(269, "G2_RXD0", EINT_NA, DRV_GRP1), 68762306a36Sopenharmony_ci MT7623_PIN(270, "G2_RXD1", EINT_NA, DRV_GRP1), 68862306a36Sopenharmony_ci MT7623_PIN(271, "G2_RXD2", EINT_NA, DRV_GRP1), 68962306a36Sopenharmony_ci MT7623_PIN(272, "G2_RXD3", EINT_NA, DRV_GRP1), 69062306a36Sopenharmony_ci MT7623_PIN(273, "ESW_INT", 168, DRV_GRP1), 69162306a36Sopenharmony_ci MT7623_PIN(274, "G2_RXDV", EINT_NA, DRV_GRP1), 69262306a36Sopenharmony_ci MT7623_PIN(275, "MDC", EINT_NA, DRV_GRP1), 69362306a36Sopenharmony_ci MT7623_PIN(276, "MDIO", EINT_NA, DRV_GRP1), 69462306a36Sopenharmony_ci MT7623_PIN(277, "ESW_RST", EINT_NA, DRV_GRP1), 69562306a36Sopenharmony_ci MT7623_PIN(278, "JTAG_RESET", 147, DRV_GRP3), 69662306a36Sopenharmony_ci MT7623_PIN(279, "USB3_RES_BOND", EINT_NA, DRV_GRP1), 69762306a36Sopenharmony_ci}; 69862306a36Sopenharmony_ci 69962306a36Sopenharmony_ci/* List all groups consisting of these pins dedicated to the enablement of 70062306a36Sopenharmony_ci * certain hardware block and the corresponding mode for all of the pins. 70162306a36Sopenharmony_ci * The hardware probably has multiple combinations of these pinouts. 70262306a36Sopenharmony_ci */ 70362306a36Sopenharmony_ci 70462306a36Sopenharmony_ci/* AUDIO EXT CLK */ 70562306a36Sopenharmony_cistatic int mt7623_aud_ext_clk0_pins[] = { 208, }; 70662306a36Sopenharmony_cistatic int mt7623_aud_ext_clk0_funcs[] = { 1, }; 70762306a36Sopenharmony_cistatic int mt7623_aud_ext_clk1_pins[] = { 209, }; 70862306a36Sopenharmony_cistatic int mt7623_aud_ext_clk1_funcs[] = { 1, }; 70962306a36Sopenharmony_ci 71062306a36Sopenharmony_ci/* DISP PWM */ 71162306a36Sopenharmony_cistatic int mt7623_disp_pwm_0_pins[] = { 72, }; 71262306a36Sopenharmony_cistatic int mt7623_disp_pwm_0_funcs[] = { 5, }; 71362306a36Sopenharmony_cistatic int mt7623_disp_pwm_1_pins[] = { 203, }; 71462306a36Sopenharmony_cistatic int mt7623_disp_pwm_1_funcs[] = { 2, }; 71562306a36Sopenharmony_cistatic int mt7623_disp_pwm_2_pins[] = { 208, }; 71662306a36Sopenharmony_cistatic int mt7623_disp_pwm_2_funcs[] = { 5, }; 71762306a36Sopenharmony_ci 71862306a36Sopenharmony_ci/* ESW */ 71962306a36Sopenharmony_cistatic int mt7623_esw_int_pins[] = { 273, }; 72062306a36Sopenharmony_cistatic int mt7623_esw_int_funcs[] = { 1, }; 72162306a36Sopenharmony_cistatic int mt7623_esw_rst_pins[] = { 277, }; 72262306a36Sopenharmony_cistatic int mt7623_esw_rst_funcs[] = { 1, }; 72362306a36Sopenharmony_ci 72462306a36Sopenharmony_ci/* EPHY */ 72562306a36Sopenharmony_cistatic int mt7623_ephy_pins[] = { 262, 263, 264, 265, 266, 267, 268, 72662306a36Sopenharmony_ci 269, 270, 271, 272, 274, }; 72762306a36Sopenharmony_cistatic int mt7623_ephy_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; 72862306a36Sopenharmony_ci 72962306a36Sopenharmony_ci/* EXT_SDIO */ 73062306a36Sopenharmony_cistatic int mt7623_ext_sdio_pins[] = { 236, 237, 238, 239, 240, 241, }; 73162306a36Sopenharmony_cistatic int mt7623_ext_sdio_funcs[] = { 1, 1, 1, 1, 1, 1, }; 73262306a36Sopenharmony_ci 73362306a36Sopenharmony_ci/* HDMI RX */ 73462306a36Sopenharmony_cistatic int mt7623_hdmi_rx_pins[] = { 247, 248, }; 73562306a36Sopenharmony_cistatic int mt7623_hdmi_rx_funcs[] = { 1, 1 }; 73662306a36Sopenharmony_cistatic int mt7623_hdmi_rx_i2c_pins[] = { 244, 245, }; 73762306a36Sopenharmony_cistatic int mt7623_hdmi_rx_i2c_funcs[] = { 1, 1 }; 73862306a36Sopenharmony_ci 73962306a36Sopenharmony_ci/* HDMI TX */ 74062306a36Sopenharmony_cistatic int mt7623_hdmi_cec_pins[] = { 122, }; 74162306a36Sopenharmony_cistatic int mt7623_hdmi_cec_funcs[] = { 1, }; 74262306a36Sopenharmony_cistatic int mt7623_hdmi_htplg_pins[] = { 123, }; 74362306a36Sopenharmony_cistatic int mt7623_hdmi_htplg_funcs[] = { 1, }; 74462306a36Sopenharmony_cistatic int mt7623_hdmi_i2c_pins[] = { 124, 125, }; 74562306a36Sopenharmony_cistatic int mt7623_hdmi_i2c_funcs[] = { 1, 1 }; 74662306a36Sopenharmony_ci 74762306a36Sopenharmony_ci/* I2C */ 74862306a36Sopenharmony_cistatic int mt7623_i2c0_pins[] = { 75, 76, }; 74962306a36Sopenharmony_cistatic int mt7623_i2c0_funcs[] = { 1, 1, }; 75062306a36Sopenharmony_cistatic int mt7623_i2c1_0_pins[] = { 57, 58, }; 75162306a36Sopenharmony_cistatic int mt7623_i2c1_0_funcs[] = { 1, 1, }; 75262306a36Sopenharmony_cistatic int mt7623_i2c1_1_pins[] = { 242, 243, }; 75362306a36Sopenharmony_cistatic int mt7623_i2c1_1_funcs[] = { 4, 4, }; 75462306a36Sopenharmony_cistatic int mt7623_i2c1_2_pins[] = { 85, 86, }; 75562306a36Sopenharmony_cistatic int mt7623_i2c1_2_funcs[] = { 3, 3, }; 75662306a36Sopenharmony_cistatic int mt7623_i2c1_3_pins[] = { 105, 106, }; 75762306a36Sopenharmony_cistatic int mt7623_i2c1_3_funcs[] = { 3, 3, }; 75862306a36Sopenharmony_cistatic int mt7623_i2c1_4_pins[] = { 124, 125, }; 75962306a36Sopenharmony_cistatic int mt7623_i2c1_4_funcs[] = { 4, 4, }; 76062306a36Sopenharmony_cistatic int mt7623_i2c2_0_pins[] = { 77, 78, }; 76162306a36Sopenharmony_cistatic int mt7623_i2c2_0_funcs[] = { 1, 1, }; 76262306a36Sopenharmony_cistatic int mt7623_i2c2_1_pins[] = { 89, 90, }; 76362306a36Sopenharmony_cistatic int mt7623_i2c2_1_funcs[] = { 3, 3, }; 76462306a36Sopenharmony_cistatic int mt7623_i2c2_2_pins[] = { 109, 110, }; 76562306a36Sopenharmony_cistatic int mt7623_i2c2_2_funcs[] = { 3, 3, }; 76662306a36Sopenharmony_cistatic int mt7623_i2c2_3_pins[] = { 122, 123, }; 76762306a36Sopenharmony_cistatic int mt7623_i2c2_3_funcs[] = { 4, 4, }; 76862306a36Sopenharmony_ci 76962306a36Sopenharmony_ci/* I2S */ 77062306a36Sopenharmony_cistatic int mt7623_i2s0_pins[] = { 49, 72, 73, 74, 126, }; 77162306a36Sopenharmony_cistatic int mt7623_i2s0_funcs[] = { 1, 1, 1, 1, 1, }; 77262306a36Sopenharmony_cistatic int mt7623_i2s1_pins[] = { 33, 34, 35, 36, 37, }; 77362306a36Sopenharmony_cistatic int mt7623_i2s1_funcs[] = { 1, 1, 1, 1, 1, }; 77462306a36Sopenharmony_cistatic int mt7623_i2s2_bclk_lrclk_mclk_pins[] = { 50, 52, 188, }; 77562306a36Sopenharmony_cistatic int mt7623_i2s2_bclk_lrclk_mclk_funcs[] = { 1, 1, 1, }; 77662306a36Sopenharmony_cistatic int mt7623_i2s2_data_in_pins[] = { 51, }; 77762306a36Sopenharmony_cistatic int mt7623_i2s2_data_in_funcs[] = { 1, }; 77862306a36Sopenharmony_cistatic int mt7623_i2s2_data_0_pins[] = { 203, }; 77962306a36Sopenharmony_cistatic int mt7623_i2s2_data_0_funcs[] = { 9, }; 78062306a36Sopenharmony_cistatic int mt7623_i2s2_data_1_pins[] = { 38, }; 78162306a36Sopenharmony_cistatic int mt7623_i2s2_data_1_funcs[] = { 4, }; 78262306a36Sopenharmony_cistatic int mt7623_i2s3_bclk_lrclk_mclk_pins[] = { 191, 192, 193, }; 78362306a36Sopenharmony_cistatic int mt7623_i2s3_bclk_lrclk_mclk_funcs[] = { 1, 1, 1, }; 78462306a36Sopenharmony_cistatic int mt7623_i2s3_data_in_pins[] = { 190, }; 78562306a36Sopenharmony_cistatic int mt7623_i2s3_data_in_funcs[] = { 1, }; 78662306a36Sopenharmony_cistatic int mt7623_i2s3_data_0_pins[] = { 204, }; 78762306a36Sopenharmony_cistatic int mt7623_i2s3_data_0_funcs[] = { 9, }; 78862306a36Sopenharmony_cistatic int mt7623_i2s3_data_1_pins[] = { 2, }; 78962306a36Sopenharmony_cistatic int mt7623_i2s3_data_1_funcs[] = { 0, }; 79062306a36Sopenharmony_cistatic int mt7623_i2s4_pins[] = { 194, 195, 196, 197, 198, }; 79162306a36Sopenharmony_cistatic int mt7623_i2s4_funcs[] = { 1, 1, 1, 1, 1, }; 79262306a36Sopenharmony_cistatic int mt7623_i2s5_pins[] = { 16, 17, 30, 31, 32, }; 79362306a36Sopenharmony_cistatic int mt7623_i2s5_funcs[] = { 1, 1, 1, 1, 1, }; 79462306a36Sopenharmony_ci 79562306a36Sopenharmony_ci/* IR */ 79662306a36Sopenharmony_cistatic int mt7623_ir_pins[] = { 46, }; 79762306a36Sopenharmony_cistatic int mt7623_ir_funcs[] = { 1, }; 79862306a36Sopenharmony_ci 79962306a36Sopenharmony_ci/* LCD */ 80062306a36Sopenharmony_cistatic int mt7623_mipi_tx_pins[] = { 91, 92, 93, 94, 95, 96, 97, 98, 80162306a36Sopenharmony_ci 99, 100, }; 80262306a36Sopenharmony_cistatic int mt7623_mipi_tx_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; 80362306a36Sopenharmony_cistatic int mt7623_dsi_te_pins[] = { 84, }; 80462306a36Sopenharmony_cistatic int mt7623_dsi_te_funcs[] = { 1, }; 80562306a36Sopenharmony_cistatic int mt7623_lcm_rst_pins[] = { 83, }; 80662306a36Sopenharmony_cistatic int mt7623_lcm_rst_funcs[] = { 1, }; 80762306a36Sopenharmony_ci 80862306a36Sopenharmony_ci/* MDC/MDIO */ 80962306a36Sopenharmony_cistatic int mt7623_mdc_mdio_pins[] = { 275, 276, }; 81062306a36Sopenharmony_cistatic int mt7623_mdc_mdio_funcs[] = { 1, 1, }; 81162306a36Sopenharmony_ci 81262306a36Sopenharmony_ci/* MSDC */ 81362306a36Sopenharmony_cistatic int mt7623_msdc0_pins[] = { 111, 112, 113, 114, 115, 116, 117, 118, 81462306a36Sopenharmony_ci 119, 120, 121, }; 81562306a36Sopenharmony_cistatic int mt7623_msdc0_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; 81662306a36Sopenharmony_cistatic int mt7623_msdc1_pins[] = { 105, 106, 107, 108, 109, 110, }; 81762306a36Sopenharmony_cistatic int mt7623_msdc1_funcs[] = { 1, 1, 1, 1, 1, 1, }; 81862306a36Sopenharmony_cistatic int mt7623_msdc1_ins_pins[] = { 261, }; 81962306a36Sopenharmony_cistatic int mt7623_msdc1_ins_funcs[] = { 1, }; 82062306a36Sopenharmony_cistatic int mt7623_msdc1_wp_0_pins[] = { 29, }; 82162306a36Sopenharmony_cistatic int mt7623_msdc1_wp_0_funcs[] = { 1, }; 82262306a36Sopenharmony_cistatic int mt7623_msdc1_wp_1_pins[] = { 55, }; 82362306a36Sopenharmony_cistatic int mt7623_msdc1_wp_1_funcs[] = { 3, }; 82462306a36Sopenharmony_cistatic int mt7623_msdc1_wp_2_pins[] = { 209, }; 82562306a36Sopenharmony_cistatic int mt7623_msdc1_wp_2_funcs[] = { 2, }; 82662306a36Sopenharmony_cistatic int mt7623_msdc2_pins[] = { 85, 86, 87, 88, 89, 90, }; 82762306a36Sopenharmony_cistatic int mt7623_msdc2_funcs[] = { 1, 1, 1, 1, 1, 1, }; 82862306a36Sopenharmony_cistatic int mt7623_msdc3_pins[] = { 249, 250, 251, 252, 253, 254, 255, 256, 82962306a36Sopenharmony_ci 257, 258, 259, 260, }; 83062306a36Sopenharmony_cistatic int mt7623_msdc3_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; 83162306a36Sopenharmony_ci 83262306a36Sopenharmony_ci/* NAND */ 83362306a36Sopenharmony_cistatic int mt7623_nandc_pins[] = { 43, 47, 48, 111, 112, 113, 114, 115, 83462306a36Sopenharmony_ci 116, 117, 118, 119, 120, 121, }; 83562306a36Sopenharmony_cistatic int mt7623_nandc_funcs[] = { 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 83662306a36Sopenharmony_ci 4, 4, }; 83762306a36Sopenharmony_cistatic int mt7623_nandc_ceb0_pins[] = { 45, }; 83862306a36Sopenharmony_cistatic int mt7623_nandc_ceb0_funcs[] = { 1, }; 83962306a36Sopenharmony_cistatic int mt7623_nandc_ceb1_pins[] = { 44, }; 84062306a36Sopenharmony_cistatic int mt7623_nandc_ceb1_funcs[] = { 1, }; 84162306a36Sopenharmony_ci 84262306a36Sopenharmony_ci/* RTC */ 84362306a36Sopenharmony_cistatic int mt7623_rtc_pins[] = { 10, }; 84462306a36Sopenharmony_cistatic int mt7623_rtc_funcs[] = { 1, }; 84562306a36Sopenharmony_ci 84662306a36Sopenharmony_ci/* OTG */ 84762306a36Sopenharmony_cistatic int mt7623_otg_iddig0_0_pins[] = { 29, }; 84862306a36Sopenharmony_cistatic int mt7623_otg_iddig0_0_funcs[] = { 1, }; 84962306a36Sopenharmony_cistatic int mt7623_otg_iddig0_1_pins[] = { 44, }; 85062306a36Sopenharmony_cistatic int mt7623_otg_iddig0_1_funcs[] = { 2, }; 85162306a36Sopenharmony_cistatic int mt7623_otg_iddig0_2_pins[] = { 236, }; 85262306a36Sopenharmony_cistatic int mt7623_otg_iddig0_2_funcs[] = { 2, }; 85362306a36Sopenharmony_cistatic int mt7623_otg_iddig1_0_pins[] = { 27, }; 85462306a36Sopenharmony_cistatic int mt7623_otg_iddig1_0_funcs[] = { 2, }; 85562306a36Sopenharmony_cistatic int mt7623_otg_iddig1_1_pins[] = { 47, }; 85662306a36Sopenharmony_cistatic int mt7623_otg_iddig1_1_funcs[] = { 2, }; 85762306a36Sopenharmony_cistatic int mt7623_otg_iddig1_2_pins[] = { 238, }; 85862306a36Sopenharmony_cistatic int mt7623_otg_iddig1_2_funcs[] = { 2, }; 85962306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus0_0_pins[] = { 28, }; 86062306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus0_0_funcs[] = { 1, }; 86162306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus0_1_pins[] = { 45, }; 86262306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus0_1_funcs[] = { 2, }; 86362306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus0_2_pins[] = { 237, }; 86462306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus0_2_funcs[] = { 2, }; 86562306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus1_0_pins[] = { 26, }; 86662306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus1_0_funcs[] = { 2, }; 86762306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus1_1_pins[] = { 48, }; 86862306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus1_1_funcs[] = { 2, }; 86962306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus1_2_pins[] = { 239, }; 87062306a36Sopenharmony_cistatic int mt7623_otg_drv_vbus1_2_funcs[] = { 2, }; 87162306a36Sopenharmony_ci 87262306a36Sopenharmony_ci/* PCIE */ 87362306a36Sopenharmony_cistatic int mt7623_pcie0_0_perst_pins[] = { 208, }; 87462306a36Sopenharmony_cistatic int mt7623_pcie0_0_perst_funcs[] = { 3, }; 87562306a36Sopenharmony_cistatic int mt7623_pcie0_1_perst_pins[] = { 22, }; 87662306a36Sopenharmony_cistatic int mt7623_pcie0_1_perst_funcs[] = { 2, }; 87762306a36Sopenharmony_cistatic int mt7623_pcie1_0_perst_pins[] = { 209, }; 87862306a36Sopenharmony_cistatic int mt7623_pcie1_0_perst_funcs[] = { 3, }; 87962306a36Sopenharmony_cistatic int mt7623_pcie1_1_perst_pins[] = { 23, }; 88062306a36Sopenharmony_cistatic int mt7623_pcie1_1_perst_funcs[] = { 2, }; 88162306a36Sopenharmony_cistatic int mt7623_pcie2_0_perst_pins[] = { 24, }; 88262306a36Sopenharmony_cistatic int mt7623_pcie2_0_perst_funcs[] = { 2, }; 88362306a36Sopenharmony_cistatic int mt7623_pcie2_1_perst_pins[] = { 29, }; 88462306a36Sopenharmony_cistatic int mt7623_pcie2_1_perst_funcs[] = { 6, }; 88562306a36Sopenharmony_cistatic int mt7623_pcie0_0_wake_pins[] = { 28, }; 88662306a36Sopenharmony_cistatic int mt7623_pcie0_0_wake_funcs[] = { 6, }; 88762306a36Sopenharmony_cistatic int mt7623_pcie0_1_wake_pins[] = { 251, }; 88862306a36Sopenharmony_cistatic int mt7623_pcie0_1_wake_funcs[] = { 6, }; 88962306a36Sopenharmony_cistatic int mt7623_pcie1_0_wake_pins[] = { 27, }; 89062306a36Sopenharmony_cistatic int mt7623_pcie1_0_wake_funcs[] = { 6, }; 89162306a36Sopenharmony_cistatic int mt7623_pcie1_1_wake_pins[] = { 253, }; 89262306a36Sopenharmony_cistatic int mt7623_pcie1_1_wake_funcs[] = { 6, }; 89362306a36Sopenharmony_cistatic int mt7623_pcie2_0_wake_pins[] = { 26, }; 89462306a36Sopenharmony_cistatic int mt7623_pcie2_0_wake_funcs[] = { 6, }; 89562306a36Sopenharmony_cistatic int mt7623_pcie2_1_wake_pins[] = { 255, }; 89662306a36Sopenharmony_cistatic int mt7623_pcie2_1_wake_funcs[] = { 6, }; 89762306a36Sopenharmony_cistatic int mt7623_pcie0_clkreq_pins[] = { 250, }; 89862306a36Sopenharmony_cistatic int mt7623_pcie0_clkreq_funcs[] = { 6, }; 89962306a36Sopenharmony_cistatic int mt7623_pcie1_clkreq_pins[] = { 252, }; 90062306a36Sopenharmony_cistatic int mt7623_pcie1_clkreq_funcs[] = { 6, }; 90162306a36Sopenharmony_cistatic int mt7623_pcie2_clkreq_pins[] = { 254, }; 90262306a36Sopenharmony_cistatic int mt7623_pcie2_clkreq_funcs[] = { 6, }; 90362306a36Sopenharmony_ci 90462306a36Sopenharmony_ci/* the pcie_*_rev are only used for MT7623 */ 90562306a36Sopenharmony_cistatic int mt7623_pcie0_0_rev_perst_pins[] = { 208, }; 90662306a36Sopenharmony_cistatic int mt7623_pcie0_0_rev_perst_funcs[] = { 11, }; 90762306a36Sopenharmony_cistatic int mt7623_pcie0_1_rev_perst_pins[] = { 22, }; 90862306a36Sopenharmony_cistatic int mt7623_pcie0_1_rev_perst_funcs[] = { 10, }; 90962306a36Sopenharmony_cistatic int mt7623_pcie1_0_rev_perst_pins[] = { 209, }; 91062306a36Sopenharmony_cistatic int mt7623_pcie1_0_rev_perst_funcs[] = { 11, }; 91162306a36Sopenharmony_cistatic int mt7623_pcie1_1_rev_perst_pins[] = { 23, }; 91262306a36Sopenharmony_cistatic int mt7623_pcie1_1_rev_perst_funcs[] = { 10, }; 91362306a36Sopenharmony_cistatic int mt7623_pcie2_0_rev_perst_pins[] = { 24, }; 91462306a36Sopenharmony_cistatic int mt7623_pcie2_0_rev_perst_funcs[] = { 11, }; 91562306a36Sopenharmony_cistatic int mt7623_pcie2_1_rev_perst_pins[] = { 29, }; 91662306a36Sopenharmony_cistatic int mt7623_pcie2_1_rev_perst_funcs[] = { 14, }; 91762306a36Sopenharmony_ci 91862306a36Sopenharmony_ci/* PCM */ 91962306a36Sopenharmony_cistatic int mt7623_pcm_clk_0_pins[] = { 18, }; 92062306a36Sopenharmony_cistatic int mt7623_pcm_clk_0_funcs[] = { 1, }; 92162306a36Sopenharmony_cistatic int mt7623_pcm_clk_1_pins[] = { 17, }; 92262306a36Sopenharmony_cistatic int mt7623_pcm_clk_1_funcs[] = { 3, }; 92362306a36Sopenharmony_cistatic int mt7623_pcm_clk_2_pins[] = { 35, }; 92462306a36Sopenharmony_cistatic int mt7623_pcm_clk_2_funcs[] = { 3, }; 92562306a36Sopenharmony_cistatic int mt7623_pcm_clk_3_pins[] = { 50, }; 92662306a36Sopenharmony_cistatic int mt7623_pcm_clk_3_funcs[] = { 3, }; 92762306a36Sopenharmony_cistatic int mt7623_pcm_clk_4_pins[] = { 74, }; 92862306a36Sopenharmony_cistatic int mt7623_pcm_clk_4_funcs[] = { 3, }; 92962306a36Sopenharmony_cistatic int mt7623_pcm_clk_5_pins[] = { 191, }; 93062306a36Sopenharmony_cistatic int mt7623_pcm_clk_5_funcs[] = { 3, }; 93162306a36Sopenharmony_cistatic int mt7623_pcm_clk_6_pins[] = { 196, }; 93262306a36Sopenharmony_cistatic int mt7623_pcm_clk_6_funcs[] = { 3, }; 93362306a36Sopenharmony_cistatic int mt7623_pcm_sync_0_pins[] = { 19, }; 93462306a36Sopenharmony_cistatic int mt7623_pcm_sync_0_funcs[] = { 1, }; 93562306a36Sopenharmony_cistatic int mt7623_pcm_sync_1_pins[] = { 30, }; 93662306a36Sopenharmony_cistatic int mt7623_pcm_sync_1_funcs[] = { 3, }; 93762306a36Sopenharmony_cistatic int mt7623_pcm_sync_2_pins[] = { 36, }; 93862306a36Sopenharmony_cistatic int mt7623_pcm_sync_2_funcs[] = { 3, }; 93962306a36Sopenharmony_cistatic int mt7623_pcm_sync_3_pins[] = { 52, }; 94062306a36Sopenharmony_cistatic int mt7623_pcm_sync_3_funcs[] = { 31, }; 94162306a36Sopenharmony_cistatic int mt7623_pcm_sync_4_pins[] = { 73, }; 94262306a36Sopenharmony_cistatic int mt7623_pcm_sync_4_funcs[] = { 3, }; 94362306a36Sopenharmony_cistatic int mt7623_pcm_sync_5_pins[] = { 192, }; 94462306a36Sopenharmony_cistatic int mt7623_pcm_sync_5_funcs[] = { 3, }; 94562306a36Sopenharmony_cistatic int mt7623_pcm_sync_6_pins[] = { 197, }; 94662306a36Sopenharmony_cistatic int mt7623_pcm_sync_6_funcs[] = { 3, }; 94762306a36Sopenharmony_cistatic int mt7623_pcm_rx_0_pins[] = { 20, }; 94862306a36Sopenharmony_cistatic int mt7623_pcm_rx_0_funcs[] = { 1, }; 94962306a36Sopenharmony_cistatic int mt7623_pcm_rx_1_pins[] = { 16, }; 95062306a36Sopenharmony_cistatic int mt7623_pcm_rx_1_funcs[] = { 3, }; 95162306a36Sopenharmony_cistatic int mt7623_pcm_rx_2_pins[] = { 34, }; 95262306a36Sopenharmony_cistatic int mt7623_pcm_rx_2_funcs[] = { 3, }; 95362306a36Sopenharmony_cistatic int mt7623_pcm_rx_3_pins[] = { 51, }; 95462306a36Sopenharmony_cistatic int mt7623_pcm_rx_3_funcs[] = { 3, }; 95562306a36Sopenharmony_cistatic int mt7623_pcm_rx_4_pins[] = { 72, }; 95662306a36Sopenharmony_cistatic int mt7623_pcm_rx_4_funcs[] = { 3, }; 95762306a36Sopenharmony_cistatic int mt7623_pcm_rx_5_pins[] = { 190, }; 95862306a36Sopenharmony_cistatic int mt7623_pcm_rx_5_funcs[] = { 3, }; 95962306a36Sopenharmony_cistatic int mt7623_pcm_rx_6_pins[] = { 195, }; 96062306a36Sopenharmony_cistatic int mt7623_pcm_rx_6_funcs[] = { 3, }; 96162306a36Sopenharmony_cistatic int mt7623_pcm_tx_0_pins[] = { 21, }; 96262306a36Sopenharmony_cistatic int mt7623_pcm_tx_0_funcs[] = { 1, }; 96362306a36Sopenharmony_cistatic int mt7623_pcm_tx_1_pins[] = { 32, }; 96462306a36Sopenharmony_cistatic int mt7623_pcm_tx_1_funcs[] = { 3, }; 96562306a36Sopenharmony_cistatic int mt7623_pcm_tx_2_pins[] = { 33, }; 96662306a36Sopenharmony_cistatic int mt7623_pcm_tx_2_funcs[] = { 3, }; 96762306a36Sopenharmony_cistatic int mt7623_pcm_tx_3_pins[] = { 38, }; 96862306a36Sopenharmony_cistatic int mt7623_pcm_tx_3_funcs[] = { 3, }; 96962306a36Sopenharmony_cistatic int mt7623_pcm_tx_4_pins[] = { 49, }; 97062306a36Sopenharmony_cistatic int mt7623_pcm_tx_4_funcs[] = { 3, }; 97162306a36Sopenharmony_cistatic int mt7623_pcm_tx_5_pins[] = { 189, }; 97262306a36Sopenharmony_cistatic int mt7623_pcm_tx_5_funcs[] = { 3, }; 97362306a36Sopenharmony_cistatic int mt7623_pcm_tx_6_pins[] = { 194, }; 97462306a36Sopenharmony_cistatic int mt7623_pcm_tx_6_funcs[] = { 3, }; 97562306a36Sopenharmony_ci 97662306a36Sopenharmony_ci/* PWM */ 97762306a36Sopenharmony_cistatic int mt7623_pwm_ch1_0_pins[] = { 203, }; 97862306a36Sopenharmony_cistatic int mt7623_pwm_ch1_0_funcs[] = { 1, }; 97962306a36Sopenharmony_cistatic int mt7623_pwm_ch1_1_pins[] = { 208, }; 98062306a36Sopenharmony_cistatic int mt7623_pwm_ch1_1_funcs[] = { 2, }; 98162306a36Sopenharmony_cistatic int mt7623_pwm_ch1_2_pins[] = { 72, }; 98262306a36Sopenharmony_cistatic int mt7623_pwm_ch1_2_funcs[] = { 4, }; 98362306a36Sopenharmony_cistatic int mt7623_pwm_ch1_3_pins[] = { 88, }; 98462306a36Sopenharmony_cistatic int mt7623_pwm_ch1_3_funcs[] = { 3, }; 98562306a36Sopenharmony_cistatic int mt7623_pwm_ch1_4_pins[] = { 108, }; 98662306a36Sopenharmony_cistatic int mt7623_pwm_ch1_4_funcs[] = { 3, }; 98762306a36Sopenharmony_cistatic int mt7623_pwm_ch2_0_pins[] = { 204, }; 98862306a36Sopenharmony_cistatic int mt7623_pwm_ch2_0_funcs[] = { 1, }; 98962306a36Sopenharmony_cistatic int mt7623_pwm_ch2_1_pins[] = { 53, }; 99062306a36Sopenharmony_cistatic int mt7623_pwm_ch2_1_funcs[] = { 5, }; 99162306a36Sopenharmony_cistatic int mt7623_pwm_ch2_2_pins[] = { 88, }; 99262306a36Sopenharmony_cistatic int mt7623_pwm_ch2_2_funcs[] = { 6, }; 99362306a36Sopenharmony_cistatic int mt7623_pwm_ch2_3_pins[] = { 108, }; 99462306a36Sopenharmony_cistatic int mt7623_pwm_ch2_3_funcs[] = { 6, }; 99562306a36Sopenharmony_cistatic int mt7623_pwm_ch2_4_pins[] = { 209, }; 99662306a36Sopenharmony_cistatic int mt7623_pwm_ch2_4_funcs[] = { 5, }; 99762306a36Sopenharmony_cistatic int mt7623_pwm_ch3_0_pins[] = { 205, }; 99862306a36Sopenharmony_cistatic int mt7623_pwm_ch3_0_funcs[] = { 1, }; 99962306a36Sopenharmony_cistatic int mt7623_pwm_ch3_1_pins[] = { 55, }; 100062306a36Sopenharmony_cistatic int mt7623_pwm_ch3_1_funcs[] = { 5, }; 100162306a36Sopenharmony_cistatic int mt7623_pwm_ch3_2_pins[] = { 89, }; 100262306a36Sopenharmony_cistatic int mt7623_pwm_ch3_2_funcs[] = { 6, }; 100362306a36Sopenharmony_cistatic int mt7623_pwm_ch3_3_pins[] = { 109, }; 100462306a36Sopenharmony_cistatic int mt7623_pwm_ch3_3_funcs[] = { 6, }; 100562306a36Sopenharmony_cistatic int mt7623_pwm_ch4_0_pins[] = { 206, }; 100662306a36Sopenharmony_cistatic int mt7623_pwm_ch4_0_funcs[] = { 1, }; 100762306a36Sopenharmony_cistatic int mt7623_pwm_ch4_1_pins[] = { 90, }; 100862306a36Sopenharmony_cistatic int mt7623_pwm_ch4_1_funcs[] = { 6, }; 100962306a36Sopenharmony_cistatic int mt7623_pwm_ch4_2_pins[] = { 110, }; 101062306a36Sopenharmony_cistatic int mt7623_pwm_ch4_2_funcs[] = { 6, }; 101162306a36Sopenharmony_cistatic int mt7623_pwm_ch4_3_pins[] = { 124, }; 101262306a36Sopenharmony_cistatic int mt7623_pwm_ch4_3_funcs[] = { 5, }; 101362306a36Sopenharmony_cistatic int mt7623_pwm_ch5_0_pins[] = { 207, }; 101462306a36Sopenharmony_cistatic int mt7623_pwm_ch5_0_funcs[] = { 1, }; 101562306a36Sopenharmony_cistatic int mt7623_pwm_ch5_1_pins[] = { 125, }; 101662306a36Sopenharmony_cistatic int mt7623_pwm_ch5_1_funcs[] = { 5, }; 101762306a36Sopenharmony_ci 101862306a36Sopenharmony_ci/* PWRAP */ 101962306a36Sopenharmony_cistatic int mt7623_pwrap_pins[] = { 0, 1, 2, 3, 4, 5, 6, }; 102062306a36Sopenharmony_cistatic int mt7623_pwrap_funcs[] = { 1, 1, 1, 1, 1, 1, 1, }; 102162306a36Sopenharmony_ci 102262306a36Sopenharmony_ci/* SPDIF */ 102362306a36Sopenharmony_cistatic int mt7623_spdif_in0_0_pins[] = { 56, }; 102462306a36Sopenharmony_cistatic int mt7623_spdif_in0_0_funcs[] = { 3, }; 102562306a36Sopenharmony_cistatic int mt7623_spdif_in0_1_pins[] = { 201, }; 102662306a36Sopenharmony_cistatic int mt7623_spdif_in0_1_funcs[] = { 1, }; 102762306a36Sopenharmony_cistatic int mt7623_spdif_in1_0_pins[] = { 54, }; 102862306a36Sopenharmony_cistatic int mt7623_spdif_in1_0_funcs[] = { 3, }; 102962306a36Sopenharmony_cistatic int mt7623_spdif_in1_1_pins[] = { 202, }; 103062306a36Sopenharmony_cistatic int mt7623_spdif_in1_1_funcs[] = { 1, }; 103162306a36Sopenharmony_cistatic int mt7623_spdif_out_pins[] = { 202, }; 103262306a36Sopenharmony_cistatic int mt7623_spdif_out_funcs[] = { 1, }; 103362306a36Sopenharmony_ci 103462306a36Sopenharmony_ci/* SPI */ 103562306a36Sopenharmony_cistatic int mt7623_spi0_pins[] = { 53, 54, 55, 56, }; 103662306a36Sopenharmony_cistatic int mt7623_spi0_funcs[] = { 1, 1, 1, 1, }; 103762306a36Sopenharmony_cistatic int mt7623_spi1_pins[] = { 7, 199, 8, 9, }; 103862306a36Sopenharmony_cistatic int mt7623_spi1_funcs[] = { 1, 1, 1, 1, }; 103962306a36Sopenharmony_cistatic int mt7623_spi2_pins[] = { 101, 104, 102, 103, }; 104062306a36Sopenharmony_cistatic int mt7623_spi2_funcs[] = { 1, 1, 1, 1, }; 104162306a36Sopenharmony_ci 104262306a36Sopenharmony_ci/* UART */ 104362306a36Sopenharmony_cistatic int mt7623_uart0_0_txd_rxd_pins[] = { 79, 80, }; 104462306a36Sopenharmony_cistatic int mt7623_uart0_0_txd_rxd_funcs[] = { 1, 1, }; 104562306a36Sopenharmony_cistatic int mt7623_uart0_1_txd_rxd_pins[] = { 87, 88, }; 104662306a36Sopenharmony_cistatic int mt7623_uart0_1_txd_rxd_funcs[] = { 5, 5, }; 104762306a36Sopenharmony_cistatic int mt7623_uart0_2_txd_rxd_pins[] = { 107, 108, }; 104862306a36Sopenharmony_cistatic int mt7623_uart0_2_txd_rxd_funcs[] = { 5, 5, }; 104962306a36Sopenharmony_cistatic int mt7623_uart0_3_txd_rxd_pins[] = { 123, 122, }; 105062306a36Sopenharmony_cistatic int mt7623_uart0_3_txd_rxd_funcs[] = { 5, 5, }; 105162306a36Sopenharmony_cistatic int mt7623_uart0_rts_cts_pins[] = { 22, 23, }; 105262306a36Sopenharmony_cistatic int mt7623_uart0_rts_cts_funcs[] = { 1, 1, }; 105362306a36Sopenharmony_cistatic int mt7623_uart1_0_txd_rxd_pins[] = { 81, 82, }; 105462306a36Sopenharmony_cistatic int mt7623_uart1_0_txd_rxd_funcs[] = { 1, 1, }; 105562306a36Sopenharmony_cistatic int mt7623_uart1_1_txd_rxd_pins[] = { 89, 90, }; 105662306a36Sopenharmony_cistatic int mt7623_uart1_1_txd_rxd_funcs[] = { 5, 5, }; 105762306a36Sopenharmony_cistatic int mt7623_uart1_2_txd_rxd_pins[] = { 109, 110, }; 105862306a36Sopenharmony_cistatic int mt7623_uart1_2_txd_rxd_funcs[] = { 5, 5, }; 105962306a36Sopenharmony_cistatic int mt7623_uart1_rts_cts_pins[] = { 24, 25, }; 106062306a36Sopenharmony_cistatic int mt7623_uart1_rts_cts_funcs[] = { 1, 1, }; 106162306a36Sopenharmony_cistatic int mt7623_uart2_0_txd_rxd_pins[] = { 14, 15, }; 106262306a36Sopenharmony_cistatic int mt7623_uart2_0_txd_rxd_funcs[] = { 1, 1, }; 106362306a36Sopenharmony_cistatic int mt7623_uart2_1_txd_rxd_pins[] = { 200, 201, }; 106462306a36Sopenharmony_cistatic int mt7623_uart2_1_txd_rxd_funcs[] = { 6, 6, }; 106562306a36Sopenharmony_cistatic int mt7623_uart2_rts_cts_pins[] = { 242, 243, }; 106662306a36Sopenharmony_cistatic int mt7623_uart2_rts_cts_funcs[] = { 1, 1, }; 106762306a36Sopenharmony_cistatic int mt7623_uart3_txd_rxd_pins[] = { 242, 243, }; 106862306a36Sopenharmony_cistatic int mt7623_uart3_txd_rxd_funcs[] = { 2, 2, }; 106962306a36Sopenharmony_cistatic int mt7623_uart3_rts_cts_pins[] = { 26, 27, }; 107062306a36Sopenharmony_cistatic int mt7623_uart3_rts_cts_funcs[] = { 1, 1, }; 107162306a36Sopenharmony_ci 107262306a36Sopenharmony_ci/* Watchdog */ 107362306a36Sopenharmony_cistatic int mt7623_watchdog_0_pins[] = { 11, }; 107462306a36Sopenharmony_cistatic int mt7623_watchdog_0_funcs[] = { 1, }; 107562306a36Sopenharmony_cistatic int mt7623_watchdog_1_pins[] = { 121, }; 107662306a36Sopenharmony_cistatic int mt7623_watchdog_1_funcs[] = { 5, }; 107762306a36Sopenharmony_ci 107862306a36Sopenharmony_cistatic const struct group_desc mt7623_groups[] = { 107962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("aud_ext_clk0", mt7623_aud_ext_clk0), 108062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("aud_ext_clk1", mt7623_aud_ext_clk1), 108162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("dsi_te", mt7623_dsi_te), 108262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("disp_pwm_0", mt7623_disp_pwm_0), 108362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("disp_pwm_1", mt7623_disp_pwm_1), 108462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("disp_pwm_2", mt7623_disp_pwm_2), 108562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("ephy", mt7623_ephy), 108662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("esw_int", mt7623_esw_int), 108762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("esw_rst", mt7623_esw_rst), 108862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("ext_sdio", mt7623_ext_sdio), 108962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("hdmi_cec", mt7623_hdmi_cec), 109062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("hdmi_htplg", mt7623_hdmi_htplg), 109162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("hdmi_i2c", mt7623_hdmi_i2c), 109262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("hdmi_rx", mt7623_hdmi_rx), 109362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("hdmi_rx_i2c", mt7623_hdmi_rx_i2c), 109462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c0", mt7623_i2c0), 109562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c1_0", mt7623_i2c1_0), 109662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c1_1", mt7623_i2c1_1), 109762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c1_2", mt7623_i2c1_2), 109862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c1_3", mt7623_i2c1_3), 109962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c1_4", mt7623_i2c1_4), 110062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c2_0", mt7623_i2c2_0), 110162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c2_1", mt7623_i2c2_1), 110262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c2_2", mt7623_i2c2_2), 110362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2c2_3", mt7623_i2c2_3), 110462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s0", mt7623_i2s0), 110562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s1", mt7623_i2s1), 110662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s4", mt7623_i2s4), 110762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s5", mt7623_i2s5), 110862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s2_bclk_lrclk_mclk", mt7623_i2s2_bclk_lrclk_mclk), 110962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s3_bclk_lrclk_mclk", mt7623_i2s3_bclk_lrclk_mclk), 111062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s2_data_in", mt7623_i2s2_data_in), 111162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s3_data_in", mt7623_i2s3_data_in), 111262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s2_data_0", mt7623_i2s2_data_0), 111362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s2_data_1", mt7623_i2s2_data_1), 111462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s3_data_0", mt7623_i2s3_data_0), 111562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("i2s3_data_1", mt7623_i2s3_data_1), 111662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("ir", mt7623_ir), 111762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("lcm_rst", mt7623_lcm_rst), 111862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("mdc_mdio", mt7623_mdc_mdio), 111962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("mipi_tx", mt7623_mipi_tx), 112062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc0", mt7623_msdc0), 112162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc1", mt7623_msdc1), 112262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc1_ins", mt7623_msdc1_ins), 112362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc1_wp_0", mt7623_msdc1_wp_0), 112462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc1_wp_1", mt7623_msdc1_wp_1), 112562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc1_wp_2", mt7623_msdc1_wp_2), 112662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc2", mt7623_msdc2), 112762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("msdc3", mt7623_msdc3), 112862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("nandc", mt7623_nandc), 112962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("nandc_ceb0", mt7623_nandc_ceb0), 113062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("nandc_ceb1", mt7623_nandc_ceb1), 113162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_iddig0_0", mt7623_otg_iddig0_0), 113262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_iddig0_1", mt7623_otg_iddig0_1), 113362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_iddig0_2", mt7623_otg_iddig0_2), 113462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_iddig1_0", mt7623_otg_iddig1_0), 113562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_iddig1_1", mt7623_otg_iddig1_1), 113662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_iddig1_2", mt7623_otg_iddig1_2), 113762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_drv_vbus0_0", mt7623_otg_drv_vbus0_0), 113862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_drv_vbus0_1", mt7623_otg_drv_vbus0_1), 113962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_drv_vbus0_2", mt7623_otg_drv_vbus0_2), 114062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_drv_vbus1_0", mt7623_otg_drv_vbus1_0), 114162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_drv_vbus1_1", mt7623_otg_drv_vbus1_1), 114262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("otg_drv_vbus1_2", mt7623_otg_drv_vbus1_2), 114362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_0_perst", mt7623_pcie0_0_perst), 114462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_1_perst", mt7623_pcie0_1_perst), 114562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_0_perst", mt7623_pcie1_0_perst), 114662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_1_perst", mt7623_pcie1_1_perst), 114762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_1_perst", mt7623_pcie1_1_perst), 114862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_0_rev_perst", mt7623_pcie0_0_rev_perst), 114962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_1_rev_perst", mt7623_pcie0_1_rev_perst), 115062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_0_rev_perst", mt7623_pcie1_0_rev_perst), 115162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_1_rev_perst", mt7623_pcie1_1_rev_perst), 115262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_0_rev_perst", mt7623_pcie2_0_rev_perst), 115362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_1_rev_perst", mt7623_pcie2_1_rev_perst), 115462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_0_perst", mt7623_pcie2_0_perst), 115562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_1_perst", mt7623_pcie2_1_perst), 115662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_0_wake", mt7623_pcie0_0_wake), 115762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_1_wake", mt7623_pcie0_1_wake), 115862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_0_wake", mt7623_pcie1_0_wake), 115962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_1_wake", mt7623_pcie1_1_wake), 116062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_0_wake", mt7623_pcie2_0_wake), 116162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_1_wake", mt7623_pcie2_1_wake), 116262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie0_clkreq", mt7623_pcie0_clkreq), 116362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie1_clkreq", mt7623_pcie1_clkreq), 116462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcie2_clkreq", mt7623_pcie2_clkreq), 116562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_0", mt7623_pcm_clk_0), 116662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_1", mt7623_pcm_clk_1), 116762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_2", mt7623_pcm_clk_2), 116862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_3", mt7623_pcm_clk_3), 116962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_4", mt7623_pcm_clk_4), 117062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_5", mt7623_pcm_clk_5), 117162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_clk_6", mt7623_pcm_clk_6), 117262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_0", mt7623_pcm_sync_0), 117362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_1", mt7623_pcm_sync_1), 117462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_2", mt7623_pcm_sync_2), 117562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_3", mt7623_pcm_sync_3), 117662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_4", mt7623_pcm_sync_4), 117762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_5", mt7623_pcm_sync_5), 117862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_sync_6", mt7623_pcm_sync_6), 117962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_0", mt7623_pcm_rx_0), 118062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_1", mt7623_pcm_rx_1), 118162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_2", mt7623_pcm_rx_2), 118262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_3", mt7623_pcm_rx_3), 118362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_4", mt7623_pcm_rx_4), 118462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_5", mt7623_pcm_rx_5), 118562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_rx_6", mt7623_pcm_rx_6), 118662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_0", mt7623_pcm_tx_0), 118762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_1", mt7623_pcm_tx_1), 118862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_2", mt7623_pcm_tx_2), 118962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_3", mt7623_pcm_tx_3), 119062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_4", mt7623_pcm_tx_4), 119162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_5", mt7623_pcm_tx_5), 119262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pcm_tx_6", mt7623_pcm_tx_6), 119362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch1_0", mt7623_pwm_ch1_0), 119462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch1_1", mt7623_pwm_ch1_1), 119562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch1_2", mt7623_pwm_ch1_2), 119662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch1_3", mt7623_pwm_ch1_3), 119762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch1_4", mt7623_pwm_ch1_4), 119862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch2_0", mt7623_pwm_ch2_0), 119962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch2_1", mt7623_pwm_ch2_1), 120062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch2_2", mt7623_pwm_ch2_2), 120162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch2_3", mt7623_pwm_ch2_3), 120262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch2_4", mt7623_pwm_ch2_4), 120362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch3_0", mt7623_pwm_ch3_0), 120462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch3_1", mt7623_pwm_ch3_1), 120562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch3_2", mt7623_pwm_ch3_2), 120662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch3_3", mt7623_pwm_ch3_3), 120762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch4_0", mt7623_pwm_ch4_0), 120862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch4_1", mt7623_pwm_ch4_1), 120962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch4_2", mt7623_pwm_ch4_2), 121062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch4_3", mt7623_pwm_ch4_3), 121162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch5_0", mt7623_pwm_ch5_0), 121262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwm_ch5_1", mt7623_pwm_ch5_1), 121362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("pwrap", mt7623_pwrap), 121462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("rtc", mt7623_rtc), 121562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spdif_in0_0", mt7623_spdif_in0_0), 121662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spdif_in0_1", mt7623_spdif_in0_1), 121762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spdif_in1_0", mt7623_spdif_in1_0), 121862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spdif_in1_1", mt7623_spdif_in1_1), 121962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spdif_out", mt7623_spdif_out), 122062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spi0", mt7623_spi0), 122162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spi1", mt7623_spi1), 122262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("spi2", mt7623_spi2), 122362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart0_0_txd_rxd", mt7623_uart0_0_txd_rxd), 122462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart0_1_txd_rxd", mt7623_uart0_1_txd_rxd), 122562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart0_2_txd_rxd", mt7623_uart0_2_txd_rxd), 122662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart0_3_txd_rxd", mt7623_uart0_3_txd_rxd), 122762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart1_0_txd_rxd", mt7623_uart1_0_txd_rxd), 122862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart1_1_txd_rxd", mt7623_uart1_1_txd_rxd), 122962306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart1_2_txd_rxd", mt7623_uart1_2_txd_rxd), 123062306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart2_0_txd_rxd", mt7623_uart2_0_txd_rxd), 123162306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart2_1_txd_rxd", mt7623_uart2_1_txd_rxd), 123262306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart3_txd_rxd", mt7623_uart3_txd_rxd), 123362306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart0_rts_cts", mt7623_uart0_rts_cts), 123462306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart1_rts_cts", mt7623_uart1_rts_cts), 123562306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart2_rts_cts", mt7623_uart2_rts_cts), 123662306a36Sopenharmony_ci PINCTRL_PIN_GROUP("uart3_rts_cts", mt7623_uart3_rts_cts), 123762306a36Sopenharmony_ci PINCTRL_PIN_GROUP("watchdog_0", mt7623_watchdog_0), 123862306a36Sopenharmony_ci PINCTRL_PIN_GROUP("watchdog_1", mt7623_watchdog_1), 123962306a36Sopenharmony_ci}; 124062306a36Sopenharmony_ci 124162306a36Sopenharmony_ci/* Joint those groups owning the same capability in user point of view which 124262306a36Sopenharmony_ci * allows that people tend to use through the device tree. 124362306a36Sopenharmony_ci */ 124462306a36Sopenharmony_cistatic const char *mt7623_aud_clk_groups[] = { "aud_ext_clk0", 124562306a36Sopenharmony_ci "aud_ext_clk1", }; 124662306a36Sopenharmony_cistatic const char *mt7623_disp_pwm_groups[] = { "disp_pwm_0", "disp_pwm_1", 124762306a36Sopenharmony_ci "disp_pwm_2", }; 124862306a36Sopenharmony_cistatic const char *mt7623_ethernet_groups[] = { "esw_int", "esw_rst", 124962306a36Sopenharmony_ci "ephy", "mdc_mdio", }; 125062306a36Sopenharmony_cistatic const char *mt7623_ext_sdio_groups[] = { "ext_sdio", }; 125162306a36Sopenharmony_cistatic const char *mt7623_hdmi_groups[] = { "hdmi_cec", "hdmi_htplg", 125262306a36Sopenharmony_ci "hdmi_i2c", "hdmi_rx", 125362306a36Sopenharmony_ci "hdmi_rx_i2c", }; 125462306a36Sopenharmony_cistatic const char *mt7623_i2c_groups[] = { "i2c0", "i2c1_0", "i2c1_1", 125562306a36Sopenharmony_ci "i2c1_2", "i2c1_3", "i2c1_4", 125662306a36Sopenharmony_ci "i2c2_0", "i2c2_1", "i2c2_2", 125762306a36Sopenharmony_ci "i2c2_3", }; 125862306a36Sopenharmony_cistatic const char *mt7623_i2s_groups[] = { "i2s0", "i2s1", 125962306a36Sopenharmony_ci "i2s2_bclk_lrclk_mclk", 126062306a36Sopenharmony_ci "i2s3_bclk_lrclk_mclk", 126162306a36Sopenharmony_ci "i2s4", "i2s5", 126262306a36Sopenharmony_ci "i2s2_data_in", "i2s3_data_in", 126362306a36Sopenharmony_ci "i2s2_data_0", "i2s2_data_1", 126462306a36Sopenharmony_ci "i2s3_data_0", "i2s3_data_1", }; 126562306a36Sopenharmony_cistatic const char *mt7623_ir_groups[] = { "ir", }; 126662306a36Sopenharmony_cistatic const char *mt7623_lcd_groups[] = { "dsi_te", "lcm_rst", "mipi_tx", }; 126762306a36Sopenharmony_cistatic const char *mt7623_msdc_groups[] = { "msdc0", "msdc1", "msdc1_ins", 126862306a36Sopenharmony_ci "msdc1_wp_0", "msdc1_wp_1", 126962306a36Sopenharmony_ci "msdc1_wp_2", "msdc2", 127062306a36Sopenharmony_ci "msdc3", }; 127162306a36Sopenharmony_cistatic const char *mt7623_nandc_groups[] = { "nandc", "nandc_ceb0", 127262306a36Sopenharmony_ci "nandc_ceb1", }; 127362306a36Sopenharmony_cistatic const char *mt7623_otg_groups[] = { "otg_iddig0_0", "otg_iddig0_1", 127462306a36Sopenharmony_ci "otg_iddig0_2", "otg_iddig1_0", 127562306a36Sopenharmony_ci "otg_iddig1_1", "otg_iddig1_2", 127662306a36Sopenharmony_ci "otg_drv_vbus0_0", 127762306a36Sopenharmony_ci "otg_drv_vbus0_1", 127862306a36Sopenharmony_ci "otg_drv_vbus0_2", 127962306a36Sopenharmony_ci "otg_drv_vbus1_0", 128062306a36Sopenharmony_ci "otg_drv_vbus1_1", 128162306a36Sopenharmony_ci "otg_drv_vbus1_2", }; 128262306a36Sopenharmony_cistatic const char *mt7623_pcie_groups[] = { "pcie0_0_perst", "pcie0_1_perst", 128362306a36Sopenharmony_ci "pcie1_0_perst", "pcie1_1_perst", 128462306a36Sopenharmony_ci "pcie2_0_perst", "pcie2_1_perst", 128562306a36Sopenharmony_ci "pcie0_0_rev_perst", 128662306a36Sopenharmony_ci "pcie0_1_rev_perst", 128762306a36Sopenharmony_ci "pcie1_0_rev_perst", 128862306a36Sopenharmony_ci "pcie1_1_rev_perst", 128962306a36Sopenharmony_ci "pcie2_0_rev_perst", 129062306a36Sopenharmony_ci "pcie2_1_rev_perst", 129162306a36Sopenharmony_ci "pcie0_0_wake", "pcie0_1_wake", 129262306a36Sopenharmony_ci "pcie2_0_wake", "pcie2_1_wake", 129362306a36Sopenharmony_ci "pcie0_clkreq", "pcie1_clkreq", 129462306a36Sopenharmony_ci "pcie2_clkreq", }; 129562306a36Sopenharmony_cistatic const char *mt7623_pcm_groups[] = { "pcm_clk_0", "pcm_clk_1", 129662306a36Sopenharmony_ci "pcm_clk_2", "pcm_clk_3", 129762306a36Sopenharmony_ci "pcm_clk_4", "pcm_clk_5", 129862306a36Sopenharmony_ci "pcm_clk_6", "pcm_sync_0", 129962306a36Sopenharmony_ci "pcm_sync_1", "pcm_sync_2", 130062306a36Sopenharmony_ci "pcm_sync_3", "pcm_sync_4", 130162306a36Sopenharmony_ci "pcm_sync_5", "pcm_sync_6", 130262306a36Sopenharmony_ci "pcm_rx_0", "pcm_rx_1", 130362306a36Sopenharmony_ci "pcm_rx_2", "pcm_rx_3", 130462306a36Sopenharmony_ci "pcm_rx_4", "pcm_rx_5", 130562306a36Sopenharmony_ci "pcm_rx_6", "pcm_tx_0", 130662306a36Sopenharmony_ci "pcm_tx_1", "pcm_tx_2", 130762306a36Sopenharmony_ci "pcm_tx_3", "pcm_tx_4", 130862306a36Sopenharmony_ci "pcm_tx_5", "pcm_tx_6", }; 130962306a36Sopenharmony_cistatic const char *mt7623_pwm_groups[] = { "pwm_ch1_0", "pwm_ch1_1", 131062306a36Sopenharmony_ci "pwm_ch1_2", "pwm_ch2_0", 131162306a36Sopenharmony_ci "pwm_ch2_1", "pwm_ch2_2", 131262306a36Sopenharmony_ci "pwm_ch3_0", "pwm_ch3_1", 131362306a36Sopenharmony_ci "pwm_ch3_2", "pwm_ch4_0", 131462306a36Sopenharmony_ci "pwm_ch4_1", "pwm_ch4_2", 131562306a36Sopenharmony_ci "pwm_ch4_3", "pwm_ch5_0", 131662306a36Sopenharmony_ci "pwm_ch5_1", "pwm_ch5_2", 131762306a36Sopenharmony_ci "pwm_ch6_0", "pwm_ch6_1", 131862306a36Sopenharmony_ci "pwm_ch6_2", "pwm_ch6_3", 131962306a36Sopenharmony_ci "pwm_ch7_0", "pwm_ch7_1", 132062306a36Sopenharmony_ci "pwm_ch7_2", }; 132162306a36Sopenharmony_cistatic const char *mt7623_pwrap_groups[] = { "pwrap", }; 132262306a36Sopenharmony_cistatic const char *mt7623_rtc_groups[] = { "rtc", }; 132362306a36Sopenharmony_cistatic const char *mt7623_spi_groups[] = { "spi0", "spi2", "spi2", }; 132462306a36Sopenharmony_cistatic const char *mt7623_spdif_groups[] = { "spdif_in0_0", "spdif_in0_1", 132562306a36Sopenharmony_ci "spdif_in1_0", "spdif_in1_1", 132662306a36Sopenharmony_ci "spdif_out", }; 132762306a36Sopenharmony_cistatic const char *mt7623_uart_groups[] = { "uart0_0_txd_rxd", 132862306a36Sopenharmony_ci "uart0_1_txd_rxd", 132962306a36Sopenharmony_ci "uart0_2_txd_rxd", 133062306a36Sopenharmony_ci "uart0_3_txd_rxd", 133162306a36Sopenharmony_ci "uart1_0_txd_rxd", 133262306a36Sopenharmony_ci "uart1_1_txd_rxd", 133362306a36Sopenharmony_ci "uart1_2_txd_rxd", 133462306a36Sopenharmony_ci "uart2_0_txd_rxd", 133562306a36Sopenharmony_ci "uart2_1_txd_rxd", 133662306a36Sopenharmony_ci "uart3_txd_rxd", 133762306a36Sopenharmony_ci "uart0_rts_cts", 133862306a36Sopenharmony_ci "uart1_rts_cts", 133962306a36Sopenharmony_ci "uart2_rts_cts", 134062306a36Sopenharmony_ci "uart3_rts_cts", }; 134162306a36Sopenharmony_cistatic const char *mt7623_wdt_groups[] = { "watchdog_0", "watchdog_1", }; 134262306a36Sopenharmony_ci 134362306a36Sopenharmony_cistatic const struct function_desc mt7623_functions[] = { 134462306a36Sopenharmony_ci {"audck", mt7623_aud_clk_groups, ARRAY_SIZE(mt7623_aud_clk_groups)}, 134562306a36Sopenharmony_ci {"disp", mt7623_disp_pwm_groups, ARRAY_SIZE(mt7623_disp_pwm_groups)}, 134662306a36Sopenharmony_ci {"eth", mt7623_ethernet_groups, ARRAY_SIZE(mt7623_ethernet_groups)}, 134762306a36Sopenharmony_ci {"sdio", mt7623_ext_sdio_groups, ARRAY_SIZE(mt7623_ext_sdio_groups)}, 134862306a36Sopenharmony_ci {"hdmi", mt7623_hdmi_groups, ARRAY_SIZE(mt7623_hdmi_groups)}, 134962306a36Sopenharmony_ci {"i2c", mt7623_i2c_groups, ARRAY_SIZE(mt7623_i2c_groups)}, 135062306a36Sopenharmony_ci {"i2s", mt7623_i2s_groups, ARRAY_SIZE(mt7623_i2s_groups)}, 135162306a36Sopenharmony_ci {"ir", mt7623_ir_groups, ARRAY_SIZE(mt7623_ir_groups)}, 135262306a36Sopenharmony_ci {"lcd", mt7623_lcd_groups, ARRAY_SIZE(mt7623_lcd_groups)}, 135362306a36Sopenharmony_ci {"msdc", mt7623_msdc_groups, ARRAY_SIZE(mt7623_msdc_groups)}, 135462306a36Sopenharmony_ci {"nand", mt7623_nandc_groups, ARRAY_SIZE(mt7623_nandc_groups)}, 135562306a36Sopenharmony_ci {"otg", mt7623_otg_groups, ARRAY_SIZE(mt7623_otg_groups)}, 135662306a36Sopenharmony_ci {"pcie", mt7623_pcie_groups, ARRAY_SIZE(mt7623_pcie_groups)}, 135762306a36Sopenharmony_ci {"pcm", mt7623_pcm_groups, ARRAY_SIZE(mt7623_pcm_groups)}, 135862306a36Sopenharmony_ci {"pwm", mt7623_pwm_groups, ARRAY_SIZE(mt7623_pwm_groups)}, 135962306a36Sopenharmony_ci {"pwrap", mt7623_pwrap_groups, ARRAY_SIZE(mt7623_pwrap_groups)}, 136062306a36Sopenharmony_ci {"rtc", mt7623_rtc_groups, ARRAY_SIZE(mt7623_rtc_groups)}, 136162306a36Sopenharmony_ci {"spi", mt7623_spi_groups, ARRAY_SIZE(mt7623_spi_groups)}, 136262306a36Sopenharmony_ci {"spdif", mt7623_spdif_groups, ARRAY_SIZE(mt7623_spdif_groups)}, 136362306a36Sopenharmony_ci {"uart", mt7623_uart_groups, ARRAY_SIZE(mt7623_uart_groups)}, 136462306a36Sopenharmony_ci {"watchdog", mt7623_wdt_groups, ARRAY_SIZE(mt7623_wdt_groups)}, 136562306a36Sopenharmony_ci}; 136662306a36Sopenharmony_ci 136762306a36Sopenharmony_cistatic const struct mtk_eint_hw mt7623_eint_hw = { 136862306a36Sopenharmony_ci .port_mask = 6, 136962306a36Sopenharmony_ci .ports = 6, 137062306a36Sopenharmony_ci .ap_num = 169, 137162306a36Sopenharmony_ci .db_cnt = 20, 137262306a36Sopenharmony_ci .db_time = debounce_time_mt2701, 137362306a36Sopenharmony_ci}; 137462306a36Sopenharmony_ci 137562306a36Sopenharmony_cistatic struct mtk_pin_soc mt7623_data = { 137662306a36Sopenharmony_ci .reg_cal = mt7623_reg_cals, 137762306a36Sopenharmony_ci .pins = mt7623_pins, 137862306a36Sopenharmony_ci .npins = ARRAY_SIZE(mt7623_pins), 137962306a36Sopenharmony_ci .grps = mt7623_groups, 138062306a36Sopenharmony_ci .ngrps = ARRAY_SIZE(mt7623_groups), 138162306a36Sopenharmony_ci .funcs = mt7623_functions, 138262306a36Sopenharmony_ci .nfuncs = ARRAY_SIZE(mt7623_functions), 138362306a36Sopenharmony_ci .eint_hw = &mt7623_eint_hw, 138462306a36Sopenharmony_ci .gpio_m = 0, 138562306a36Sopenharmony_ci .ies_present = true, 138662306a36Sopenharmony_ci .base_names = mtk_default_register_base_names, 138762306a36Sopenharmony_ci .nbase_names = ARRAY_SIZE(mtk_default_register_base_names), 138862306a36Sopenharmony_ci .bias_disable_set = mtk_pinconf_bias_disable_set_rev1, 138962306a36Sopenharmony_ci .bias_disable_get = mtk_pinconf_bias_disable_get_rev1, 139062306a36Sopenharmony_ci .bias_set = mtk_pinconf_bias_set_rev1, 139162306a36Sopenharmony_ci .bias_get = mtk_pinconf_bias_get_rev1, 139262306a36Sopenharmony_ci .drive_set = mtk_pinconf_drive_set_rev1, 139362306a36Sopenharmony_ci .drive_get = mtk_pinconf_drive_get_rev1, 139462306a36Sopenharmony_ci .adv_pull_get = mtk_pinconf_adv_pull_get, 139562306a36Sopenharmony_ci .adv_pull_set = mtk_pinconf_adv_pull_set, 139662306a36Sopenharmony_ci}; 139762306a36Sopenharmony_ci 139862306a36Sopenharmony_ci/* 139962306a36Sopenharmony_ci * There are some specific pins have mux functions greater than 8, 140062306a36Sopenharmony_ci * and if we want to switch thees high modes we need to disable 140162306a36Sopenharmony_ci * bonding constraints firstly. 140262306a36Sopenharmony_ci */ 140362306a36Sopenharmony_cistatic void mt7623_bonding_disable(struct platform_device *pdev) 140462306a36Sopenharmony_ci{ 140562306a36Sopenharmony_ci struct mtk_pinctrl *hw = platform_get_drvdata(pdev); 140662306a36Sopenharmony_ci 140762306a36Sopenharmony_ci mtk_rmw(hw, 0, PIN_BOND_REG0, BOND_PCIE_CLR, BOND_PCIE_CLR); 140862306a36Sopenharmony_ci mtk_rmw(hw, 0, PIN_BOND_REG1, BOND_I2S_CLR, BOND_I2S_CLR); 140962306a36Sopenharmony_ci mtk_rmw(hw, 0, PIN_BOND_REG2, BOND_MSDC0E_CLR, BOND_MSDC0E_CLR); 141062306a36Sopenharmony_ci} 141162306a36Sopenharmony_ci 141262306a36Sopenharmony_cistatic const struct of_device_id mt7623_pctrl_match[] = { 141362306a36Sopenharmony_ci { .compatible = "mediatek,mt7623-moore-pinctrl", }, 141462306a36Sopenharmony_ci {} 141562306a36Sopenharmony_ci}; 141662306a36Sopenharmony_ci 141762306a36Sopenharmony_cistatic int mt7623_pinctrl_probe(struct platform_device *pdev) 141862306a36Sopenharmony_ci{ 141962306a36Sopenharmony_ci int err; 142062306a36Sopenharmony_ci 142162306a36Sopenharmony_ci err = mtk_moore_pinctrl_probe(pdev, &mt7623_data); 142262306a36Sopenharmony_ci if (err) 142362306a36Sopenharmony_ci return err; 142462306a36Sopenharmony_ci 142562306a36Sopenharmony_ci mt7623_bonding_disable(pdev); 142662306a36Sopenharmony_ci 142762306a36Sopenharmony_ci return 0; 142862306a36Sopenharmony_ci} 142962306a36Sopenharmony_ci 143062306a36Sopenharmony_cistatic struct platform_driver mtk_pinctrl_driver = { 143162306a36Sopenharmony_ci .probe = mt7623_pinctrl_probe, 143262306a36Sopenharmony_ci .driver = { 143362306a36Sopenharmony_ci .name = "mt7623-moore-pinctrl", 143462306a36Sopenharmony_ci .of_match_table = mt7623_pctrl_match, 143562306a36Sopenharmony_ci }, 143662306a36Sopenharmony_ci}; 143762306a36Sopenharmony_ci 143862306a36Sopenharmony_cistatic int __init mtk_pinctrl_init(void) 143962306a36Sopenharmony_ci{ 144062306a36Sopenharmony_ci return platform_driver_register(&mtk_pinctrl_driver); 144162306a36Sopenharmony_ci} 144262306a36Sopenharmony_ciarch_initcall(mtk_pinctrl_init); 1443