1d4b4aba6SAnup Patel/* 2d4b4aba6SAnup Patel * BSD LICENSE 3d4b4aba6SAnup Patel * 4d4b4aba6SAnup Patel * Copyright(c) 2016-2017 Broadcom. All rights reserved. 5d4b4aba6SAnup Patel * 6d4b4aba6SAnup Patel * Redistribution and use in source and binary forms, with or without 7d4b4aba6SAnup Patel * modification, are permitted provided that the following conditions 8d4b4aba6SAnup Patel * are met: 9d4b4aba6SAnup Patel * 10d4b4aba6SAnup Patel * * Redistributions of source code must retain the above copyright 11d4b4aba6SAnup Patel * notice, this list of conditions and the following disclaimer. 12d4b4aba6SAnup Patel * * Redistributions in binary form must reproduce the above copyright 13d4b4aba6SAnup Patel * notice, this list of conditions and the following disclaimer in 14d4b4aba6SAnup Patel * the documentation and/or other materials provided with the 15d4b4aba6SAnup Patel * distribution. 16d4b4aba6SAnup Patel * * Neither the name of Broadcom nor the names of its 17d4b4aba6SAnup Patel * contributors may be used to endorse or promote products derived 18d4b4aba6SAnup Patel * from this software without specific prior written permission. 19d4b4aba6SAnup Patel * 20d4b4aba6SAnup Patel * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21d4b4aba6SAnup Patel * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22d4b4aba6SAnup Patel * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23d4b4aba6SAnup Patel * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24d4b4aba6SAnup Patel * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25d4b4aba6SAnup Patel * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26d4b4aba6SAnup Patel * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27d4b4aba6SAnup Patel * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28d4b4aba6SAnup Patel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29d4b4aba6SAnup Patel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30d4b4aba6SAnup Patel * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31d4b4aba6SAnup Patel */ 32d4b4aba6SAnup Patel 3322f969f3SScott Branden#include "stingray-board-base.dtsi" 34d4b4aba6SAnup Patel 35d4b4aba6SAnup Patel/ { 36552df263SSrinath Mannam sdio0_vddo_ctrl_reg: sdio0_vddo_ctrl { 37552df263SSrinath Mannam compatible = "regulator-gpio"; 38552df263SSrinath Mannam regulator-name = "sdio0_vddo_ctrl_reg"; 39552df263SSrinath Mannam regulator-type = "voltage"; 40552df263SSrinath Mannam regulator-min-microvolt = <1800000>; 41552df263SSrinath Mannam regulator-max-microvolt = <3300000>; 42552df263SSrinath Mannam gpios = <&pca9505 18 0>; 43552df263SSrinath Mannam states = <3300000 0x0 44552df263SSrinath Mannam 1800000 0x1>; 45552df263SSrinath Mannam }; 46552df263SSrinath Mannam 47552df263SSrinath Mannam sdio1_vddo_ctrl_reg: sdio1_vddo_ctrl { 48552df263SSrinath Mannam compatible = "regulator-gpio"; 49552df263SSrinath Mannam regulator-name = "sdio1_vddo_ctrl_reg"; 50552df263SSrinath Mannam regulator-type = "voltage"; 51552df263SSrinath Mannam regulator-min-microvolt = <1800000>; 52552df263SSrinath Mannam regulator-max-microvolt = <3300000>; 53552df263SSrinath Mannam gpios = <&pca9505 19 0>; 54552df263SSrinath Mannam states = <3300000 0x0 55552df263SSrinath Mannam 1800000 0x1>; 56552df263SSrinath Mannam }; 57d4b4aba6SAnup Patel}; 58d4b4aba6SAnup Patel 59552df263SSrinath Mannam&pwm { 60552df263SSrinath Mannam status = "okay"; 61552df263SSrinath Mannam}; 62552df263SSrinath Mannam 631256ea18SOza Pawandeep&i2c0 { 641256ea18SOza Pawandeep status = "okay"; 651256ea18SOza Pawandeep 661256ea18SOza Pawandeep pca9505: pca9505@20 { 671256ea18SOza Pawandeep compatible = "nxp,pca9505"; 681256ea18SOza Pawandeep gpio-controller; 691256ea18SOza Pawandeep #gpio-cells = <2>; 701256ea18SOza Pawandeep reg = <0x20>; 711256ea18SOza Pawandeep }; 721256ea18SOza Pawandeep}; 731256ea18SOza Pawandeep 741256ea18SOza Pawandeep&i2c1 { 751256ea18SOza Pawandeep status = "okay"; 761256ea18SOza Pawandeep 777cdbe45dSRob Herring pcf8574: pcf8574@27 { 781256ea18SOza Pawandeep compatible = "nxp,pcf8574a"; 791256ea18SOza Pawandeep gpio-controller; 801256ea18SOza Pawandeep #gpio-cells = <2>; 811256ea18SOza Pawandeep reg = <0x27>; 821256ea18SOza Pawandeep }; 831256ea18SOza Pawandeep}; 841256ea18SOza Pawandeep 8580e2cbc1SAbhishek Shah&enet { 8680e2cbc1SAbhishek Shah status = "okay"; 8780e2cbc1SAbhishek Shah}; 8880e2cbc1SAbhishek Shah 890f67ae37SPramod Kumar&nand { 90*ed23822eSAdrian Schmutzler status = "okay"; 910f67ae37SPramod Kumar nandcs@0 { 920f67ae37SPramod Kumar compatible = "brcm,nandcs"; 930f67ae37SPramod Kumar reg = <0>; 940f67ae37SPramod Kumar nand-ecc-mode = "hw"; 950f67ae37SPramod Kumar nand-ecc-strength = <8>; 960f67ae37SPramod Kumar nand-ecc-step-size = <512>; 970f67ae37SPramod Kumar nand-bus-width = <16>; 980f67ae37SPramod Kumar brcm,nand-oob-sector-size = <16>; 990f67ae37SPramod Kumar #address-cells = <1>; 1000f67ae37SPramod Kumar #size-cells = <1>; 1010f67ae37SPramod Kumar }; 1020f67ae37SPramod Kumar}; 103552df263SSrinath Mannam 104552df263SSrinath Mannam&sdio0 { 105552df263SSrinath Mannam vqmmc-supply = <&sdio0_vddo_ctrl_reg>; 106552df263SSrinath Mannam status = "okay"; 107552df263SSrinath Mannam}; 108552df263SSrinath Mannam 109552df263SSrinath Mannam&sdio1 { 110552df263SSrinath Mannam vqmmc-supply = <&sdio1_vddo_ctrl_reg>; 111552df263SSrinath Mannam status = "okay"; 112552df263SSrinath Mannam}; 113