1*a4367627SEmil Renner Berthing// SPDX-License-Identifier: GPL-2.0 OR MIT 2*a4367627SEmil Renner Berthing/* 3*a4367627SEmil Renner Berthing * Copyright (C) 2021 StarFive Technology Co., Ltd. 4*a4367627SEmil Renner Berthing * Copyright (C) 2021 Emil Renner Berthing <kernel@esmil.dk> 5*a4367627SEmil Renner Berthing */ 6*a4367627SEmil Renner Berthing 7*a4367627SEmil Renner Berthing/dts-v1/; 8*a4367627SEmil Renner Berthing#include "jh7100.dtsi" 9*a4367627SEmil Renner Berthing#include <dt-bindings/gpio/gpio.h> 10*a4367627SEmil Renner Berthing#include <dt-bindings/leds/common.h> 11*a4367627SEmil Renner Berthing#include <dt-bindings/pinctrl/pinctrl-starfive.h> 12*a4367627SEmil Renner Berthing 13*a4367627SEmil Renner Berthing/ { 14*a4367627SEmil Renner Berthing model = "BeagleV Starlight Beta"; 15*a4367627SEmil Renner Berthing compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100"; 16*a4367627SEmil Renner Berthing 17*a4367627SEmil Renner Berthing aliases { 18*a4367627SEmil Renner Berthing serial0 = &uart3; 19*a4367627SEmil Renner Berthing }; 20*a4367627SEmil Renner Berthing 21*a4367627SEmil Renner Berthing chosen { 22*a4367627SEmil Renner Berthing stdout-path = "serial0:115200n8"; 23*a4367627SEmil Renner Berthing }; 24*a4367627SEmil Renner Berthing 25*a4367627SEmil Renner Berthing cpus { 26*a4367627SEmil Renner Berthing timebase-frequency = <6250000>; 27*a4367627SEmil Renner Berthing }; 28*a4367627SEmil Renner Berthing 29*a4367627SEmil Renner Berthing memory@80000000 { 30*a4367627SEmil Renner Berthing device_type = "memory"; 31*a4367627SEmil Renner Berthing reg = <0x0 0x80000000 0x2 0x0>; 32*a4367627SEmil Renner Berthing }; 33*a4367627SEmil Renner Berthing 34*a4367627SEmil Renner Berthing leds { 35*a4367627SEmil Renner Berthing compatible = "gpio-leds"; 36*a4367627SEmil Renner Berthing 37*a4367627SEmil Renner Berthing led-ack { 38*a4367627SEmil Renner Berthing gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; 39*a4367627SEmil Renner Berthing color = <LED_COLOR_ID_GREEN>; 40*a4367627SEmil Renner Berthing function = LED_FUNCTION_HEARTBEAT; 41*a4367627SEmil Renner Berthing linux,default-trigger = "heartbeat"; 42*a4367627SEmil Renner Berthing label = "ack"; 43*a4367627SEmil Renner Berthing }; 44*a4367627SEmil Renner Berthing }; 45*a4367627SEmil Renner Berthing}; 46*a4367627SEmil Renner Berthing 47*a4367627SEmil Renner Berthing&gpio { 48*a4367627SEmil Renner Berthing i2c0_pins: i2c0-0 { 49*a4367627SEmil Renner Berthing i2c-pins { 50*a4367627SEmil Renner Berthing pinmux = <GPIOMUX(62, GPO_LOW, 51*a4367627SEmil Renner Berthing GPO_I2C0_PAD_SCK_OEN, 52*a4367627SEmil Renner Berthing GPI_I2C0_PAD_SCK_IN)>, 53*a4367627SEmil Renner Berthing <GPIOMUX(61, GPO_LOW, 54*a4367627SEmil Renner Berthing GPO_I2C0_PAD_SDA_OEN, 55*a4367627SEmil Renner Berthing GPI_I2C0_PAD_SDA_IN)>; 56*a4367627SEmil Renner Berthing bias-disable; /* external pull-up */ 57*a4367627SEmil Renner Berthing input-enable; 58*a4367627SEmil Renner Berthing input-schmitt-enable; 59*a4367627SEmil Renner Berthing }; 60*a4367627SEmil Renner Berthing }; 61*a4367627SEmil Renner Berthing 62*a4367627SEmil Renner Berthing i2c1_pins: i2c1-0 { 63*a4367627SEmil Renner Berthing i2c-pins { 64*a4367627SEmil Renner Berthing pinmux = <GPIOMUX(47, GPO_LOW, 65*a4367627SEmil Renner Berthing GPO_I2C1_PAD_SCK_OEN, 66*a4367627SEmil Renner Berthing GPI_I2C1_PAD_SCK_IN)>, 67*a4367627SEmil Renner Berthing <GPIOMUX(48, GPO_LOW, 68*a4367627SEmil Renner Berthing GPO_I2C1_PAD_SDA_OEN, 69*a4367627SEmil Renner Berthing GPI_I2C1_PAD_SDA_IN)>; 70*a4367627SEmil Renner Berthing bias-pull-up; 71*a4367627SEmil Renner Berthing input-enable; 72*a4367627SEmil Renner Berthing input-schmitt-enable; 73*a4367627SEmil Renner Berthing }; 74*a4367627SEmil Renner Berthing }; 75*a4367627SEmil Renner Berthing 76*a4367627SEmil Renner Berthing i2c2_pins: i2c2-0 { 77*a4367627SEmil Renner Berthing i2c-pins { 78*a4367627SEmil Renner Berthing pinmux = <GPIOMUX(60, GPO_LOW, 79*a4367627SEmil Renner Berthing GPO_I2C2_PAD_SCK_OEN, 80*a4367627SEmil Renner Berthing GPI_I2C2_PAD_SCK_IN)>, 81*a4367627SEmil Renner Berthing <GPIOMUX(59, GPO_LOW, 82*a4367627SEmil Renner Berthing GPO_I2C2_PAD_SDA_OEN, 83*a4367627SEmil Renner Berthing GPI_I2C2_PAD_SDA_IN)>; 84*a4367627SEmil Renner Berthing bias-disable; /* external pull-up */ 85*a4367627SEmil Renner Berthing input-enable; 86*a4367627SEmil Renner Berthing input-schmitt-enable; 87*a4367627SEmil Renner Berthing }; 88*a4367627SEmil Renner Berthing }; 89*a4367627SEmil Renner Berthing 90*a4367627SEmil Renner Berthing uart3_pins: uart3-0 { 91*a4367627SEmil Renner Berthing rx-pins { 92*a4367627SEmil Renner Berthing pinmux = <GPIOMUX(13, GPO_LOW, GPO_DISABLE, 93*a4367627SEmil Renner Berthing GPI_UART3_PAD_SIN)>; 94*a4367627SEmil Renner Berthing bias-pull-up; 95*a4367627SEmil Renner Berthing drive-strength = <14>; 96*a4367627SEmil Renner Berthing input-enable; 97*a4367627SEmil Renner Berthing input-schmitt-enable; 98*a4367627SEmil Renner Berthing slew-rate = <0>; 99*a4367627SEmil Renner Berthing }; 100*a4367627SEmil Renner Berthing tx-pins { 101*a4367627SEmil Renner Berthing pinmux = <GPIOMUX(14, GPO_UART3_PAD_SOUT, 102*a4367627SEmil Renner Berthing GPO_ENABLE, GPI_NONE)>; 103*a4367627SEmil Renner Berthing bias-disable; 104*a4367627SEmil Renner Berthing drive-strength = <35>; 105*a4367627SEmil Renner Berthing input-disable; 106*a4367627SEmil Renner Berthing input-schmitt-disable; 107*a4367627SEmil Renner Berthing slew-rate = <0>; 108*a4367627SEmil Renner Berthing }; 109*a4367627SEmil Renner Berthing }; 110*a4367627SEmil Renner Berthing}; 111*a4367627SEmil Renner Berthing 112*a4367627SEmil Renner Berthing&i2c0 { 113*a4367627SEmil Renner Berthing clock-frequency = <100000>; 114*a4367627SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 115*a4367627SEmil Renner Berthing i2c-sda-falling-time-ns = <500>; 116*a4367627SEmil Renner Berthing i2c-scl-falling-time-ns = <500>; 117*a4367627SEmil Renner Berthing pinctrl-names = "default"; 118*a4367627SEmil Renner Berthing pinctrl-0 = <&i2c0_pins>; 119*a4367627SEmil Renner Berthing status = "okay"; 120*a4367627SEmil Renner Berthing 121*a4367627SEmil Renner Berthing pmic@5e { 122*a4367627SEmil Renner Berthing compatible = "ti,tps65086"; 123*a4367627SEmil Renner Berthing reg = <0x5e>; 124*a4367627SEmil Renner Berthing gpio-controller; 125*a4367627SEmil Renner Berthing #gpio-cells = <2>; 126*a4367627SEmil Renner Berthing 127*a4367627SEmil Renner Berthing regulators { 128*a4367627SEmil Renner Berthing }; 129*a4367627SEmil Renner Berthing }; 130*a4367627SEmil Renner Berthing}; 131*a4367627SEmil Renner Berthing 132*a4367627SEmil Renner Berthing&i2c1 { 133*a4367627SEmil Renner Berthing clock-frequency = <400000>; 134*a4367627SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 135*a4367627SEmil Renner Berthing i2c-sda-falling-time-ns = <100>; 136*a4367627SEmil Renner Berthing i2c-scl-falling-time-ns = <100>; 137*a4367627SEmil Renner Berthing pinctrl-names = "default"; 138*a4367627SEmil Renner Berthing pinctrl-0 = <&i2c1_pins>; 139*a4367627SEmil Renner Berthing status = "okay"; 140*a4367627SEmil Renner Berthing}; 141*a4367627SEmil Renner Berthing 142*a4367627SEmil Renner Berthing&i2c2 { 143*a4367627SEmil Renner Berthing clock-frequency = <100000>; 144*a4367627SEmil Renner Berthing i2c-sda-hold-time-ns = <300>; 145*a4367627SEmil Renner Berthing i2c-sda-falling-time-ns = <500>; 146*a4367627SEmil Renner Berthing i2c-scl-falling-time-ns = <500>; 147*a4367627SEmil Renner Berthing pinctrl-names = "default"; 148*a4367627SEmil Renner Berthing pinctrl-0 = <&i2c2_pins>; 149*a4367627SEmil Renner Berthing status = "okay"; 150*a4367627SEmil Renner Berthing}; 151*a4367627SEmil Renner Berthing 152*a4367627SEmil Renner Berthing&osc_sys { 153*a4367627SEmil Renner Berthing clock-frequency = <25000000>; 154*a4367627SEmil Renner Berthing}; 155*a4367627SEmil Renner Berthing 156*a4367627SEmil Renner Berthing&osc_aud { 157*a4367627SEmil Renner Berthing clock-frequency = <27000000>; 158*a4367627SEmil Renner Berthing}; 159*a4367627SEmil Renner Berthing 160*a4367627SEmil Renner Berthing&uart3 { 161*a4367627SEmil Renner Berthing pinctrl-names = "default"; 162*a4367627SEmil Renner Berthing pinctrl-0 = <&uart3_pins>; 163*a4367627SEmil Renner Berthing status = "okay"; 164*a4367627SEmil Renner Berthing}; 165