As per the mortgage regulations, you will need to use and live in a minimum of 40% of the property to get a residential mortgage. However, mortgage lender terms usually state that you are not allowed to let any part of your property under a residential mortgage.
If you want to rent out a room or a specific part of your property, you should contact your mortgage lender and get further advice, they may change your mortgage to a buy to let mortgage.