1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright 2012 ST-Ericsson AB 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Device Tree for the HREF+ prior to the v60 variant. 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot#include "ste-href-ab8500.dtsi" 9*f126890aSEmmanuel Vadot#include "ste-href.dtsi" 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot/ { 12*f126890aSEmmanuel Vadot gpio_keys { 13*f126890aSEmmanuel Vadot button@1 { 14*f126890aSEmmanuel Vadot gpios = <&tc3589x_gpio 7 GPIO_ACTIVE_HIGH>; 15*f126890aSEmmanuel Vadot }; 16*f126890aSEmmanuel Vadot }; 17*f126890aSEmmanuel Vadot 18*f126890aSEmmanuel Vadot soc { 19*f126890aSEmmanuel Vadot /* Enable UART1 on this board */ 20*f126890aSEmmanuel Vadot serial@80121000 { 21*f126890aSEmmanuel Vadot status = "okay"; 22*f126890aSEmmanuel Vadot }; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot i2c@80004000 { 25*f126890aSEmmanuel Vadot tps61052@33 { 26*f126890aSEmmanuel Vadot compatible = "ti,tps61052"; 27*f126890aSEmmanuel Vadot reg = <0x33>; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot tc35892@42 { 31*f126890aSEmmanuel Vadot compatible = "toshiba,tc35892"; 32*f126890aSEmmanuel Vadot reg = <0x42>; 33*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 34*f126890aSEmmanuel Vadot interrupts = <25 IRQ_TYPE_EDGE_RISING>; 35*f126890aSEmmanuel Vadot pinctrl-names = "default"; 36*f126890aSEmmanuel Vadot pinctrl-0 = <&tc35892_hrefprev60_mode>; 37*f126890aSEmmanuel Vadot 38*f126890aSEmmanuel Vadot interrupt-controller; 39*f126890aSEmmanuel Vadot #interrupt-cells = <1>; 40*f126890aSEmmanuel Vadot 41*f126890aSEmmanuel Vadot tc3589x_gpio: tc3589x_gpio { 42*f126890aSEmmanuel Vadot compatible = "tc3589x-gpio"; 43*f126890aSEmmanuel Vadot interrupts = <0>; 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot interrupt-controller; 46*f126890aSEmmanuel Vadot #interrupt-cells = <2>; 47*f126890aSEmmanuel Vadot gpio-controller; 48*f126890aSEmmanuel Vadot #gpio-cells = <2>; 49*f126890aSEmmanuel Vadot }; 50*f126890aSEmmanuel Vadot }; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot spi@80002000 { 54*f126890aSEmmanuel Vadot /* 55*f126890aSEmmanuel Vadot * On the first generation boards, this SSP/SPI port was connected 56*f126890aSEmmanuel Vadot * to the AB8500. 57*f126890aSEmmanuel Vadot */ 58*f126890aSEmmanuel Vadot pinctrl-names = "default"; 59*f126890aSEmmanuel Vadot pinctrl-0 = <&ssp0_hrefprev60_mode>; 60*f126890aSEmmanuel Vadot status = "okay"; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot 63*f126890aSEmmanuel Vadot // External Micro SD slot 64*f126890aSEmmanuel Vadot mmc@80126000 { 65*f126890aSEmmanuel Vadot cd-gpios = <&tc3589x_gpio 3 GPIO_ACTIVE_HIGH>; 66*f126890aSEmmanuel Vadot }; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot pinctrl { 69*f126890aSEmmanuel Vadot /* Set this up using hogs */ 70*f126890aSEmmanuel Vadot pinctrl-names = "default"; 71*f126890aSEmmanuel Vadot pinctrl-0 = <&ipgpio_hrefprev60_mode>; 72*f126890aSEmmanuel Vadot 73*f126890aSEmmanuel Vadot ssp0 { 74*f126890aSEmmanuel Vadot ssp0_hrefprev60_mode: ssp0_hrefprev60_default { 75*f126890aSEmmanuel Vadot hrefprev60_mux { 76*f126890aSEmmanuel Vadot function = "ssp0"; 77*f126890aSEmmanuel Vadot groups = "ssp0_a_1"; 78*f126890aSEmmanuel Vadot }; 79*f126890aSEmmanuel Vadot hrefprev60_cfg1 { 80*f126890aSEmmanuel Vadot pins = "GPIO145_C13"; /* RXD */ 81*f126890aSEmmanuel Vadot ste,config = <&in_pd>; 82*f126890aSEmmanuel Vadot }; 83*f126890aSEmmanuel Vadot 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot sdi0 { 87*f126890aSEmmanuel Vadot /* This additional pin needed on early MOP500 and HREFs previous to v60 */ 88*f126890aSEmmanuel Vadot sdi0_default_mode: sdi0_default { 89*f126890aSEmmanuel Vadot hrefprev60_mux { 90*f126890aSEmmanuel Vadot function = "mc0"; 91*f126890aSEmmanuel Vadot groups = "mc0dat31dir_a_1"; 92*f126890aSEmmanuel Vadot }; 93*f126890aSEmmanuel Vadot hrefprev60_cfg1 { 94*f126890aSEmmanuel Vadot pins = "GPIO21_AB3"; /* DAT31DIR */ 95*f126890aSEmmanuel Vadot ste,config = <&out_hi>; 96*f126890aSEmmanuel Vadot }; 97*f126890aSEmmanuel Vadot 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot }; 100*f126890aSEmmanuel Vadot tc35892 { 101*f126890aSEmmanuel Vadot tc35892_hrefprev60_mode: tc35892_hrefprev60 { 102*f126890aSEmmanuel Vadot hrefprev60_cfg { 103*f126890aSEmmanuel Vadot pins = "GPIO217_AH12"; 104*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pu>; 105*f126890aSEmmanuel Vadot }; 106*f126890aSEmmanuel Vadot }; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot ipgpio { 109*f126890aSEmmanuel Vadot ipgpio_hrefprev60_mode: ipgpio_hrefprev60 { 110*f126890aSEmmanuel Vadot hrefprev60_mux { 111*f126890aSEmmanuel Vadot function = "ipgpio"; 112*f126890aSEmmanuel Vadot groups = "ipgpio0_c_1", "ipgpio1_c_1"; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot hrefprev60_cfg1 { 115*f126890aSEmmanuel Vadot pins = "GPIO6_AF6", "GPIO7_AG5"; 116*f126890aSEmmanuel Vadot ste,config = <&in_pu>; 117*f126890aSEmmanuel Vadot }; 118*f126890aSEmmanuel Vadot }; 119*f126890aSEmmanuel Vadot }; 120*f126890aSEmmanuel Vadot }; 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot}; 123