Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "qcom-ipq8064.dtsi"
0003 #include <dt-bindings/input/input.h>
0004 #include <dt-bindings/leds/common.h>
0005 
0006 / {
0007         model = "Qualcomm Technologies, Inc. IPQ8064-v1.0";
0008 
0009         aliases {
0010                 serial0 = &gsbi4_serial;
0011         };
0012 
0013         chosen {
0014                 stdout-path = "serial0:115200n8";
0015         };
0016 
0017         soc {
0018                 gsbi@16300000 {
0019                         qcom,mode = <GSBI_PROT_I2C_UART>;
0020                         status = "okay";
0021 
0022                         serial@16340000 {
0023                                 status = "okay";
0024                         };
0025                 };
0026 
0027                 gsbi5: gsbi@1a200000 {
0028                         qcom,mode = <GSBI_PROT_SPI>;
0029                         status = "okay";
0030 
0031                         spi4: spi@1a280000 {
0032                                 status = "okay";
0033                                 spi-max-frequency = <50000000>;
0034 
0035                                 pinctrl-0 = <&spi_pins>;
0036                                 pinctrl-names = "default";
0037 
0038                                 cs-gpios = <&qcom_pinmux 20 0>;
0039 
0040                                 flash: flash@0 {
0041                                         compatible = "s25fl256s1";
0042                                         #address-cells = <1>;
0043                                         #size-cells = <1>;
0044                                         spi-max-frequency = <50000000>;
0045                                         reg = <0>;
0046 
0047                                         partition@0 {
0048                                                 label = "rootfs";
0049                                                 reg = <0x0 0x1000000>;
0050                                         };
0051 
0052                                         partition@1 {
0053                                                 label = "scratch";
0054                                                 reg = <0x1000000 0x1000000>;
0055                                         };
0056                                 };
0057                         };
0058                 };
0059 
0060                 sata-phy@1b400000 {
0061                         status = "okay";
0062                 };
0063 
0064                 sata@29000000 {
0065                         ports-implemented = <0x1>;
0066                         status = "okay";
0067                 };
0068 
0069                 gpio-keys {
0070                         compatible = "gpio-keys";
0071                         pinctrl-0 = <&buttons_pins>;
0072                         pinctrl-names = "default";
0073 
0074                         button-1 {
0075                                 label = "reset";
0076                                 linux,code = <KEY_RESTART>;
0077                                 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
0078                                 linux,input-type = <1>;
0079                                 debounce-interval = <60>;
0080                         };
0081                         button-2 {
0082                                 label = "wps";
0083                                 linux,code = <KEY_WPS_BUTTON>;
0084                                 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
0085                                 linux,input-type = <1>;
0086                                 debounce-interval = <60>;
0087                         };
0088                 };
0089 
0090                 leds {
0091                         compatible = "gpio-leds";
0092                         pinctrl-0 = <&leds_pins>;
0093                         pinctrl-names = "default";
0094 
0095                         led@7 {
0096                                 label = "led_usb1";
0097                                 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
0098                                 linux,default-trigger = "usbdev";
0099                                 default-state = "off";
0100                         };
0101 
0102                         led@8 {
0103                                 label = "led_usb3";
0104                                 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
0105                                 linux,default-trigger = "usbdev";
0106                                 default-state = "off";
0107                         };
0108 
0109                         led@9 {
0110                                 label = "status_led_fail";
0111                                 function = LED_FUNCTION_STATUS;
0112                                 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
0113                                 default-state = "off";
0114                         };
0115 
0116                         led@26 {
0117                                 label = "sata_led";
0118                                 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
0119                                 default-state = "off";
0120                         };
0121 
0122                         led@53 {
0123                                 label = "status_led_pass";
0124                                 function = LED_FUNCTION_STATUS;
0125                                 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
0126                                 default-state = "off";
0127                         };
0128                 };
0129         };
0130 };