Skip to content

Instantly share code, notes, and snippets.

@danyanya
Created April 29, 2022 15:37
Show Gist options
  • Save danyanya/b0d1a04af9a89ffbc0a4dfa9f19c6374 to your computer and use it in GitHub Desktop.
Save danyanya/b0d1a04af9a89ffbc0a4dfa9f19c6374 to your computer and use it in GitHub Desktop.
qcom-ipq4019-yuncore-xd6800.dts
#include "qcom-ipq4019.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
model = "Yuncore XD6800";
compatible = "yuncore,xd6800", "qcom,ipq4019";
soc {
mdio@90000 {
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
status = "okay";
};
ess-psgmii@98000 {
status = "okay";
};
pinctrl@1000000 {
mdio_pins: mdio_pinmux {
mux_1 {
pins = "gpio6";
function = "mdio";
bias-pull-up;
};
mux_2 {
pins = "gpio7";
function = "mdc";
bias-pull-up;
};
};
serial_0_pins: serial_pinmux {
mux {
pins = "gpio16", "gpio17";
function = "blsp_uart0";
bias-disable;
};
};
spi_0_pins: spi_0_pinmux {
pinmux {
pins = "gpio13", "gpio14", "gpio15";
function = "blsp_spi0";
drive-strength = <12>;
bias-disable;
};
pinmux_cs {
pins = "gpio12";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-high;
};
};
};
blsp_dma: dma@7884000 {
status = "okay";
};
serial@78af000 {
pinctrl-0 = <&serial_0_pins>;
pinctrl-names = "default";
status = "okay";
};
spi_0: spi@78b5000 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
flash@0 {
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
/*
* "n25q128a11" is required by the bootloader
* so it will be able to found this node and
* add a flash partitions list.
*/
compatible = "n25q128a11", "jedec,spi-nor";
spi-max-frequency = <24000000>;
};
};
wifi@a000000 {
status = "okay";
};
wifi@a800000 {
status = "okay";
};
ess-switch@c000000 {
status = "okay";
};
edma@c080000 {
status = "okay";
};
pcie0: pci@40000000 {
perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
wake-gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
status = "okay";
bridge@0,0 {
reg = <0x00000000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi2: wifi@1,0 {
compatible = "qcom,ath10k";
reg = <0x00010000 0 0 0 0>;
status = "okay";
};
};
};
};
keys {
compatible = "gpio-keys";
button@0 {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
};
};
aliases {
led-boot = &sysled;
led-failsafe = &sysled;
led-running = &sysled;
led-upgrade = &sysled;
};
leds {
compatible = "gpio-leds";
sysled: sysled {
label = "xd6800:blue:status";
gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
};
};
};
@danyanya
Copy link
Author

danyanya commented Mar 9, 2023

We tested with 19.07 and 21.02 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment