1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot#include "qcom-ipq8064.dtsi" 3*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 4*f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot/ { 7*f126890aSEmmanuel Vadot model = "Qualcomm Technologies, Inc. IPQ8064-v1.0"; 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadot aliases { 10*f126890aSEmmanuel Vadot serial0 = &gsbi4_serial; 11*f126890aSEmmanuel Vadot }; 12*f126890aSEmmanuel Vadot 13*f126890aSEmmanuel Vadot chosen { 14*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 15*f126890aSEmmanuel Vadot }; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot soc { 18*f126890aSEmmanuel Vadot gsbi@16300000 { 19*f126890aSEmmanuel Vadot qcom,mode = <GSBI_PROT_I2C_UART>; 20*f126890aSEmmanuel Vadot status = "okay"; 21*f126890aSEmmanuel Vadot 22*f126890aSEmmanuel Vadot serial@16340000 { 23*f126890aSEmmanuel Vadot status = "okay"; 24*f126890aSEmmanuel Vadot }; 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot gsbi5: gsbi@1a200000 { 28*f126890aSEmmanuel Vadot qcom,mode = <GSBI_PROT_SPI>; 29*f126890aSEmmanuel Vadot status = "okay"; 30*f126890aSEmmanuel Vadot 31*f126890aSEmmanuel Vadot spi4: spi@1a280000 { 32*f126890aSEmmanuel Vadot status = "okay"; 33*f126890aSEmmanuel Vadot spi-max-frequency = <50000000>; 34*f126890aSEmmanuel Vadot 35*f126890aSEmmanuel Vadot pinctrl-0 = <&spi_pins>; 36*f126890aSEmmanuel Vadot pinctrl-names = "default"; 37*f126890aSEmmanuel Vadot 38*f126890aSEmmanuel Vadot cs-gpios = <&qcom_pinmux 20 0>; 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot flash: flash@0 { 41*f126890aSEmmanuel Vadot compatible = "s25fl256s1"; 42*f126890aSEmmanuel Vadot #address-cells = <1>; 43*f126890aSEmmanuel Vadot #size-cells = <1>; 44*f126890aSEmmanuel Vadot spi-max-frequency = <50000000>; 45*f126890aSEmmanuel Vadot reg = <0>; 46*f126890aSEmmanuel Vadot 47*f126890aSEmmanuel Vadot partition@0 { 48*f126890aSEmmanuel Vadot label = "rootfs"; 49*f126890aSEmmanuel Vadot reg = <0x0 0x1000000>; 50*f126890aSEmmanuel Vadot }; 51*f126890aSEmmanuel Vadot 52*f126890aSEmmanuel Vadot partition@1 { 53*f126890aSEmmanuel Vadot label = "scratch"; 54*f126890aSEmmanuel Vadot reg = <0x1000000 0x1000000>; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot }; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot }; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot sata-phy@1b400000 { 61*f126890aSEmmanuel Vadot status = "okay"; 62*f126890aSEmmanuel Vadot }; 63*f126890aSEmmanuel Vadot 64*f126890aSEmmanuel Vadot sata@29000000 { 65*f126890aSEmmanuel Vadot ports-implemented = <0x1>; 66*f126890aSEmmanuel Vadot status = "okay"; 67*f126890aSEmmanuel Vadot }; 68*f126890aSEmmanuel Vadot 69*f126890aSEmmanuel Vadot gpio-keys { 70*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 71*f126890aSEmmanuel Vadot pinctrl-0 = <&buttons_pins>; 72*f126890aSEmmanuel Vadot pinctrl-names = "default"; 73*f126890aSEmmanuel Vadot 74*f126890aSEmmanuel Vadot button-1 { 75*f126890aSEmmanuel Vadot label = "reset"; 76*f126890aSEmmanuel Vadot linux,code = <KEY_RESTART>; 77*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; 78*f126890aSEmmanuel Vadot linux,input-type = <1>; 79*f126890aSEmmanuel Vadot debounce-interval = <60>; 80*f126890aSEmmanuel Vadot }; 81*f126890aSEmmanuel Vadot button-2 { 82*f126890aSEmmanuel Vadot label = "wps"; 83*f126890aSEmmanuel Vadot linux,code = <KEY_WPS_BUTTON>; 84*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; 85*f126890aSEmmanuel Vadot linux,input-type = <1>; 86*f126890aSEmmanuel Vadot debounce-interval = <60>; 87*f126890aSEmmanuel Vadot }; 88*f126890aSEmmanuel Vadot }; 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot leds { 91*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 92*f126890aSEmmanuel Vadot pinctrl-0 = <&leds_pins>; 93*f126890aSEmmanuel Vadot pinctrl-names = "default"; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot led-0 { 96*f126890aSEmmanuel Vadot label = "led_usb1"; 97*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>; 98*f126890aSEmmanuel Vadot linux,default-trigger = "usbdev"; 99*f126890aSEmmanuel Vadot default-state = "off"; 100*f126890aSEmmanuel Vadot }; 101*f126890aSEmmanuel Vadot 102*f126890aSEmmanuel Vadot led-1 { 103*f126890aSEmmanuel Vadot label = "led_usb3"; 104*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>; 105*f126890aSEmmanuel Vadot linux,default-trigger = "usbdev"; 106*f126890aSEmmanuel Vadot default-state = "off"; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot 109*f126890aSEmmanuel Vadot led-2 { 110*f126890aSEmmanuel Vadot label = "status_led_fail"; 111*f126890aSEmmanuel Vadot function = LED_FUNCTION_STATUS; 112*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; 113*f126890aSEmmanuel Vadot default-state = "off"; 114*f126890aSEmmanuel Vadot }; 115*f126890aSEmmanuel Vadot 116*f126890aSEmmanuel Vadot led-3 { 117*f126890aSEmmanuel Vadot label = "sata_led"; 118*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; 119*f126890aSEmmanuel Vadot default-state = "off"; 120*f126890aSEmmanuel Vadot }; 121*f126890aSEmmanuel Vadot 122*f126890aSEmmanuel Vadot led-4 { 123*f126890aSEmmanuel Vadot label = "status_led_pass"; 124*f126890aSEmmanuel Vadot function = LED_FUNCTION_STATUS; 125*f126890aSEmmanuel Vadot gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; 126*f126890aSEmmanuel Vadot default-state = "off"; 127*f126890aSEmmanuel Vadot }; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot }; 130*f126890aSEmmanuel Vadot}; 131