1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (C) 2021 STMicroelectronics 4724ba675SRob Herring * Author: Alain Volmat <avolmat@me.com> 5724ba675SRob Herring */ 6724ba675SRob Herring/dts-v1/; 7724ba675SRob Herring#include "stih418.dtsi" 8724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 9724ba675SRob Herring/ { 10724ba675SRob Herring model = "STiH418 B2264"; 11724ba675SRob Herring compatible = "st,stih418-b2264", "st,stih418"; 12724ba675SRob Herring 13724ba675SRob Herring chosen { 14724ba675SRob Herring stdout-path = &sbc_serial0; 15724ba675SRob Herring }; 16724ba675SRob Herring 17724ba675SRob Herring memory@40000000 { 18724ba675SRob Herring device_type = "memory"; 19724ba675SRob Herring reg = <0x40000000 0xc0000000>; 20724ba675SRob Herring }; 21724ba675SRob Herring 22724ba675SRob Herring cpus { 23724ba675SRob Herring cpu@0 { 24724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 25724ba675SRob Herring /* u-boot puts hpen in SBC dmem at 0xb8 offset */ 26724ba675SRob Herring cpu-release-addr = <0x94100b8>; 27724ba675SRob Herring }; 28724ba675SRob Herring cpu@1 { 29724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 30724ba675SRob Herring /* u-boot puts hpen in SBC dmem at 0xb8 offset */ 31724ba675SRob Herring cpu-release-addr = <0x94100b8>; 32724ba675SRob Herring }; 33724ba675SRob Herring cpu@2 { 34724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 35724ba675SRob Herring /* u-boot puts hpen in SBC dmem at 0xb8 offset */ 36724ba675SRob Herring cpu-release-addr = <0x94100b8>; 37724ba675SRob Herring }; 38724ba675SRob Herring cpu@3 { 39724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 40724ba675SRob Herring /* u-boot puts hpen in SBC dmem at 0xb8 offset */ 41724ba675SRob Herring cpu-release-addr = <0x94100b8>; 42724ba675SRob Herring }; 43724ba675SRob Herring }; 44724ba675SRob Herring 45724ba675SRob Herring cpu_opp_table: opp-table { 46724ba675SRob Herring compatible = "operating-points-v2"; 47724ba675SRob Herring opp-shared; 48724ba675SRob Herring 49724ba675SRob Herring opp00 { 50724ba675SRob Herring opp-hz = /bits/ 64 <300000000>; 51724ba675SRob Herring opp-microvolt = <784000>; 52724ba675SRob Herring }; 53724ba675SRob Herring opp01 { 54724ba675SRob Herring opp-hz = /bits/ 64 <500000000>; 55724ba675SRob Herring opp-microvolt = <784000>; 56724ba675SRob Herring }; 57724ba675SRob Herring opp02 { 58724ba675SRob Herring opp-hz = /bits/ 64 <800000000>; 59724ba675SRob Herring opp-microvolt = <784000>; 60724ba675SRob Herring }; 61724ba675SRob Herring opp03 { 62724ba675SRob Herring opp-hz = /bits/ 64 <1200000000>; 63724ba675SRob Herring opp-microvolt = <784000>; 64724ba675SRob Herring }; 65724ba675SRob Herring opp04 { 66724ba675SRob Herring opp-hz = /bits/ 64 <1500000000>; 67724ba675SRob Herring opp-microvolt = <784000>; 68724ba675SRob Herring }; 69724ba675SRob Herring }; 70724ba675SRob Herring 71724ba675SRob Herring aliases { 727c46058eSAlain Volmat serial0 = &sbc_serial0; 73724ba675SRob Herring ethernet0 = ðernet0; 74724ba675SRob Herring }; 75724ba675SRob Herring 76724ba675SRob Herring leds { 77724ba675SRob Herring compatible = "gpio-leds"; 78724ba675SRob Herring led-green { 79*8434eed7SAlain Volmat gpios = <&pio1 3 GPIO_ACTIVE_LOW>; 80724ba675SRob Herring default-state = "off"; 81724ba675SRob Herring }; 82724ba675SRob Herring }; 83724ba675SRob Herring 84e34a63cfSAlain Volmat soc { 85724ba675SRob Herring pin-controller-sbc@961f080 { 86724ba675SRob Herring gmac1 { 87724ba675SRob Herring rgmii1-0 { 88724ba675SRob Herring st,pins { 89724ba675SRob Herring rxd0 = <&pio1 4 ALT1 IN DE_IO 300 CLK_A>; 90724ba675SRob Herring rxd1 = <&pio1 5 ALT1 IN DE_IO 300 CLK_A>; 91724ba675SRob Herring rxd2 = <&pio1 6 ALT1 IN DE_IO 300 CLK_A>; 92724ba675SRob Herring rxd3 = <&pio1 7 ALT1 IN DE_IO 300 CLK_A>; 93724ba675SRob Herring rxdv = <&pio2 0 ALT1 IN DE_IO 300 CLK_A>; 94724ba675SRob Herring }; 95724ba675SRob Herring }; 96724ba675SRob Herring }; 97724ba675SRob Herring }; 98724ba675SRob Herring 99724ba675SRob Herring }; 100724ba675SRob Herring}; 101724ba675SRob Herring 102724ba675SRob Herring&ehci0 { 103724ba675SRob Herring status = "okay"; 104724ba675SRob Herring}; 105724ba675SRob Herring 106724ba675SRob Herringðernet0 { 107724ba675SRob Herring phy-mode = "rgmii"; 108724ba675SRob Herring pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>; 109724ba675SRob Herring st,tx-retime-src = "clkgen"; 110724ba675SRob Herring 111724ba675SRob Herring snps,reset-gpio = <&pio0 7 0>; 112724ba675SRob Herring snps,reset-active-low; 113724ba675SRob Herring snps,reset-delays-us = <0 10000 1000000>; 114724ba675SRob Herring 115724ba675SRob Herring status = "okay"; 116724ba675SRob Herring}; 117724ba675SRob Herring 118724ba675SRob Herring&miphy28lp_phy { 119724ba675SRob Herring phy_port0: port@9b22000 { 120724ba675SRob Herring st,sata-gen = <2>; /* SATA GEN3 */ 121724ba675SRob Herring st,osc-rdy; 122724ba675SRob Herring }; 123724ba675SRob Herring}; 124724ba675SRob Herring 125724ba675SRob Herring&mmc0 { 126724ba675SRob Herring status = "okay"; 127724ba675SRob Herring}; 128724ba675SRob Herring 129724ba675SRob Herring&ohci1 { 130724ba675SRob Herring status = "okay"; 131724ba675SRob Herring}; 132724ba675SRob Herring 133724ba675SRob Herring&pwm1 { 134724ba675SRob Herring status = "okay"; 135724ba675SRob Herring}; 136724ba675SRob Herring 137724ba675SRob Herring&sata0 { 138724ba675SRob Herring status = "okay"; 139724ba675SRob Herring}; 140724ba675SRob Herring 141724ba675SRob Herring&sbc_serial0 { 142724ba675SRob Herring status = "okay"; 143724ba675SRob Herring}; 144724ba675SRob Herring 145724ba675SRob Herring&spifsm { 146724ba675SRob Herring status = "okay"; 147724ba675SRob Herring}; 148724ba675SRob Herring 149724ba675SRob Herring&st_dwc3 { 150724ba675SRob Herring status = "okay"; 151724ba675SRob Herring}; 152