0001 /*
0002 * BSD LICENSE
0003 *
0004 * Copyright(c) 2016-2017 Broadcom. All rights reserved.
0005 *
0006 * Redistribution and use in source and binary forms, with or without
0007 * modification, are permitted provided that the following conditions
0008 * are met:
0009 *
0010 * * Redistributions of source code must retain the above copyright
0011 * notice, this list of conditions and the following disclaimer.
0012 * * Redistributions in binary form must reproduce the above copyright
0013 * notice, this list of conditions and the following disclaimer in
0014 * the documentation and/or other materials provided with the
0015 * distribution.
0016 * * Neither the name of Broadcom nor the names of its
0017 * contributors may be used to endorse or promote products derived
0018 * from this software without specific prior written permission.
0019 *
0020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0021 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0022 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0023 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0024 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0025 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0026 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0027 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0028 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0029 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0030 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0031 */
0032
0033 #include "stingray-board-base.dtsi"
0034
0035 / {
0036 sdio0_vddo_ctrl_reg: sdio0_vddo_ctrl {
0037 compatible = "regulator-gpio";
0038 regulator-name = "sdio0_vddo_ctrl_reg";
0039 regulator-type = "voltage";
0040 regulator-min-microvolt = <1800000>;
0041 regulator-max-microvolt = <3300000>;
0042 gpios = <&pca9505 18 0>;
0043 states = <3300000 0x0
0044 1800000 0x1>;
0045 };
0046
0047 sdio1_vddo_ctrl_reg: sdio1_vddo_ctrl {
0048 compatible = "regulator-gpio";
0049 regulator-name = "sdio1_vddo_ctrl_reg";
0050 regulator-type = "voltage";
0051 regulator-min-microvolt = <1800000>;
0052 regulator-max-microvolt = <3300000>;
0053 gpios = <&pca9505 19 0>;
0054 states = <3300000 0x0
0055 1800000 0x1>;
0056 };
0057 };
0058
0059 &pwm {
0060 status = "okay";
0061 };
0062
0063 &i2c0 {
0064 status = "okay";
0065
0066 pca9505: pca9505@20 {
0067 compatible = "nxp,pca9505";
0068 gpio-controller;
0069 #gpio-cells = <2>;
0070 reg = <0x20>;
0071 };
0072 };
0073
0074 &i2c1 {
0075 status = "okay";
0076
0077 pcf8574: pcf8574@27 {
0078 compatible = "nxp,pcf8574a";
0079 gpio-controller;
0080 #gpio-cells = <2>;
0081 reg = <0x27>;
0082 };
0083 };
0084
0085 &enet {
0086 status = "okay";
0087 };
0088
0089 &nand {
0090 status = "okay";
0091 nandcs@0 {
0092 compatible = "brcm,nandcs";
0093 reg = <0>;
0094 nand-ecc-mode = "hw";
0095 nand-ecc-strength = <8>;
0096 nand-ecc-step-size = <512>;
0097 nand-bus-width = <16>;
0098 brcm,nand-oob-sector-size = <16>;
0099 #address-cells = <1>;
0100 #size-cells = <1>;
0101 };
0102 };
0103
0104 &sdio0 {
0105 vqmmc-supply = <&sdio0_vddo_ctrl_reg>;
0106 status = "okay";
0107 };
0108
0109 &sdio1 {
0110 vqmmc-supply = <&sdio1_vddo_ctrl_reg>;
0111 status = "okay";
0112 };