Disclosed are compounds of Formula (I)(I) or a salt thereof, wherein R1, R2, R3, R4, R5, m, n, and p are defined herein. Also disclosed are methods of using such compounds as inhibitors of signaling through Toll-like receptor 7, or 8, or 9, and pharmaceutical compositions comprising such compounds. These compounds are useful in treating inflammatory and autoimmune diseases.本文揭示式(I)化合物(I) 或其鹽,其中R1、R2、R3、R4、R5、m、n及p定義於本文中。亦揭示使用該等化合物作為經由類鐸(Toll-like)受體7或8或9之信號傳導之抑制劑的方法,及包含該等化合物之醫藥組合物。該等化合物可用於治療發炎及自體免疫疾病。