]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: microchip: sam9x7: Add HLCD controller
authorDharma Balasubiramani <dharma.b@microchip.com>
Wed, 11 Jun 2025 09:17:59 +0000 (14:47 +0530)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 22 Jun 2025 13:57:14 +0000 (16:57 +0300)
Add support for HLCD controller.

Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
Link: https://lore.kernel.org/r/20250611-sam9x7-dts-v1-1-7f52fcb488ad@microchip.com
[claudiu.beznea: keep reg the 1st property on port@0 to comply with dts
 coding style]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/sam9x7.dtsi

index b217a908f525349833d78ce809941b9419e6b03c..2c8ab223fdf68ff04c13e68484935e71f0d8a203 100644 (file)
                        status = "disabled";
                };
 
+               hlcdc: hlcdc@f8038000 {
+                       compatible = "microchip,sam9x75-xlcdc";
+                       reg = <0xf8038000 0x4000>;
+                       interrupts = <25 IRQ_TYPE_LEVEL_HIGH 0>;
+                       clocks = <&pmc PMC_TYPE_PERIPHERAL 25>, <&pmc PMC_TYPE_GCK 25>, <&clk32k 1>;
+                       clock-names = "periph_clk", "sys_clk", "slow_clk";
+                       status = "disabled";
+
+                       display-controller {
+                               compatible = "atmel,hlcdc-display-controller";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+                       };
+
+                       pwm {
+                               compatible = "atmel,hlcdc-pwm";
+                               #pwm-cells = <3>;
+                       };
+               };
+
                flx9: flexcom@f8040000 {
                        compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
                        reg = <0xf8040000 0x200>;