[PATCH 2/2] arm64: dts: rockchip: Add initial support for Pine64 PinePhone Pro
Pavel Machek
pavel at ucw.cz
Wed Jun 15 06:28:27 PDT 2022
Hi!
> + // Per "RK 3399 SARADC", page 8.
> + adc-keys {
> + compatible = "adc-keys";
> + io-channels = <&saradc 1>;
> + io-channel-names = "buttons";
> + keyup-threshold-microvolt = <1600000>;
> + poll-interval = <100>;
> +
> + button-up {
> + label = "Volume Up";
> + linux,code = <KEY_VOLUMEUP>;
> + press-threshold-microvolt = <100000>;
> + };
> +
> + button-down {
> + label = "Volume Down";
> + linux,code = <KEY_VOLUMEDOWN>;
> + press-threshold-microvolt = <300000>;
> + };
> + };
Wow. Quite a hack...
> + // Per "RK3399 GPIO", page 11.
> + leds {
> + compatible = "gpio-leds";
> + pinctrl-names = "default";
> + pinctrl-0 = <&red_led_pin &green_led_pin &blue_led_pin>;
> + led-standby { + color = <LED_COLOR_ID_RED>; + default-state = "off"; + function =
I wish LED was connected to PWM, not to simple GPIO...
Plus, it is really one RGB LED, right? It should be handled as such.
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
More information about the Linux-rockchip
mailing list