// 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 / { model = "Kendryte KD233"; compatible = "canaan,kendryte-kd233", "canaan,kendryte-k210"; chosen { bootargs = "earlycon console=ttySIF0"; stdout-path = "serial0:115200n8"; }; gpio-leds { compatible = "gpio-leds"; led0 { gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led1 { gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; gpio-keys { compatible = "gpio-keys"; key { label = "KEY0"; linux,code = ; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; }; }; &fpioa { pinctrl-0 = <&jtag_pinctrl>; pinctrl-names = "default"; status = "okay"; jtag_pinctrl: jtag-pinmux { pinmux = , , , ; }; uarths_pinctrl: uarths-pinmux { pinmux = , ; }; spi0_pinctrl: spi0-pinmux { pinmux = , /* cs */ , /* wr */ ; /* dc */ }; dvp_pinctrl: dvp-pinmux { pinmux = , , , , , , , ; }; gpiohs_pinctrl: gpiohs-pinmux { pinmux = , , /* Rot. dip sw line 8 */ , /* Rot. dip sw line 4 */ , /* Rot. dip sw line 2 */ , /* Rot. dip sw line 1 */ , , ; }; spi1_pinctrl: spi1-pinmux { pinmux = , , , ; /* cs */ }; i2s0_pinctrl: i2s0-pinmux { pinmux = , , ; }; }; &uarths0 { pinctrl-0 = <&uarths_pinctrl>; pinctrl-names = "default"; status = "okay"; }; &gpio0 { pinctrl-0 = <&gpiohs_pinctrl>; pinctrl-names = "default"; status = "okay"; }; &i2s0 { #sound-dai-cells = <1>; pinctrl-0 = <&i2s0_pinctrl>; pinctrl-names = "default"; }; &spi0 { pinctrl-0 = <&spi0_pinctrl>; pinctrl-names = "default"; num-cs = <1>; cs-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; panel@0 { compatible = "ilitek,ili9341"; reg = <0>; dc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; spi-max-frequency = <15000000>; status = "disabled"; }; }; &spi1 { pinctrl-0 = <&spi1_pinctrl>; pinctrl-names = "default"; num-cs = <1>; cs-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; status = "okay"; slot@0 { compatible = "mmc-spi-slot"; reg = <0>; voltage-ranges = <3300 3300>; spi-max-frequency = <25000000>; broken-cd; }; };