1*84943d6fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 2*84943d6fSEmmanuel Vadot/* 3*84943d6fSEmmanuel Vadot * Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 4*84943d6fSEmmanuel Vadot * D-82229 Seefeld, Germany. 5*84943d6fSEmmanuel Vadot * Author: Gregor Herburger, Timo Herbrecher 6*84943d6fSEmmanuel Vadot * 7*84943d6fSEmmanuel Vadot * Device Tree Include file for MBLS10xxA from TQ 8*84943d6fSEmmanuel Vadot */ 9*84943d6fSEmmanuel Vadot 10*84943d6fSEmmanuel Vadot#include <dt-bindings/input/input.h> 11*84943d6fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 12*84943d6fSEmmanuel Vadot#include <dt-bindings/leds/common.h> 13*84943d6fSEmmanuel Vadot 14*84943d6fSEmmanuel Vadot/ { 15*84943d6fSEmmanuel Vadot gpio-keys-polled { 16*84943d6fSEmmanuel Vadot compatible = "gpio-keys-polled"; 17*84943d6fSEmmanuel Vadot poll-interval = <100>; 18*84943d6fSEmmanuel Vadot autorepeat; 19*84943d6fSEmmanuel Vadot 20*84943d6fSEmmanuel Vadot button-0 { 21*84943d6fSEmmanuel Vadot label = "button0"; 22*84943d6fSEmmanuel Vadot gpios = <&gpioexp3 5 GPIO_ACTIVE_LOW>; 23*84943d6fSEmmanuel Vadot linux,code = <KEY_F1>; 24*84943d6fSEmmanuel Vadot }; 25*84943d6fSEmmanuel Vadot 26*84943d6fSEmmanuel Vadot button-1 { 27*84943d6fSEmmanuel Vadot label = "button1"; 28*84943d6fSEmmanuel Vadot gpios = <&gpioexp3 6 GPIO_ACTIVE_LOW>; 29*84943d6fSEmmanuel Vadot linux,code = <KEY_F2>; 30*84943d6fSEmmanuel Vadot }; 31*84943d6fSEmmanuel Vadot }; 32*84943d6fSEmmanuel Vadot 33*84943d6fSEmmanuel Vadot leds { 34*84943d6fSEmmanuel Vadot compatible = "gpio-leds"; 35*84943d6fSEmmanuel Vadot 36*84943d6fSEmmanuel Vadot led-user { 37*84943d6fSEmmanuel Vadot gpios = <&gpioexp3 13 GPIO_ACTIVE_LOW>; 38*84943d6fSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 39*84943d6fSEmmanuel Vadot function = LED_FUNCTION_HEARTBEAT; 40*84943d6fSEmmanuel Vadot linux,default-trigger = "heartbeat"; 41*84943d6fSEmmanuel Vadot }; 42*84943d6fSEmmanuel Vadot }; 43*84943d6fSEmmanuel Vadot 44*84943d6fSEmmanuel Vadot reg_3v3: regulator-3v3 { 45*84943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 46*84943d6fSEmmanuel Vadot regulator-name = "V_3V3_MB"; 47*84943d6fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 48*84943d6fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 49*84943d6fSEmmanuel Vadot }; 50*84943d6fSEmmanuel Vadot}; 51*84943d6fSEmmanuel Vadot 52*84943d6fSEmmanuel Vadot&duart0 { 53*84943d6fSEmmanuel Vadot status = "okay"; 54*84943d6fSEmmanuel Vadot}; 55*84943d6fSEmmanuel Vadot 56*84943d6fSEmmanuel Vadot&duart1 { 57*84943d6fSEmmanuel Vadot status = "okay"; 58*84943d6fSEmmanuel Vadot}; 59*84943d6fSEmmanuel Vadot 60*84943d6fSEmmanuel Vadot&esdhc { 61*84943d6fSEmmanuel Vadot status = "okay"; 62*84943d6fSEmmanuel Vadot}; 63*84943d6fSEmmanuel Vadot 64*84943d6fSEmmanuel Vadot&i2c3 { 65*84943d6fSEmmanuel Vadot status = "okay"; 66*84943d6fSEmmanuel Vadot 67*84943d6fSEmmanuel Vadot i2c-mux@70 { 68*84943d6fSEmmanuel Vadot compatible = "nxp,pca9544"; 69*84943d6fSEmmanuel Vadot reg = <0x70>; 70*84943d6fSEmmanuel Vadot #address-cells = <1>; 71*84943d6fSEmmanuel Vadot #size-cells = <0>; 72*84943d6fSEmmanuel Vadot 73*84943d6fSEmmanuel Vadot i2c@0 { 74*84943d6fSEmmanuel Vadot reg = <0x0>; 75*84943d6fSEmmanuel Vadot #address-cells = <1>; 76*84943d6fSEmmanuel Vadot #size-cells = <0>; 77*84943d6fSEmmanuel Vadot 78*84943d6fSEmmanuel Vadot gpioexp1: gpio@20 { 79*84943d6fSEmmanuel Vadot compatible = "nxp,pca9555"; 80*84943d6fSEmmanuel Vadot reg = <0x20>; 81*84943d6fSEmmanuel Vadot vcc-supply = <®_3v3>; 82*84943d6fSEmmanuel Vadot gpio-controller; 83*84943d6fSEmmanuel Vadot #gpio-cells = <2>; 84*84943d6fSEmmanuel Vadot }; 85*84943d6fSEmmanuel Vadot 86*84943d6fSEmmanuel Vadot gpioexp2: gpio@21 { 87*84943d6fSEmmanuel Vadot compatible = "nxp,pca9555"; 88*84943d6fSEmmanuel Vadot reg = <0x21>; 89*84943d6fSEmmanuel Vadot vcc-supply = <®_3v3>; 90*84943d6fSEmmanuel Vadot gpio-controller; 91*84943d6fSEmmanuel Vadot #gpio-cells = <2>; 92*84943d6fSEmmanuel Vadot }; 93*84943d6fSEmmanuel Vadot 94*84943d6fSEmmanuel Vadot gpioexp3: gpio@22 { 95*84943d6fSEmmanuel Vadot compatible = "nxp,pca9555"; 96*84943d6fSEmmanuel Vadot reg = <0x22>; 97*84943d6fSEmmanuel Vadot vcc-supply = <®_3v3>; 98*84943d6fSEmmanuel Vadot gpio-controller; 99*84943d6fSEmmanuel Vadot #gpio-cells = <2>; 100*84943d6fSEmmanuel Vadot }; 101*84943d6fSEmmanuel Vadot }; 102*84943d6fSEmmanuel Vadot 103*84943d6fSEmmanuel Vadot sfp1_i2c: i2c@1 { 104*84943d6fSEmmanuel Vadot reg = <0x1>; 105*84943d6fSEmmanuel Vadot #address-cells = <1>; 106*84943d6fSEmmanuel Vadot #size-cells = <0>; 107*84943d6fSEmmanuel Vadot status = "disabled"; 108*84943d6fSEmmanuel Vadot }; 109*84943d6fSEmmanuel Vadot 110*84943d6fSEmmanuel Vadot sfp2_i2c: i2c@2 { 111*84943d6fSEmmanuel Vadot reg = <0x2>; 112*84943d6fSEmmanuel Vadot #address-cells = <1>; 113*84943d6fSEmmanuel Vadot #size-cells = <0>; 114*84943d6fSEmmanuel Vadot status = "disabled"; 115*84943d6fSEmmanuel Vadot }; 116*84943d6fSEmmanuel Vadot 117*84943d6fSEmmanuel Vadot i2c@3 { 118*84943d6fSEmmanuel Vadot reg = <0x3>; 119*84943d6fSEmmanuel Vadot #address-cells = <1>; 120*84943d6fSEmmanuel Vadot #size-cells = <0>; 121*84943d6fSEmmanuel Vadot }; 122*84943d6fSEmmanuel Vadot }; 123*84943d6fSEmmanuel Vadot}; 124*84943d6fSEmmanuel Vadot 125*84943d6fSEmmanuel Vadot&sata { 126*84943d6fSEmmanuel Vadot status = "okay"; 127*84943d6fSEmmanuel Vadot}; 128*84943d6fSEmmanuel Vadot 129*84943d6fSEmmanuel Vadot&usb0 { 130*84943d6fSEmmanuel Vadot status = "okay"; 131*84943d6fSEmmanuel Vadot}; 132*84943d6fSEmmanuel Vadot 133*84943d6fSEmmanuel Vadot&usb1 { 134*84943d6fSEmmanuel Vadot dr_mode = "otg"; 135*84943d6fSEmmanuel Vadot status = "okay"; 136*84943d6fSEmmanuel Vadot}; 137