update mediatek MT7986 pinctrl driver
Subsystems (5)
cover update mediatek MT7986 pinctrl driver
From: Frank Wunderlich <[email protected]>
This patch series introduces common bias-pull* pinconf support to MediaTek MT7986 pinctrl driver and fix some register offsets in the driver.
Sam Shih (4):
dt-bindings: pinctrl: mt7986: add generic bias-pull* support
pinctrl: mediatek: fix the pinconf register offset of some pins
pinctrl: mediatek: extend pinctrl-moore to support new bias functions
pinctrl: mediatek: add pull_type attribute for mediatek MT7986 SoC
.../pinctrl/mediatek,mt7986-pinctrl.yaml | 50 +++++++++++- drivers/pinctrl/mediatek/pinctrl-moore.c | 49 ++++++++++-- drivers/pinctrl/mediatek/pinctrl-mt7986.c | 80 ++++++++++++++++--- 3 files changed, 157 insertions(+), 22 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/4 dt-bindings: pinctrl: mt7986: add generic bias-pull* support
From: Sam Shih <[email protected]>
Since the bias-pull-{up,down} attribute already defines in pinctrl driver of mediatek MT7986 SoC, this patch updates bindings to support mediatek common bias-pull* function.
--- .../pinctrl/mediatek,mt7986-pinctrl.yaml | 50 +++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml +47 -3
@@ -292,9 +292,23 @@ patternProperties: bias-disable: true - bias-pull-up: true - - bias-pull-down: true + bias-pull-up: + oneOf: + - type: boolean + description: normal pull up. + - enum: [100, 101, 102, 103] + description: | + PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in + dt-bindings/pinctrl/mt65xx.h. + + bias-pull-down: + oneOf: + - type: boolean + description: normal pull down. + - enum: [100, 101, 102, 103] + description: | + PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in + dt-bindings/pinctrl/mt65xx.h. input-enable: true
@@ -346,6 +360,7 @@ examples: - | #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/pinctrl/mt65xx.h> soc { #address-cells = <2>;
@@ -412,5 +427,34 @@ examples: }; }; + mmc0_pins_default: mmc0-pins { + mux { + function = "emmc"; + groups = "emmc_51"; + }; + conf-cmd-dat { + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; + input-enable; + drive-strength = <4>; + bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */ + }; + conf-clk { + pins = "EMMC_CK"; + drive-strength = <6>; + bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */ + }; + conf-ds { + pins = "EMMC_DSL"; + bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */ + }; + conf-rst { + pins = "EMMC_RSTB"; + drive-strength = <4>; + bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */ + }; + }; + }; };
Signature · 1 line
2.34.1
Rob Herring
maintainerRe: [PATCH v1 1/4] dt-bindings: pinctrl: mt7986: add generic bias-pull* support
Quoted 6 lines · Frank Wunderlich
From: Sam Shih <[email protected]>
Since the bias-pull-{up,down} attribute already defines in pinctrl driver of mediatek MT7986 SoC, this patch updates bindings to support mediatek common bias-pull* function.
Quoted 6 lines
Signed-off-by Sam Shih <[email protected]>Signed-off-by Frank Wunderlich <[email protected]>--- .../pinctrl/mediatek,mt7986-pinctrl.yaml | 50 +++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-)
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.example.dtb: pinctrl@1001f000: mmc0-pins:mux:groups:0: 'emmc_51' is not one of ['emmc', 'emmc_rst']
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Aw: Re: [PATCH v1 1/4] dt-bindings: pinctrl: mt7986: add generic bias-pull* support
Hi
Quoted 8 lines
Gesendet: Samstag, 05. November 2022 um 15:52 Uhr
Von: "Rob Herring" <[email protected]>yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.example.dtb: pinctrl@1001f000: mmc0-pins:mux:groups:0: 'emmc_51' is not one of ['emmc', 'emmc_rst']
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml
this is already solved by this Patch:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
i decided to send a v3 or if instead of including it into this series
regards Frank
Re: Re: [PATCH v1 1/4] dt-bindings: pinctrl: mt7986: add generic bias-pull* support
Quoted 9 lines · Frank Wunderlich
Quoted 8 lines
Gesendet: Samstag, 05. November 2022 um 15:52 Uhr
Von: "Rob Herring" <[email protected]>yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.example.dtb: pinctrl@1001f000: mmc0-pins:mux:groups:0: 'emmc_51' is not one of ['emmc', 'emmc_rst']
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml
Quoted 5 lines
this is already solved by this Patch:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
i decided to send a v3 or if instead of including it into this series
That patch in turn says it needs another patch first.
Now I am utterly confused, it is really hard to follow these trains of patches depending on and breaking each other left and right...
Can you please tell me which patches I need to apply and in which order?
Yours,
Linus Walleij
Re: Re: [PATCH v1 1/4] dt-bindings: pinctrl: mt7986: add generic bias-pull* support
Am 9. November 2022 09:38:03 MEZ schrieb Linus Walleij <[email protected]>:
Quoted 10 lines · Frank Wunderlich
That patch in turn says it needs another patch first.
Now I am utterly confused, it is really hard to follow these trains of patches depending on and breaking each other left and right...
Can you please tell me which patches I need to apply and in which order?
Sorry, picked the wrong link. Put all pinctrl patches together into this series to make it easier to follow (but v2 because v1 was for changing only mmc pinctrl and to have no conflicts or "broken" commits):
https://patchwork.kernel.org/project/linux-mediatek/list/?series=692462
Quoted 2 lines
Yours,
Linus Walleij
regards Frank
Re: Re: [PATCH v1 1/4] dt-bindings: pinctrl: mt7986: add generic bias-pull* support
Quoted 9 lines · Frank Wunderlich
Am 9. November 2022 09:38:03 MEZ schrieb Linus Walleij <[email protected]>:
Quoted 8 lines · Frank Wunderlich
That patch in turn says it needs another patch first.
Now I am utterly confused, it is really hard to follow these trains of patches depending on and breaking each other left and right...
Quoted 6 lines
Quoted 2 lines
Can you please tell me which patches I need to apply and in which order?
Sorry, picked the wrong link. Put all pinctrl patches together into this series to make it easier to follow (but v2 because v1 was for changing only mmc pinctrl and to have no conflicts or "broken" commits):
https://patchwork.kernel.org/project/linux-mediatek/list/?series=692462
Thanks I figured it out I think, even managed to apply it now!
Yours,
Linus Walleij
PATCH 2/4 pinctrl: mediatek: fix the pinconf register offset of some pins
In reply to Frank WunderlichFrom: Sam Shih <[email protected]>
Correct the bias-pull-up, bias-pull-down and bias-disable register offset of mt7986 pin-42 to pin-49, in the original driver, the relative offset value was erroneously decremented by 1.
--- drivers/pinctrl/mediatek/pinctrl-mt7986.c | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/pinctrl/mediatek/pinctrl-mt7986.c +12 -12
@@ -316,10 +316,10 @@ static const struct mtk_pin_field_calc mt7986_pin_pupd_range[] = {PIN_FIELD_BASE (38 ,38 ,IOCFG_LT_BASE ,0x30 ,0x10 ,9 ,1 ),PIN_FIELD_BASE (39 ,40 ,IOCFG_RB_BASE ,0x60 ,0x10 ,18 ,1 ),PIN_FIELD_BASE (41 ,41 ,IOCFG_RB_BASE ,0x60 ,0x10 ,12 ,1 ), -PIN_FIELD_BASE (42 ,43 ,IOCFG_RB_BASE ,0x60 ,0x10 ,22 ,1 ), -PIN_FIELD_BASE (44 ,45 ,IOCFG_RB_BASE ,0x60 ,0x10 ,20 ,1 ), -PIN_FIELD_BASE (46 ,47 ,IOCFG_RB_BASE ,0x60 ,0x10 ,26 ,1 ), -PIN_FIELD_BASE (48 ,49 ,IOCFG_RB_BASE ,0x60 ,0x10 ,24 ,1 ), +PIN_FIELD_BASE (42 ,43 ,IOCFG_RB_BASE ,0x60 ,0x10 ,23 ,1 ), +PIN_FIELD_BASE (44 ,45 ,IOCFG_RB_BASE ,0x60 ,0x10 ,21 ,1 ), +PIN_FIELD_BASE (46 ,47 ,IOCFG_RB_BASE ,0x60 ,0x10 ,27 ,1 ), +PIN_FIELD_BASE (48 ,49 ,IOCFG_RB_BASE ,0x60 ,0x10 ,25 ,1 ),PIN_FIELD_BASE (50 ,57 ,IOCFG_RT_BASE ,0x40 ,0x10 ,2 ,1 ),PIN_FIELD_BASE (58 ,58 ,IOCFG_RT_BASE ,0x40 ,0x10 ,1 ,1 ), PIN_FIELD_BASE(59, 59, IOCFG_RT_BASE, 0x40, 0x10, 0, 1),
@@ -354,10 +354,10 @@ static const struct mtk_pin_field_calc mt7986_pin_r0_range[] = {PIN_FIELD_BASE (38 ,38 ,IOCFG_LT_BASE ,0x40 ,0x10 ,9 ,1 ),PIN_FIELD_BASE (39 ,40 ,IOCFG_RB_BASE ,0x70 ,0x10 ,18 ,1 ),PIN_FIELD_BASE (41 ,41 ,IOCFG_RB_BASE ,0x70 ,0x10 ,12 ,1 ), -PIN_FIELD_BASE (42 ,43 ,IOCFG_RB_BASE ,0x70 ,0x10 ,22 ,1 ), -PIN_FIELD_BASE (44 ,45 ,IOCFG_RB_BASE ,0x70 ,0x10 ,20 ,1 ), -PIN_FIELD_BASE (46 ,47 ,IOCFG_RB_BASE ,0x70 ,0x10 ,26 ,1 ), -PIN_FIELD_BASE (48 ,49 ,IOCFG_RB_BASE ,0x70 ,0x10 ,24 ,1 ), +PIN_FIELD_BASE (42 ,43 ,IOCFG_RB_BASE ,0x70 ,0x10 ,23 ,1 ), +PIN_FIELD_BASE (44 ,45 ,IOCFG_RB_BASE ,0x70 ,0x10 ,21 ,1 ), +PIN_FIELD_BASE (46 ,47 ,IOCFG_RB_BASE ,0x70 ,0x10 ,27 ,1 ), +PIN_FIELD_BASE (48 ,49 ,IOCFG_RB_BASE ,0x70 ,0x10 ,25 ,1 ),PIN_FIELD_BASE (50 ,57 ,IOCFG_RT_BASE ,0x50 ,0x10 ,2 ,1 ),PIN_FIELD_BASE (58 ,58 ,IOCFG_RT_BASE ,0x50 ,0x10 ,1 ,1 ), PIN_FIELD_BASE(59, 59, IOCFG_RT_BASE, 0x50, 0x10, 0, 1),
@@ -392,10 +392,10 @@ static const struct mtk_pin_field_calc mt7986_pin_r1_range[] = {PIN_FIELD_BASE (38 ,38 ,IOCFG_LT_BASE ,0x50 ,0x10 ,9 ,1 ),PIN_FIELD_BASE (39 ,40 ,IOCFG_RB_BASE ,0x80 ,0x10 ,18 ,1 ),PIN_FIELD_BASE (41 ,41 ,IOCFG_RB_BASE ,0x80 ,0x10 ,12 ,1 ), -PIN_FIELD_BASE (42 ,43 ,IOCFG_RB_BASE ,0x80 ,0x10 ,22 ,1 ), -PIN_FIELD_BASE (44 ,45 ,IOCFG_RB_BASE ,0x80 ,0x10 ,20 ,1 ), -PIN_FIELD_BASE (46 ,47 ,IOCFG_RB_BASE ,0x80 ,0x10 ,26 ,1 ), -PIN_FIELD_BASE (48 ,49 ,IOCFG_RB_BASE ,0x80 ,0x10 ,24 ,1 ), +PIN_FIELD_BASE (42 ,43 ,IOCFG_RB_BASE ,0x80 ,0x10 ,23 ,1 ), +PIN_FIELD_BASE (44 ,45 ,IOCFG_RB_BASE ,0x80 ,0x10 ,21 ,1 ), +PIN_FIELD_BASE (46 ,47 ,IOCFG_RB_BASE ,0x80 ,0x10 ,27 ,1 ), +PIN_FIELD_BASE (48 ,49 ,IOCFG_RB_BASE ,0x80 ,0x10 ,25 ,1 ),PIN_FIELD_BASE (50 ,57 ,IOCFG_RT_BASE ,0x60 ,0x10 ,2 ,1 ),PIN_FIELD_BASE (58 ,58 ,IOCFG_RT_BASE ,0x60 ,0x10 ,1 ,1 ), PIN_FIELD_BASE(59, 59, IOCFG_RT_BASE, 0x60, 0x10, 0, 1),
Signature · 1 line
2.34.1
PATCH 3/4 pinctrl: mediatek: extend pinctrl-moore to support new bias functions
In reply to Frank WunderlichFrom: Sam Shih <[email protected]>
Commit fb34a9ae383a ("pinctrl: mediatek: support rsel feature") introduced SoC specify 'pull_type' attribute to mtk_pinconf_bias_set_combo and mtk_pinconf_bias_get_combo, and make the functions able to support almost all Mediatek SoCs that use pinctrl-mtk-common-v2.c.
This patch enables pinctrl_moore to support these functions.
--- drivers/pinctrl/mediatek/pinctrl-moore.c | 49 ++++++++++++++++++++---- 1 file changed, 42 insertions(+), 7 deletions(-)
drivers/pinctrl/mediatek/pinctrl-moore.c +42 -7
@@ -8,6 +8,7 @@* */ +#include <dt-bindings/pinctrl/mt65xx.h> #include <linux/gpio/driver.h> #include "pinctrl-moore.h"
@@ -105,7 +106,7 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev, {struct mtk_pinctrl *hw =pinctrl_dev_get_drvdata (pctldev);u32 param =pinconf_to_config_param (*config); -int val, val2, err, reg, ret =1 ; +int val, val2, err, pullup, reg, ret =1 ;const struct mtk_pin_desc *desc; desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
@@ -114,7 +115,13 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev,switch (param) {case PIN_CONFIG_BIAS_DISABLE : -if (hw->soc->bias_disable_get) { +if (hw->soc->bias_get_combo) { + err = hw->soc->bias_get_combo (hw, desc, &pullup, &ret); +if (err) +return err; +if (ret !=MTK_PUPD_SET_R1R0_00 && ret !=MTK_DISABLE ) +return -EINVAL ; + }else if (hw->soc->bias_disable_get) { err = hw->soc->bias_disable_get (hw, desc, &ret);if (err)return err;
@@ -123,7 +130,15 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev, }break ;case PIN_CONFIG_BIAS_PULL_UP : -if (hw->soc->bias_get) { +if (hw->soc->bias_get_combo) { + err = hw->soc->bias_get_combo (hw, desc, &pullup, &ret); +if (err) +return err; +if (ret ==MTK_PUPD_SET_R1R0_00 || ret ==MTK_DISABLE ) +return -EINVAL ; +if (!pullup) +return -EINVAL ; + }else if (hw->soc->bias_get) { err = hw->soc->bias_get (hw, desc,1 , &ret);if (err)return err;
@@ -132,7 +147,15 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev, }break ;case PIN_CONFIG_BIAS_PULL_DOWN : -if (hw->soc->bias_get) { +if (hw->soc->bias_get_combo) { + err = hw->soc->bias_get_combo (hw, desc, &pullup, &ret); +if (err) +return err; +if (ret ==MTK_PUPD_SET_R1R0_00 || ret ==MTK_DISABLE ) +return -EINVAL ; +if (pullup) +return -EINVAL ; + }else if (hw->soc->bias_get) { err = hw->soc->bias_get (hw, desc,0 , &ret);if (err)return err;
@@ -235,7 +258,11 @@ static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,switch (param) {case PIN_CONFIG_BIAS_DISABLE : -if (hw->soc->bias_disable_set) { +if (hw->soc->bias_set_combo) { + err = hw->soc->bias_set_combo (hw, desc,0 ,MTK_DISABLE ); +if (err) +return err; + }else if (hw->soc->bias_disable_set) { err = hw->soc->bias_disable_set (hw, desc);if (err)return err;
@@ -244,7 +271,11 @@ static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, }break ;case PIN_CONFIG_BIAS_PULL_UP : -if (hw->soc->bias_set) { +if (hw->soc->bias_set_combo) { + err = hw->soc->bias_set_combo (hw, desc,1 , arg); +if (err) +return err; + }else if (hw->soc->bias_set) { err = hw->soc->bias_set (hw, desc,1 );if (err)return err;
@@ -253,7 +284,11 @@ static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, }break ;case PIN_CONFIG_BIAS_PULL_DOWN : -if (hw->soc->bias_set) { +if (hw->soc->bias_set_combo) { + err = hw->soc->bias_set_combo (hw, desc,0 , arg); +if (err) +return err; + }else if (hw->soc->bias_set) { err = hw->soc->bias_set (hw, desc,0 );if (err)return err;
Signature · 1 line
2.34.1
PATCH 4/4 pinctrl: mediatek: add pull_type attribute for mediatek MT7986 SoC
In reply to Frank WunderlichFrom: Sam Shih <[email protected]>
Commit fb34a9ae383a ("pinctrl: mediatek: support rsel feature") add SoC specify 'pull_type' attribute for bias configuration.
This patch add pull_type attribute to pinctrl-mt7986.c, and make bias_set_combo and bias_get_combo available to mediatek MT7986 SoC.
--- drivers/pinctrl/mediatek/pinctrl-mt7986.c | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+)
drivers/pinctrl/mediatek/pinctrl-mt7986.c +56 -0
@@ -407,6 +407,60 @@ static const struct mtk_pin_field_calc mt7986_pin_r1_range[] = { PIN_FIELD_BASE(66, 68, IOCFG_LB_BASE, 0x60, 0x10, 2, 1), }; +static const unsigned int mt7986_pull_type[] = { +MTK_PULL_PUPD_R1R0_TYPE ,/*0*/ MTK_PULL_PUPD_R1R0_TYPE ,/*1*/ +MTK_PULL_PUPD_R1R0_TYPE ,/*2*/ MTK_PULL_PUPD_R1R0_TYPE ,/*3*/ +MTK_PULL_PUPD_R1R0_TYPE ,/*4*/ MTK_PULL_PUPD_R1R0_TYPE ,/*4*/ +MTK_PULL_PUPD_R1R0_TYPE ,/*6*/ MTK_PULL_PUPD_R1R0_TYPE ,/*5*/ +MTK_PULL_PUPD_R1R0_TYPE ,/*8*/ MTK_PULL_PUPD_R1R0_TYPE ,/*9*/ +MTK_PULL_PUPD_R1R0_TYPE ,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PU_PD_TYPE ,/*79*/ +MTK_PULL_PU_PD_TYPE ,/*80*/ MTK_PULL_PU_PD_TYPE ,/*81*/ +MTK_PULL_PU_PD_TYPE ,/*82*/ MTK_PULL_PU_PD_TYPE ,/*83*/ +MTK_PULL_PU_PD_TYPE ,/*84*/ MTK_PULL_PU_PD_TYPE ,/*85*/ +MTK_PULL_PU_PD_TYPE ,/*86*/ MTK_PULL_PU_PD_TYPE ,/*87*/ +MTK_PULL_PU_PD_TYPE ,/*88*/ MTK_PULL_PU_PD_TYPE ,/*89*/ +MTK_PULL_PU_PD_TYPE ,/*90*/ MTK_PULL_PU_PD_TYPE ,/*91*/ +MTK_PULL_PU_PD_TYPE ,/*92*/ MTK_PULL_PU_PD_TYPE ,/*93*/ +MTK_PULL_PU_PD_TYPE ,/*94*/ MTK_PULL_PU_PD_TYPE ,/*95*/ +MTK_PULL_PU_PD_TYPE ,/*96*/ MTK_PULL_PU_PD_TYPE ,/*97*/ +MTK_PULL_PU_PD_TYPE ,/*98*/ MTK_PULL_PU_PD_TYPE ,/*99*/ +MTK_PULL_PU_PD_TYPE ,/*100*/ +}; +static const struct mtk_pin_reg_calc mt7986_reg_cals[] = { [PINCTRL_PIN_REG_MODE ] =MTK_RANGE (mt7986_pin_mode_range), [PINCTRL_PIN_REG_DIR ] =MTK_RANGE (mt7986_pin_dir_range),
@@ -866,6 +920,7 @@ static struct mtk_pin_soc mt7986a_data = { .ies_present = false, .base_names = mt7986_pinctrl_register_base_names, .nbase_names = ARRAY_SIZE(mt7986_pinctrl_register_base_names), + .pull_type = mt7986_pull_type, .bias_set_combo = mtk_pinconf_bias_set_combo, .bias_get_combo = mtk_pinconf_bias_get_combo, .drive_set = mtk_pinconf_drive_set_rev1,
@@ -887,6 +942,7 @@ static struct mtk_pin_soc mt7986b_data = { .ies_present = false, .base_names = mt7986_pinctrl_register_base_names, .nbase_names = ARRAY_SIZE(mt7986_pinctrl_register_base_names), + .pull_type = mt7986_pull_type, .bias_set_combo = mtk_pinconf_bias_set_combo, .bias_get_combo = mtk_pinconf_bias_get_combo, .drive_set = mtk_pinconf_drive_set_rev1,
Signature · 1 line
2.34.1