/* * Copyright (c) 2023 TOKITA Hiroshi * * SPDX-License-Identifier: Apache-2.0 */ #include "arduino_uno_r4_minima-pinctrl.dtsi" #include #include #include / { model = "Arduino Uno R4 Minima"; leds { compatible = "gpio-leds"; led: led { gpios = <&arduino_header ARDUINO_HEADER_R3_D13 GPIO_ACTIVE_HIGH>; }; }; pwm_leds { compatible = "pwm-leds"; status = "disabled"; pwm_led: pwm_led { pwms = <&arduino_pwm ARDUINO_HEADER_R3_D13 PWM_MSEC(1) PWM_POLARITY_NORMAL>; label = "PWM_LED"; }; }; aliases { led0 = &led; pwm-led0 = &pwm_led; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = , , , , , , , , , , , , , , , , , , , , , ; }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = , /* P009 = CH09 */ , /* P000 = CH00 */ , /* P001 = CH01 */ , /* P002 = CH02 */ , /* P101 = CH21 */ ; /* P100 = CH22 */ }; arduino_pwm: connector-pwm { compatible = "arduino-header-pwm"; #pwm-cells = <3>; pwm-map = , /* P105 = GPT1_A */ , /* P104 = GPT1_B */ , /* P103 = GPT2 A */ , /* P102 = GPT2_B */ , /* P106 = GPT0_B */ , /* P107 = GPT0_A */ , /* P304 = GPT7_A */ , /* P303 = GPT7_B */ , /* P112 = GPT3_B */ ; /* P111 = GPT3_A */ pwm-map-mask = <0xffffffff 0x0 0x0>; pwm-map-pass-thru = <0x0 0xffffffff 0xffffffff>; }; }; &spi1 { pinctrl-0 = <&spi1_default>; pinctrl-names = "default"; interrupts = <28 1>, <29 1>, <30 1>, <31 1>; interrupt-names = "rxi", "txi", "tei", "eri"; status = "okay"; }; arduino_i2c: &iic1 {}; arduino_spi: &spi1 {};