/dts-v1/; #include #include #include / { model = "Black Swift"; compatible = "smartlx,black-swift"; aliases { spiflash = &spiflash; }; memory@0 { device_type = "memory"; reg = <0x00000000 0x4000000>; }; buttons { compatible = "gpio-keys"; s1 { label = "S1"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; linux,code = ; }; }; leds { compatible = "gpio-leds"; s1 { label = "LED1"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; default-state = "off"; }; }; }; &ref { clock-frequency = <25000000>; }; &uart { status = "okay"; }; &gpio { status = "okay"; }; &spi { num-chipselects = <1>; status = "okay"; /* Winbond W25Q128FV SPI flash */ spiflash: w25q128@0 { #address-cells = <1>; #size-cells = <1>; compatible = "winbond,w25q128", "jedec,spi-nor"; spi-max-frequency = <104000000>; reg = <0>; }; };