Skip to content

Instantly share code, notes, and snippets.

@nabakdev
Created August 29, 2023 07:14
Show Gist options
  • Save nabakdev/860d0ae5d208090fe9c63b33685089af to your computer and use it in GitHub Desktop.
Save nabakdev/860d0ae5d208090fe9c63b33685089af to your computer and use it in GitHub Desktop.
b860h v5
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2018 Amlogic, Inc. All rights reserved.
* sibondt
*/
/dts-v1/;
#include "meson-g12a-u200.dts"
/ {
compatible = "hg680,fj", "amlogic,g12a";
model = "HG680-FJ";
vddgpu: regulator-vddgpu {
compatible = "regulator-fixed";
regulator-name = "mali";
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <800000>;
vin-supply = <&main_12v>;
regulator-boot-on;
regulator-always-on;
};
wifi32k: wifi32k {
compatible = "pwm-clock";
#clock-cells = <0>;
clock-frequency = <32768>;
pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
clocks = <&wifi32k>;
clock-names = "ext_clock";
};
leds {
compatible = "gpio-leds";
power_led {
led_name = "power_led";
gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_LOW>;
default-state = "on";
};
net_led {
led_name = "net_led";
gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "0.0:00:link";
};
remote_led {
led_name = "remote_led";
gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "rc-feedback";
};
};
memory@0 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x80000000>;
};
};
&mali {
mali-supply=<&vddgpu>;
};
/* SDIO */
&sd_emmc_a {
status = "okay";
pinctrl-0 = <&sdio_pins>;
pinctrl-1 = <&sdio_clk_gate_pins>;
pinctrl-names = "default", "clk-gate";
#address-cells = <1>;
#size-cells = <0>;
bus-width = <4>;
cap-sd-highspeed;
sd-uhs-sdr50;
max-frequency = <100000000>;
non-removable;
disable-wp;
/* WiFi firmware requires power to be kept while in suspend */
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
vmmc-supply = <&vddao_3v3>;
vqmmc-supply = <&vddao_1v8>;
wifi: wifi@1 {
reg = <1>;
compatible = "sprd,unisoc-wifi";
};
};
/* SD card */
&sd_emmc_b {
status = "okay";
bus-width = <4>;
cap-sd-highspeed;
max-frequency = <50000000>;
};
/* eMMC */
&sd_emmc_c {
status = "okay";
bus-width = <8>;
cap-mmc-highspeed;
mmc-ddr-1_8v;
mmc-hs200-1_8v;
max-frequency = <200000000>;
};
/* CPU Overclock */
&cpu_opp_table {
opp-100000000 {
status = "disabled";
};
opp-250000000 {
status = "disabled";
};
opp-500000000 {
status = "disabled";
};
opp-667000000 {
status = "disabled";
};
opp-1908000000 {
opp-hz = /bits/ 64 <1908000000>;
opp-microvolt = <1001000>;
};
/* 2016mhz : not test */
opp-2016000000 {
opp-hz = /bits/ 64 <2016000000>;
opp-microvolt = <1021000>;
};
};
&pwm_ef {
status = "okay";
pinctrl-0 = <&pwm_e_pins>;
pinctrl-names = "default";
clocks = <&xtal>;
clock-names = "clkin0";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment