154baba33SEmil Renner Berthing// SPDX-License-Identifier: GPL-2.0 OR MIT 254baba33SEmil Renner Berthing/* 354baba33SEmil Renner Berthing * Copyright (C) 2022 StarFive Technology Co., Ltd. 454baba33SEmil Renner Berthing * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> 554baba33SEmil Renner Berthing */ 654baba33SEmil Renner Berthing 754baba33SEmil Renner Berthing/dts-v1/; 854baba33SEmil Renner Berthing#include "jh7110.dtsi" 954baba33SEmil Renner Berthing#include "jh7110-pinfunc.h" 1054baba33SEmil Renner Berthing#include <dt-bindings/gpio/gpio.h> 1154baba33SEmil Renner Berthing 1254baba33SEmil Renner Berthing/ { 1354baba33SEmil Renner Berthing aliases { 140104340aSSamin Guo ethernet0 = &gmac0; 150104340aSSamin Guo ethernet1 = &gmac1; 1654baba33SEmil Renner Berthing i2c0 = &i2c0; 1754baba33SEmil Renner Berthing i2c2 = &i2c2; 1854baba33SEmil Renner Berthing i2c5 = &i2c5; 1954baba33SEmil Renner Berthing i2c6 = &i2c6; 2054baba33SEmil Renner Berthing serial0 = &uart0; 2154baba33SEmil Renner Berthing }; 2254baba33SEmil Renner Berthing 2354baba33SEmil Renner Berthing chosen { 2454baba33SEmil Renner Berthing stdout-path = "serial0:115200n8"; 2554baba33SEmil Renner Berthing }; 2654baba33SEmil Renner Berthing 2754baba33SEmil Renner Berthing cpus { 2854baba33SEmil Renner Berthing timebase-frequency = <4000000>; 2954baba33SEmil Renner Berthing }; 3054baba33SEmil Renner Berthing 3154baba33SEmil Renner Berthing memory@40000000 { 3254baba33SEmil Renner Berthing device_type = "memory"; 3354baba33SEmil Renner Berthing reg = <0x0 0x40000000 0x1 0x0>; 3454baba33SEmil Renner Berthing }; 3554baba33SEmil Renner Berthing 3654baba33SEmil Renner Berthing gpio-restart { 3754baba33SEmil Renner Berthing compatible = "gpio-restart"; 3854baba33SEmil Renner Berthing gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>; 3954baba33SEmil Renner Berthing priority = <224>; 4054baba33SEmil Renner Berthing }; 4154baba33SEmil Renner Berthing}; 4254baba33SEmil Renner Berthing 4343f09605SXingyu Wu&dvp_clk { 4443f09605SXingyu Wu clock-frequency = <74250000>; 4543f09605SXingyu Wu}; 4643f09605SXingyu Wu 4754baba33SEmil Renner Berthing&gmac0_rgmii_rxin { 4854baba33SEmil Renner Berthing clock-frequency = <125000000>; 4954baba33SEmil Renner Berthing}; 5054baba33SEmil Renner Berthing 5154baba33SEmil Renner Berthing&gmac0_rmii_refin { 5254baba33SEmil Renner Berthing clock-frequency = <50000000>; 5354baba33SEmil Renner Berthing}; 5454baba33SEmil Renner Berthing 5554baba33SEmil Renner Berthing&gmac1_rgmii_rxin { 5654baba33SEmil Renner Berthing clock-frequency = <125000000>; 5754baba33SEmil Renner Berthing}; 5854baba33SEmil Renner Berthing 5954baba33SEmil Renner Berthing&gmac1_rmii_refin { 6054baba33SEmil Renner Berthing clock-frequency = <50000000>; 6154baba33SEmil Renner Berthing}; 6254baba33SEmil Renner Berthing 6343f09605SXingyu Wu&hdmitx0_pixelclk { 6443f09605SXingyu Wu clock-frequency = <297000000>; 6543f09605SXingyu Wu}; 6643f09605SXingyu Wu 6754baba33SEmil Renner Berthing&i2srx_bclk_ext { 6854baba33SEmil Renner Berthing clock-frequency = <12288000>; 6954baba33SEmil Renner Berthing}; 7054baba33SEmil Renner Berthing 7154baba33SEmil Renner Berthing&i2srx_lrck_ext { 7254baba33SEmil Renner Berthing clock-frequency = <192000>; 7354baba33SEmil Renner Berthing}; 7454baba33SEmil Renner Berthing 7554baba33SEmil Renner Berthing&i2stx_bclk_ext { 7654baba33SEmil Renner Berthing clock-frequency = <12288000>; 7754baba33SEmil Renner Berthing}; 7854baba33SEmil Renner Berthing 7954baba33SEmil Renner Berthing&i2stx_lrck_ext { 8054baba33SEmil Renner Berthing clock-frequency = <192000>; 8154baba33SEmil Renner Berthing}; 8254baba33SEmil Renner Berthing 8354baba33SEmil Renner Berthing&mclk_ext { 8454baba33SEmil Renner Berthing clock-frequency = <12288000>; 8554baba33SEmil Renner Berthing}; 8654baba33SEmil Renner Berthing 8754baba33SEmil Renner Berthing&osc { 8854baba33SEmil Renner Berthing clock-frequency = <24000000>; 8954baba33SEmil Renner Berthing}; 9054baba33SEmil Renner Berthing 9154baba33SEmil Renner Berthing&rtc_osc { 9254baba33SEmil Renner Berthing clock-frequency = <32768>; 9354baba33SEmil Renner Berthing}; 9454baba33SEmil Renner Berthing 9554baba33SEmil Renner Berthing&tdm_ext { 9654baba33SEmil Renner Berthing clock-frequency = <49152000>; 9754baba33SEmil Renner Berthing}; 9854baba33SEmil Renner Berthing 990104340aSSamin Guo&gmac0 { 1000104340aSSamin Guo phy-handle = <&phy0>; 1010104340aSSamin Guo phy-mode = "rgmii-id"; 1020104340aSSamin Guo status = "okay"; 1030104340aSSamin Guo 1040104340aSSamin Guo mdio { 1050104340aSSamin Guo #address-cells = <1>; 1060104340aSSamin Guo #size-cells = <0>; 1070104340aSSamin Guo compatible = "snps,dwmac-mdio"; 1080104340aSSamin Guo 1090104340aSSamin Guo phy0: ethernet-phy@0 { 1100104340aSSamin Guo reg = <0>; 1110104340aSSamin Guo }; 1120104340aSSamin Guo }; 1130104340aSSamin Guo}; 1140104340aSSamin Guo 1150104340aSSamin Guo&gmac1 { 1160104340aSSamin Guo phy-handle = <&phy1>; 1170104340aSSamin Guo phy-mode = "rgmii-id"; 1180104340aSSamin Guo status = "okay"; 1190104340aSSamin Guo 1200104340aSSamin Guo mdio { 1210104340aSSamin Guo #address-cells = <1>; 1220104340aSSamin Guo #size-cells = <0>; 1230104340aSSamin Guo compatible = "snps,dwmac-mdio"; 1240104340aSSamin Guo 1250104340aSSamin Guo phy1: ethernet-phy@1 { 1260104340aSSamin Guo reg = <0>; 1270104340aSSamin Guo }; 1280104340aSSamin Guo }; 1290104340aSSamin Guo}; 1300104340aSSamin Guo 13154baba33SEmil Renner Berthing&i2c0 { 13254baba33SEmil Renner Berthing clock-frequency = <100000>; 13354baba33SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 13454baba33SEmil Renner Berthing i2c-sda-falling-time-ns = <510>; 13554baba33SEmil Renner Berthing i2c-scl-falling-time-ns = <510>; 13654baba33SEmil Renner Berthing pinctrl-names = "default"; 13754baba33SEmil Renner Berthing pinctrl-0 = <&i2c0_pins>; 13854baba33SEmil Renner Berthing status = "okay"; 13954baba33SEmil Renner Berthing}; 14054baba33SEmil Renner Berthing 14154baba33SEmil Renner Berthing&i2c2 { 14254baba33SEmil Renner Berthing clock-frequency = <100000>; 14354baba33SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 14454baba33SEmil Renner Berthing i2c-sda-falling-time-ns = <510>; 14554baba33SEmil Renner Berthing i2c-scl-falling-time-ns = <510>; 14654baba33SEmil Renner Berthing pinctrl-names = "default"; 14754baba33SEmil Renner Berthing pinctrl-0 = <&i2c2_pins>; 14854baba33SEmil Renner Berthing status = "okay"; 14954baba33SEmil Renner Berthing}; 15054baba33SEmil Renner Berthing 15154baba33SEmil Renner Berthing&i2c5 { 15254baba33SEmil Renner Berthing clock-frequency = <100000>; 15354baba33SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 15454baba33SEmil Renner Berthing i2c-sda-falling-time-ns = <510>; 15554baba33SEmil Renner Berthing i2c-scl-falling-time-ns = <510>; 15654baba33SEmil Renner Berthing pinctrl-names = "default"; 15754baba33SEmil Renner Berthing pinctrl-0 = <&i2c5_pins>; 15854baba33SEmil Renner Berthing status = "okay"; 15923783415SMason Huo 16023783415SMason Huo axp15060: pmic@36 { 16123783415SMason Huo compatible = "x-powers,axp15060"; 16223783415SMason Huo reg = <0x36>; 16323783415SMason Huo interrupts = <0>; 16423783415SMason Huo interrupt-controller; 16523783415SMason Huo #interrupt-cells = <1>; 16623783415SMason Huo 16723783415SMason Huo regulators { 16823783415SMason Huo vdd_cpu: dcdc2 { 16923783415SMason Huo regulator-always-on; 17023783415SMason Huo regulator-min-microvolt = <500000>; 17123783415SMason Huo regulator-max-microvolt = <1540000>; 17223783415SMason Huo regulator-name = "vdd-cpu"; 17323783415SMason Huo }; 17423783415SMason Huo }; 17523783415SMason Huo }; 17654baba33SEmil Renner Berthing}; 17754baba33SEmil Renner Berthing 17854baba33SEmil Renner Berthing&i2c6 { 17954baba33SEmil Renner Berthing clock-frequency = <100000>; 18054baba33SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 18154baba33SEmil Renner Berthing i2c-sda-falling-time-ns = <510>; 18254baba33SEmil Renner Berthing i2c-scl-falling-time-ns = <510>; 18354baba33SEmil Renner Berthing pinctrl-names = "default"; 18454baba33SEmil Renner Berthing pinctrl-0 = <&i2c6_pins>; 18554baba33SEmil Renner Berthing status = "okay"; 18654baba33SEmil Renner Berthing}; 18754baba33SEmil Renner Berthing 18854baba33SEmil Renner Berthing&sysgpio { 18954baba33SEmil Renner Berthing i2c0_pins: i2c0-0 { 19054baba33SEmil Renner Berthing i2c-pins { 19154baba33SEmil Renner Berthing pinmux = <GPIOMUX(57, GPOUT_LOW, 19254baba33SEmil Renner Berthing GPOEN_SYS_I2C0_CLK, 19354baba33SEmil Renner Berthing GPI_SYS_I2C0_CLK)>, 19454baba33SEmil Renner Berthing <GPIOMUX(58, GPOUT_LOW, 19554baba33SEmil Renner Berthing GPOEN_SYS_I2C0_DATA, 19654baba33SEmil Renner Berthing GPI_SYS_I2C0_DATA)>; 19754baba33SEmil Renner Berthing bias-disable; /* external pull-up */ 19854baba33SEmil Renner Berthing input-enable; 19954baba33SEmil Renner Berthing input-schmitt-enable; 20054baba33SEmil Renner Berthing }; 20154baba33SEmil Renner Berthing }; 20254baba33SEmil Renner Berthing 20354baba33SEmil Renner Berthing i2c2_pins: i2c2-0 { 20454baba33SEmil Renner Berthing i2c-pins { 20554baba33SEmil Renner Berthing pinmux = <GPIOMUX(3, GPOUT_LOW, 20654baba33SEmil Renner Berthing GPOEN_SYS_I2C2_CLK, 20754baba33SEmil Renner Berthing GPI_SYS_I2C2_CLK)>, 20854baba33SEmil Renner Berthing <GPIOMUX(2, GPOUT_LOW, 20954baba33SEmil Renner Berthing GPOEN_SYS_I2C2_DATA, 21054baba33SEmil Renner Berthing GPI_SYS_I2C2_DATA)>; 21154baba33SEmil Renner Berthing bias-disable; /* external pull-up */ 21254baba33SEmil Renner Berthing input-enable; 21354baba33SEmil Renner Berthing input-schmitt-enable; 21454baba33SEmil Renner Berthing }; 21554baba33SEmil Renner Berthing }; 21654baba33SEmil Renner Berthing 21754baba33SEmil Renner Berthing i2c5_pins: i2c5-0 { 21854baba33SEmil Renner Berthing i2c-pins { 21954baba33SEmil Renner Berthing pinmux = <GPIOMUX(19, GPOUT_LOW, 22054baba33SEmil Renner Berthing GPOEN_SYS_I2C5_CLK, 22154baba33SEmil Renner Berthing GPI_SYS_I2C5_CLK)>, 22254baba33SEmil Renner Berthing <GPIOMUX(20, GPOUT_LOW, 22354baba33SEmil Renner Berthing GPOEN_SYS_I2C5_DATA, 22454baba33SEmil Renner Berthing GPI_SYS_I2C5_DATA)>; 22554baba33SEmil Renner Berthing bias-disable; /* external pull-up */ 22654baba33SEmil Renner Berthing input-enable; 22754baba33SEmil Renner Berthing input-schmitt-enable; 22854baba33SEmil Renner Berthing }; 22954baba33SEmil Renner Berthing }; 23054baba33SEmil Renner Berthing 23154baba33SEmil Renner Berthing i2c6_pins: i2c6-0 { 23254baba33SEmil Renner Berthing i2c-pins { 23354baba33SEmil Renner Berthing pinmux = <GPIOMUX(16, GPOUT_LOW, 23454baba33SEmil Renner Berthing GPOEN_SYS_I2C6_CLK, 23554baba33SEmil Renner Berthing GPI_SYS_I2C6_CLK)>, 23654baba33SEmil Renner Berthing <GPIOMUX(17, GPOUT_LOW, 23754baba33SEmil Renner Berthing GPOEN_SYS_I2C6_DATA, 23854baba33SEmil Renner Berthing GPI_SYS_I2C6_DATA)>; 23954baba33SEmil Renner Berthing bias-disable; /* external pull-up */ 24054baba33SEmil Renner Berthing input-enable; 24154baba33SEmil Renner Berthing input-schmitt-enable; 24254baba33SEmil Renner Berthing }; 24354baba33SEmil Renner Berthing }; 24454baba33SEmil Renner Berthing 24554baba33SEmil Renner Berthing uart0_pins: uart0-0 { 24654baba33SEmil Renner Berthing tx-pins { 24754baba33SEmil Renner Berthing pinmux = <GPIOMUX(5, GPOUT_SYS_UART0_TX, 24854baba33SEmil Renner Berthing GPOEN_ENABLE, 24954baba33SEmil Renner Berthing GPI_NONE)>; 25054baba33SEmil Renner Berthing bias-disable; 25154baba33SEmil Renner Berthing drive-strength = <12>; 25254baba33SEmil Renner Berthing input-disable; 25354baba33SEmil Renner Berthing input-schmitt-disable; 25454baba33SEmil Renner Berthing slew-rate = <0>; 25554baba33SEmil Renner Berthing }; 25654baba33SEmil Renner Berthing 25754baba33SEmil Renner Berthing rx-pins { 25854baba33SEmil Renner Berthing pinmux = <GPIOMUX(6, GPOUT_LOW, 25954baba33SEmil Renner Berthing GPOEN_DISABLE, 26054baba33SEmil Renner Berthing GPI_SYS_UART0_RX)>; 26154baba33SEmil Renner Berthing bias-disable; /* external pull-up */ 26254baba33SEmil Renner Berthing drive-strength = <2>; 26354baba33SEmil Renner Berthing input-enable; 26454baba33SEmil Renner Berthing input-schmitt-enable; 26554baba33SEmil Renner Berthing slew-rate = <0>; 26654baba33SEmil Renner Berthing }; 26754baba33SEmil Renner Berthing }; 26854baba33SEmil Renner Berthing}; 26954baba33SEmil Renner Berthing 27054baba33SEmil Renner Berthing&uart0 { 27154baba33SEmil Renner Berthing pinctrl-names = "default"; 27254baba33SEmil Renner Berthing pinctrl-0 = <&uart0_pins>; 27354baba33SEmil Renner Berthing status = "okay"; 27454baba33SEmil Renner Berthing}; 275e2c510d6SMason Huo 276*e126aa3aSMinda Chen&usb0 { 277*e126aa3aSMinda Chen dr_mode = "peripheral"; 278*e126aa3aSMinda Chen status = "okay"; 279*e126aa3aSMinda Chen}; 280*e126aa3aSMinda Chen 281e2c510d6SMason Huo&U74_1 { 282e2c510d6SMason Huo cpu-supply = <&vdd_cpu>; 283e2c510d6SMason Huo}; 284e2c510d6SMason Huo 285e2c510d6SMason Huo&U74_2 { 286e2c510d6SMason Huo cpu-supply = <&vdd_cpu>; 287e2c510d6SMason Huo}; 288e2c510d6SMason Huo 289e2c510d6SMason Huo&U74_3 { 290e2c510d6SMason Huo cpu-supply = <&vdd_cpu>; 291e2c510d6SMason Huo}; 292e2c510d6SMason Huo 293e2c510d6SMason Huo&U74_4 { 294e2c510d6SMason Huo cpu-supply = <&vdd_cpu>; 295e2c510d6SMason Huo}; 296