blob: 2625f81c8b63b44162b5756960bf8091f8cc8e5f [file] [log] [blame]
Greg Gallagher77450772021-01-21 11:55:34 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * at91-sama5d27_giantboard.dts - Device Tree file for Giant Board
4 *
5 * Copyright (C) 2020 Greg Gallagher <greg@embeddedgreg.com>
6 *
7 * Derived from at91-sama5d27_som1_ek.dts
8 *
9 * Copyright (C) 2017 Microchip Corporation
10 * Wenyou Yang <wenyou.yang@microchip.com>
11 */
12/dts-v1/;
13#include "sama5d2.dtsi"
14#include "sama5d2-pinfunc.h"
15
16/ {
17 model = "Giant Board";
18 compatible = "atmel,sama5d27-giantboard", "atmel,sama5d2", "atmel,sama5";
19
20 memory {
21 reg = <0x20000000 0x8000000>;
22 };
23
24 chosen {
25 u-boot,dm-pre-reloc;
26 stdout-path = &uart1;
27 };
28
29 ahb {
30 sdmmc1: sdio-host@b0000000 {
31 bus-width = <4>;
32 pinctrl-names = "default";
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030033 pinctrl-0 = <&pinctrl_sdmmc1_default>;
Greg Gallagher77450772021-01-21 11:55:34 -050034 status = "okay";
35 u-boot,dm-pre-reloc;
36 };
37
38 apb {
39
40 uart1: serial@f8020000 {
41 pinctrl-names = "default";
42 pinctrl-0 = <&pinctrl_uart1_default>;
43 status = "okay";
44 u-boot,dm-pre-reloc;
45 };
46
47 i2c0: i2c@f8028000 {
48 pinctrl-names = "default";
49 pinctrl-0 = <&pinctrl_i2c0_default>;
50 status = "okay";
51 };
52
53 i2c1: i2c@fc028000 {
54 pinctrl-names = "default";
55 pinctrl-0 = <&pinctrl_i2c1_default>;
56 status = "okay";
57
58 pmic@5b {
59 compatible = "active-semi,act8945a";
60 reg = <0x5b>;
61 active-semi,vsel-low;
62 status = "okay";
63 };
64 };
65
66 pit: timer@f8048030 {
67 status = "okay";
68 u-boot,dm-pre-reloc;
69 };
70
71 sfr: sfr@f8030000 {
72 status = "okay";
73 u-boot,dm-pre-reloc;
74 };
75
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030076 pioA: pinctrl@fc038000 {
77 pinctrl_sdmmc1_default: sdmmc1_default {
78 cmd_data {
Greg Gallagher77450772021-01-21 11:55:34 -050079 pinmux = <PIN_PA28__SDMMC1_CMD>,
80 <PIN_PA18__SDMMC1_DAT0>,
81 <PIN_PA19__SDMMC1_DAT1>,
82 <PIN_PA20__SDMMC1_DAT2>,
83 <PIN_PA21__SDMMC1_DAT3>;
84 bias-pull-up;
85 u-boot,dm-pre-reloc;
86 };
87
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030088 ck_cd {
Greg Gallagher77450772021-01-21 11:55:34 -050089 pinmux = <PIN_PA22__SDMMC1_CK>,
90 <PIN_PA30__SDMMC1_CD>;
91 bias-disable;
92 u-boot,dm-pre-reloc;
93 };
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030094 };
Greg Gallagher77450772021-01-21 11:55:34 -050095
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030096 pinctrl_uart1_default: uart1_default {
97 pinmux = <PIN_PD2__URXD1>,
98 <PIN_PD3__UTXD1>;
99 bias-disable;
100 u-boot,dm-pre-reloc;
101 };
Greg Gallagher77450772021-01-21 11:55:34 -0500102
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300103 pinctrl_i2c0_default: i2c0_default {
104 pinmux = <PIN_PD21__TWD0>,
105 <PIN_PD22__TWCK0>;
106 bias-disable;
107 };
Greg Gallagher77450772021-01-21 11:55:34 -0500108
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300109 pinctrl_i2c1_default: i2c1_default {
110 pinmux = <PIN_PD4__TWD1>,
111 <PIN_PD5__TWCK1>;
112 bias-disable;
113 };
Greg Gallagher77450772021-01-21 11:55:34 -0500114
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300115 pinctrl_usb_default: usb_default {
116 pinmux = <PIN_PB10__GPIO>;
117 bias-disable;
118 };
Greg Gallagher77450772021-01-21 11:55:34 -0500119
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300120 pinctrl_usba_vbus: usba_vbus {
121 pinmux = <PIN_PA31__GPIO>;
122 bias-disable;
Greg Gallagher77450772021-01-21 11:55:34 -0500123 };
124 };
125 };
126 };
127};