1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd 4c66ec88fSEmmanuel Vadot */ 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel Vadot/dts-v1/; 7c66ec88fSEmmanuel Vadot#include "rk3308.dtsi" 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot/ { 10c66ec88fSEmmanuel Vadot model = "Firefly ROC-RK3308-CC board"; 11c66ec88fSEmmanuel Vadot compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308"; 122eb4d8dcSEmmanuel Vadot 132eb4d8dcSEmmanuel Vadot aliases { 142eb4d8dcSEmmanuel Vadot mmc0 = &sdmmc; 152eb4d8dcSEmmanuel Vadot mmc1 = &emmc; 162eb4d8dcSEmmanuel Vadot }; 172eb4d8dcSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot chosen { 19c66ec88fSEmmanuel Vadot stdout-path = "serial2:1500000n8"; 20c66ec88fSEmmanuel Vadot }; 21c66ec88fSEmmanuel Vadot 227ef62cebSEmmanuel Vadot ir-receiver { 23c66ec88fSEmmanuel Vadot compatible = "gpio-ir-receiver"; 24c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; 25c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 26c66ec88fSEmmanuel Vadot pinctrl-0 = <&ir_recv_pin>; 27c66ec88fSEmmanuel Vadot }; 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot ir_tx { 30c66ec88fSEmmanuel Vadot compatible = "pwm-ir-tx"; 31c66ec88fSEmmanuel Vadot pwms = <&pwm5 0 25000 0>; 32c66ec88fSEmmanuel Vadot }; 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot leds { 35c66ec88fSEmmanuel Vadot compatible = "gpio-leds"; 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot power_led: led-0 { 38c66ec88fSEmmanuel Vadot label = "firefly:red:power"; 39*b2d2a78aSEmmanuel Vadot linux,default-trigger = "default-on"; 40c66ec88fSEmmanuel Vadot default-state = "on"; 41c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 42c66ec88fSEmmanuel Vadot }; 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot user_led: led-1 { 45c66ec88fSEmmanuel Vadot label = "firefly:blue:user"; 46*b2d2a78aSEmmanuel Vadot linux,default-trigger = "rc-feedback"; 47c66ec88fSEmmanuel Vadot default-state = "off"; 48c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; 49c66ec88fSEmmanuel Vadot }; 50c66ec88fSEmmanuel Vadot }; 51c66ec88fSEmmanuel Vadot 52c66ec88fSEmmanuel Vadot typec_vcc5v: typec-vcc5v { 53c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 54c66ec88fSEmmanuel Vadot regulator-name = "typec_vcc5v"; 55c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 56c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 57c66ec88fSEmmanuel Vadot regulator-always-on; 58c66ec88fSEmmanuel Vadot regulator-boot-on; 59c66ec88fSEmmanuel Vadot }; 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot vcc5v0_sys: vcc5v0-sys { 62c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 63c66ec88fSEmmanuel Vadot regulator-name = "vcc5v0_sys"; 64c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 65c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 66c66ec88fSEmmanuel Vadot regulator-always-on; 67c66ec88fSEmmanuel Vadot regulator-boot-on; 68c66ec88fSEmmanuel Vadot vin-supply = <&typec_vcc5v>; 69c66ec88fSEmmanuel Vadot }; 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot vcc_io: vcc-io { 72c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 73c66ec88fSEmmanuel Vadot regulator-name = "vcc_io"; 74c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 75c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 76c66ec88fSEmmanuel Vadot regulator-always-on; 77c66ec88fSEmmanuel Vadot regulator-boot-on; 78c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 79c66ec88fSEmmanuel Vadot }; 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot vcc_sdmmc: vcc-sdmmc { 82c66ec88fSEmmanuel Vadot compatible = "regulator-gpio"; 83c66ec88fSEmmanuel Vadot regulator-name = "vcc_sdmmc"; 84c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 85c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 86c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>; 875956d97fSEmmanuel Vadot states = <1800000 0x0>, 885956d97fSEmmanuel Vadot <3300000 0x1>; 89c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 90c66ec88fSEmmanuel Vadot }; 91c66ec88fSEmmanuel Vadot 92c66ec88fSEmmanuel Vadot vcc_sd: vcc-sd { 93c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 94c66ec88fSEmmanuel Vadot gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>; 95c66ec88fSEmmanuel Vadot regulator-name = "vcc_sd"; 96c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 97c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 98c66ec88fSEmmanuel Vadot regulator-always-on; 99c66ec88fSEmmanuel Vadot regulator-boot-on; 1008cc087a1SEmmanuel Vadot vin-supply = <&vcc_io>; 101c66ec88fSEmmanuel Vadot }; 102c66ec88fSEmmanuel Vadot 103c66ec88fSEmmanuel Vadot vdd_core: vdd-core { 104c66ec88fSEmmanuel Vadot compatible = "pwm-regulator"; 105c66ec88fSEmmanuel Vadot pwms = <&pwm0 0 5000 1>; 106c66ec88fSEmmanuel Vadot regulator-name = "vdd_core"; 107c66ec88fSEmmanuel Vadot regulator-min-microvolt = <827000>; 108c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1340000>; 109c66ec88fSEmmanuel Vadot regulator-settling-time-up-us = <250>; 110c66ec88fSEmmanuel Vadot regulator-always-on; 111c66ec88fSEmmanuel Vadot regulator-boot-on; 112c66ec88fSEmmanuel Vadot pwm-supply = <&vcc5v0_sys>; 113c66ec88fSEmmanuel Vadot }; 114c66ec88fSEmmanuel Vadot 115c66ec88fSEmmanuel Vadot vdd_log: vdd-log { 116c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 117c66ec88fSEmmanuel Vadot regulator-name = "vdd_log"; 118c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1050000>; 119c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1050000>; 120c66ec88fSEmmanuel Vadot regulator-always-on; 121c66ec88fSEmmanuel Vadot regulator-boot-on; 122c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 123c66ec88fSEmmanuel Vadot }; 124c66ec88fSEmmanuel Vadot}; 125c66ec88fSEmmanuel Vadot 126c66ec88fSEmmanuel Vadot&cpu0 { 127c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_core>; 128c66ec88fSEmmanuel Vadot}; 129c66ec88fSEmmanuel Vadot 130c66ec88fSEmmanuel Vadot&emmc { 131c66ec88fSEmmanuel Vadot cap-mmc-highspeed; 132c66ec88fSEmmanuel Vadot mmc-hs200-1_8v; 133c66ec88fSEmmanuel Vadot non-removable; 134c66ec88fSEmmanuel Vadot status = "okay"; 135c66ec88fSEmmanuel Vadot}; 136c66ec88fSEmmanuel Vadot 137c66ec88fSEmmanuel Vadot&i2c1 { 138c66ec88fSEmmanuel Vadot clock-frequency = <400000>; 139c66ec88fSEmmanuel Vadot status = "okay"; 140c66ec88fSEmmanuel Vadot 141c66ec88fSEmmanuel Vadot rtc: rtc@51 { 142c66ec88fSEmmanuel Vadot compatible = "nxp,pcf8563"; 143c66ec88fSEmmanuel Vadot reg = <0x51>; 144c66ec88fSEmmanuel Vadot #clock-cells = <0>; 145c66ec88fSEmmanuel Vadot }; 146c66ec88fSEmmanuel Vadot}; 147c66ec88fSEmmanuel Vadot 148c66ec88fSEmmanuel Vadot&pwm5 { 149c66ec88fSEmmanuel Vadot status = "okay"; 150c66ec88fSEmmanuel Vadot pinctrl-names = "active"; 151c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm5_pin_pull_down>; 152c66ec88fSEmmanuel Vadot}; 153c66ec88fSEmmanuel Vadot 154c66ec88fSEmmanuel Vadot&pinctrl { 155c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 156c66ec88fSEmmanuel Vadot pinctrl-0 = <&rtc_32k>; 157c66ec88fSEmmanuel Vadot 158c66ec88fSEmmanuel Vadot ir-receiver { 159c66ec88fSEmmanuel Vadot ir_recv_pin: ir-recv-pin { 160c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 161c66ec88fSEmmanuel Vadot }; 162c66ec88fSEmmanuel Vadot }; 163c66ec88fSEmmanuel Vadot 164c66ec88fSEmmanuel Vadot buttons { 165c66ec88fSEmmanuel Vadot pwr_key: pwr-key { 166c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 167c66ec88fSEmmanuel Vadot }; 168c66ec88fSEmmanuel Vadot }; 169c66ec88fSEmmanuel Vadot}; 170c66ec88fSEmmanuel Vadot 171c66ec88fSEmmanuel Vadot&pwm0 { 172c66ec88fSEmmanuel Vadot status = "okay"; 173c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm0_pin_pull_down>; 174c66ec88fSEmmanuel Vadot}; 175c66ec88fSEmmanuel Vadot 176c66ec88fSEmmanuel Vadot&sdmmc { 177c66ec88fSEmmanuel Vadot cap-mmc-highspeed; 178c66ec88fSEmmanuel Vadot cap-sd-highspeed; 179c66ec88fSEmmanuel Vadot card-detect-delay = <300>; 180c66ec88fSEmmanuel Vadot sd-uhs-sdr25; 181c66ec88fSEmmanuel Vadot sd-uhs-sdr50; 182c66ec88fSEmmanuel Vadot sd-uhs-sdr104; 183c66ec88fSEmmanuel Vadot vmmc-supply = <&vcc_sd>; 184c66ec88fSEmmanuel Vadot vqmmc-supply = <&vcc_sdmmc>; 185c66ec88fSEmmanuel Vadot status = "okay"; 186c66ec88fSEmmanuel Vadot}; 187c66ec88fSEmmanuel Vadot 188c66ec88fSEmmanuel Vadot&uart2 { 189c66ec88fSEmmanuel Vadot status = "okay"; 190c66ec88fSEmmanuel Vadot}; 191