Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "mt7628an.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- / {
- compatible = "flashforge,adventurer-3", "mediatek,mt7628an-soc";
- model = "flashforge adventurer 3";
- aliases {
- led-boot = &led_wifi;
- led-failsafe = &led_wifi;
- led-running = &led_wifi;
- led-upgrade = &led_wifi;
- };
- chosen {
- bootargs = "console=ttyS0,115200";
- };
- aliases {
- serial0 = &uart2;
- };
- bootstrap {
- compatible = "flashforge,adventurer-3";
- status = "okay";
- };
- leds {
- compatible = "gpio-leds";
- led_wifi: wifi {
- label = "orange:wifi";
- gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
- };
- };
- keys {
- compatible = "gpio-keys";
- wps {
- label = "reset";
- gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
- };
- &state_default {
- gpio {
- groups = "gpio";
- function = "gpio";
- };
- refclk {
- groups = "refclk";
- function = "gpio";
- };
- i2s {
- groups = "i2s";
- function = "gpio";
- };
- spis {
- groups = "spis";
- function = "gpio";
- };
- wled_an {
- groups = "wled_an";
- function = "gpio";
- };
- wdt {
- groups = "wdt";
- function = "gpio";
- };
- };
- &state_default {
- gpio {
- groups = "gpio";
- function = "gpio";
- };
- refclk {
- groups = "refclk";
- function = "gpio";
- };
- i2s {
- groups = "i2s";
- function = "gpio";
- };
- i2c {
- groups = "i2c";
- function = "gpio";
- };
- spis {
- groups = "spis";
- function = "gpio";
- };
- uart1 {
- groups = "uart1";
- function = "gpio";
- };
- pwm1 {
- groups = "pwm1";
- function = "gpio";
- };
- wled_an {
- groups = "wled_an";
- function = "gpio";
- };
- wdt {
- groups = "wdt";
- function = "gpio";
- };
- };
- &spi0 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
- num-chipselects = <4>;
- cs-gpios = <0>, <0>, <&gpio 4 GPIO_ACTIVE_LOW>, <&gpio 5 GPIO_ACTIVE_LOW>;
- mx25l6405d@0 {
- compatible = "macronix,mx25l6405d", "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <40000000>;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- };
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
- };
- };
- };
- ads7843@2 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "ti,ads7846";
- reg = <2>;
- spi-max-frequency = <0xea60>;
- ti,x-min = [00 00];
- ti,x-max = [1f 40];
- ti,y-min = [00 00];
- ti,y-max = [12 c0];
- ti,x-plate-ohms = [00 28];
- ti,pressure-max = [3a 98];
- };
- ili9341@3 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "ilitek,ili9341";
- reg = <1>;
- spi-max-frequency = <24000000>;
- status = "okay";
- buswidth = <8>;
- backlight = <1>;
- debug = <8>;
- bgr;
- fps = <20>;
- txbuflen = <32>;
- reset-gpios = <&gpio 0 0>;
- dc-gpios = <&gpio 10 0>;
- led-gpios = <&gpio 3 0>;
- };
- };
- &i2c {
- status = "okay";
- };
- &uart2 {
- status = "okay";
- };
- &pwm {
- status = "okay";
- };
- ðernet {
- nvmem-cells = <&macaddr_factory_2e>;
- nvmem-cell-names = "mac-address";
- };
- &sdhci {
- status = "okay";
- mediatek,cd-high;
- };
- &wmac {
- status = "okay";
- mediatek,mtd-eeprom = <&factory 0x0>;
- };
- &factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement