[PATCH linux dev-5.3 1/3] ARM: dts: aspeed-g6: Add remaining UARTs

Eddie James eajames at linux.ibm.com
Thu Oct 17 07:50:00 AEDT 2019


On 10/16/19 6:59 AM, Joel Stanley wrote:
> The AST2600 has five UARTs. Add UART 1 to 4.


Tested-by: Eddie James <eajames at linux.ibm.com>


>
> Signed-off-by: Joel Stanley <joel at jms.id.au>
> ---
>   arch/arm/boot/dts/aspeed-g6.dtsi | 60 ++++++++++++++++++++++++++++++++
>   1 file changed, 60 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi
> index 16dec4e08d8f..6db29ee769d5 100644
> --- a/arch/arm/boot/dts/aspeed-g6.dtsi
> +++ b/arch/arm/boot/dts/aspeed-g6.dtsi
> @@ -28,6 +28,10 @@
>   		i2c13 = &i2c13;
>   		i2c14 = &i2c14;
>   		i2c15 = &i2c15;
> +		serial0 = &uart1;
> +		serial1 = &uart2;
> +		serial2 = &uart3;
> +		serial3 = &uart4;
>   		serial4 = &uart5;
>   		serial5 = &vuart1;
>   		serial6 = &vuart2;
> @@ -306,6 +310,20 @@
>   				status = "disabled";
>   			};
>   
> +			uart1: serial at 1e783000 {
> +				compatible = "ns16550a";
> +				reg = <0x1e783000 0x20>;
> +				reg-shift = <2>;
> +				reg-io-width = <4>;
> +				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
> +				clocks = <&syscon ASPEED_CLK_GATE_UART1CLK>;
> +				resets = <&lpc_reset 4>;
> +				no-loopback-test;
> +				pinctrl-names = "default";
> +				pinctrl-0 = <&pinctrl_txd1_default &pinctrl_rxd1_default>;
> +				status = "disabled";
> +			};
> +
>   			uart5: serial at 1e784000 {
>   				compatible = "ns16550a";
>   				reg = <0x1e784000 0x1000>;
> @@ -497,6 +515,48 @@
>   				status = "disabled";
>   			};
>   
> +			uart2: serial at 1e78d000 {
> +				compatible = "ns16550a";
> +				reg = <0x1e78d000 0x20>;
> +				reg-shift = <2>;
> +				reg-io-width = <4>;
> +				interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
> +				clocks = <&syscon ASPEED_CLK_GATE_UART2CLK>;
> +				resets = <&lpc_reset 5>;
> +				no-loopback-test;
> +				pinctrl-names = "default";
> +				pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
> +				status = "disabled";
> +			};
> +
> +			uart3: serial at 1e78e000 {
> +				compatible = "ns16550a";
> +				reg = <0x1e78e000 0x20>;
> +				reg-shift = <2>;
> +				reg-io-width = <4>;
> +				interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
> +				clocks = <&syscon ASPEED_CLK_GATE_UART3CLK>;
> +				resets = <&lpc_reset 6>;
> +				no-loopback-test;
> +				pinctrl-names = "default";
> +				pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;
> +				status = "disabled";
> +			};
> +
> +			uart4: serial at 1e78f000 {
> +				compatible = "ns16550a";
> +				reg = <0x1e78f000 0x20>;
> +				reg-shift = <2>;
> +				reg-io-width = <4>;
> +				interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
> +				clocks = <&syscon ASPEED_CLK_GATE_UART4CLK>;
> +				resets = <&lpc_reset 7>;
> +				no-loopback-test;
> +				pinctrl-names = "default";
> +				pinctrl-0 = <&pinctrl_txd4_default &pinctrl_rxd4_default>;
> +				status = "disabled";
> +			};
> +
>   			i2c: bus at 1e78a000 {
>   				compatible = "simple-bus";
>   				#address-cells = <1>;


More information about the openbmc mailing list