| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- #include "ipq5018.dtsi"
- #include "ipq5018-ess.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/leds/common.h>
- / {
- aliases {
- led-boot = &led_system_blue;
- led-failsafe = &led_system_red;
- led-running = &led_system_blue;
- led-upgrade = &led_system_red;
- serial0 = &blsp1_uart1;
- };
- keys {
- compatible = "gpio-keys";
- pinctrl-0 = <&button_pins>;
- pinctrl-names = "default";
- wps-button {
- label = "wps";
- gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- reset-button {
- label = "reset";
- gpios = <&tlmm 28 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
- leds {
- compatible = "pwm-leds";
- led_system_red: red {
- color = <LED_COLOR_ID_RED>;
- function = LED_FUNCTION_POWER;
- pwms = <&pwm 3 1250000>;
- max-brightness = <255>;
- };
- green {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_POWER;
- pwms = <&pwm 0 1250000>;
- max-brightness = <255>;
- };
- led_system_blue: blue {
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_POWER;
- pwms = <&pwm 1 1250000>;
- max-brightness = <255>;
- };
- };
- };
- &sleep_clk {
- clock-frequency = <32000>;
- };
- &xo_board_clk {
- clock-div = <4>;
- clock-mult = <1>;
- };
- &blsp1_uart1 {
- status = "okay";
- pinctrl-0 = <&serial_0_pins>;
- pinctrl-names = "default";
- };
- &crypto {
- status = "okay";
- };
- &cryptobam {
- status = "okay";
- };
- &prng {
- status = "okay";
- };
- &pwm {
- status = "okay";
- #pwm-cells = <2>;
- pinctrl-0 = <&pwm_pins>;
- pinctrl-names = "default";
- };
- &qfprom {
- status = "okay";
- };
- &qpic_bam {
- status = "okay";
- };
- &qpic_nand {
- pinctrl-0 = <&qpic_pins>;
- pinctrl-names = "default";
- status = "okay";
- nand@0 {
- compatible = "spi-nand";
- reg = <0>;
- nand-ecc-engine = <&qpic_nand>;
- nand-bus-width = <8>;
- partitions {
- compatible = "qcom,smem-part";
- partition-devinfo {
- label = "devinfo";
- read-only;
- nvmem-layout {
- compatible = "ascii-eq-delim-env";
- #address-cells = <1>;
- #size-cells = <1>;
- hw_mac_addr: hw_mac_addr {
- compatible = "mac-base";
- #nvmem-cell-cells = <1>;
- };
- };
- };
- };
- };
- };
- &tlmm {
- button_pins: button-state {
- pins = "gpio27", "gpio28";
- function = "gpio";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio1_pins: mdio-state {
- mdc-pins {
- pins = "gpio36";
- function = "mdc";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio-pins {
- pins = "gpio37";
- function = "mdio";
- drive-strength = <8>;
- bias-pull-up;
- };
- };
- pwm_pins: pwm-state {
- mux_1 {
- pins = "gpio1";
- function = "pwm1";
- drive-strength = <8>;
- };
- mux_2 {
- pins = "gpio30";
- function = "pwm3";
- drive-strength = <8>;
- };
- mux_3 {
- pins = "gpio46";
- function = "pwm0";
- drive-strength = <8>;
- };
- };
- qpic_pins: qpic-state {
- clock-pins {
- pins = "gpio9";
- function = "qspi_clk";
- drive-strength = <8>;
- bias-disable;
- };
- cs-pins {
- pins = "gpio8";
- function = "qspi_cs";
- drive-strength = <8>;
- bias-disable;
- };
- data-pins {
- pins = "gpio4", "gpio5", "gpio6", "gpio7";
- function = "qspi_data";
- drive-strength = <8>;
- bias-disable;
- };
- };
- serial_0_pins: uart0-state {
- pins = "gpio20", "gpio21";
- function = "blsp0_uart0";
- bias-disable;
- };
- };
|