993 lines
24 KiB
Diff
993 lines
24 KiB
Diff
diff -rupN linux.orig/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts linux/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts
|
|
--- linux.orig/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts 1970-01-01 00:00:00.000000000 +0000
|
|
+++ linux/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts 2023-09-12 12:04:13.567330573 +0000
|
|
@@ -0,0 +1,989 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
+/*
|
|
+ * Copyright (c) 2022 Neil Armstrong <narmstrong@kernel.org>
|
|
+ * Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
|
+ */
|
|
+
|
|
+/dts-v1/;
|
|
+
|
|
+#include "meson-g12b-a311d.dtsi"
|
|
+#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/leds/common.h>
|
|
+#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
|
+#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
|
+#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
|
+
|
|
+/ {
|
|
+ compatible = "powkiddy,rgb10-max-3", "amlogic,s922x", "amlogic,g12b";
|
|
+ model = "Powkiddy RGB10 MAX 3";
|
|
+
|
|
+ aliases {
|
|
+ serial0 = &uart_AO;
|
|
+ rtc0 = &vrtc;
|
|
+ mmc0 = &sd_emmc_c;
|
|
+ mmc1 = &sd_emmc_b;
|
|
+ };
|
|
+
|
|
+ panel_backlight: backlight {
|
|
+ compatible = "pwm-backlight";
|
|
+ pwms = <&pwm_ef 1 40000 0>;
|
|
+ brightness-levels = <0 255>;
|
|
+ num-interpolated-steps = <255>;
|
|
+ default-brightness-level = <255>;
|
|
+ };
|
|
+
|
|
+ bat: battery {
|
|
+ compatible = "simple-battery";
|
|
+ voltage-max-design-microvolt = <4200000>;
|
|
+ voltage-min-design-microvolt = <3500000>;
|
|
+ charge-full-design-microamp-hours = <4000000>;
|
|
+ charge-term-current-microamp = <200000>;
|
|
+ constant-charge-current-max-microamp = <1500000>;
|
|
+ constant-charge-voltage-max-microvolt = <4200000>;
|
|
+ factory-internal-resistance-micro-ohms = <180000>;
|
|
+
|
|
+
|
|
+ ocv-capacity-celsius = <20>;
|
|
+ ocv-capacity-table-0 = <4146950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
|
+ <3888450 80>, <3861850 75>, <3831540 70>, <3799130 65>,
|
|
+ <3768190 60>, <3745650 55>, <3726610 50>, <3711630 45>,
|
|
+ <3696720 40>, <3685660 35>, <3674950 30>, <3663050 25>,
|
|
+ <3649470 20>, <3635260 15>, <3616920 10>, <3592440 5>,
|
|
+ <3574170 0>;
|
|
+ };
|
|
+
|
|
+ chosen {
|
|
+ stdout-path = "serial0:115200n8";
|
|
+ };
|
|
+
|
|
+ codec_clk: codec-clk {
|
|
+ compatible = "fixed-clock";
|
|
+ clock-frequency = <12288000>;
|
|
+ clock-output-names = "codec_clk";
|
|
+ #clock-cells = <0>;
|
|
+ };
|
|
+
|
|
+ gpio_keys: volume-keys {
|
|
+ compatible = "gpio-keys-polled";
|
|
+ poll-interval = <5>;
|
|
+ autorepeat;
|
|
+
|
|
+ volume-up-button {
|
|
+ label = "VOLUME-UP";
|
|
+ linux,code = <KEY_VOLUMEUP>;
|
|
+ gpios = <&gpio GPIOX_8 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ volume-down-button {
|
|
+ label = "VOLUME-DOWN";
|
|
+ linux,code = <KEY_VOLUMEDOWN>;
|
|
+ gpios = <&gpio GPIOX_9 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ joypad: gou_joypad {
|
|
+ compatible = "odroidgou-joypad";
|
|
+ poll-interval = <10>;
|
|
+ pinctrl-0 = <&keypad_gpio_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ status = "okay";
|
|
+
|
|
+ joypad-name = "GO-Ultra Gamepad";
|
|
+ //joypad-vendor = <0x045e>;
|
|
+ joypad-product = <0x1000>;
|
|
+ joypad-revision = <0x0100>;
|
|
+
|
|
+ /* Analog sticks */
|
|
+
|
|
+ io-channels = <&saradc 0>, <&saradc 1>, <&saradc 2>, <&saradc 3>;
|
|
+ io-channel-names = "key-RY", "key-RX", "key-LY", "key-LX";
|
|
+ button-adc-scale = <4>;
|
|
+ button-adc-deadzone = <400>;
|
|
+ button-adc-fuzz = <64>;
|
|
+ button-adc-flat = <32>;
|
|
+ abs_x-p-tuning = <350>;
|
|
+ abs_x-n-tuning = <350>;
|
|
+ abs_y-p-tuning = <350>;
|
|
+ abs_y-n-tuning = <350>;
|
|
+ abs_rx-p-tuning = <350>;
|
|
+ abs_rx-n-tuning = <350>;
|
|
+ abs_ry-p-tuning = <350>;
|
|
+ abs_ry-n-tuning = <350>;
|
|
+
|
|
+ /* Buttons */
|
|
+ sw1 {
|
|
+ gpios = <&gpio GPIOX_0 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO DPAD-UP";
|
|
+ linux,code = <BTN_DPAD_UP>; // 0x220
|
|
+ };
|
|
+ sw2 {
|
|
+ gpios = <&gpio GPIOX_1 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO DPAD-DOWN";
|
|
+ linux,code = <BTN_DPAD_DOWN>; // 0x221
|
|
+ };
|
|
+ sw3 {
|
|
+ gpios = <&gpio GPIOX_2 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO DPAD-LEFT";
|
|
+ linux,code = <BTN_DPAD_LEFT>; // 0x222
|
|
+ };
|
|
+ sw4 {
|
|
+ gpios = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO DPAD-RIGHT";
|
|
+ linux,code = <BTN_DPAD_RIGHT>; // 0x223
|
|
+ };
|
|
+ sw5 {
|
|
+ gpios = <&gpio GPIOX_4 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO BTN-A";
|
|
+ linux,code = <BTN_EAST>; // 0x131
|
|
+ };
|
|
+ sw6 {
|
|
+ gpios = <&gpio GPIOX_5 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO BTN-B";
|
|
+ linux,code = <BTN_SOUTH>; // 0x130
|
|
+ };
|
|
+ sw7 {
|
|
+ gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO BTN-Y";
|
|
+ linux,code = <BTN_WEST>; // 0x134
|
|
+ };
|
|
+ sw8 {
|
|
+ gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO BTN-X";
|
|
+ linux,code = <BTN_NORTH>; // 0x133
|
|
+ };
|
|
+ sw11 {
|
|
+ gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO F2";
|
|
+ linux,code = <BTN_TRIGGER_HAPPY2>; // 0x2c2
|
|
+ };
|
|
+ sw12 {
|
|
+ gpios = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO F3";
|
|
+ linux,code = <BTN_TRIGGER_HAPPY3>; // 0x2c3
|
|
+ };
|
|
+ sw13 {
|
|
+ gpios = <&gpio GPIOX_16 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO F4";
|
|
+ linux,code = <BTN_TRIGGER_HAPPY4>; // 0x2c4
|
|
+ };
|
|
+ sw14 {
|
|
+ gpios = <&gpio GPIOX_11 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO F5";
|
|
+ linux,code = <BTN_TRIGGER_HAPPY5>; // 0x13c
|
|
+ };
|
|
+ sw15 {
|
|
+ gpios = <&gpio GPIOX_14 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO TOP-LEFT";
|
|
+ linux,code = <BTN_TL>; // 0x02
|
|
+ };
|
|
+ sw16 {
|
|
+ gpios = <&gpio GPIOX_15 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO TOP-RIGHT";
|
|
+ linux,code = <BTN_TR>; // 0x05
|
|
+ };
|
|
+ sw17 {
|
|
+ gpios = <&gpio GPIOX_13 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO F6";
|
|
+ linux,code = <BTN_TRIGGER_HAPPY6>;
|
|
+ };
|
|
+ sw18 {
|
|
+ gpios = <&gpio GPIOX_12 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO F1";
|
|
+ linux,code = <BTN_TRIGGER_HAPPY1>;
|
|
+ };
|
|
+ sw19 {
|
|
+ gpios = <&gpio GPIOX_18 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO TOP-RIGHT2";
|
|
+ linux,code = <BTN_TR2>;
|
|
+ };
|
|
+ sw20 {
|
|
+ gpios = <&gpio GPIOX_19 GPIO_ACTIVE_LOW>;
|
|
+ label = "GPIO TOP-LEFT2";
|
|
+ linux,code = <BTN_TL2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ memory@0 {
|
|
+ device_type = "memory";
|
|
+ reg = <0x0 0x0 0x0 0x40000000>;
|
|
+ };
|
|
+
|
|
+ emmc_pwrseq: emmc-pwrseq {
|
|
+ compatible = "mmc-pwrseq-emmc";
|
|
+ reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ leds {
|
|
+ compatible = "gpio-leds";
|
|
+
|
|
+ led-blue {
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
+ function = LED_FUNCTION_STATUS;
|
|
+ gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
|
|
+ linux,default-trigger = "none";
|
|
+ };
|
|
+
|
|
+ led-red {
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
+ function = LED_FUNCTION_STATUS;
|
|
+ gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ poweroff {
|
|
+ compatible = "hardkernel,odroid-go-ultra-poweroff";
|
|
+ hardkernel,rk817-pmic = <&rk817>;
|
|
+ hardkernel,rk818-pmic = <&rk818>;
|
|
+ };
|
|
+
|
|
+ vdd_sys: regulator-vdd_sys {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "VDD_SYS";
|
|
+ regulator-min-microvolt = <3800000>;
|
|
+ regulator-max-microvolt = <3800000>;
|
|
+ regulator-always-on;
|
|
+ };
|
|
+
|
|
+ sound {
|
|
+ compatible = "amlogic,axg-sound-card";
|
|
+ model = "RGB10-MAX3";
|
|
+ audio-aux-devs = <&tdmout_b>;
|
|
+ audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
|
+ "TDM_B Playback", "TDMOUT_B OUT";
|
|
+
|
|
+ assigned-clocks = <&clkc CLKID_MPLL2>,
|
|
+ <&clkc CLKID_MPLL0>,
|
|
+ <&clkc CLKID_MPLL1>;
|
|
+ assigned-clock-parents = <0>, <0>, <0>;
|
|
+ assigned-clock-rates = <294912000>,
|
|
+ <270950400>,
|
|
+ <393216000>;
|
|
+ status = "okay";
|
|
+
|
|
+ dai-link-0 {
|
|
+ sound-dai = <&frddr_a>;
|
|
+ };
|
|
+
|
|
+ dai-link-1 {
|
|
+ sound-dai = <&frddr_b>;
|
|
+ };
|
|
+
|
|
+ dai-link-2 {
|
|
+ sound-dai = <&frddr_c>;
|
|
+ };
|
|
+
|
|
+ dai-link-3 {
|
|
+ sound-dai = <&toddr_a>;
|
|
+ };
|
|
+
|
|
+ dai-link-4 {
|
|
+ sound-dai = <&toddr_b>;
|
|
+ };
|
|
+
|
|
+ dai-link-5 {
|
|
+ sound-dai = <&toddr_c>;
|
|
+ };
|
|
+
|
|
+ /* 8ch hdmi interface */
|
|
+ dai-link-6 {
|
|
+ sound-dai = <&tdmif_b>;
|
|
+ dai-format = "i2s";
|
|
+ dai-tdm-slot-tx-mask-0 = <1 1>;
|
|
+ dai-tdm-slot-tx-mask-1 = <1 1>;
|
|
+ mclk-fs = <256>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&rk817>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&arb {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&cpu0 {
|
|
+ cpu-supply = <&vddcpu_b>;
|
|
+ operating-points-v2 = <&cpu_opp_table_0>;
|
|
+ clocks = <&clkc CLKID_CPU_CLK>;
|
|
+ clock-latency = <50000>;
|
|
+};
|
|
+
|
|
+&cpu1 {
|
|
+ cpu-supply = <&vddcpu_b>;
|
|
+ operating-points-v2 = <&cpu_opp_table_0>;
|
|
+ clocks = <&clkc CLKID_CPU_CLK>;
|
|
+ clock-latency = <50000>;
|
|
+};
|
|
+
|
|
+&cpu100 {
|
|
+ cpu-supply = <&vddcpu_a>;
|
|
+ operating-points-v2 = <&cpub_opp_table_1>;
|
|
+ clocks = <&clkc CLKID_CPUB_CLK>;
|
|
+ clock-latency = <50000>;
|
|
+};
|
|
+
|
|
+&cpu101 {
|
|
+ cpu-supply = <&vddcpu_a>;
|
|
+ operating-points-v2 = <&cpub_opp_table_1>;
|
|
+ clocks = <&clkc CLKID_CPUB_CLK>;
|
|
+ clock-latency = <50000>;
|
|
+};
|
|
+
|
|
+&cpu102 {
|
|
+ cpu-supply = <&vddcpu_a>;
|
|
+ operating-points-v2 = <&cpub_opp_table_1>;
|
|
+ clocks = <&clkc CLKID_CPUB_CLK>;
|
|
+ clock-latency = <50000>;
|
|
+};
|
|
+
|
|
+&cpu103 {
|
|
+ cpu-supply = <&vddcpu_a>;
|
|
+ operating-points-v2 = <&cpub_opp_table_1>;
|
|
+ clocks = <&clkc CLKID_CPUB_CLK>;
|
|
+ clock-latency = <50000>;
|
|
+};
|
|
+
|
|
+/* RK817 only supports 12.5mV steps, round up the values */
|
|
+&cpu_opp_table_0 {
|
|
+ opp-1000000000 {
|
|
+ opp-microvolt = <760000>;
|
|
+ };
|
|
+ opp-1200000000 {
|
|
+ opp-microvolt = <780000>;
|
|
+ };
|
|
+ opp-1398000000 {
|
|
+ opp-microvolt = <800000>;
|
|
+ };
|
|
+ opp-1512000000 {
|
|
+ opp-microvolt = <860000>;
|
|
+ };
|
|
+ opp-1608000000 {
|
|
+ opp-microvolt = <900000>;
|
|
+ };
|
|
+ opp-1704000000 {
|
|
+ opp-microvolt = <950000>;
|
|
+ };
|
|
+ opp-1800000000 {
|
|
+ opp-microvolt = <1000000>;
|
|
+ };
|
|
+};
|
|
+
|
|
+/* RK818 only supports 12.5mV steps, round up the values */
|
|
+&cpub_opp_table_1 {
|
|
+ opp-1000000000 {
|
|
+ opp-microvolt = <775000>;
|
|
+ };
|
|
+ opp-1200000000 {
|
|
+ opp-microvolt = <775000>;
|
|
+ };
|
|
+ opp-1398000000 {
|
|
+ opp-microvolt = <800000>;
|
|
+ };
|
|
+ opp-1512000000 {
|
|
+ opp-microvolt = <825000>;
|
|
+ };
|
|
+ opp-1608000000 {
|
|
+ opp-microvolt = <862500>;
|
|
+ };
|
|
+ opp-1704000000 {
|
|
+ opp-microvolt = <900000>;
|
|
+ };
|
|
+ opp-1800000000 {
|
|
+ opp-microvolt = <987500>;
|
|
+ };
|
|
+ opp-1908000000 {
|
|
+ opp-microvolt = <1025000>;
|
|
+ };
|
|
+ opp-2016000000 {
|
|
+ opp-hz = /bits/ 64 <2016000000>;
|
|
+ opp-microvolt = <1025000>;
|
|
+ };
|
|
+ opp-2100000000 {
|
|
+ opp-hz = /bits/ 64 <2100000000>;
|
|
+ opp-microvolt = <1025000>;
|
|
+ };
|
|
+ opp-2208000000 {
|
|
+ opp-hz = /bits/ 64 <2208000000>;
|
|
+ opp-microvolt = <1050000>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2c_AO {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
|
|
+ pinctrl-names = "default";
|
|
+
|
|
+ rk818: pmic@1c {
|
|
+ compatible = "rockchip,rk818";
|
|
+ reg = <0x1c>;
|
|
+ interrupt-parent = <&gpio_intc>;
|
|
+ interrupts = <7 IRQ_TYPE_LEVEL_LOW>; /* GPIOAO_7 */
|
|
+ rockchip,system-power-controller;
|
|
+ clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
|
+
|
|
+ vcc1-supply = <&vdd_sys>;
|
|
+ vcc2-supply = <&vdd_sys>;
|
|
+ vcc3-supply = <&vdd_sys>;
|
|
+ vcc4-supply = <&vdd_sys>;
|
|
+ vcc6-supply = <&vdd_sys>;
|
|
+ vcc7-supply = <&vcc_2v3>;
|
|
+ vcc8-supply = <&vcc_2v3>;
|
|
+ vcc9-supply = <&vddao_3v3>;
|
|
+ boost-supply = <&vdd_sys>;
|
|
+ switch-supply = <&vdd_sys>;
|
|
+
|
|
+ regulators {
|
|
+ vddcpu_a: DCDC_REG1 {
|
|
+ regulator-name = "vddcpu_a";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <750000>;
|
|
+ regulator-max-microvolt = <1050000>;
|
|
+ regulator-ramp-delay = <6001>;
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <750000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vdd_ee: DCDC_REG2 {
|
|
+ regulator-name = "vdd_ee";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <875000>;
|
|
+ regulator-max-microvolt = <900000>;
|
|
+ regulator-ramp-delay = <6001>;
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <875000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vddq_1v1: DCDC_REG3 {
|
|
+ regulator-name = "vddq_1v1";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vddao_3v3: DCDC_REG4 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <3000000>;
|
|
+ regulator-max-microvolt = <3000000>;
|
|
+ regulator-name = "vddao_3v3";
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <3000000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hp_5v: DCDC_BOOST {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-name = "hp_5v";
|
|
+ regulator-min-microvolt = <5000000>;
|
|
+ regulator-max-microvolt = <5000000>;
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG1 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk818_LDO1";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG2 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk818_LDO2";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG3 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk818_LDO3";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG4 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk818_LDO4";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vddio_ao1v8: LDO_REG5 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ regulator-name = "vddio_ao1v8";
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <1800000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG6 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk818_LDO6";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vddq_1v8: LDO_REG7 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ regulator-name = "vddq_1v8";
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <1800000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG8 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk818_LDO8";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vddio_c: LDO_REG9 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-name = "vddio_c";
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <3300000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vcc_sd: SWITCH_REG {
|
|
+ regulator-name = "vcc_sd";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ rk818_otg_switch: OTG_SWITCH {
|
|
+ regulator-name = "otg_switch";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ battery {
|
|
+ compatible = "rockchip,rk818-battery";
|
|
+
|
|
+ ocv_table = <
|
|
+ 3470 3599 3671 3701 3728 3746 3762
|
|
+ 3772 3781 3792 3816 3836 3866 3910
|
|
+ 3942 3971 4002 4050 4088 4132 4200>;
|
|
+ design_capacity = <4000>;
|
|
+ design_qmax = <4100>;
|
|
+ bat_res = <180>;
|
|
+ max_input_current = <2000>;
|
|
+ max_chrg_current = <1500>;
|
|
+ max_chrg_voltage = <4250>;
|
|
+ sleep_enter_current = <300>;
|
|
+ sleep_exit_current = <300>;
|
|
+ power_off_thresd = <3450>;
|
|
+ zero_algorithm_vol = <3700>;
|
|
+ fb_temperature = <105>;
|
|
+ sample_res = <10>;
|
|
+ max_soc_offset = <60>;
|
|
+ energy_mode = <0>;
|
|
+ monitor_sec = <5>;
|
|
+ virtual_power = <0>;
|
|
+ power_dc2otg = <0>;
|
|
+ otg5v_suspend_enable = <0>;
|
|
+ };
|
|
+
|
|
+ charger {
|
|
+ compatible = "rockchip,rk818-charger";
|
|
+ monitored-battery = <&bat>;
|
|
+ };
|
|
+
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2c3 {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
|
|
+ pinctrl-names = "default";
|
|
+
|
|
+ rk817: pmic@20 {
|
|
+ compatible = "rockchip,rk817";
|
|
+ reg = <0x20>;
|
|
+ status = "okay";
|
|
+ interrupt-parent = <&gpio_intc>;
|
|
+ interrupts = <5 IRQ_TYPE_LEVEL_LOW>; /* GPIOAO_5 */
|
|
+ wakeup-source;
|
|
+
|
|
+ vcc1-supply = <&vdd_sys>;
|
|
+ vcc2-supply = <&vdd_sys>;
|
|
+ vcc3-supply = <&vdd_sys>;
|
|
+ vcc4-supply = <&vdd_sys>;
|
|
+ vcc5-supply = <&vdd_sys>;
|
|
+ vcc6-supply = <&vdd_sys>;
|
|
+ vcc7-supply = <&vdd_sys>;
|
|
+ vcc8-supply = <&vdd_sys>;
|
|
+ vcc9-supply = <&rk817_boost>;
|
|
+
|
|
+ #sound-dai-cells = <0>;
|
|
+ clocks = <&codec_clk>;
|
|
+ clock-names = "mclk";
|
|
+
|
|
+ regulators {
|
|
+ DCDC_REG1 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_BUCK1";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vddcpu_b: DCDC_REG2 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <725000>;
|
|
+ regulator-max-microvolt = <1050000>;
|
|
+ regulator-ramp-delay = <6001>;
|
|
+ regulator-initial-mode = <0x2>;
|
|
+ regulator-name = "vddcpu_b";
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ regulator-suspend-microvolt = <1000000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vcc_2v3: DCDC_REG3 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <2300000>;
|
|
+ regulator-max-microvolt = <2400000>;
|
|
+ regulator-initial-mode = <0x2>;
|
|
+ regulator-name = "vcc_2v3";
|
|
+ regulator-state-mem {
|
|
+ regulator-on-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ DCDC_REG4 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_BUCK4";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG1 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO1";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG2 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO2";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG3 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO3";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG4 {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-name = "vdd_codec";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG5 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO5";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG6 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO6";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG7 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO7";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vcc_lcd: LDO_REG8 {
|
|
+ regulator-boot-on;
|
|
+ regulator-always-on;
|
|
+ regulator-min-microvolt = <3000000>;
|
|
+ regulator-max-microvolt = <3000000>;
|
|
+ regulator-name = "vcc_lcd";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ LDO_REG9 {
|
|
+ regulator-boot-off;
|
|
+ regulator-name = "rk817_LDO9";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ rk817_boost: BOOST {
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <5000000>;
|
|
+ regulator-max-microvolt = <5400000>;
|
|
+ regulator-name = "rk817_boost";
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usb_host: OTG_SWITCH {
|
|
+ regulator-name = "usb_host";
|
|
+ regulator-min-microvolt = <5000000>;
|
|
+ regulator-max-microvolt = <5000000>;
|
|
+ regulator-state-mem {
|
|
+ regulator-off-in-suspend;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ rk817_codec: codec {
|
|
+ rockchip,mic-in-differential;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&clkc_audio {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+ð_phy {
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&frddr_a {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&frddr_b {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&frddr_c {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toddr_a {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toddr_b {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toddr_c {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&mipi_dsi {
|
|
+ status = "okay";
|
|
+
|
|
+ assigned-clocks = <&clkc CLKID_GP0_PLL>,
|
|
+ <&clkc CLKID_MIPI_DSI_PXCLK_SEL>,
|
|
+ <&clkc CLKID_MIPI_DSI_PXCLK>,
|
|
+ <&clkc CLKID_CTS_ENCL_SEL>,
|
|
+ <&clkc CLKID_VCLK2_SEL>;
|
|
+ assigned-clock-parents = <0>,
|
|
+ <&clkc CLKID_GP0_PLL>,
|
|
+ <0>,
|
|
+ <&clkc CLKID_VCLK2_DIV1>,
|
|
+ <&clkc CLKID_GP0_PLL>;
|
|
+ assigned-clock-rates = <344976000>,
|
|
+ <0>,
|
|
+ <344976000>,
|
|
+ <0>,
|
|
+ <0>;
|
|
+
|
|
+ panel@0 {
|
|
+ compatible = "elida,kd50t048a", "sitronix,st7701";
|
|
+ reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
|
|
+ IOVCC-supply = <&vcc_lcd>;
|
|
+ VCC-supply = <&vcc_lcd>;
|
|
+ backlight = <&panel_backlight>;
|
|
+ rotation = <270>;
|
|
+ reg = <0>;
|
|
+
|
|
+ port {
|
|
+ mipi_in_panel: endpoint {
|
|
+ remote-endpoint = <&mipi_out_panel>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&mipi_analog_dphy {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&mipi_dphy {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&mipi_dsi_panel_port {
|
|
+ mipi_out_panel: endpoint {
|
|
+ remote-endpoint = <&mipi_in_panel>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&periphs_pinctrl {
|
|
+ keypad_gpio_pins: keypad-gpio {
|
|
+ mux {
|
|
+ groups = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3",
|
|
+ "GPIOX_4", "GPIOX_5", "GPIOX_6", "GPIOX_7",
|
|
+ "GPIOX_8", "GPIOX_9", "GPIOX_10", "GPIOX_11",
|
|
+ "GPIOX_12", "GPIOX_13", "GPIOX_14", "GPIOX_15",
|
|
+ "GPIOX_16", "GPIOX_17", "GPIOX_18", "GPIOX_19";
|
|
+ function = "gpio_periphs";
|
|
+ bias-pull-up;
|
|
+ output-disable;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&pwm_ef {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&pwm_f_h_pins>;
|
|
+ pinctrl-names = "default";
|
|
+};
|
|
+
|
|
+&saradc {
|
|
+ status = "okay";
|
|
+ vref-supply = <&vddio_ao1v8>;
|
|
+};
|
|
+
|
|
+/* SD card */
|
|
+&sd_emmc_b {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&sdcard_c_pins>;
|
|
+ pinctrl-1 = <&sdcard_clk_gate_c_pins>;
|
|
+ pinctrl-names = "default", "clk-gate";
|
|
+
|
|
+ bus-width = <4>;
|
|
+ cap-sd-highspeed;
|
|
+ max-frequency = <50000000>;
|
|
+ disable-wp;
|
|
+
|
|
+ cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
|
|
+ vmmc-supply = <&vcc_sd>;
|
|
+ vqmmc-supply = <&vddio_c>;
|
|
+
|
|
+};
|
|
+
|
|
+/* eMMC */
|
|
+&sd_emmc_c {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
|
|
+ pinctrl-1 = <&emmc_clk_gate_pins>;
|
|
+ pinctrl-names = "default", "clk-gate";
|
|
+
|
|
+ bus-width = <8>;
|
|
+ cap-mmc-highspeed;
|
|
+ mmc-ddr-1_8v;
|
|
+ mmc-hs200-1_8v;
|
|
+ max-frequency = <200000000>;
|
|
+ disable-wp;
|
|
+
|
|
+ mmc-pwrseq = <&emmc_pwrseq>;
|
|
+ vmmc-supply = <&vcc_sd>;
|
|
+ vqmmc-supply = <&vddio_ao1v8>;
|
|
+};
|
|
+
|
|
+
|
|
+&tdmif_b {
|
|
+ pinctrl-0 = <&mclk0_a_pins>, <&tdm_b_fs_pins>, <&tdm_b_sclk_pins>,
|
|
+ <&tdm_b_dout0_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ status = "okay";
|
|
+
|
|
+ assigned-clocks = <&clkc_audio AUD_CLKID_TDM_MCLK_PAD0>,
|
|
+ <&clkc_audio AUD_CLKID_TDM_SCLK_PAD1>,
|
|
+ <&clkc_audio AUD_CLKID_TDM_LRCLK_PAD1>;
|
|
+ assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_B_MCLK>,
|
|
+ <&clkc_audio AUD_CLKID_MST_B_SCLK>,
|
|
+ <&clkc_audio AUD_CLKID_MST_B_LRCLK>;
|
|
+ assigned-clock-rates = <0>, <0>, <0>;
|
|
+};
|
|
+
|
|
+&tdmout_b {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&uart_AO {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&uart_ao_a_pins>;
|
|
+ pinctrl-names = "default";
|
|
+};
|
|
+
|
|
+&usb {
|
|
+ status = "okay";
|
|
+ dr_mode = "peripheral";
|
|
+};
|
|
+
|
|
+&usb2_phy0 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usb2_phy1 {
|
|
+ status = "okay";
|
|
+ phy-supply = <&usb_host>;
|
|
+};
|