starfive(multimedia): Add pwmdac pinctl and keep 0,2,3,45 gpio for i2s to dts

This commit is contained in:
SW Multimedia 2021-09-10 21:08:28 +08:00 committed by Tekkaman Ninja
parent 473071c093
commit 73009927d3
2 changed files with 25 additions and 6 deletions

View file

@ -21,5 +21,5 @@
&gpio {
/* don't reset gpio mux for serial console and reset gpio */
starfive,keep-gpiomux = <13 14 63>;
starfive,keep-gpiomux = <13 14 63 0 2 3 45>;
};

View file

@ -94,7 +94,7 @@
&gpio {
/* don't reset gpio mux for serial console on uart3 */
starfive,keep-gpiomux = <13 14>;
starfive,keep-gpiomux = <13 14 0 2 3 45>;
gmac_pins: gmac-0 {
gtxclk-pins {
@ -218,11 +218,11 @@
<GPIOMUX(5,
GPO_PWM_PAD_OUT_BIT1,
GPO_PWM_PAD_OE_N_BIT1,
GPI_NONE)>,
<GPIOMUX(45,
GPO_PWM_PAD_OUT_BIT2,
GPO_PWM_PAD_OE_N_BIT2,
GPI_NONE)>;
// <GPIOMUX(45,
// GPO_PWM_PAD_OUT_BIT2,
// GPO_PWM_PAD_OE_N_BIT2,
// GPI_NONE)>;
bias-disable;
drive-strength = <35>;
input-disable;
@ -473,6 +473,19 @@
};
};
pwmdac_pins: pwmdac_0 {
pwmdac_pins {
pinmux = <GPIOMUX(23, GPO_PWMDAC_LEFT_OUT,
GPO_ENABLE, GPI_NONE)>,
<GPIOMUX(24, GPO_PWMDAC_RIGHT_OUT,
GPO_ENABLE, GPI_NONE)>;
bias-disable;
drive-strength = <35>;
input-disable;
input-schmitt-disable;
slew-rate = <0>;
};
};
};
&i2c0 {
@ -987,6 +1000,12 @@
status = "okay";
};
&pwmdac {
pinctrl-names = "default";
pinctrl-0 = <&pwmdac_pins>;
status = "okay";
};
/* #include "codecs/sf_pdm.dtsi" */
/* #include "codecs/sf_spdif.dtsi" */
/* #include "codecs/sf_ac108.dtsi" */