starfive: disable audio and SPI devices on MilkV Mars
authorZoltan HERPAI <[email protected]>
Sat, 16 Mar 2024 12:00:42 +0000 (13:00 +0100)
committerZoltan HERPAI <[email protected]>
Tue, 9 Apr 2024 12:24:16 +0000 (14:24 +0200)
Signed-off-by: Zoltan HERPAI <[email protected]>
target/linux/starfive/patches-6.1/1101-update-marsv-common.patch [new file with mode: 0644]

diff --git a/target/linux/starfive/patches-6.1/1101-update-marsv-common.patch b/target/linux/starfive/patches-6.1/1101-update-marsv-common.patch
new file mode 100644 (file)
index 0000000..5592770
--- /dev/null
@@ -0,0 +1,237 @@
+--- linux-6.1.81/arch/riscv/boot/dts/starfive/jh7110-visionfive2-mars-common.dtsi      2024-03-15 11:41:18.579222589 +0100
++++ linux-6.1.81/arch/riscv/boot/dts/starfive/jh7110-visionfive2-mars-common.dtsi.new  2024-03-15 13:43:24.020651088 +0100
+@@ -36,32 +36,6 @@
+               priority = <224>;
+       };
+-      pwmdac_codec: audio-codec {
+-              compatible = "linux,spdif-dit";
+-              #sound-dai-cells = <0>;
+-      };
+-
+-      sound {
+-              compatible = "simple-audio-card";
+-              simple-audio-card,name = "StarFive-PWMDAC-Sound-Card";
+-              #address-cells = <1>;
+-              #size-cells = <0>;
+-
+-              simple-audio-card,dai-link@0 {
+-                      reg = <0>;
+-                      format = "left_j";
+-                      bitclock-master = <&sndcpu0>;
+-                      frame-master = <&sndcpu0>;
+-
+-                      sndcpu0: cpu {
+-                              sound-dai = <&pwmdac>;
+-                      };
+-
+-                      codec {
+-                              sound-dai = <&pwmdac_codec>;
+-                      };
+-              };
+-      };
+ };
+ &cpus {
+@@ -205,24 +179,6 @@
+       status = "okay";
+ };
+-&i2srx {
+-      pinctrl-names = "default";
+-      pinctrl-0 = <&i2srx_pins>;
+-      status = "okay";
+-};
+-
+-&i2stx0 {
+-      pinctrl-names = "default";
+-      pinctrl-0 = <&mclk_ext_pins>;
+-      status = "okay";
+-};
+-
+-&i2stx1 {
+-      pinctrl-names = "default";
+-      pinctrl-0 = <&i2stx1_pins>;
+-      status = "okay";
+-};
+-
+ &mmc0 {
+       max-frequency = <100000000>;
+       assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>;
+@@ -254,12 +210,6 @@
+       status = "okay";
+ };
+-&pwmdac {
+-      pinctrl-names = "default";
+-      pinctrl-0 = <&pwmdac_pins>;
+-      status = "okay";
+-};
+-
+ &qspi {
+       #address-cells = <1>;
+       #size-cells = <0>;
+@@ -296,18 +246,6 @@
+       };
+ };
+-&spi0 {
+-      pinctrl-names = "default";
+-      pinctrl-0 = <&spi0_pins>;
+-      status = "okay";
+-
+-      spi_dev0: spi@0 {
+-              compatible = "rohm,dh2228fv";
+-              reg = <0>;
+-              spi-max-frequency = <10000000>;
+-      };
+-};
+-
+ &sysgpio {
+       i2c0_pins: i2c0-0 {
+               i2c-pins {
+@@ -365,37 +303,6 @@
+               };
+       };
+-      i2srx_pins: i2srx-0 {
+-              clk-sd-pins {
+-                      pinmux = <GPIOMUX(38, GPOUT_LOW,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_I2SRX_BCLK)>,
+-                               <GPIOMUX(63, GPOUT_LOW,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_I2SRX_LRCK)>,
+-                               <GPIOMUX(38, GPOUT_LOW,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_I2STX1_BCLK)>,
+-                               <GPIOMUX(63, GPOUT_LOW,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_I2STX1_LRCK)>,
+-                               <GPIOMUX(61, GPOUT_LOW,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_I2SRX_SDIN0)>;
+-                      input-enable;
+-              };
+-      };
+-
+-      i2stx1_pins: i2stx1-0 {
+-              sd-pins {
+-                      pinmux = <GPIOMUX(44, GPOUT_SYS_I2STX1_SDO0,
+-                                            GPOEN_ENABLE,
+-                                            GPI_NONE)>;
+-                      bias-disable;
+-                      input-disable;
+-              };
+-      };
+-
+       mclk_ext_pins: mclk-ext-0 {
+               mclk-ext-pins {
+                       pinmux = <GPIOMUX(4, GPOUT_LOW,
+@@ -470,93 +377,6 @@
+               };
+       };
+-      pwmdac_pins: pwmdac-0 {
+-              pwmdac-pins {
+-                      pinmux = <GPIOMUX(33, GPOUT_SYS_PWMDAC_LEFT,
+-                                            GPOEN_ENABLE,
+-                                            GPI_NONE)>,
+-                               <GPIOMUX(34, GPOUT_SYS_PWMDAC_RIGHT,
+-                                            GPOEN_ENABLE,
+-                                            GPI_NONE)>;
+-                      bias-disable;
+-                      drive-strength = <2>;
+-                      input-disable;
+-                      input-schmitt-disable;
+-                      slew-rate = <0>;
+-              };
+-      };
+-
+-      spi0_pins: spi0-0 {
+-              mosi-pins {
+-                      pinmux = <GPIOMUX(52, GPOUT_SYS_SPI0_TXD,
+-                                            GPOEN_ENABLE,
+-                                            GPI_NONE)>;
+-                      bias-disable;
+-                      input-disable;
+-                      input-schmitt-disable;
+-              };
+-
+-              miso-pins {
+-                      pinmux = <GPIOMUX(53, GPOUT_LOW,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_SPI0_RXD)>;
+-                      bias-pull-up;
+-                      input-enable;
+-                      input-schmitt-enable;
+-              };
+-
+-              sck-pins {
+-                      pinmux = <GPIOMUX(48, GPOUT_SYS_SPI0_CLK,
+-                                            GPOEN_ENABLE,
+-                                            GPI_SYS_SPI0_CLK)>;
+-                      bias-disable;
+-                      input-disable;
+-                      input-schmitt-disable;
+-              };
+-
+-              ss-pins {
+-                      pinmux = <GPIOMUX(49, GPOUT_SYS_SPI0_FSS,
+-                                            GPOEN_ENABLE,
+-                                            GPI_SYS_SPI0_FSS)>;
+-                      bias-disable;
+-                      input-disable;
+-                      input-schmitt-disable;
+-              };
+-      };
+-
+-      tdm_pins: tdm-0 {
+-              tx-pins {
+-                      pinmux = <GPIOMUX(44, GPOUT_SYS_TDM_TXD,
+-                                            GPOEN_ENABLE,
+-                                            GPI_NONE)>;
+-                      bias-pull-up;
+-                      drive-strength = <2>;
+-                      input-disable;
+-                      input-schmitt-disable;
+-                      slew-rate = <0>;
+-              };
+-
+-              rx-pins {
+-                      pinmux = <GPIOMUX(61, GPOUT_HIGH,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_TDM_RXD)>;
+-                      input-enable;
+-              };
+-
+-              sync-pins {
+-                      pinmux = <GPIOMUX(63, GPOUT_HIGH,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_TDM_SYNC)>;
+-                      input-enable;
+-              };
+-
+-              pcmclk-pins {
+-                      pinmux = <GPIOMUX(38, GPOUT_HIGH,
+-                                            GPOEN_DISABLE,
+-                                            GPI_SYS_TDM_CLK)>;
+-                      input-enable;
+-              };
+-      };
+       uart0_pins: uart0-0 {
+               tx-pins {
+@@ -583,12 +403,6 @@
+       };
+ };
+-&tdm {
+-      pinctrl-names = "default";
+-      pinctrl-0 = <&tdm_pins>;
+-      status = "okay";
+-};
+-
+ &uart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart0_pins>;