File Index
Files and directories
Sign in
FILE

jh7110-milkv-marscm.dtsi

File preview with syntax highlighting.

linux-6.19.14/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi DEVICETREE
  1// SPDX-License-Identifier: GPL-2.0 OR MIT
  2/*
  3 * Copyright (C) 2025 E Shattow <e@freeshell.de>
  4 */
  5
  6/dts-v1/;
  7#include <dt-bindings/interrupt-controller/irq.h>
  8#include "jh7110-common.dtsi"
  9
 10/ {
 11	aliases {
 12		i2c1 = &i2c1;
 13		i2c3 = &i2c3;
 14		i2c4 = &i2c4;
 15		serial3 = &uart3;
 16	};
 17
 18	sdio_pwrseq: sdio-pwrseq {
 19		compatible = "mmc-pwrseq-simple";
 20		reset-gpios = <&sysgpio 33 GPIO_ACTIVE_LOW>;
 21	};
 22};
 23
 24&gmac0 {
 25	assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
 26	assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
 27	starfive,tx-use-rgmii-clk;
 28	status = "okay";
 29};
 30
 31&i2c0 {
 32	status = "okay";
 33};
 34
 35&i2c2 {
 36	status = "disabled";
 37};
 38
 39&i2c6 {
 40	status = "disabled";
 41};
 42
 43&mmc0_pins {
 44	 rst-pins {
 45		pinmux = <GPIOMUX(62, GPOUT_SYS_SDIO0_RST,
 46				      GPOEN_ENABLE,
 47				      GPI_NONE)>;
 48		bias-pull-up;
 49		drive-strength = <12>;
 50		input-disable;
 51		input-schmitt-disable;
 52		slew-rate = <0>;
 53	};
 54};
 55
 56&mmc1 {
 57	#address-cells = <1>;
 58	#size-cells = <0>;
 59
 60	mmc-pwrseq = <&sdio_pwrseq>;
 61	non-removable;
 62	status = "okay";
 63
 64	ap6256: wifi@1 {
 65		compatible = "brcm,bcm43456-fmac", "brcm,bcm4329-fmac";
 66		reg = <1>;
 67		interrupt-parent = <&sysgpio>;
 68		interrupts = <34 IRQ_TYPE_LEVEL_HIGH>;
 69		interrupt-names = "host-wake";
 70		pinctrl-0 = <&wifi_host_wake_irq>;
 71		pinctrl-names = "default";
 72	};
 73};
 74
 75&pcie0 {
 76	status = "okay";
 77};
 78
 79&phy0 {
 80	rx-internal-delay-ps = <1500>;
 81	tx-internal-delay-ps = <1500>;
 82	motorcomm,rx-clk-drv-microamp = <3970>;
 83	motorcomm,rx-data-drv-microamp = <2910>;
 84	motorcomm,tx-clk-10-inverted;
 85	motorcomm,tx-clk-100-inverted;
 86	motorcomm,tx-clk-1000-inverted;
 87	motorcomm,tx-clk-adj-enabled;
 88};
 89
 90&pwm {
 91	status = "okay";
 92};
 93
 94&spi0 {
 95	status = "okay";
 96};
 97
 98&sysgpio {
 99	uart1_pins: uart1-0 {
100		tx-pins {
101			pinmux = <GPIOMUX(16, GPOUT_SYS_UART1_TX,
102					      GPOEN_ENABLE,
103					      GPI_NONE)>;
104			bias-disable;
105			drive-strength = <12>;
106			input-disable;
107			input-schmitt-disable;
108		};
109
110		rx-pins {
111			pinmux = <GPIOMUX(17, GPOUT_LOW,
112					      GPOEN_DISABLE,
113					      GPI_SYS_UART1_RX)>;
114			bias-pull-up;
115			input-enable;
116			input-schmitt-enable;
117		};
118
119		cts-pins {
120			pinmux = <GPIOMUX(3, GPOUT_LOW,
121					     GPOEN_DISABLE,
122					     GPI_SYS_UART1_CTS)>;
123			bias-disable;
124			input-enable;
125			input-schmitt-enable;
126		};
127
128		rts-pins {
129			pinmux = <GPIOMUX(2, GPOUT_SYS_UART1_RTS,
130					     GPOEN_ENABLE,
131					     GPI_NONE)>;
132			bias-disable;
133			input-disable;
134			input-schmitt-disable;
135		};
136	};
137
138	usb0_pins: usb0-0 {
139		vbus-pins {
140			pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
141					      GPOEN_ENABLE,
142					      GPI_NONE)>;
143			bias-disable;
144			input-disable;
145			input-schmitt-disable;
146			slew-rate = <0>;
147		};
148	};
149
150	wifi_host_wake_irq: wifi-host-wake-irq-0 {
151		wake-pins {
152			pinmux = <GPIOMUX(34, GPOUT_LOW,
153					      GPOEN_DISABLE,
154					      GPI_NONE)>;
155			input-enable;
156		};
157	};
158};
159
160&uart1 {
161	uart-has-rtscts;
162	pinctrl-0 = <&uart1_pins>;
163	pinctrl-names = "default";
164	status = "okay";
165};
166
167&usb0 {
168	dr_mode = "host";
169	pinctrl-names = "default";
170	pinctrl-0 = <&usb0_pins>;
171	status = "okay";
172};
~/ Read-only file preview.