xref: /freebsd/sys/contrib/device-tree/src/riscv/allwinner/sun20i-d1-devterm-v3.14.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ or MIT)
2*0e8011faSEmmanuel Vadot// Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
3*0e8011faSEmmanuel Vadot
4*0e8011faSEmmanuel Vadot#include "sun20i-d1-clockworkpi-v3.14.dts"
5*0e8011faSEmmanuel Vadot
6*0e8011faSEmmanuel Vadot/ {
7*0e8011faSEmmanuel Vadot	model = "Clockwork DevTerm (R-01)";
8*0e8011faSEmmanuel Vadot	compatible = "clockwork,r-01-devterm-v3.14",
9*0e8011faSEmmanuel Vadot		     "clockwork,r-01-clockworkpi-v3.14",
10*0e8011faSEmmanuel Vadot		     "allwinner,sun20i-d1";
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadot	fan {
13*0e8011faSEmmanuel Vadot		compatible = "gpio-fan";
14*0e8011faSEmmanuel Vadot		gpios = <&pio 3 10 GPIO_ACTIVE_HIGH>; /* PD10/GPIO41 */
15*0e8011faSEmmanuel Vadot		gpio-fan,speed-map = <0    0>,
16*0e8011faSEmmanuel Vadot				     <6000 1>;
17*0e8011faSEmmanuel Vadot		#cooling-cells = <2>;
18*0e8011faSEmmanuel Vadot	};
19*0e8011faSEmmanuel Vadot
20*0e8011faSEmmanuel Vadot	i2c-gpio-0 {
21*0e8011faSEmmanuel Vadot		compatible = "i2c-gpio";
22*0e8011faSEmmanuel Vadot		sda-gpios = <&pio 3 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PD14/GPIO44 */
23*0e8011faSEmmanuel Vadot		scl-gpios = <&pio 3 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PD15/GPIO45 */
24*0e8011faSEmmanuel Vadot		#address-cells = <1>;
25*0e8011faSEmmanuel Vadot		#size-cells = <0>;
26*0e8011faSEmmanuel Vadot
27*0e8011faSEmmanuel Vadot		adc@54 {
28*0e8011faSEmmanuel Vadot			compatible = "ti,adc101c";
29*0e8011faSEmmanuel Vadot			reg = <0x54>;
30*0e8011faSEmmanuel Vadot			interrupt-parent = <&pio>;
31*0e8011faSEmmanuel Vadot			interrupts = <4 12 IRQ_TYPE_LEVEL_LOW>; /* PE12/GPIO35 */
32*0e8011faSEmmanuel Vadot			vref-supply = <&reg_dldo2>;
33*0e8011faSEmmanuel Vadot			#io-channel-cells = <1>;
34*0e8011faSEmmanuel Vadot		};
35*0e8011faSEmmanuel Vadot	};
36*0e8011faSEmmanuel Vadot};
37