xref: /freebsd-src/sys/contrib/device-tree/src/arm64/broadcom/stingray/bcm958742-base.dtsi (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel Vadot/*
2c66ec88fSEmmanuel Vadot *  BSD LICENSE
3c66ec88fSEmmanuel Vadot *
4c66ec88fSEmmanuel Vadot *  Copyright(c) 2016-2017 Broadcom.  All rights reserved.
5c66ec88fSEmmanuel Vadot *
6c66ec88fSEmmanuel Vadot *  Redistribution and use in source and binary forms, with or without
7c66ec88fSEmmanuel Vadot *  modification, are permitted provided that the following conditions
8c66ec88fSEmmanuel Vadot *  are met:
9c66ec88fSEmmanuel Vadot *
10c66ec88fSEmmanuel Vadot *    * Redistributions of source code must retain the above copyright
11c66ec88fSEmmanuel Vadot *      notice, this list of conditions and the following disclaimer.
12c66ec88fSEmmanuel Vadot *    * Redistributions in binary form must reproduce the above copyright
13c66ec88fSEmmanuel Vadot *      notice, this list of conditions and the following disclaimer in
14c66ec88fSEmmanuel Vadot *      the documentation and/or other materials provided with the
15c66ec88fSEmmanuel Vadot *      distribution.
16c66ec88fSEmmanuel Vadot *    * Neither the name of Broadcom nor the names of its
17c66ec88fSEmmanuel Vadot *      contributors may be used to endorse or promote products derived
18c66ec88fSEmmanuel Vadot *      from this software without specific prior written permission.
19c66ec88fSEmmanuel Vadot *
20c66ec88fSEmmanuel Vadot *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21c66ec88fSEmmanuel Vadot *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22c66ec88fSEmmanuel Vadot *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23c66ec88fSEmmanuel Vadot *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24c66ec88fSEmmanuel Vadot *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25c66ec88fSEmmanuel Vadot *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26c66ec88fSEmmanuel Vadot *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27c66ec88fSEmmanuel Vadot *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28c66ec88fSEmmanuel Vadot *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29c66ec88fSEmmanuel Vadot *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30c66ec88fSEmmanuel Vadot *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31c66ec88fSEmmanuel Vadot */
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot#include "stingray-board-base.dtsi"
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot/ {
36c66ec88fSEmmanuel Vadot	sdio0_vddo_ctrl_reg: sdio0_vddo_ctrl {
37c66ec88fSEmmanuel Vadot		compatible = "regulator-gpio";
38c66ec88fSEmmanuel Vadot		regulator-name = "sdio0_vddo_ctrl_reg";
39c66ec88fSEmmanuel Vadot		regulator-type = "voltage";
40c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
41c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
42c66ec88fSEmmanuel Vadot		gpios = <&pca9505 18 0>;
43c66ec88fSEmmanuel Vadot		states = <3300000 0x0
44c66ec88fSEmmanuel Vadot			  1800000 0x1>;
45c66ec88fSEmmanuel Vadot	};
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot	sdio1_vddo_ctrl_reg: sdio1_vddo_ctrl {
48c66ec88fSEmmanuel Vadot		compatible = "regulator-gpio";
49c66ec88fSEmmanuel Vadot		regulator-name = "sdio1_vddo_ctrl_reg";
50c66ec88fSEmmanuel Vadot		regulator-type = "voltage";
51c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
52c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
53c66ec88fSEmmanuel Vadot		gpios = <&pca9505 19 0>;
54c66ec88fSEmmanuel Vadot		states = <3300000 0x0
55c66ec88fSEmmanuel Vadot			  1800000 0x1>;
56c66ec88fSEmmanuel Vadot	};
57c66ec88fSEmmanuel Vadot};
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadot&pwm {
60c66ec88fSEmmanuel Vadot	status = "okay";
61c66ec88fSEmmanuel Vadot};
62c66ec88fSEmmanuel Vadot
63c66ec88fSEmmanuel Vadot&i2c0 {
64c66ec88fSEmmanuel Vadot	status = "okay";
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadot	pca9505: pca9505@20 {
67c66ec88fSEmmanuel Vadot		compatible = "nxp,pca9505";
68c66ec88fSEmmanuel Vadot		gpio-controller;
69c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
70c66ec88fSEmmanuel Vadot		reg = <0x20>;
71c66ec88fSEmmanuel Vadot	};
72c66ec88fSEmmanuel Vadot};
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot&i2c1 {
75c66ec88fSEmmanuel Vadot	status = "okay";
76c66ec88fSEmmanuel Vadot
77c66ec88fSEmmanuel Vadot	pcf8574: pcf8574@27 {
78c66ec88fSEmmanuel Vadot		compatible = "nxp,pcf8574a";
79c66ec88fSEmmanuel Vadot		gpio-controller;
80c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
81c66ec88fSEmmanuel Vadot		reg = <0x27>;
82c66ec88fSEmmanuel Vadot	};
83c66ec88fSEmmanuel Vadot};
84c66ec88fSEmmanuel Vadot
85c66ec88fSEmmanuel Vadot&enet {
86c66ec88fSEmmanuel Vadot	status = "okay";
87c66ec88fSEmmanuel Vadot};
88c66ec88fSEmmanuel Vadot
89c66ec88fSEmmanuel Vadot&nand {
90*6be33864SEmmanuel Vadot	status = "okay";
91c66ec88fSEmmanuel Vadot	nandcs@0 {
92c66ec88fSEmmanuel Vadot		compatible = "brcm,nandcs";
93c66ec88fSEmmanuel Vadot		reg = <0>;
94c66ec88fSEmmanuel Vadot		nand-ecc-mode = "hw";
95c66ec88fSEmmanuel Vadot		nand-ecc-strength = <8>;
96c66ec88fSEmmanuel Vadot		nand-ecc-step-size = <512>;
97c66ec88fSEmmanuel Vadot		nand-bus-width = <16>;
98c66ec88fSEmmanuel Vadot		brcm,nand-oob-sector-size = <16>;
99c66ec88fSEmmanuel Vadot		#address-cells = <1>;
100c66ec88fSEmmanuel Vadot		#size-cells = <1>;
101c66ec88fSEmmanuel Vadot	};
102c66ec88fSEmmanuel Vadot};
103c66ec88fSEmmanuel Vadot
104c66ec88fSEmmanuel Vadot&sdio0 {
105c66ec88fSEmmanuel Vadot	vqmmc-supply = <&sdio0_vddo_ctrl_reg>;
106c66ec88fSEmmanuel Vadot	status = "okay";
107c66ec88fSEmmanuel Vadot};
108c66ec88fSEmmanuel Vadot
109c66ec88fSEmmanuel Vadot&sdio1 {
110c66ec88fSEmmanuel Vadot	vqmmc-supply = <&sdio1_vddo_ctrl_reg>;
111c66ec88fSEmmanuel Vadot	status = "okay";
112c66ec88fSEmmanuel Vadot};
113