1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring#include "qcom-ipq8064.dtsi" 3724ba675SRob Herring#include <dt-bindings/input/input.h> 4724ba675SRob Herring#include <dt-bindings/leds/common.h> 5724ba675SRob Herring 6724ba675SRob Herring/ { 7724ba675SRob Herring model = "Qualcomm Technologies, Inc. IPQ8064-v1.0"; 8724ba675SRob Herring 9724ba675SRob Herring aliases { 10724ba675SRob Herring serial0 = &gsbi4_serial; 11724ba675SRob Herring }; 12724ba675SRob Herring 13724ba675SRob Herring chosen { 14724ba675SRob Herring stdout-path = "serial0:115200n8"; 15724ba675SRob Herring }; 16724ba675SRob Herring 17724ba675SRob Herring gpio-keys { 18724ba675SRob Herring compatible = "gpio-keys"; 19724ba675SRob Herring pinctrl-0 = <&buttons_pins>; 20724ba675SRob Herring pinctrl-names = "default"; 21724ba675SRob Herring 22724ba675SRob Herring button-1 { 23724ba675SRob Herring label = "reset"; 24724ba675SRob Herring linux,code = <KEY_RESTART>; 25724ba675SRob Herring gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; 26724ba675SRob Herring linux,input-type = <1>; 27724ba675SRob Herring debounce-interval = <60>; 28724ba675SRob Herring }; 29724ba675SRob Herring button-2 { 30724ba675SRob Herring label = "wps"; 31724ba675SRob Herring linux,code = <KEY_WPS_BUTTON>; 32724ba675SRob Herring gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; 33724ba675SRob Herring linux,input-type = <1>; 34724ba675SRob Herring debounce-interval = <60>; 35724ba675SRob Herring }; 36724ba675SRob Herring }; 37724ba675SRob Herring 38724ba675SRob Herring leds { 39724ba675SRob Herring compatible = "gpio-leds"; 40724ba675SRob Herring pinctrl-0 = <&leds_pins>; 41724ba675SRob Herring pinctrl-names = "default"; 42724ba675SRob Herring 43724ba675SRob Herring led-0 { 44724ba675SRob Herring label = "led_usb1"; 45724ba675SRob Herring gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>; 46724ba675SRob Herring linux,default-trigger = "usbdev"; 47724ba675SRob Herring default-state = "off"; 48724ba675SRob Herring }; 49724ba675SRob Herring 50724ba675SRob Herring led-1 { 51724ba675SRob Herring label = "led_usb3"; 52724ba675SRob Herring gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>; 53724ba675SRob Herring linux,default-trigger = "usbdev"; 54724ba675SRob Herring default-state = "off"; 55724ba675SRob Herring }; 56724ba675SRob Herring 57724ba675SRob Herring led-2 { 58724ba675SRob Herring label = "status_led_fail"; 59724ba675SRob Herring function = LED_FUNCTION_STATUS; 60724ba675SRob Herring gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; 61724ba675SRob Herring default-state = "off"; 62724ba675SRob Herring }; 63724ba675SRob Herring 64724ba675SRob Herring led-3 { 65724ba675SRob Herring label = "sata_led"; 66724ba675SRob Herring gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; 67724ba675SRob Herring default-state = "off"; 68724ba675SRob Herring }; 69724ba675SRob Herring 70724ba675SRob Herring led-4 { 71724ba675SRob Herring label = "status_led_pass"; 72724ba675SRob Herring function = LED_FUNCTION_STATUS; 73724ba675SRob Herring gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; 74724ba675SRob Herring default-state = "off"; 75724ba675SRob Herring }; 76724ba675SRob Herring }; 77*2138c32aSKrzysztof Kozlowski 78*2138c32aSKrzysztof Kozlowski soc { 79*2138c32aSKrzysztof Kozlowski gsbi@16300000 { 80*2138c32aSKrzysztof Kozlowski qcom,mode = <GSBI_PROT_I2C_UART>; 81*2138c32aSKrzysztof Kozlowski status = "okay"; 82*2138c32aSKrzysztof Kozlowski 83*2138c32aSKrzysztof Kozlowski serial@16340000 { 84*2138c32aSKrzysztof Kozlowski status = "okay"; 85*2138c32aSKrzysztof Kozlowski }; 86*2138c32aSKrzysztof Kozlowski }; 87*2138c32aSKrzysztof Kozlowski 88*2138c32aSKrzysztof Kozlowski gsbi5: gsbi@1a200000 { 89*2138c32aSKrzysztof Kozlowski qcom,mode = <GSBI_PROT_SPI>; 90*2138c32aSKrzysztof Kozlowski status = "okay"; 91*2138c32aSKrzysztof Kozlowski 92*2138c32aSKrzysztof Kozlowski spi4: spi@1a280000 { 93*2138c32aSKrzysztof Kozlowski status = "okay"; 94*2138c32aSKrzysztof Kozlowski 95*2138c32aSKrzysztof Kozlowski pinctrl-0 = <&spi_pins>; 96*2138c32aSKrzysztof Kozlowski pinctrl-names = "default"; 97*2138c32aSKrzysztof Kozlowski 98*2138c32aSKrzysztof Kozlowski cs-gpios = <&qcom_pinmux 20 0>; 99*2138c32aSKrzysztof Kozlowski 100*2138c32aSKrzysztof Kozlowski flash: flash@0 { 101*2138c32aSKrzysztof Kozlowski compatible = "s25fl256s1"; 102*2138c32aSKrzysztof Kozlowski #address-cells = <1>; 103*2138c32aSKrzysztof Kozlowski #size-cells = <1>; 104*2138c32aSKrzysztof Kozlowski spi-max-frequency = <50000000>; 105*2138c32aSKrzysztof Kozlowski reg = <0>; 106*2138c32aSKrzysztof Kozlowski 107*2138c32aSKrzysztof Kozlowski partition@0 { 108*2138c32aSKrzysztof Kozlowski label = "rootfs"; 109*2138c32aSKrzysztof Kozlowski reg = <0x0 0x1000000>; 110*2138c32aSKrzysztof Kozlowski }; 111*2138c32aSKrzysztof Kozlowski 112*2138c32aSKrzysztof Kozlowski partition@1 { 113*2138c32aSKrzysztof Kozlowski label = "scratch"; 114*2138c32aSKrzysztof Kozlowski reg = <0x1000000 0x1000000>; 115*2138c32aSKrzysztof Kozlowski }; 116*2138c32aSKrzysztof Kozlowski }; 117*2138c32aSKrzysztof Kozlowski }; 118*2138c32aSKrzysztof Kozlowski }; 119*2138c32aSKrzysztof Kozlowski 120*2138c32aSKrzysztof Kozlowski sata-phy@1b400000 { 121*2138c32aSKrzysztof Kozlowski status = "okay"; 122*2138c32aSKrzysztof Kozlowski }; 123*2138c32aSKrzysztof Kozlowski 124*2138c32aSKrzysztof Kozlowski sata@29000000 { 125*2138c32aSKrzysztof Kozlowski ports-implemented = <0x1>; 126*2138c32aSKrzysztof Kozlowski status = "okay"; 127*2138c32aSKrzysztof Kozlowski }; 128724ba675SRob Herring }; 129724ba675SRob Herring}; 130