Skip to content

Instantly share code, notes, and snippets.

@flokli
Created December 23, 2020 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flokli/9a0fc08dab539d7df748d961ed1fa736 to your computer and use it in GitHub Desktop.
Save flokli/9a0fc08dab539d7df748d961ed1fa736 to your computer and use it in GitHub Desktop.
hardware.deviceTree.overlays = [
{ name = "foo"; dtsFile = ./pine64-wifi.dts; }
];
/dts-v1/;
/plugin/;
/ {
compatible = "pine64,pine64-plus", "allwinner,sun50i-a64";
fragment@0 {
target = <&mmc1>;
//target-path = "/soc/mmc@1c0f000";
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins>;
vmmc-supply = <&reg_dldo4>;
vqmmc-supply = <&reg_eldo1>;
mmc-pwrseq = <&wifi_pwrseq>;
non-removable;
bus-width = <4>;
status = "okay";
};
};
//fragment@1 {
// //target-path = "/soc";
// //target = <&soc>;
// __overlay__ {
// wifi_pwrseq: wifi_pwrseq {
// compatible = "mmc-pwrseq-simple";
// reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
// };
// };
//};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment