blob: e81ca60ca0a713dfff5574b162e267bee73563b1 [file] [log] [blame]
Greg Gallagher91198002021-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";
33 pinctrl-0 = <&pinctrl_sdmmc1_cmd_dat_default &pinctrl_sdmmc1_ck_cd_default>;
34 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
76 pioA: gpio@fc038000 {
77 pinctrl {
78
79 pinctrl_sdmmc1_cmd_dat_default: sdmmc1_cmd_dat_default {
80 pinmux = <PIN_PA28__SDMMC1_CMD>,
81 <PIN_PA18__SDMMC1_DAT0>,
82 <PIN_PA19__SDMMC1_DAT1>,
83 <PIN_PA20__SDMMC1_DAT2>,
84 <PIN_PA21__SDMMC1_DAT3>;
85 bias-pull-up;
86 u-boot,dm-pre-reloc;
87 };
88
89 pinctrl_sdmmc1_ck_cd_default: sdmmc1_ck_cd_default {
90 pinmux = <PIN_PA22__SDMMC1_CK>,
91 <PIN_PA30__SDMMC1_CD>;
92 bias-disable;
93 u-boot,dm-pre-reloc;
94 };
95
96 pinctrl_uart1_default: uart1_default {
97 pinmux = <PIN_PD2__URXD1>,
98 <PIN_PD3__UTXD1>;
99 bias-disable;
100 u-boot,dm-pre-reloc;
101 };
102
103 pinctrl_i2c0_default: i2c0_default {
104 pinmux = <PIN_PD21__TWD0>,
105 <PIN_PD22__TWCK0>;
106 bias-disable;
107 };
108
109 pinctrl_i2c1_default: i2c1_default {
110 pinmux = <PIN_PD4__TWD1>,
111 <PIN_PD5__TWCK1>;
112 bias-disable;
113 };
114
115 pinctrl_usb_default: usb_default {
116 pinmux = <PIN_PB10__GPIO>;
117 bias-disable;
118 };
119
120 pinctrl_usba_vbus: usba_vbus {
121 pinmux = <PIN_PA31__GPIO>;
122 bias-disable;
123 };
124 };
125 };
126 };
127 };
128};