// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2019-20 Sean Anderson * Copyright (C) 2020 Western Digital Corporation or its affiliates. */ /dts-v1/; #include "k210.dtsi" #include #include #include / { model = "SiPeed MAIX GO"; compatible = "sipeed,maix-go", "canaan,kendryte-k210"; chosen { bootargs = "earlycon console=ttySIF0"; stdout-path = "serial0:115200n8"; }; gpio-leds { compatible = "gpio-leds"; led0 { color = ; label = "green"; gpios = <&gpio1_0 4 GPIO_ACTIVE_LOW>; }; led1 { color = ; label = "red"; gpios = <&gpio1_0 5 GPIO_ACTIVE_LOW>; }; led2 { color = ; label = "blue"; gpios = <&gpio1_0 6 GPIO_ACTIVE_LOW>; }; }; gpio-keys { compatible = "gpio-keys"; up { label = "UP"; linux,code = ; gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>; }; press { label = "PRESS"; linux,code = ; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; down { label = "DOWN"; linux,code = ; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; }; }; &fpioa { pinctrl-0 = <&jtag_pinctrl>; pinctrl-names = "default"; status = "okay"; jtag_pinctrl: jtag-pinmux { pinmux = , , , ; }; uarths_pinctrl: uarths-pinmux { pinmux = , ; }; gpio_pinctrl: gpio-pinmux { pinmux = , , , , , , , ; }; gpiohs_pinctrl: gpiohs-pinmux { pinmux = , , , , , , , , , , ; }; i2s0_pinctrl: i2s0-pinmux { pinmux = , , ; }; dvp_pinctrl: dvp-pinmux { pinmux = , , , , , , , ; }; spi0_pinctrl: spi0-pinmux { pinmux = , /* cs */ , /* rst */ , /* dc */ ; /* wr */ }; spi1_pinctrl: spi1-pinmux { pinmux = , , , ; /* cs */ }; i2c1_pinctrl: i2c1-pinmux { pinmux = , ; }; }; &uarths0 { pinctrl-0 = <&uarths_pinctrl>; pinctrl-names = "default"; status = "okay"; }; &gpio0 { pinctrl-0 = <&gpiohs_pinctrl>; pinctrl-names = "default"; status = "okay"; }; &gpio1 { pinctrl-0 = <&gpio_pinctrl>; pinctrl-names = "default"; status = "okay"; }; &i2s0 { #sound-dai-cells = <1>; pinctrl-0 = <&i2s0_pinctrl>; pinctrl-names = "default"; }; &i2c1 { pinctrl-0 = <&i2c1_pinctrl>; pinctrl-names = "default"; clock-frequency = <400000>; status = "okay"; }; &spi0 { pinctrl-0 = <&spi0_pinctrl>; pinctrl-names = "default"; num-cs = <1>; cs-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; panel@0 { compatible = "sitronix,st7789v"; reg = <0>; reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; dc-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; spi-max-frequency = <15000000>; status = "disabled"; }; }; &spi1 { pinctrl-0 = <&spi1_pinctrl>; pinctrl-names = "default"; num-cs = <1>; cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; status = "okay"; slot@0 { compatible = "mmc-spi-slot"; reg = <0>; voltage-ranges = <3300 3300>; spi-max-frequency = <25000000>; broken-cd; }; }; &spi3 { spi-flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; m25p,fast-read; broken-flash-reset; }; };