mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
arm64: dts: rockchip: Add Anbernic RG351M
This device is a clone of Odroid Go Advance, with added PWM motor, internal gamepad connected on USB instead of just having it be on GPIO + ADC, and missing battery shunt resistor. Due to missing shunt resistor and lack of a workaround in rk817_charger driver rk817_charger is not enabled in dts. There's also an LED on GPIO 77(I *guess* PB5 on &gpio2), that is controlled in a weird way: - It is set to red by setting output value to 1 - Set to green by setting output value to 0 - Set to yellow by setting gpio direction to input I have no idea how to describe that in DTS, without adding a custom driver, for now it's just left out. Signed-off-by: Maya Matuszczyk <maccraft123mc@gmail.com> Link: https://lore.kernel.org/r/20221117215954.4114202-6-maccraft123mc@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
parent
2f217d71aa
commit
4e2347dbd6
|
|
@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb
|
|||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3318-a95x-z2.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-anbernic-rg351m.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2-v11.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go3.dtb
|
||||
|
|
|
|||
33
arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts
Normal file
33
arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2019 Hardkernel Co., Ltd
|
||||
* Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
|
||||
* Copyright (c) 2022 Maya Matuszczyk <maccraft123mc@gmail.com>
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include "rk3326-odroid-go.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Anbernic RG351M";
|
||||
compatible = "anbernic,rg351m", "rockchip,rk3326";
|
||||
|
||||
vibrator {
|
||||
compatible = "pwm-vibrator";
|
||||
pwms = <&pwm0 0 1000000 0>;
|
||||
pwm-names = "enable";
|
||||
};
|
||||
};
|
||||
|
||||
/delete-node/ &builtin_gamepad;
|
||||
/delete-node/ &vcc_host; /* conflicts with pwm vibration motor */
|
||||
|
||||
&internal_display {
|
||||
compatible = "elida,kd35t133";
|
||||
};
|
||||
|
||||
&pwm0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/delete-node/ &rk817_charger;
|
||||
Loading…
Reference in New Issue
Block a user