xref: /openbmc/u-boot/arch/arm/dts/sun8i-a23-evb.dts (revision 592cd5de)
18b1ba941SHans de Goede/*
28b1ba941SHans de Goede * Copyright 2015 Maxime Ripard
38b1ba941SHans de Goede *
48b1ba941SHans de Goede * Maxime Ripard <maxime.ripard@free-electrons.com>
58b1ba941SHans de Goede *
68b1ba941SHans de Goede * This file is dual-licensed: you can use it either under the terms
78b1ba941SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual
88b1ba941SHans de Goede * licensing only applies to this file, and not this project as a
98b1ba941SHans de Goede * whole.
108b1ba941SHans de Goede *
118b1ba941SHans de Goede *  a) This file is free software; you can redistribute it and/or
128b1ba941SHans de Goede *     modify it under the terms of the GNU General Public License as
138b1ba941SHans de Goede *     published by the Free Software Foundation; either version 2 of the
148b1ba941SHans de Goede *     License, or (at your option) any later version.
158b1ba941SHans de Goede *
168b1ba941SHans de Goede *     This file is distributed in the hope that it will be useful,
178b1ba941SHans de Goede *     but WITHOUT ANY WARRANTY; without even the implied warranty of
188b1ba941SHans de Goede *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
198b1ba941SHans de Goede *     GNU General Public License for more details.
208b1ba941SHans de Goede *
218b1ba941SHans de Goede * Or, alternatively,
228b1ba941SHans de Goede *
238b1ba941SHans de Goede *  b) Permission is hereby granted, free of charge, to any person
248b1ba941SHans de Goede *     obtaining a copy of this software and associated documentation
258b1ba941SHans de Goede *     files (the "Software"), to deal in the Software without
268b1ba941SHans de Goede *     restriction, including without limitation the rights to use,
278b1ba941SHans de Goede *     copy, modify, merge, publish, distribute, sublicense, and/or
288b1ba941SHans de Goede *     sell copies of the Software, and to permit persons to whom the
298b1ba941SHans de Goede *     Software is furnished to do so, subject to the following
308b1ba941SHans de Goede *     conditions:
318b1ba941SHans de Goede *
328b1ba941SHans de Goede *     The above copyright notice and this permission notice shall be
338b1ba941SHans de Goede *     included in all copies or substantial portions of the Software.
348b1ba941SHans de Goede *
358b1ba941SHans de Goede *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
368b1ba941SHans de Goede *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
378b1ba941SHans de Goede *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
388b1ba941SHans de Goede *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
398b1ba941SHans de Goede *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
408b1ba941SHans de Goede *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
418b1ba941SHans de Goede *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
428b1ba941SHans de Goede *     OTHER DEALINGS IN THE SOFTWARE.
438b1ba941SHans de Goede */
448b1ba941SHans de Goede
458b1ba941SHans de Goede/dts-v1/;
468b1ba941SHans de Goede#include "sun8i-a23.dtsi"
478b1ba941SHans de Goede#include "sunxi-common-regulators.dtsi"
488b1ba941SHans de Goede
498b1ba941SHans de Goede#include <dt-bindings/gpio/gpio.h>
508b1ba941SHans de Goede#include <dt-bindings/input/input.h>
518b1ba941SHans de Goede
528b1ba941SHans de Goede/ {
538b1ba941SHans de Goede	model = "Allwinner A23 Evaluation Board";
548b1ba941SHans de Goede	compatible = "allwinner,sun8i-a23-evb", "allwinner,sun8i-a23";
558b1ba941SHans de Goede
568b1ba941SHans de Goede	aliases {
578b1ba941SHans de Goede		i2c0 = &i2c0;
588b1ba941SHans de Goede		i2c1 = &i2c1;
598b1ba941SHans de Goede		serial0 = &r_uart;
608b1ba941SHans de Goede	};
618b1ba941SHans de Goede
628b1ba941SHans de Goede	chosen {
638b1ba941SHans de Goede		stdout-path = "serial0:115200n8";
648b1ba941SHans de Goede	};
658b1ba941SHans de Goede};
668b1ba941SHans de Goede
678b1ba941SHans de Goede&i2c0 {
688b1ba941SHans de Goede	pinctrl-names = "default";
698b1ba941SHans de Goede	pinctrl-0 = <&i2c0_pins_a>;
708b1ba941SHans de Goede	status = "okay";
718b1ba941SHans de Goede};
728b1ba941SHans de Goede
738b1ba941SHans de Goede&i2c1 {
748b1ba941SHans de Goede	pinctrl-names = "default";
758b1ba941SHans de Goede	pinctrl-0 = <&i2c1_pins_a>;
768b1ba941SHans de Goede	status = "okay";
778b1ba941SHans de Goede};
788b1ba941SHans de Goede
798b1ba941SHans de Goede&lradc {
808b1ba941SHans de Goede	vref-supply = <&reg_vcc3v0>;
818b1ba941SHans de Goede	status = "okay";
828b1ba941SHans de Goede
838b1ba941SHans de Goede	button@190 {
848b1ba941SHans de Goede		label = "Volume Up";
858b1ba941SHans de Goede		linux,code = <KEY_VOLUMEUP>;
868b1ba941SHans de Goede		channel = <0>;
878b1ba941SHans de Goede		voltage = <190000>;
888b1ba941SHans de Goede	};
898b1ba941SHans de Goede
908b1ba941SHans de Goede	button@390 {
918b1ba941SHans de Goede		label = "Volume Down";
928b1ba941SHans de Goede		linux,code = <KEY_VOLUMEDOWN>;
938b1ba941SHans de Goede		channel = <0>;
948b1ba941SHans de Goede		voltage = <390000>;
958b1ba941SHans de Goede	};
968b1ba941SHans de Goede
978b1ba941SHans de Goede	button@600 {
988b1ba941SHans de Goede		label = "Home";
998b1ba941SHans de Goede		linux,code = <KEY_HOME>;
1008b1ba941SHans de Goede		channel = <0>;
1018b1ba941SHans de Goede		voltage = <600000>;
1028b1ba941SHans de Goede	};
1038b1ba941SHans de Goede};
1048b1ba941SHans de Goede
1058b1ba941SHans de Goede&mmc0 {
1068b1ba941SHans de Goede	pinctrl-names = "default";
1078b1ba941SHans de Goede	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_evb>;
1088b1ba941SHans de Goede	vmmc-supply = <&reg_vcc3v0>;
1098b1ba941SHans de Goede	bus-width = <4>;
110*9ad93c0cSJagan Teki	cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
1118b1ba941SHans de Goede	status = "okay";
1128b1ba941SHans de Goede};
1138b1ba941SHans de Goede
1148b1ba941SHans de Goede&pio {
1158b1ba941SHans de Goede	mmc0_cd_pin_evb: mmc0_cd_pin@0 {
116*9ad93c0cSJagan Teki		pins = "PB4";
117*9ad93c0cSJagan Teki		function = "gpio_in";
118*9ad93c0cSJagan Teki		bias-pull-up;
1198b1ba941SHans de Goede	};
1208b1ba941SHans de Goede};
1218b1ba941SHans de Goede
1228b1ba941SHans de Goede/*
1238b1ba941SHans de Goede * The RX line has a non-populated resistance. In order to use it, you
1248b1ba941SHans de Goede * need to solder R207 on the back of the board in order to close the
1258b1ba941SHans de Goede * line and get a working UART.
1268b1ba941SHans de Goede */
1278b1ba941SHans de Goede&r_uart {
1288b1ba941SHans de Goede	pinctrl-names = "default";
1298b1ba941SHans de Goede	pinctrl-0 = <&r_uart_pins_a>;
1308b1ba941SHans de Goede	status = "okay";
1318b1ba941SHans de Goede};
132