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