diff options
author | Joel Stanley <joel@jms.id.au> | 2018-04-20 10:05:57 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2018-04-20 10:34:40 +0300 |
commit | 5b5a9c2d51eda4279915d72cda387dd6edfd00df (patch) | |
tree | 91bab40bfec50f987c5d5c685266b7318bd7f765 | |
parent | f5fce75e26414395846e6c6be3f051aae126fa9c (diff) | |
download | linux-5b5a9c2d51eda4279915d72cda387dd6edfd00df.tar.xz |
ARM: dts: aspeed-g5: Add DAC MUX userspace control
This exposes SCU2C "Misc. Control Register" bits 16 and 17 which control
the input to the VGA DAC. They are used to select which graphics device
drives the analog output:
00: VGA mode (default)
01: Graphics CRT mode
10: Pass-through mode from Video input port-A
11: Pass-through mode from Video input port-B
We don't need the reg property, so remove it and the unit name.
OpenBMC-Staging-Count: 1
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | arch/arm/boot/dts/aspeed-g5.dtsi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 4ca4bc463347..01b66359e6d6 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -158,9 +158,8 @@ }; - vga_scratch: scratch@50 { + vga_scratch: scratch { compatible = "aspeed,bmc-misc"; - reg = <0x50 0x20>; }; hwrng@78 { @@ -1441,6 +1440,11 @@ }; &vga_scratch { + dac_mux { + offset = <0x2c>; + bit-mask = <0x3>; + bit-shift = <16>; + }; vga0 { offset = <0x50>; bit-mask = <0xffffffff>; |