mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
135 lines
2.1 KiB
Plaintext
135 lines
2.1 KiB
Plaintext
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||
|
/*
|
||
|
* Roseapple Pi
|
||
|
*
|
||
|
* Copyright (C) 2020 Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
|
||
|
*/
|
||
|
|
||
|
/dts-v1/;
|
||
|
|
||
|
#include "owl-s500.dtsi"
|
||
|
|
||
|
/ {
|
||
|
compatible = "roseapplepi,roseapplepi", "actions,s500";
|
||
|
model = "Roseapple Pi";
|
||
|
|
||
|
aliases {
|
||
|
mmc0 = &mmc0;
|
||
|
serial2 = &uart2;
|
||
|
};
|
||
|
|
||
|
chosen {
|
||
|
stdout-path = "serial2:115200n8";
|
||
|
};
|
||
|
|
||
|
memory@0 {
|
||
|
device_type = "memory";
|
||
|
reg = <0x0 0x80000000>; /* 2GB */
|
||
|
};
|
||
|
|
||
|
/* Fixed regulator used in the absence of PMIC */
|
||
|
sd_vcc: sd-vcc {
|
||
|
compatible = "regulator-fixed";
|
||
|
regulator-name = "fixed-3.1V";
|
||
|
regulator-min-microvolt = <3100000>;
|
||
|
regulator-max-microvolt = <3100000>;
|
||
|
regulator-always-on;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&i2c0 {
|
||
|
status = "okay";
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&i2c0_pins>;
|
||
|
};
|
||
|
|
||
|
&i2c1 {
|
||
|
status = "disabled";
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&i2c1_pins>;
|
||
|
};
|
||
|
|
||
|
&i2c2 {
|
||
|
status = "disabled";
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&i2c2_pins>;
|
||
|
};
|
||
|
|
||
|
&pinctrl {
|
||
|
i2c0_pins: i2c0-pins {
|
||
|
pinmux {
|
||
|
groups = "i2c0_mfp";
|
||
|
function = "i2c0";
|
||
|
};
|
||
|
|
||
|
pinconf {
|
||
|
pins = "i2c0_sclk", "i2c0_sdata";
|
||
|
bias-pull-up;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
i2c1_pins: i2c1-pins {
|
||
|
pinconf {
|
||
|
pins = "i2c1_sclk", "i2c1_sdata";
|
||
|
bias-pull-up;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
i2c2_pins: i2c2-pins {
|
||
|
pinconf {
|
||
|
pins = "i2c2_sclk", "i2c2_sdata";
|
||
|
bias-pull-up;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
mmc0_pins: mmc0-pins {
|
||
|
pinmux {
|
||
|
groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp",
|
||
|
"sd0_cmd_mfp", "sd0_clk_mfp";
|
||
|
function = "sd0";
|
||
|
};
|
||
|
|
||
|
drv-pinconf {
|
||
|
groups = "sd0_d0_d3_drv", "sd0_cmd_drv", "sd0_clk_drv";
|
||
|
drive-strength = <8>;
|
||
|
};
|
||
|
|
||
|
bias0-pinconf {
|
||
|
pins = "sd0_d0", "sd0_d1", "sd0_d2",
|
||
|
"sd0_d3", "sd0_cmd";
|
||
|
bias-pull-up;
|
||
|
};
|
||
|
|
||
|
bias1-pinconf {
|
||
|
pins = "sd0_clk";
|
||
|
bias-pull-down;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
/* uSD */
|
||
|
&mmc0 {
|
||
|
status = "okay";
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&mmc0_pins>;
|
||
|
no-sdio;
|
||
|
no-mmc;
|
||
|
no-1-8-v;
|
||
|
cd-gpios = <&pinctrl 117 GPIO_ACTIVE_LOW>;
|
||
|
bus-width = <4>;
|
||
|
vmmc-supply = <&sd_vcc>;
|
||
|
vqmmc-supply = <&sd_vcc>;
|
||
|
};
|
||
|
|
||
|
&twd_timer {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&timer {
|
||
|
clocks = <&hosc>;
|
||
|
};
|
||
|
|
||
|
&uart2 {
|
||
|
status = "okay";
|
||
|
};
|