1d2912cb1SThomas Gleixner// SPDX-License-Identifier: GPL-2.0-only 2842b6b16SJoshua Henderson/* 3842b6b16SJoshua Henderson * Copyright (C) 2015 Microchip Technology Inc. All rights reserved. 4842b6b16SJoshua Henderson */ 5842b6b16SJoshua Henderson 6842b6b16SJoshua Henderson/dts-v1/; 7842b6b16SJoshua Henderson 8842b6b16SJoshua Henderson#include <dt-bindings/gpio/gpio.h> 9842b6b16SJoshua Henderson#include <dt-bindings/interrupt-controller/irq.h> 10842b6b16SJoshua Henderson 11842b6b16SJoshua Henderson#include "pic32mzda.dtsi" 12842b6b16SJoshua Henderson 13842b6b16SJoshua Henderson/ { 14842b6b16SJoshua Henderson compatible = "microchip,pic32mzda-sk", "microchip,pic32mzda"; 15842b6b16SJoshua Henderson model = "Microchip PIC32MZDA Starter Kit"; 16842b6b16SJoshua Henderson 17842b6b16SJoshua Henderson memory { 18842b6b16SJoshua Henderson device_type = "memory"; 19842b6b16SJoshua Henderson reg = <0x08000000 0x08000000>; 20842b6b16SJoshua Henderson }; 21842b6b16SJoshua Henderson 22842b6b16SJoshua Henderson chosen { 23842b6b16SJoshua Henderson bootargs = "earlyprintk=ttyPIC1,115200n8r console=ttyPIC1,115200n8"; 24842b6b16SJoshua Henderson }; 25842b6b16SJoshua Henderson 26842b6b16SJoshua Henderson leds0 { 27842b6b16SJoshua Henderson compatible = "gpio-leds"; 28842b6b16SJoshua Henderson pinctrl-names = "default"; 29842b6b16SJoshua Henderson pinctrl-0 = <&user_leds_s0>; 30842b6b16SJoshua Henderson 31*09e61efdSArınç ÜNAL led-1 { 32842b6b16SJoshua Henderson label = "pic32mzda_sk:red:led1"; 33842b6b16SJoshua Henderson gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>; 34842b6b16SJoshua Henderson linux,default-trigger = "heartbeat"; 35842b6b16SJoshua Henderson }; 36842b6b16SJoshua Henderson 37*09e61efdSArınç ÜNAL led-2 { 38842b6b16SJoshua Henderson label = "pic32mzda_sk:yellow:led2"; 39842b6b16SJoshua Henderson gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; 40842b6b16SJoshua Henderson linux,default-trigger = "mmc0"; 41842b6b16SJoshua Henderson }; 42842b6b16SJoshua Henderson 43*09e61efdSArınç ÜNAL led-3 { 44842b6b16SJoshua Henderson label = "pic32mzda_sk:green:led3"; 45842b6b16SJoshua Henderson gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>; 46842b6b16SJoshua Henderson default-state = "on"; 47842b6b16SJoshua Henderson }; 48842b6b16SJoshua Henderson }; 49842b6b16SJoshua Henderson 50842b6b16SJoshua Henderson keys0 { 51842b6b16SJoshua Henderson compatible = "gpio-keys"; 52842b6b16SJoshua Henderson pinctrl-0 = <&user_buttons_s0>; 53842b6b16SJoshua Henderson pinctrl-names = "default"; 54842b6b16SJoshua Henderson 555ee46bfbSKrzysztof Kozlowski button-1 { 56842b6b16SJoshua Henderson label = "ESC"; 57842b6b16SJoshua Henderson linux,code = <1>; 58842b6b16SJoshua Henderson gpios = <&gpio1 12 0>; 59842b6b16SJoshua Henderson }; 60842b6b16SJoshua Henderson 615ee46bfbSKrzysztof Kozlowski button-2 { 62842b6b16SJoshua Henderson label = "Home"; 63842b6b16SJoshua Henderson linux,code = <102>; 64842b6b16SJoshua Henderson gpios = <&gpio1 13 0>; 65842b6b16SJoshua Henderson }; 66842b6b16SJoshua Henderson 675ee46bfbSKrzysztof Kozlowski button-3 { 68842b6b16SJoshua Henderson label = "Menu"; 69842b6b16SJoshua Henderson linux,code = <139>; 70842b6b16SJoshua Henderson gpios = <&gpio1 14 0>; 71842b6b16SJoshua Henderson }; 72842b6b16SJoshua Henderson }; 73842b6b16SJoshua Henderson}; 74842b6b16SJoshua Henderson 75842b6b16SJoshua Henderson&uart2 { 76842b6b16SJoshua Henderson pinctrl-names = "default"; 77842b6b16SJoshua Henderson pinctrl-0 = <&pinctrl_uart2>; 78842b6b16SJoshua Henderson status = "okay"; 79842b6b16SJoshua Henderson}; 80842b6b16SJoshua Henderson 81842b6b16SJoshua Henderson&uart4 { 82842b6b16SJoshua Henderson pinctrl-names = "default"; 83842b6b16SJoshua Henderson pinctrl-0 = <&pinctrl_uart4>; 84842b6b16SJoshua Henderson status = "okay"; 85842b6b16SJoshua Henderson}; 86842b6b16SJoshua Henderson 87842b6b16SJoshua Henderson&sdhci { 88842b6b16SJoshua Henderson pinctrl-names = "default"; 89842b6b16SJoshua Henderson pinctrl-0 = <&pinctrl_sdhc1>; 90842b6b16SJoshua Henderson status = "okay"; 919125f19bSPurna Chandra Mandal assigned-clocks = <&rootclk REF2CLK>, <&rootclk REF4CLK>, 929125f19bSPurna Chandra Mandal <&rootclk REF5CLK>; 93842b6b16SJoshua Henderson assigned-clock-rates = <50000000>, <25000000>, <40000000>; 94842b6b16SJoshua Henderson}; 95842b6b16SJoshua Henderson 96842b6b16SJoshua Henderson&pic32_pinctrl { 97842b6b16SJoshua Henderson 98842b6b16SJoshua Henderson pinctrl_sdhc1: sdhc1_pins0 { 99842b6b16SJoshua Henderson pins = "A6", "D4", "G13", "G12", "G14", "A7", "A0"; 100842b6b16SJoshua Henderson microchip,digital; 101842b6b16SJoshua Henderson }; 102842b6b16SJoshua Henderson 103842b6b16SJoshua Henderson user_leds_s0: user_leds_s0 { 104842b6b16SJoshua Henderson pins = "H0", "H1", "H2"; 105842b6b16SJoshua Henderson output-low; 106842b6b16SJoshua Henderson microchip,digital; 107842b6b16SJoshua Henderson }; 108842b6b16SJoshua Henderson 109842b6b16SJoshua Henderson user_buttons_s0: user_buttons_s0 { 110842b6b16SJoshua Henderson pins = "B12", "B13", "B14"; 111842b6b16SJoshua Henderson microchip,digital; 112842b6b16SJoshua Henderson input-enable; 113842b6b16SJoshua Henderson bias-pull-up; 114842b6b16SJoshua Henderson }; 115842b6b16SJoshua Henderson 116842b6b16SJoshua Henderson pinctrl_uart2: pinctrl_uart2 { 117842b6b16SJoshua Henderson uart2-tx { 118842b6b16SJoshua Henderson pins = "G9"; 119842b6b16SJoshua Henderson function = "U2TX"; 120842b6b16SJoshua Henderson microchip,digital; 121842b6b16SJoshua Henderson output-high; 122842b6b16SJoshua Henderson }; 123842b6b16SJoshua Henderson uart2-rx { 124842b6b16SJoshua Henderson pins = "B0"; 125842b6b16SJoshua Henderson function = "U2RX"; 126842b6b16SJoshua Henderson microchip,digital; 127842b6b16SJoshua Henderson input-enable; 128842b6b16SJoshua Henderson }; 129842b6b16SJoshua Henderson }; 130842b6b16SJoshua Henderson 131842b6b16SJoshua Henderson pinctrl_uart4: uart4-0 { 132842b6b16SJoshua Henderson uart4-tx { 133842b6b16SJoshua Henderson pins = "C3"; 134842b6b16SJoshua Henderson function = "U4TX"; 135842b6b16SJoshua Henderson microchip,digital; 136842b6b16SJoshua Henderson output-high; 137842b6b16SJoshua Henderson }; 138842b6b16SJoshua Henderson uart4-rx { 139842b6b16SJoshua Henderson pins = "E8"; 140842b6b16SJoshua Henderson function = "U4RX"; 141842b6b16SJoshua Henderson microchip,digital; 142842b6b16SJoshua Henderson input-enable; 143842b6b16SJoshua Henderson }; 144842b6b16SJoshua Henderson }; 145842b6b16SJoshua Henderson}; 146