diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2021-05-26 10:58:50 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2021-06-14 18:47:37 +0000 |
| commit | bc805293d8dac3a984edc45a5acf3906af791c13 (patch) | |
| tree | 348034e07f5359e86f028b933a3647483f4d007a | |
| parent | d099db25464b826c5724cf2fb5b22292bbe15f6e (diff) | |
arm: allwinner: dtb: Add overlays to disable SD/MMC node
Useful for dev
Sponsored by: Diablotin Systems
| -rw-r--r-- | sys/dts/arm/overlays/sun8i-h3-mmc0-disable.dtso | 10 | ||||
| -rw-r--r-- | sys/dts/arm/overlays/sun8i-h3-mmc1-disable.dtso | 10 | ||||
| -rw-r--r-- | sys/dts/arm/overlays/sun8i-h3-mmc2-disable.dtso | 10 | ||||
| -rw-r--r-- | sys/modules/dtb/allwinner/Makefile | 5 |
4 files changed, 34 insertions, 1 deletions
diff --git a/sys/dts/arm/overlays/sun8i-h3-mmc0-disable.dtso b/sys/dts/arm/overlays/sun8i-h3-mmc0-disable.dtso new file mode 100644 index 000000000000..137c66081efd --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-mmc0-disable.dtso @@ -0,0 +1,10 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/mmc@1c0f000} { + status = "disabled"; +}; diff --git a/sys/dts/arm/overlays/sun8i-h3-mmc1-disable.dtso b/sys/dts/arm/overlays/sun8i-h3-mmc1-disable.dtso new file mode 100644 index 000000000000..36854b4b0c39 --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-mmc1-disable.dtso @@ -0,0 +1,10 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/mmc@1c10000} { + status = "disabled"; +}; diff --git a/sys/dts/arm/overlays/sun8i-h3-mmc2-disable.dtso b/sys/dts/arm/overlays/sun8i-h3-mmc2-disable.dtso new file mode 100644 index 000000000000..ad0fc625a4a2 --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-mmc2-disable.dtso @@ -0,0 +1,10 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/mmc@1c11000} { + status = "disabled"; +}; diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile index 184cadb63fb9..fe3dccc7fd91 100644 --- a/sys/modules/dtb/allwinner/Makefile +++ b/sys/modules/dtb/allwinner/Makefile @@ -25,7 +25,10 @@ DTS= \ sun8i-h3-orangepi-plus2e.dts DTSO= sun8i-a83t-sid.dtso \ - sun8i-h3-i2c0.dtso + sun8i-h3-i2c0.dtso \ + sun8i-h3-mmc0-disable.dtso \ + sun8i-h3-mmc1-disable.dtso \ + sun8i-h3-mmc2-disable.dtso LINKS= \ ${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \ |
