Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: qcom: x1e80100: Add UART2

GENI SE2 within QUP0 is used as UART on some devices, describe it.
While at it, rewrite the adjacent UART21 pins node to make it more
easily modifiable.

Signed-off-by: Konrad Dybcio <quic_kdybcio@quicinc.com>
Link: https://lore.kernel.org/r/20240826-topic-sl7-v2-4-c32ebae78789@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Konrad Dybcio and committed by
Bjorn Andersson
ecbdce20 02a1bfb3

+65 -5
+65 -5
arch/arm64/boot/dts/qcom/x1e80100.dtsi
··· 2143 2143 status = "disabled"; 2144 2144 }; 2145 2145 2146 + uart2: serial@b88000 { 2147 + compatible = "qcom,geni-uart"; 2148 + reg = <0 0x00b88000 0 0x4000>; 2149 + 2150 + interrupts = <GIC_SPI 584 IRQ_TYPE_LEVEL_HIGH>; 2151 + 2152 + clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>; 2153 + clock-names = "se"; 2154 + 2155 + interconnects = <&clk_virt MASTER_QUP_CORE_0 QCOM_ICC_TAG_ALWAYS 2156 + &clk_virt SLAVE_QUP_CORE_0 QCOM_ICC_TAG_ALWAYS>, 2157 + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS 2158 + &config_noc SLAVE_QUP_0 QCOM_ICC_TAG_ALWAYS>; 2159 + interconnect-names = "qup-core", 2160 + "qup-config"; 2161 + 2162 + pinctrl-0 = <&qup_uart2_default>; 2163 + pinctrl-names = "default"; 2164 + 2165 + status = "disabled"; 2166 + }; 2167 + 2146 2168 spi2: spi@b88000 { 2147 2169 compatible = "qcom,geni-spi"; 2148 2170 reg = <0 0x00b88000 0 0x4000>; ··· 5580 5558 bias-disable; 5581 5559 }; 5582 5560 5561 + qup_uart2_default: qup-uart2-default-state { 5562 + cts-pins { 5563 + pins = "gpio8"; 5564 + function = "qup0_se2"; 5565 + drive-strength = <2>; 5566 + bias-disable; 5567 + }; 5568 + 5569 + rts-pins { 5570 + pins = "gpio9"; 5571 + function = "qup0_se2"; 5572 + drive-strength = <2>; 5573 + bias-disable; 5574 + }; 5575 + 5576 + tx-pins { 5577 + pins = "gpio10"; 5578 + function = "qup0_se2"; 5579 + drive-strength = <2>; 5580 + bias-disable; 5581 + }; 5582 + 5583 + rx-pins { 5584 + pins = "gpio11"; 5585 + function = "qup0_se2"; 5586 + drive-strength = <2>; 5587 + bias-disable; 5588 + }; 5589 + }; 5590 + 5583 5591 qup_uart21_default: qup-uart21-default-state { 5584 - /* TX, RX */ 5585 - pins = "gpio86", "gpio87"; 5586 - function = "qup2_se5"; 5587 - drive-strength = <2>; 5588 - bias-disable; 5592 + tx-pins { 5593 + pins = "gpio86"; 5594 + function = "qup2_se5"; 5595 + drive-strength = <2>; 5596 + bias-disable; 5597 + }; 5598 + 5599 + rx-pins { 5600 + pins = "gpio87"; 5601 + function = "qup2_se5"; 5602 + drive-strength = <2>; 5603 + bias-disable; 5604 + }; 5589 5605 }; 5590 5606 }; 5591 5607